bisq2 icon indicating copy to clipboard operation
bisq2 copied to clipboard

Add Whonix 17 Support

Open nyxnor opened this issue 3 months ago • 4 comments

Hello and thank you for developing Bisq V2.

  • Bisq v1.9.14 bootstraps fine.
  • Bisq v2.0.1 doesn't bootstrap.

I had to create the dummy tor binary:

mkdir -p /home/user/.local/share/Bisq2/tor
## Sudo necessary to avoid package overwriting the binary
sudo touch /home/user/.local/share/Bisq2/tor/tor
chmod +x /home/user/.local/share/Bisq2/tor/tor

Torrc of Bisqv2 (unmodified by me):

HashedControlPassword 16:[REDACTED]
ControlPort 127.0.0.1:34477
Log notice file /home/user/.local/share/Bisq2/tor/debug.log
DataDirectory /home/user/.local/share/Bisq2/tor
SocksPort 44081
DisableNetwork 1

Using the command:

/opt/bisq2/bin/Bisq\ 2 --torControlPort=9051 --torControlPassword=notrequired --socks5ProxyBtcAddress=127.0.0.1:9050 --useTorForBtc=true
Mar-22 14:58:25.704 [main] INFO  b.d.DesktopAppLauncher: No jar file found. Run default Bisq application with version 2.0.1 
Mar-22 14:58:25.918 [main] INFO  b.a.ApplicationService: 

                    ........                  ......                                                                         
                ..............                ......                                                                         
              .................               ......                                                                         
            ......   ..........   ..          ......                                                                         
           ......      ......   ......        ...............        .....     .........         ..........                  
          .......              ........       ..................     .....   .............     ...............               
          ......               ........       ..........  .......    .....  ......   ...     ........   .......              
         ......                   .....       .......        .....   .....  .....            .....        ......             
         ......    ...        ...             ......         ......  .....   ...........    ......         ......            
         ......   .....      ....             ......         ......  .....    ............  .....          ......            
          ......                               .....         ......  .....         ........ ......         ......            
           ......       ....        ...        ......       ......   .....    ..     ......  ......      ........            
            ........     ..      .......        .................    .....  ..............    ...................            
             ..........       .........           .............      .....   ............       .................            
               ......................                 .....                      ....               ....   ......            
                  ................                                                                         ......            
                        ....                                                                               ......            
                                                                                                           ......            


 
Mar-22 14:58:25.919 [main] INFO  b.a.ApplicationService: Data directory: /home/user/.local/share/Bisq2 
Mar-22 14:58:25.921 [main] INFO  b.a.ApplicationService: Version: 2.0.1 
Mar-22 14:58:25.994 [Scheduler-197-0] INFO  b.c.u.MemoryReport: 
************************************************************************************************************************
Total memory: 96 MB; Used memory: 13.173 MB; Free memory: 82.827 MB; Max memory: 1.447 GB; No. of threads: 2
************************************************************************************************************************ 
Mar-22 14:58:27.423 [Thread-0] ERROR b.d.DesktopExecutable: Uncaught exception: java.lang.NullPointerException: Cannot invoke "bisq.desktop_app.DesktopApplicationService.getShutDownErrorMessage()" because "this.applicationService" is null
	at bisq.desktop_app.DesktopExecutable.exitJvm(DesktopExecutable.java:122)
	at bisq.application.Executable.shutdown(Executable.java:49)
	at bisq.application.Executable.lambda$new$0(Executable.java:23)
	at java.base/java.lang.Thread.run(Thread.java:840)

Mar-22 14:58:44.456 [main] INFO  b.d.DesktopAppLauncher: No jar file found. Run default Bisq application with version 2.0.1 
Mar-22 14:58:44.679 [main] INFO  b.a.ApplicationService: 

                    ........                  ......                                                                         
                ..............                ......                                                                         
              .................               ......                                                                         
            ......   ..........   ..          ......                                                                         
           ......      ......   ......        ...............        .....     .........         ..........                  
          .......              ........       ..................     .....   .............     ...............               
          ......               ........       ..........  .......    .....  ......   ...     ........   .......              
         ......                   .....       .......        .....   .....  .....            .....        ......             
         ......    ...        ...             ......         ......  .....   ...........    ......         ......            
         ......   .....      ....             ......         ......  .....    ............  .....          ......            
          ......                               .....         ......  .....         ........ ......         ......            
           ......       ....        ...        ......       ......   .....    ..     ......  ......      ........            
            ........     ..      .......        .................    .....  ..............    ...................            
             ..........       .........           .............      .....   ............       .................            
               ......................                 .....                      ....               ....   ......            
                  ................                                                                         ......            
                        ....                                                                               ......            
                                                                                                           ......            


 
Mar-22 14:58:44.680 [main] INFO  b.a.ApplicationService: Data directory: /home/user/.local/share/Bisq2 
Mar-22 14:58:44.682 [main] INFO  b.a.ApplicationService: Version: 2.0.1 
Mar-22 14:58:44.765 [Scheduler-700-0] INFO  b.c.u.MemoryReport: 
************************************************************************************************************************
Total memory: 96 MB; Used memory: 12.845 MB; Free memory: 83.155 MB; Max memory: 1.447 GB; No. of threads: 2
************************************************************************************************************************ 
Mar-22 14:58:46.092 [main] INFO  b.p.PersistenceService: Read persisted data from:
/home/user/.local/share/Bisq2/db/cache/banned_user_store.protobuf
/home/user/.local/share/Bisq2/db/cache/bisq_easy_offerbook_channel_store.protobuf
/home/user/.local/share/Bisq2/db/cache/network_service_store.protobuf
/home/user/.local/share/Bisq2/db/cache/public_discussion_chat_channel_store.protobuf
/home/user/.local/share/Bisq2/db/cache/public_events_chat_channel_store.protobuf
/home/user/.local/share/Bisq2/db/cache/public_support_chat_channel_store.protobuf
/home/user/.local/share/Bisq2/db/private/account_store.protobuf
/home/user/.local/share/Bisq2/db/private/bisq_easy_open_trade_channel_store.protobuf
/home/user/.local/share/Bisq2/db/private/bisq_easy_trade_store.protobuf
/home/user/.local/share/Bisq2/db/private/identity_store.protobuf
/home/user/.local/share/Bisq2/db/private/key_bundle_store.protobuf
/home/user/.local/share/Bisq2/db/private/mediator_store.protobuf
/home/user/.local/share/Bisq2/db/private/moderator_store.protobuf
/home/user/.local/share/Bisq2/db/private/private_bisq_easy_private_chat_chat_channel_store.protobuf
/home/user/.local/share/Bisq2/db/private/private_discussion_chat_channel_store.protobuf
/home/user/.local/share/Bisq2/db/private/private_events_chat_channel_store.protobuf
/home/user/.local/share/Bisq2/db/private/private_support_chat_channel_store.protobuf
/home/user/.local/share/Bisq2/db/private/resend_message_store.protobuf
/home/user/.local/share/Bisq2/db/private/user_identity_store.protobuf
/home/user/.local/share/Bisq2/db/settings/account_age_store.protobuf
/home/user/.local/share/Bisq2/db/settings/bisq_easy_offerbook_channel_selection_store.protobuf
/home/user/.local/share/Bisq2/db/settings/bisq_easy_open_trades_channel_selection_store.protobuf
/home/user/.local/share/Bisq2/db/settings/bisq_easy_private_chat_channel_selection_store.protobuf
/home/user/.local/share/Bisq2/db/settings/chat_notifications_store.protobuf
/home/user/.local/share/Bisq2/db/settings/discussion_channel_selection_store.protobuf
/home/user/.local/share/Bisq2/db/settings/events_channel_selection_store.protobuf
/home/user/.local/share/Bisq2/db/settings/market_price_store.protobuf
/home/user/.local/share/Bisq2/db/settings/message_delivery_status_store.protobuf
/home/user/.local/share/Bisq2/db/settings/profile_age_store.protobuf
/home/user/.local/share/Bisq2/db/settings/settings_store.protobuf
/home/user/.local/share/Bisq2/db/settings/signed_witness_store.protobuf
/home/user/.local/share/Bisq2/db/settings/support_channel_selection_store.protobuf
/home/user/.local/share/Bisq2/db/settings/tor_peer_group_store.protobuf
/home/user/.local/share/Bisq2/db/settings/user_profile_store.protobuf 
Mar-22 14:58:48.395 [JavaFX Application Thread] INFO  b.d.DesktopExecutable: Java FX Application launched 
Mar-22 14:58:48.947 [PreventStandbyMode-0] INFO  b.d.c.s.Inhibitor: Started -- disabled power management via /usr/bin/systemd-inhibit --who Bisq --what sleep --why Avoid Standby --mode block tail -f /dev/null 
Mar-22 14:58:49.487 [JavaFX Application Thread] INFO  b.s.SecurityService: initialize 
Mar-22 14:58:49.537 [JavaFX Application Thread] INFO  b.d.DesktopApplicationService: New state INITIALIZE_NETWORK 
Mar-22 14:58:49.537 [JavaFX Application Thread] INFO  b.n.NetworkService: initialize 
Mar-22 14:58:49.645 [NetworkService.network-IO-pool-0] INFO  b.n.p.ServiceNode: New state INITIALIZING 
Mar-22 14:58:49.656 [NetworkService.network-IO-pool-0] INFO  b.n.p.n.t.TorTransportService: Initialize Tor 
Mar-22 14:58:50.245 [JavaFX Application Thread] INFO  b.d.DesktopView: Attaching view to stage took 1380 ms 
Mar-22 14:59:44.767 [Scheduler-700-0] INFO  b.c.u.MemoryReport: 
************************************************************************************************************************
Total memory: 102 MB; Used memory: 64.783 MB; Free memory: 37.217 MB; Max memory: 1.447 GB; No. of threads: 15
************************************************************************************************************************ 
Mar-22 14:59:49.764 [NetworkService.network-IO-pool-0] ERROR b.t.p.NativeTorProcess: Couldn't wait for log file creation. java.util.concurrent.TimeoutException: null
	at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:204)
	at bisq.common.scanner.FileScanner.waitUntilLogContainsLines(FileScanner.java:44)
	at bisq.tor.process.NativeTorProcess.waitUntilControlPortReady(NativeTorProcess.java:85)
	at bisq.tor.TorService.initialize(TorService.java:93)
	at bisq.network.p2p.node.transport.TorTransportService.initialize(TorTransportService.java:63)
	at bisq.network.p2p.ServiceNode.getInitializedDefaultNode(ServiceNode.java:229)
	at bisq.network.p2p.ServiceNodesByTransport.lambda$getInitializedDefaultNodeByTransport$1(ServiceNodesByTransport.java:133)
	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:840)

Mar-22 14:59:49.768 [NetworkService.network-IO-pool-0] ERROR b.d.DesktopApplicationService: Error at networkFuture.initialize java.util.concurrent.CompletionException: java.lang.IllegalStateException: Couldn't wait for log file creation.
	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315)
	at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320)
	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: java.lang.IllegalStateException: Couldn't wait for log file creation.
	at bisq.tor.process.NativeTorProcess.waitUntilControlPortReady(NativeTorProcess.java:90)
	at bisq.tor.TorService.initialize(TorService.java:93)
	at bisq.network.p2p.node.transport.TorTransportService.initialize(TorTransportService.java:63)
	at bisq.network.p2p.ServiceNode.getInitializedDefaultNode(ServiceNode.java:229)
	at bisq.network.p2p.ServiceNodesByTransport.lambda$getInitializedDefaultNodeByTransport$1(ServiceNodesByTransport.java:133)
	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
	... 3 common frames omitted

Mar-22 14:59:49.771 [NetworkService.network-IO-pool-0] ERROR b.d.DesktopApplicationService: Initializing applicationService failed java.util.concurrent.CompletionException: java.lang.IllegalStateException: Couldn't wait for log file creation.
	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315)
	at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320)
	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: java.lang.IllegalStateException: Couldn't wait for log file creation.
	at bisq.tor.process.NativeTorProcess.waitUntilControlPortReady(NativeTorProcess.java:90)
	at bisq.tor.TorService.initialize(TorService.java:93)
	at bisq.network.p2p.node.transport.TorTransportService.initialize(TorTransportService.java:63)
	at bisq.network.p2p.ServiceNode.getInitializedDefaultNode(ServiceNode.java:229)
	at bisq.network.p2p.ServiceNodesByTransport.lambda$getInitializedDefaultNodeByTransport$1(ServiceNodesByTransport.java:133)
	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
	... 3 common frames omitted

Mar-22 14:59:49.774 [NetworkService.network-IO-pool-0] INFO  b.d.DesktopApplicationService: New state FAILED 
Mar-22 15:00:14.139 [JavaFX Application Thread] INFO  b.c.u.OsUtils: Trying to exec: cmd = kde-open args = %s file = /home/user/.local/share/Bisq2/bisq.log 
Mar-22 15:00:14.142 [JavaFX Application Thread] WARN  b.c.u.OsUtils: Error running command. java.io.IOException: Cannot run program "kde-open": error=2, No such file or directory 
Mar-22 15:00:14.142 [JavaFX Application Thread] INFO  b.c.u.OsUtils: Trying to exec: cmd = gnome-open args = %s file = /home/user/.local/share/Bisq2/bisq.log 
Mar-22 15:00:14.145 [JavaFX Application Thread] WARN  b.c.u.OsUtils: Error running command. java.io.IOException: Cannot run program "gnome-open": error=2, No such file or directory 
Mar-22 15:00:14.145 [JavaFX Application Thread] INFO  b.c.u.OsUtils: Trying to exec: cmd = xdg-open args = %s file = /home/user/.local/share/Bisq2/bisq.log 
Mar-22 15:00:14.147 [JavaFX Application Thread] INFO  b.c.u.OsUtils: Process is running. 

So, is there a command line option to skip creating the tor log file?

I don't see to find the command line help option

/opt/bisq2/bin/Bisq\ 2 -h --help -help help
## Starts Bisq

Tor bootstrap always stops at 24% and I never see it reach onion-grater on the Whonix-Gateway.

nyxnor avatar Mar 22 '24 15:03 nyxnor