Samourai-Wallet / whirlpool-client-cli

Command line Whirlpool client
Other
16 stars 13 forks source link

TOR workijg or Not #6

Closed ghost closed 5 years ago

ghost commented 5 years ago

Not sure there is an issue or not but wanted to send in a Screen Shot of Logs I got for 0.7.0 with TOR running CLI only.

I spun up 4 different CLI and all seem to run, just want to make sure functioning right. See attached Screen Shots. IMG_20190702_100853_506 IMG_20190702_100856_746

zeroleak commented 5 years ago

hi, looks like you are not running on x86_64 or i686 architecture. could you post the result of uname -m?

Technifocal commented 5 years ago

@zeroleak I also receive these errors on a Raspberry Pi 4-4GB.

uname -m = armv7l

zeroleak commented 5 years ago

thanks, we will get a fix soon

ghost commented 5 years ago

It is running on the nodl, I believe @ketominer is reaching out to you.

zeroleak commented 5 years ago

hi, can you try with this build and see if it runs better: https://github.com/Samourai-Wallet/whirlpool-runtimes/releases/download/cli-develop-tor-arm-SNAPSHOT/whirlpool-client-cli-develop-SNAPSHOT-run.jar

Technifocal commented 5 years ago

@zeroleak Now getting:

[Thread-6] c.m.t.toronionproxy.OnionProxyManager    : /tmp/whirlpoolTorShared2102619240361362087/tor: 1: /tmp/whirlpoolTorShared2102619240361362087/tor: Syntax error: word unexpected (expecting ")")
[Thread-4] c.m.t.toronionproxy.OnionProxyManager    : Control port file not created
java.io.IOException: Control port file not created: /tmp/whirlpoolTorShared2102619240361362087/lib/tor/control.txt, len = 0
$ file /tmp/systemd-private-a8d477f5157f4ba89d036f6838238301-bitcoin-whirlpool.service-ZOSsBV/tmp/whirlpoolTorShared9073994258023178733/tor
tor: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.26, stripped

Seems like it's compiled for i386.

zeroleak commented 5 years ago

great. what happens if you

cd /tmp/systemd-private-a8d477f5157f4ba89d036f6838238301-bitcoin-whirlpool.service-ZOSsBV/tmp/whirlpoolTorShared9073994258023178733/
tor -f torrc

Yes, it's just a try to see if it can handle the 32 bits version, but probably not... We will do another build later to detect and use your own tor local setup.

Technifocal commented 5 years ago

@zeroleak Assuming I run the tor that is bundled with whirlpool-client-cli:

-bash: ./tor: cannot execute binary file: Exec format error

I do not have Tor installed on this system as of current, but installing it(, moving a few files around as I'm no longer running inside a privatetmp,) and running it against the torrc fails (though I think this is intentional with the DisableNetwork 1 flag):

$ tor -f torrc
Jul 02 17:55:18.583 [notice] Tor 0.3.5.8 running on Linux with Libevent 2.1.8-stable, OpenSSL 1.1.1c, Zlib 1.2.11, Liblzma 5.2.4, and Libzstd 1.3.8.
Jul 02 17:55:18.583 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
Jul 02 17:55:18.585 [notice] Read configuration file "/tmp/whirlpoolTorShared5377191714858625931/torrc".
Jul 02 17:55:18.591 [notice] Opening Control listener on 127.0.0.1:0
Jul 02 17:55:18.592 [notice] Control listener listening on port 33469.
Jul 02 17:55:18.592 [notice] Opened Control listener on 127.0.0.1:0
Jul 02 17:55:18.592 [notice] DisableNetwork is set. Tor will not make or accept non-control network connections. Shutting down all existing connections.
Jul 02 17:55:18.000 [notice] Parsing GEOIP IPv4 file /usr/share/tor/geoip.
Jul 02 17:55:19.000 [notice] Parsing GEOIP IPv6 file /usr/share/tor/geoip6.
Jul 02 17:55:19.000 [notice] Bootstrapped 0%: Starting
Jul 02 17:55:19.000 [notice] Starting with guard context "default"
Jul 02 17:55:19.000 [notice] Delaying directory fetches: DisableNetwork is set.

Trying to use Tor also fails:

$ curl --proxy 'http://127.0.0.1:8118/' 'https://check.torproject.org/'
curl: (7) Failed to connect to 127.0.0.1 port 8118: Connection refused

Running just tor (without the torrc, using the default config) works fine:

$ tor
Jul 02 18:03:26.068 [notice] Tor 0.3.5.8 running on Linux with Libevent 2.1.8-stable, OpenSSL 1.1.1c, Zlib 1.2.11, Liblzma 5.2.4, and Libzstd 1.3.8.
Jul 02 18:03:26.068 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
Jul 02 18:03:26.069 [notice] Read configuration file "/etc/tor/torrc".
Jul 02 18:03:26.075 [notice] Opening Socks listener on 127.0.0.1:9050
Jul 02 18:03:26.075 [notice] Opened Socks listener on 127.0.0.1:9050
Jul 02 18:03:26.000 [notice] Parsing GEOIP IPv4 file /usr/share/tor/geoip.
Jul 02 18:03:26.000 [notice] Parsing GEOIP IPv6 file /usr/share/tor/geoip6.
Jul 02 18:03:27.000 [notice] Bootstrapped 0%: Starting
Jul 02 18:03:27.000 [notice] Starting with guard context "default"
Jul 02 18:03:27.000 [notice] Bootstrapped 5%: Connecting to directory server
Jul 02 18:03:27.000 [notice] Bootstrapped 10%: Finishing handshake with directory server
Jul 02 18:03:28.000 [notice] Bootstrapped 15%: Establishing an encrypted directory connection
Jul 02 18:03:28.000 [notice] Bootstrapped 20%: Asking for networkstatus consensus
Jul 02 18:03:28.000 [notice] Bootstrapped 25%: Loading networkstatus consensus
Jul 02 18:03:29.000 [notice] I learned some more directory information, but not enough to build a circuit: We have no usable consensus.
Jul 02 18:03:29.000 [notice] Bootstrapped 40%: Loading authority key certs
Jul 02 18:03:30.000 [notice] The current consensus has no exit nodes. Tor can only build internal paths, such as paths to onion services.
Jul 02 18:03:30.000 [notice] Bootstrapped 45%: Asking for relay descriptors for internal paths
Jul 02 18:03:30.000 [notice] I learned some more directory information, but not enough to build a circuit: We need more microdescriptors: we have 0/6489, and can only build 0% of likely paths. (We have 0% of guards bw, 0% of midpoint bw, and 0% of end bw (no exits in consensus, using mid) = 0% of path bw.)
Jul 02 18:03:30.000 [notice] Bootstrapped 50%: Loading relay descriptors for internal paths
Jul 02 18:03:30.000 [notice] The current consensus contains exit nodes. Tor can build exit and internal paths.
Jul 02 18:03:31.000 [notice] Bootstrapped 57%: Loading relay descriptors
Jul 02 18:03:32.000 [notice] Bootstrapped 66%: Loading relay descriptors
Jul 02 18:03:32.000 [notice] Bootstrapped 72%: Loading relay descriptors
Jul 02 18:03:32.000 [notice] Bootstrapped 80%: Connecting to the Tor network
Jul 02 18:03:32.000 [notice] Bootstrapped 85%: Finishing handshake with first hop
Jul 02 18:03:32.000 [notice] Bootstrapped 90%: Establishing a Tor circuit
Jul 02 18:03:33.000 [notice] Bootstrapped 100%: Done
ghost commented 5 years ago

Within the nodl I believe there may be an issue @ketominer figured out having to do with PTYs. I did a killall -9 java to shut down the Clients running and started them back up again without TOR. Can't do a killall -9 java now, seems there is something holding up the commands. Sorry, not too technical just passing along the info.

-bash: fork: retry: Resource Temporarily Unavailable

ghost commented 5 years ago

I am locked out of ssh also, sorry forgot to mention

zeroleak commented 5 years ago

thanks for all details, we are investigating this with @ketominer and we will publish a fix asap.

ghost commented 5 years ago

Sounds great! I just restarted and reverted back to 0.6.4 for now. Can't let the mixing stop :).

Thanks for all the hard work!

zeroleak commented 5 years ago

Here is a new build if you wish to test it (otherwise, just stick on 0.6.4 and wait for next release). https://github.com/Samourai-Wallet/whirlpool-runtimes/releases/download/cli-develop-tor-arm-SNAPSHOT/whirlpool-client-cli-develop-SNAPSHOT-run.jar

The PTYs leak issue is probably not fixed yet, still investigating.

Technifocal commented 5 years ago

@zeroleak now getting:

Jul 05 13:40:54 raspberrypi launch.sh[32209]: 2019-07-05 13:40:54.293  INFO 32237 --- [           main] com.samourai.whirlpool.cli.Application   : ------------ whirlpool-client-cli starting ------------
Jul 05 13:40:54 raspberrypi launch.sh[32209]: 2019-07-05 13:40:54.301  INFO 32237 --- [           main] com.samourai.whirlpool.cli.Application   : Running whirlpool-client [--listen, --auto-mix] on java 1.8.0_212
Jul 05 13:40:54 raspberrypi launch.sh[32209]: 2019-07-05 13:40:54.314  INFO 32237 --- [           main] com.samourai.whirlpool.cli.Application   : PROXY is DISABLED.
Jul 05 13:40:54 raspberrypi launch.sh[32209]: 2019-07-05 13:40:54.359 ERROR 32237 --- [           main] c.s.w.cli.services.CliTorClientService   :
Jul 05 13:40:54 raspberrypi launch.sh[32209]: java.lang.RuntimeException: Unsupported OS
Jul 05 13:40:54 raspberrypi launch.sh[32209]:         at com.msopentech.thali.toronionproxy.OsData.getOsType(OsData.java:55) ~[classes!/:na]
Jul 05 13:40:54 raspberrypi launch.sh[32209]:         at com.samourai.tor.client.JavaTorClient.computeTorExecutable(JavaTorClient.java:196) ~[classes!/:na]
Jul 05 13:40:54 raspberrypi launch.sh[32209]:         at com.samourai.tor.client.JavaTorClient.<init>(JavaTorClient.java:89) ~[classes!/:na]
Jul 05 13:40:54 raspberrypi launch.sh[32209]:         at com.samourai.whirlpool.cli.services.CliTorClientService.getTorClient(CliTorClientService.java:95) [classes!/:na]
Jul 05 13:40:54 raspberrypi launch.sh[32209]:         at com.samourai.whirlpool.cli.services.CliTorClientService.connect(CliTorClientService.java:27) [classes!/:na]
Jul 05 13:40:54 raspberrypi launch.sh[32209]:         at com.samourai.whirlpool.cli.Application.runCli(Application.java:159) [classes!/:na]
Jul 05 13:40:54 raspberrypi launch.sh[32209]:         at com.samourai.whirlpool.cli.Application.run(Application.java:109) [classes!/:na]
Jul 05 13:40:54 raspberrypi launch.sh[32209]:         at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:804) [spring-boot-2.1.4.RELEASE.jar!/:2.1.4.RELEASE]
Jul 05 13:40:54 raspberrypi launch.sh[32209]:         at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:794) [spring-boot-2.1.4.RELEASE.jar!/:2.1.4.RELEASE]
Jul 05 13:40:54 raspberrypi launch.sh[32209]:         at org.springframework.boot.SpringApplication.run(SpringApplication.java:324) [spring-boot-2.1.4.RELEASE.jar!/:2.1.4.RELEASE]
Jul 05 13:40:54 raspberrypi launch.sh[32209]:         at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:139) [spring-boot-2.1.4.RELEASE.jar!/:2.1.4.RELEASE]
Jul 05 13:40:54 raspberrypi launch.sh[32209]:         at com.samourai.whirlpool.cli.Application.main(Application.java:86) [classes!/:na]
Jul 05 13:40:54 raspberrypi launch.sh[32209]:         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_212]
Jul 05 13:40:54 raspberrypi launch.sh[32209]:         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_212]
Jul 05 13:40:54 raspberrypi launch.sh[32209]:         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_212]
Jul 05 13:40:54 raspberrypi launch.sh[32209]:         at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_212]
Jul 05 13:40:54 raspberrypi launch.sh[32209]:         at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [whirlpool-devarm.jar:na]
Jul 05 13:40:54 raspberrypi launch.sh[32209]:         at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [whirlpool-devarm.jar:na]
Jul 05 13:40:54 raspberrypi launch.sh[32209]:         at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [whirlpool-devarm.jar:na]
Jul 05 13:40:54 raspberrypi launch.sh[32209]:         at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51) [whirlpool-devarm.jar:na]

and:

Jul 05 13:41:46 raspberrypi launch.sh[32209]: 2019-07-05 13:41:46.949 ERROR 32237 --- [nio-8899-exec-4] c.s.w.cli.services.CliTorClientService   :
Jul 05 13:41:46 raspberrypi launch.sh[32209]: java.lang.RuntimeException: Unsupported OS
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at com.msopentech.thali.toronionproxy.OsData.getOsType(OsData.java:55) ~[classes!/:na]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at com.samourai.tor.client.JavaTorClient.computeTorExecutable(JavaTorClient.java:196) ~[classes!/:na]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at com.samourai.tor.client.JavaTorClient.<init>(JavaTorClient.java:89) ~[classes!/:na]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at com.samourai.whirlpool.cli.services.CliTorClientService.getTorClient(CliTorClientService.java:95) [classes!/:na]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at com.samourai.whirlpool.cli.services.CliTorClientService.getProgress(CliTorClientService.java:75) [classes!/:na]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at com.samourai.whirlpool.cli.services.CliWalletService.getCliState(CliWalletService.java:209) [classes!/:na]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at com.samourai.whirlpool.cli.api.controllers.cli.CliController.state(CliController.java:35) [classes!/:na]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at com.samourai.whirlpool.cli.api.controllers.cli.CliController.login(CliController.java:68) [classes!/:na]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_212]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_212]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_212]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_212]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:189) [spring-web-5.1.6.RELEASE.jar!/:5.1.6.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) [spring-web-5.1.6.RELEASE.jar!/:5.1.6.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102) [spring-webmvc-5.1.6.RELEASE.jar!/:5.1.6.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:892) [spring-webmvc-5.1.6.RELEASE.jar!/:5.1.6.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797) [spring-webmvc-5.1.6.RELEASE.jar!/:5.1.6.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) [spring-webmvc-5.1.6.RELEASE.jar!/:5.1.6.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1038) [spring-webmvc-5.1.6.RELEASE.jar!/:5.1.6.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942) [spring-webmvc-5.1.6.RELEASE.jar!/:5.1.6.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1005) [spring-webmvc-5.1.6.RELEASE.jar!/:5.1.6.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:908) [spring-webmvc-5.1.6.RELEASE.jar!/:5.1.6.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at javax.servlet.http.HttpServlet.service(HttpServlet.java:660) [tomcat-embed-core-9.0.17.jar!/:9.0.17]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882) [spring-webmvc-5.1.6.RELEASE.jar!/:5.1.6.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) [tomcat-embed-core-9.0.17.jar!/:9.0.17]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) [tomcat-embed-core-9.0.17.jar!/:9.0.17]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-9.0.17.jar!/:9.0.17]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) [tomcat-embed-websocket-9.0.17.jar!/:9.0.17]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-9.0.17.jar!/:9.0.17]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-9.0.17.jar!/:9.0.17]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java:96) [spring-web-5.1.6.RELEASE.jar!/:5.1.6.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.1.6.RELEASE.jar!/:5.1.6.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-9.0.17.jar!/:9.0.17]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-9.0.17.jar!/:9.0.17]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at com.samourai.whirlpool.cli.config.filters.CliApiWebFilter.doFilter(CliApiWebFilter.java:24) [classes!/:na]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-9.0.17.jar!/:9.0.17]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-9.0.17.jar!/:9.0.17]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320) [spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127) [spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91) [spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119) [spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137) [spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111) [spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:170) [spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63) [spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116) [spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:74) [spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.1.6.RELEASE.jar!/:5.1.6.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105) [spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56) [spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.1.6.RELEASE.jar!/:5.1.6.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215) [spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178) [spring-security-web-5.1.5.RELEASE.jar!/:5.1.5.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:357) [spring-web-5.1.6.RELEASE.jar!/:5.1.6.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:270) [spring-web-5.1.6.RELEASE.jar!/:5.1.6.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-9.0.17.jar!/:9.0.17]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-9.0.17.jar!/:9.0.17]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99) [spring-web-5.1.6.RELEASE.jar!/:5.1.6.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.1.6.RELEASE.jar!/:5.1.6.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-9.0.17.jar!/:9.0.17]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-9.0.17.jar!/:9.0.17]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:92) [spring-web-5.1.6.RELEASE.jar!/:5.1.6.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.1.6.RELEASE.jar!/:5.1.6.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-9.0.17.jar!/:9.0.17]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-9.0.17.jar!/:9.0.17]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93) [spring-web-5.1.6.RELEASE.jar!/:5.1.6.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.1.6.RELEASE.jar!/:5.1.6.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-9.0.17.jar!/:9.0.17]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-9.0.17.jar!/:9.0.17]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200) [spring-web-5.1.6.RELEASE.jar!/:5.1.6.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.1.6.RELEASE.jar!/:5.1.6.RELEASE]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-9.0.17.jar!/:9.0.17]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-9.0.17.jar!/:9.0.17]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:200) [tomcat-embed-core-9.0.17.jar!/:9.0.17]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) [tomcat-embed-core-9.0.17.jar!/:9.0.17]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490) [tomcat-embed-core-9.0.17.jar!/:9.0.17]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) [tomcat-embed-core-9.0.17.jar!/:9.0.17]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) [tomcat-embed-core-9.0.17.jar!/:9.0.17]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) [tomcat-embed-core-9.0.17.jar!/:9.0.17]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) [tomcat-embed-core-9.0.17.jar!/:9.0.17]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408) [tomcat-embed-core-9.0.17.jar!/:9.0.17]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) [tomcat-embed-core-9.0.17.jar!/:9.0.17]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:834) [tomcat-embed-core-9.0.17.jar!/:9.0.17]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1415) [tomcat-embed-core-9.0.17.jar!/:9.0.17]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-9.0.17.jar!/:9.0.17]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_212]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_212]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-9.0.17.jar!/:9.0.17]
Jul 05 13:41:46 raspberrypi launch.sh[32209]:         at java.lang.Thread.run(Thread.java:748) [na:1.8.0_212]
zeroleak commented 5 years ago

thanks for the feedback. my bad... jar updated, should be fixed now! https://github.com/Samourai-Wallet/whirlpool-runtimes/releases/download/cli-develop-tor-arm-SNAPSHOT/whirlpool-client-cli-develop-SNAPSHOT-run.jar

Technifocal commented 5 years ago

@zeroleak Sorry for the long delay, I saw the email yesterday but completely forgot about it until today.

I'm now getting:

Jul 06 17:49:17 raspberrypi launch.sh[5782]: 2019-07-06 17:49:17.207  INFO 5806 --- [           main] com.samourai.whirlpool.cli.Application   : ------------ whirlpool-client-cli starting ------------
Jul 06 17:49:17 raspberrypi launch.sh[5782]: 2019-07-06 17:49:17.213  INFO 5806 --- [           main] com.samourai.whirlpool.cli.Application   : Running whirlpool-client [--listen, --auto-mix] on java 1.8.0_212
Jul 06 17:49:17 raspberrypi launch.sh[5782]: 2019-07-06 17:49:17.225  INFO 5806 --- [           main] com.samourai.whirlpool.cli.Application   : PROXY is DISABLED.
Jul 06 17:49:17 raspberrypi launch.sh[5782]: 2019-07-06 17:49:17.324  INFO 5806 --- [           main] c.s.t.c.utils.WhirlpoolTorInstaller      : Updating torrc file; torrc =/tmp/whirlpoolTorShared8811057269838002963/torrc
Jul 06 17:49:17 raspberrypi launch.sh[5782]: 2019-07-06 17:49:17.325  INFO 5806 --- [           main] c.s.t.c.utils.WhirlpoolTorInstaller      : Setting up tor
Jul 06 17:49:17 raspberrypi launch.sh[5782]: 2019-07-06 17:49:17.326  INFO 5806 --- [           main] c.s.t.c.utils.WhirlpoolTorInstaller      : Installing resources: geoip=/tmp/whirlpoolTorShared8811057269838002963/geoip
Jul 06 17:49:17 raspberrypi launch.sh[5782]: 2019-07-06 17:49:17.438  INFO 5806 --- [           main] c.s.t.c.utils.WhirlpoolTorInstaller      : Using existing tor executable: /usr/sbin/tor
Jul 06 17:49:17 raspberrypi launch.sh[5782]: 2019-07-06 17:49:17.440  INFO 5806 --- [           main] c.s.t.c.utils.WhirlpoolTorInstaller      : Updating torrc file; torrc =/tmp/whirlpoolTorRegOut707425323969713755/torrc
Jul 06 17:49:17 raspberrypi launch.sh[5782]: 2019-07-06 17:49:17.441  INFO 5806 --- [           main] c.s.t.c.utils.WhirlpoolTorInstaller      : Setting up tor
Jul 06 17:49:17 raspberrypi launch.sh[5782]: 2019-07-06 17:49:17.441  INFO 5806 --- [           main] c.s.t.c.utils.WhirlpoolTorInstaller      : Installing resources: geoip=/tmp/whirlpoolTorRegOut707425323969713755/geoip
Jul 06 17:49:17 raspberrypi launch.sh[5782]: 2019-07-06 17:49:17.548  INFO 5806 --- [           main] c.s.t.c.utils.WhirlpoolTorInstaller      : Using existing tor executable: /usr/sbin/tor
Jul 06 17:49:24 raspberrypi launch.sh[5782]: 2019-07-06 17:49:24.076  INFO 5806 --- [nio-8899-exec-1] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
Jul 06 17:49:24 raspberrypi launch.sh[5782]: 2019-07-06 17:49:24.110  INFO 5806 --- [nio-8899-exec-1] o.s.web.servlet.DispatcherServlet        : Completed initialization in 33 ms
Jul 06 17:49:30 raspberrypi launch.sh[5782]: 2019-07-06 17:49:30.210  INFO 5806 --- [           main] org.eclipse.jetty.util.log               : Logging initialized @26824ms to org.eclipse.jetty.util.log.Slf4jLog
Jul 06 17:49:30 raspberrypi launch.sh[5782]: 2019-07-06 17:49:30.985 ERROR 5806 --- [           main] com.samourai.api.client.SamouraiApi      :
Jul 06 17:49:30 raspberrypi launch.sh[5782]: com.samourai.wallet.api.backend.beans.HttpException: java.util.concurrent.ExecutionException: java.io.IOException: SOCKS4 tunnel failed with code 91
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         at com.samourai.http.client.JavaHttpClient.getJson(JavaHttpClient.java:49) ~[classes!/:na]
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         at com.samourai.wallet.api.backend.BackendApi.fetchFees(BackendApi.java:92) ~[extlibj-0.0.4.jar!/:na]
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         at com.samourai.api.client.SamouraiApi.testConnectivity(SamouraiApi.java:30) ~[whirlpool-client-develop-SNAPSHOT.jar!/:na]
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         at com.samourai.whirlpool.cli.services.CliPushTxService.testConnectivity(CliPushTxService.java:57) [classes!/:na]
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         at com.samourai.whirlpool.cli.Application.runCli(Application.java:172) [classes!/:na]
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         at com.samourai.whirlpool.cli.Application.run(Application.java:109) [classes!/:na]
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:804) [spring-boot-2.1.4.RELEASE.jar!/:2.1.4.RELEASE]
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:794) [spring-boot-2.1.4.RELEASE.jar!/:2.1.4.RELEASE]
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         at org.springframework.boot.SpringApplication.run(SpringApplication.java:324) [spring-boot-2.1.4.RELEASE.jar!/:2.1.4.RELEASE]
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:139) [spring-boot-2.1.4.RELEASE.jar!/:2.1.4.RELEASE]
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         at com.samourai.whirlpool.cli.Application.main(Application.java:86) [classes!/:na]
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_212]
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_212]
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_212]
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_212]
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [whirlpool-devarm.jar:na]
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [whirlpool-devarm.jar:na]
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [whirlpool-devarm.jar:na]
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51) [whirlpool-devarm.jar:na]
Jul 06 17:49:30 raspberrypi launch.sh[5782]: Caused by: java.util.concurrent.ExecutionException: java.io.IOException: SOCKS4 tunnel failed with code 91
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         at org.eclipse.jetty.client.util.FutureResponseListener.getResult(FutureResponseListener.java:118) ~[jetty-client-9.4.19.v20190610.jar!/:9.4.19.v20190610]
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         at org.eclipse.jetty.client.util.FutureResponseListener.get(FutureResponseListener.java:101) ~[jetty-client-9.4.19.v20190610.jar!/:9.4.19.v20190610]
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         at org.eclipse.jetty.client.HttpRequest.send(HttpRequest.java:683) ~[jetty-client-9.4.19.v20190610.jar!/:9.4.19.v20190610]
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         at org.eclipse.jetty.client.HttpClient.GET(HttpClient.java:362) ~[jetty-client-9.4.19.v20190610.jar!/:9.4.19.v20190610]
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         at org.eclipse.jetty.client.HttpClient.GET(HttpClient.java:347) ~[jetty-client-9.4.19.v20190610.jar!/:9.4.19.v20190610]
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         at com.samourai.http.client.JavaHttpClient.getJson(JavaHttpClient.java:40) ~[classes!/:na]
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         ... 18 common frames omitted
Jul 06 17:49:30 raspberrypi launch.sh[5782]: Caused by: java.io.IOException: SOCKS4 tunnel failed with code 91
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         at org.eclipse.jetty.client.Socks4Proxy$Socks4ProxyConnection.onSocks4Response(Socks4Proxy.java:188) ~[jetty-client-9.4.19.v20190610.jar!/:9.4.19.v20190610]
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         at org.eclipse.jetty.client.Socks4Proxy$Socks4ProxyConnection.access$300(Socks4Proxy.java:76) ~[jetty-client-9.4.19.v20190610.jar!/:9.4.19.v20190610]
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         at org.eclipse.jetty.client.Socks4Proxy$Socks4ProxyConnection$Socks4Parser.parse(Socks4Proxy.java:227) ~[jetty-client-9.4.19.v20190610.jar!/:9.4.19.v20190610]
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         at org.eclipse.jetty.client.Socks4Proxy$Socks4ProxyConnection$Socks4Parser.access$200(Socks4Proxy.java:211) ~[jetty-client-9.4.19.v20190610.jar!/:9.4.19.v20190610]
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         at org.eclipse.jetty.client.Socks4Proxy$Socks4ProxyConnection.onFillable(Socks4Proxy.java:173) ~[jetty-client-9.4.19.v20190610.jar!/:9.4.19.v20190610]
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305) ~[jetty-io-9.4.19.v20190610.jar!/:9.4.19.v20190610]
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) ~[jetty-io-9.4.19.v20190610.jar!/:9.4.19.v20190610]
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117) ~[jetty-io-9.4.19.v20190610.jar!/:9.4.19.v20190610]
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:781) ~[jetty-util-9.4.19.v20190610.jar!/:9.4.19.v20190610]
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:917) ~[jetty-util-9.4.19.v20190610.jar!/:9.4.19.v20190610]
Jul 06 17:49:30 raspberrypi launch.sh[5782]:         at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_212]
Jul 06 17:49:30 raspberrypi launch.sh[5782]: 2019-07-06 17:49:30.986 ERROR 5806 --- [           main] c.samourai.whirlpool.cli.utils.CliUtils  : ⣿ ERROR ⣿ Unable to connect to pushTxService
Jul 06 17:49:30 raspberrypi launch.sh[5782]: 2019-07-06 17:49:30.987  INFO 5806 --- [           main] com.samourai.whirlpool.cli.Application   : ------------ whirlpool-client-cli ending ------------

Running the torrc directly gets:

$ /usr/sbin/tor -f /tmp/torrc __OwningControllerProcess 6581
Jul 06 17:57:19.547 [notice] Tor 0.3.5.8 running on Linux with Libevent 2.1.8-stable, OpenSSL 1.1.1c, Zlib 1.2.11, Liblzma 5.2.4, and Libzstd 1.3.8.
Jul 06 17:57:19.547 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
Jul 06 17:57:19.547 [notice] Read configuration file "/tmp/torrc".
Jul 06 17:57:19.562 [notice] Opening Control listener on 127.0.0.1:0
Jul 06 17:57:19.562 [notice] Control listener listening on port 46803.
Jul 06 17:57:19.562 [notice] Opened Control listener on 127.0.0.1:0
Jul 06 17:57:19.562 [notice] DisableNetwork is set. Tor will not make or accept non-control network connections. Shutting down all existing connections.
Jul 06 17:57:19.000 [notice] Parsing GEOIP IPv4 file /usr/share/tor/geoip.
Jul 06 17:57:20.000 [notice] Parsing GEOIP IPv6 file /usr/share/tor/geoip6.
Jul 06 17:57:21.000 [notice] Bootstrapped 0%: Starting
Jul 06 17:57:22.000 [notice] Starting with guard context "default"
Jul 06 17:57:22.000 [notice] Delaying directory fetches: DisableNetwork is set.
Jul 06 17:57:34.000 [notice] Monitored process 6581 is dead.
Jul 06 17:57:34.000 [notice] Owning controller process has vanished -- exiting now.
Jul 06 17:57:34.000 [notice] Catching signal TERM, exiting cleanly.

Not that this is in a different /tmp/ namespace with the only file copied over being torrc (not control_auth_cookie/control.txt/tor.pid).

Technifocal commented 5 years ago

FWIW with --debug enabled I see:

c.samourai.whirlpool.cli.utils.CliUtils : Using proxy: SOCKS://127.0.0.1:9050

but in torrc I see:

SOCKSPort 9051

Not sure if that has anything related to it.

zeroleak commented 5 years ago

hi, thanks for the feedback! We are close to a fix.

FYI the CLI sets up 2 tor configurations: /tmp/whirlpoolTorSharedXXX/torrc => SocksPort 9050 (used for all whirlpool traffic) /tmp/whirlpoolTorRegOutXXX/torrc => SocksPort 9051 (reserved for registering output)

Are you sure there is no other Tor process running which may be conflicting?

Can you try this (but this is basically what you did):

When you launched tor with "__OwningControllerProcess 6581" it probably failed because the process 6581 was not running anymore ("Monitored process 6581 is dead."), so try launching tor without this option when testing configuration.

zeroleak commented 5 years ago

Hi again, Problem has been identified, working on a fix.

zeroleak commented 5 years ago

Here is a new build which should fix it: https://github.com/Samourai-Wallet/whirlpool-runtimes/releases/download/cli-develop-tor-arm-SNAPSHOT/whirlpool-client-cli-develop-SNAPSHOT-run.jar

Technifocal commented 5 years ago

/usr/sbin/tor -f /tmp/whirlpoolTorShared6314834642617164131/torrc ->

Jul 10 11:07:41.898 [notice] Tor 0.3.5.8 running on Linux with Libevent 2.1.8-stable, OpenSSL 1.1.1c, Zlib 1.2.11, Liblzma 5.2.4, and Libzstd 1.3.8.
Jul 10 11:07:41.898 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
Jul 10 11:07:41.898 [notice] Read configuration file "/tmp/whirlpoolTorShared6314834642617164131/torrc".
Jul 10 11:07:41.913 [notice] Opening Socks listener on 127.0.0.1:0
Jul 10 11:07:41.913 [notice] Socks listener listening on port 44617.
Jul 10 11:07:41.913 [notice] Opened Socks listener on 127.0.0.1:0
Jul 10 11:07:41.913 [notice] Opening DNS listener on 127.0.0.1:0
Jul 10 11:07:41.913 [notice] DNS listener listening on port 38624.
Jul 10 11:07:41.913 [notice] Opened DNS listener on 127.0.0.1:0
Jul 10 11:07:41.913 [notice] Opening Control listener on 127.0.0.1:0
Jul 10 11:07:41.913 [notice] Control listener listening on port 34971.
Jul 10 11:07:41.913 [notice] Opened Control listener on 127.0.0.1:0
Jul 10 11:07:41.000 [notice] Parsing GEOIP IPv4 file /usr/share/tor/geoip.
Jul 10 11:07:42.000 [notice] Parsing GEOIP IPv6 file /usr/share/tor/geoip6.
Jul 10 11:07:43.000 [notice] Bootstrapped 0%: Starting
Jul 10 11:07:44.000 [notice] Starting with guard context "default"
Jul 10 11:07:44.000 [notice] Bootstrapped 5%: Connecting to directory server
Jul 10 11:07:44.000 [notice] Bootstrapped 10%: Finishing handshake with directory server
Jul 10 11:07:44.000 [notice] Bootstrapped 15%: Establishing an encrypted directory connection
Jul 10 11:07:44.000 [notice] Bootstrapped 20%: Asking for networkstatus consensus
Jul 10 11:07:44.000 [notice] Bootstrapped 25%: Loading networkstatus consensus
Jul 10 11:07:45.000 [notice] Bootstrapped 45%: Asking for relay descriptors
Jul 10 11:07:45.000 [notice] I learned some more directory information, but not enough to build a circuit: We need more microdescriptors: we have 3347/6500, and can only build 23% of likely paths. (We have 64% of guards bw, 60% of midpoint bw, and 60% of exit bw = 23% of path bw.)
Jul 10 11:07:46.000 [notice] I learned some more directory information, but not enough to build a circuit: We need more microdescriptors: we have 3347/6500, and can only build 23% of likely paths. (We have 64% of guards bw, 60% of midpoint bw, and 60% of exit bw = 23% of path bw.)
Jul 10 11:07:46.000 [notice] Bootstrapped 61%: Loading relay descriptors
Jul 10 11:07:46.000 [notice] Bootstrapped 67%: Loading relay descriptors
Jul 10 11:07:46.000 [notice] Bootstrapped 76%: Loading relay descriptors
Jul 10 11:07:46.000 [notice] Bootstrapped 80%: Connecting to the Tor network
Jul 10 11:07:47.000 [notice] Bootstrapped 90%: Establishing a Tor circuit
Jul 10 11:07:47.000 [notice] Bootstrapped 100%: Done

Config:

PidFile /tmp/whirlpoolTorShared6314834642617164131/lib/tor/pid
ReducedConnectionPadding 1
SafeSocks 1
SOCKSPort 9050
StrictNodes 0
TestSocks 0
TransPort 0
UseBridges 0
AutomapHostsOnResolve 1
CookieAuthentication 1 
CookieAuthFile /tmp/whirlpoolTorShared6314834642617164131/lib/tor/control_auth_cookie
ControlPortWriteToFile /tmp/whirlpoolTorShared6314834642617164131/lib/tor/control.txt
ControlPort auto
DNSPort auto
HTTPTunnelPort 0

tor -f /tmp/whirlpoolTorRegOut6085178419183352287/torrc ->

Jul 10 11:15:03.225 [notice] Tor 0.3.5.8 running on Linux with Libevent 2.1.8-stable, OpenSSL 1.1.1c, Zlib 1.2.11, Liblzma 5.2.4, and Libzstd 1.3.8.
Jul 10 11:15:03.225 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
Jul 10 11:15:03.225 [notice] Read configuration file "/tmp/whirlpoolTorRegOut6085178419183352287/torrc".
Jul 10 11:15:03.231 [notice] Opening Socks listener on 127.0.0.1:0
Jul 10 11:15:03.231 [notice] Socks listener listening on port 45225.
Jul 10 11:15:03.231 [notice] Opened Socks listener on 127.0.0.1:0
Jul 10 11:15:03.231 [notice] Opening DNS listener on 127.0.0.1:0
Jul 10 11:15:03.231 [notice] DNS listener listening on port 37282.
Jul 10 11:15:03.231 [notice] Opened DNS listener on 127.0.0.1:0
Jul 10 11:15:03.231 [notice] Opening Control listener on 127.0.0.1:0
Jul 10 11:15:03.231 [notice] Control listener listening on port 36867.
Jul 10 11:15:03.231 [notice] Opened Control listener on 127.0.0.1:0
Jul 10 11:15:03.000 [notice] Parsing GEOIP IPv4 file /usr/share/tor/geoip.
Jul 10 11:15:03.000 [notice] Parsing GEOIP IPv6 file /usr/share/tor/geoip6.
Jul 10 11:15:04.000 [notice] Bootstrapped 0%: Starting
Jul 10 11:15:06.000 [notice] Starting with guard context "default"
Jul 10 11:15:06.000 [notice] Bootstrapped 5%: Connecting to directory server
Jul 10 11:15:06.000 [notice] Bootstrapped 10%: Finishing handshake with directory server
Jul 10 11:15:06.000 [notice] Bootstrapped 80%: Connecting to the Tor network
Jul 10 11:15:06.000 [notice] Bootstrapped 85%: Finishing handshake with first hop
Jul 10 11:15:06.000 [notice] Bootstrapped 90%: Establishing a Tor circuit
Jul 10 11:15:06.000 [notice] Bootstrapped 100%: Done

Config:

PidFile /tmp/whirlpoolTorRegOut6085178419183352287/lib/tor/pid
ReducedConnectionPadding 1
SafeSocks 1
SOCKSPort auto
StrictNodes 0
TestSocks 0
TransPort 0
UseBridges 0
AutomapHostsOnResolve 1
CookieAuthentication 1 
CookieAuthFile /tmp/whirlpoolTorRegOut6085178419183352287/lib/tor/control_auth_cookie
ControlPortWriteToFile /tmp/whirlpoolTorRegOut6085178419183352287/lib/tor/control.txt
ControlPort auto
DNSPort auto
HTTPTunnelPort 0

Output of the latest build (11 hours ago) of whirlpool:

Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.328  INFO 17372 --- [           main] com.samourai.whirlpool.cli.Application   : Running whirlpool-client [--listen, --auto-mix, --debug, --debug-client] on java 1.8.0_212
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.328 DEBUG 17372 --- [           main] com.samourai.whirlpool.cli.Application   : [config/listen] 8899
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.328 DEBUG 17372 --- [           main] com.samourai.whirlpool.cli.Application   : [config/debug] debug=true, debugClient=true
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.343 DEBUG 17372 --- [           main] com.samourai.whirlpool.cli.Application   : [cliConfig/cli/server] MAINNET
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.343 DEBUG 17372 --- [           main] com.samourai.whirlpool.cli.Application   : [cliConfig/cli/scode]
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.343 DEBUG 17372 --- [           main] com.samourai.whirlpool.cli.Application   : [cliConfig/cli/pushtx] aut...uto
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.344 DEBUG 17372 --- [           main] com.samourai.whirlpool.cli.Application   : [cliConfig/cli/tor] true
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.344 DEBUG 17372 --- [           main] com.samourai.whirlpool.cli.Application   : [cliConfig/cli/tor/executable] auto
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.344 DEBUG 17372 --- [           main] com.samourai.whirlpool.cli.Application   : [cliConfig/cli/apiKey] 088...2fb
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.344 DEBUG 17372 --- [           main] com.samourai.whirlpool.cli.Application   : [cliConfig/cli/seedEncrypted] a74...6Gb
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.344 DEBUG 17372 --- [           main] com.samourai.whirlpool.cli.Application   : [cliConfig/cli/persistDelay] 2
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.344 DEBUG 17372 --- [           main] com.samourai.whirlpool.cli.Application   : [cliConfig/cli/refreshPoolsDelay] 30
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.344 DEBUG 17372 --- [           main] com.samourai.whirlpool.cli.Application   : [cliConfig/cli/proxy] null
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.344 DEBUG 17372 --- [           main] com.samourai.whirlpool.cli.Application   : [cliConfig/cli/mix/tx0Delay] 30
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.344 DEBUG 17372 --- [           main] com.samourai.whirlpool.cli.Application   : [cliConfig/cli/mix/autoMix] true
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.345 DEBUG 17372 --- [           main] com.samourai.whirlpool.cli.Application   : [cliConfig/cli/mix/clientDelay] 15
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.345 DEBUG 17372 --- [           main] com.samourai.whirlpool.cli.Application   : [cliConfig/cli/mix/mixsTarget] 0
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.345 DEBUG 17372 --- [           main] com.samourai.whirlpool.cli.Application   : [cliConfig/cli/mix/clients] 1
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.345 DEBUG 17372 --- [           main] com.samourai.whirlpool.cli.Application   : [cliConfig/cli/mix/tx0MaxOutputs] 0
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.345 DEBUG 17372 --- [           main] com.samourai.whirlpool.cli.Application   : [cliConfig/cli/version] 1
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.345 DEBUG 17372 --- [           main] com.samourai.whirlpool.cli.Application   : [cliConfig/cli/autoAggregatePostmix] false
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.345 DEBUG 17372 --- [           main] com.samourai.whirlpool.cli.Application   : [cliConfig/cli/autoTx0PoolId] null
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.346  INFO 17372 --- [           main] com.samourai.whirlpool.cli.Application   : PROXY is DISABLED.
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.348 DEBUG 17372 --- [           main] c.s.w.cli.services.CliTorClientService   : Enabling Tor.
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.379 DEBUG 17372 --- [           main] com.samourai.tor.client.JavaTorClient    : Using tor executable: OS not supported, looking for existing local install
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.385 DEBUG 17372 --- [           main] com.samourai.tor.client.JavaTorClient    : Tor executable found in: /usr/sbin/tor
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.412 DEBUG 17372 --- [           main] com.samourai.tor.client.JavaTorClient    : configuring tor for external executable: /usr/sbin/tor
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.419 DEBUG 17372 --- [           main] c.s.t.c.TorOnionProxyInstance[shared]    : new TorOnionProxyInstance: TorConfig{geoIpFile=/tmp/whirlpoolTorShared8126270953952885512/geoip, geoIpv6File=/tmp/whirlpoolTorShared8126270953952885512/geoip6, torrcFile=/tmp/whirlpoolTorShared8126270953952885512/torrc, torExecutableFile=/usr/sbin/tor, hiddenServiceDir=/tmp/whirlpoolTorShared8126270953952885512/hiddenservice, dataDir=/tmp/whirlpoolTorShared8126270953952885512/lib/tor, configDir=/tmp/whirlpoolTorShared8126270953952885512, installDir=/tmp/whirlpoolTorShared8126270953952885512, homeDir=/tmp/whirlpoolTorShared8126270953952885512, hostnameFile=/tmp/whirlpoolTorShared8126270953952885512/lib/tor/hostname, cookieAuthFile=/tmp/whirlpoolTorShared8126270953952885512/lib/tor/control_auth_cookie, libraryPath=/usr/sbin} ; TorSettings[proxy=null]
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.451  INFO 17372 --- [           main] c.s.t.c.utils.WhirlpoolTorInstaller      : Updating torrc file; torrc =/tmp/whirlpoolTorShared8126270953952885512/torrc
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.452  INFO 17372 --- [           main] c.s.t.c.utils.WhirlpoolTorInstaller      : Setting up tor
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.453  INFO 17372 --- [           main] c.s.t.c.utils.WhirlpoolTorInstaller      : Installing resources: geoip=/tmp/whirlpoolTorShared8126270953952885512/geoip
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.567  INFO 17372 --- [           main] c.s.t.c.utils.WhirlpoolTorInstaller      : Using existing tor executable: /usr/sbin/tor
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.568 DEBUG 17372 --- [           main] com.samourai.tor.client.JavaTorClient    : configuring tor for external executable: /usr/sbin/tor
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.571 DEBUG 17372 --- [           main] c.s.t.c.TorOnionProxyInstance[regOut]    : new TorOnionProxyInstance: TorConfig{geoIpFile=/tmp/whirlpoolTorRegOut1715664120275473021/geoip, geoIpv6File=/tmp/whirlpoolTorRegOut1715664120275473021/geoip6, torrcFile=/tmp/whirlpoolTorRegOut1715664120275473021/torrc, torExecutableFile=/usr/sbin/tor, hiddenServiceDir=/tmp/whirlpoolTorRegOut1715664120275473021/hiddenservice, dataDir=/tmp/whirlpoolTorRegOut1715664120275473021/lib/tor, configDir=/tmp/whirlpoolTorRegOut1715664120275473021, installDir=/tmp/whirlpoolTorRegOut1715664120275473021, homeDir=/tmp/whirlpoolTorRegOut1715664120275473021, hostnameFile=/tmp/whirlpoolTorRegOut1715664120275473021/lib/tor/hostname, cookieAuthFile=/tmp/whirlpoolTorRegOut1715664120275473021/lib/tor/control_auth_cookie, libraryPath=/usr/sbin} ; TorSettings[proxy=null]
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.572  INFO 17372 --- [           main] c.s.t.c.utils.WhirlpoolTorInstaller      : Updating torrc file; torrc =/tmp/whirlpoolTorRegOut1715664120275473021/torrc
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.581  INFO 17372 --- [           main] c.s.t.c.utils.WhirlpoolTorInstaller      : Setting up tor
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.582  INFO 17372 --- [           main] c.s.t.c.utils.WhirlpoolTorInstaller      : Installing resources: geoip=/tmp/whirlpoolTorRegOut1715664120275473021/geoip
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.719  INFO 17372 --- [           main] c.s.t.c.utils.WhirlpoolTorInstaller      : Using existing tor executable: /usr/sbin/tor
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.719 DEBUG 17372 --- [           main] com.samourai.tor.client.JavaTorClient    : Connecting
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.719 DEBUG 17372 --- [           main] c.s.t.c.TorOnionProxyInstance[shared]    : starting Tor
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.721 DEBUG 17372 --- [           main] c.s.t.c.TorOnionProxyInstance[regOut]    : starting Tor
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.894 DEBUG 17372 --- [           main] c.s.w.cli.services.CliPushTxService      : pushtx config changed: auto
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.897 DEBUG 17372 --- [           main] com.samourai.http.client.JavaHttpClient  : +httpClientShared
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.900 DEBUG 17372 --- [           main] c.s.t.c.TorOnionProxyInstance[shared]    : Looking for TorSocks...
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.957  INFO 17372 --- [nio-8899-exec-1] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
Jul 10 11:14:12 raspberrypi launch.sh[17358]: 2019-07-10 11:14:12.991  INFO 17372 --- [nio-8899-exec-1] o.s.web.servlet.DispatcherServlet        : Completed initialization in 34 ms
Jul 10 11:14:20 raspberrypi launch.sh[17358]: 2019-07-10 11:14:20.112 DEBUG 17372 --- [nio-8899-exec-3] c.s.t.c.TorOnionProxyInstance[shared]    : Looking for TorSocks...
Jul 10 11:14:20 raspberrypi launch.sh[17358]: 2019-07-10 11:14:20.114 DEBUG 17372 --- [nio-8899-exec-1] c.s.t.c.TorOnionProxyInstance[shared]    : Looking for TorSocks...
Jul 10 11:14:20 raspberrypi launch.sh[17358]: 2019-07-10 11:14:20.121  INFO 17372 --- [nio-8899-exec-3] c.s.t.c.TorOnionProxyInstance[shared]    : TorSocks started: SOCKS://127.0.0.1:43637
Jul 10 11:14:20 raspberrypi launch.sh[17358]: 2019-07-10 11:14:20.122 DEBUG 17372 --- [nio-8899-exec-3] c.s.t.c.TorOnionProxyInstance[shared]    : Tor connected! SOCKS://127.0.0.1:43637
Jul 10 11:14:20 raspberrypi launch.sh[17358]: 2019-07-10 11:14:20.122  INFO 17372 --- [           main] c.s.t.c.TorOnionProxyInstance[shared]    : TorSocks started: SOCKS://127.0.0.1:43637
Jul 10 11:14:20 raspberrypi launch.sh[17358]: 2019-07-10 11:14:20.122  INFO 17372 --- [nio-8899-exec-1] c.s.t.c.TorOnionProxyInstance[shared]    : TorSocks started: SOCKS://127.0.0.1:43637
Jul 10 11:14:20 raspberrypi launch.sh[17358]: 2019-07-10 11:14:20.123 DEBUG 17372 --- [nio-8899-exec-1] c.s.t.c.TorOnionProxyInstance[shared]    : Tor connected! SOCKS://127.0.0.1:43637
Jul 10 11:14:20 raspberrypi launch.sh[17358]: 2019-07-10 11:14:20.167  INFO 17372 --- [           main] org.eclipse.jetty.util.log               : Logging initialized @22016ms to org.eclipse.jetty.util.log.Slf4jLog
Jul 10 11:14:20 raspberrypi launch.sh[17358]: 2019-07-10 11:14:20.318 DEBUG 17372 --- [           main] c.samourai.whirlpool.cli.utils.CliUtils  : +httpClient: proxy=SOCKS://127.0.0.1:43637
CLI status ready, attempting login...
Unlocking wallet...
Jul 10 11:14:20 raspberrypi launch.sh[17358]: 2019-07-10 11:14:20.474 DEBUG 17372 --- [nio-8899-exec-1] c.s.t.c.TorOnionProxyInstance[regOut]    : Looking for TorSocks...
Jul 10 11:14:20 raspberrypi launch.sh[17358]: 2019-07-10 11:14:20.486  INFO 17372 --- [nio-8899-exec-1] c.s.t.c.TorOnionProxyInstance[regOut]    : TorSocks started: SOCKS://127.0.0.1:42015
Jul 10 11:14:20 raspberrypi launch.sh[17358]: 2019-07-10 11:14:20.486 DEBUG 17372 --- [nio-8899-exec-1] c.s.t.c.TorOnionProxyInstance[regOut]    : Tor connected! SOCKS://127.0.0.1:42015
Jul 10 11:14:21 raspberrypi launch.sh[17358]: 2019-07-10 11:14:21.098 DEBUG 17372 --- [           main] com.samourai.http.client.JavaHttpClient  : clear httpClientShared
Jul 10 11:14:21 raspberrypi launch.sh[17358]: 2019-07-10 11:14:21.099 ERROR 17372 --- [           main] com.samourai.http.client.JavaHttpClient  : getJson failed: https://api.samouraiwallet.com/v2/fees:java.io.IOException: SOCKS4 tunnel failed with code 91
Jul 10 11:14:21 raspberrypi launch.sh[17358]: 2019-07-10 11:14:21.113 ERROR 17372 --- [           main] com.samourai.api.client.SamouraiApi      :
Jul 10 11:14:21 raspberrypi launch.sh[17358]: com.samourai.wallet.api.backend.beans.HttpException: java.util.concurrent.ExecutionException: java.io.IOException: SOCKS4 tunnel failed with code 91
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         at com.samourai.http.client.JavaHttpClient.getJson(JavaHttpClient.java:55) ~[classes!/:na]
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         at com.samourai.wallet.api.backend.BackendApi.fetchFees(BackendApi.java:92) ~[extlibj-0.0.4.jar!/:na]
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         at com.samourai.api.client.SamouraiApi.testConnectivity(SamouraiApi.java:30) ~[whirlpool-client-develop-SNAPSHOT.jar!/:na]
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         at com.samourai.whirlpool.cli.services.CliPushTxService.testConnectivity(CliPushTxService.java:57) [classes!/:na]
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         at com.samourai.whirlpool.cli.Application.runCli(Application.java:172) [classes!/:na]
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         at com.samourai.whirlpool.cli.Application.run(Application.java:109) [classes!/:na]
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:804) [spring-boot-2.1.4.RELEASE.jar!/:2.1.4.RELEASE]
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:794) [spring-boot-2.1.4.RELEASE.jar!/:2.1.4.RELEASE]
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         at org.springframework.boot.SpringApplication.run(SpringApplication.java:324) [spring-boot-2.1.4.RELEASE.jar!/:2.1.4.RELEASE]
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:139) [spring-boot-2.1.4.RELEASE.jar!/:2.1.4.RELEASE]
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         at com.samourai.whirlpool.cli.Application.main(Application.java:86) [classes!/:na]
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_212]
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_212]
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_212]
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_212]
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [whirlpool-devarm.jar:na]
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [whirlpool-devarm.jar:na]
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [whirlpool-devarm.jar:na]
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51) [whirlpool-devarm.jar:na]
Jul 10 11:14:21 raspberrypi launch.sh[17358]: Caused by: java.util.concurrent.ExecutionException: java.io.IOException: SOCKS4 tunnel failed with code 91
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         at org.eclipse.jetty.client.util.FutureResponseListener.getResult(FutureResponseListener.java:118) ~[jetty-client-9.4.19.v20190610.jar!/:9.4.19.v20190610]
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         at org.eclipse.jetty.client.util.FutureResponseListener.get(FutureResponseListener.java:101) ~[jetty-client-9.4.19.v20190610.jar!/:9.4.19.v20190610]
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         at org.eclipse.jetty.client.HttpRequest.send(HttpRequest.java:683) ~[jetty-client-9.4.19.v20190610.jar!/:9.4.19.v20190610]
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         at org.eclipse.jetty.client.HttpClient.GET(HttpClient.java:362) ~[jetty-client-9.4.19.v20190610.jar!/:9.4.19.v20190610]
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         at org.eclipse.jetty.client.HttpClient.GET(HttpClient.java:347) ~[jetty-client-9.4.19.v20190610.jar!/:9.4.19.v20190610]
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         at com.samourai.http.client.JavaHttpClient.getJson(JavaHttpClient.java:45) ~[classes!/:na]
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         ... 18 common frames omitted
Jul 10 11:14:21 raspberrypi launch.sh[17358]: Caused by: java.io.IOException: SOCKS4 tunnel failed with code 91
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         at org.eclipse.jetty.client.Socks4Proxy$Socks4ProxyConnection.onSocks4Response(Socks4Proxy.java:188) ~[jetty-client-9.4.19.v20190610.jar!/:9.4.19.v20190610]
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         at org.eclipse.jetty.client.Socks4Proxy$Socks4ProxyConnection.access$300(Socks4Proxy.java:76) ~[jetty-client-9.4.19.v20190610.jar!/:9.4.19.v20190610]
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         at org.eclipse.jetty.client.Socks4Proxy$Socks4ProxyConnection$Socks4Parser.parse(Socks4Proxy.java:227) ~[jetty-client-9.4.19.v20190610.jar!/:9.4.19.v20190610]
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         at org.eclipse.jetty.client.Socks4Proxy$Socks4ProxyConnection$Socks4Parser.access$200(Socks4Proxy.java:211) ~[jetty-client-9.4.19.v20190610.jar!/:9.4.19.v20190610]
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         at org.eclipse.jetty.client.Socks4Proxy$Socks4ProxyConnection.onFillable(Socks4Proxy.java:173) ~[jetty-client-9.4.19.v20190610.jar!/:9.4.19.v20190610]
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305) ~[jetty-io-9.4.19.v20190610.jar!/:9.4.19.v20190610]
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) ~[jetty-io-9.4.19.v20190610.jar!/:9.4.19.v20190610]
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117) ~[jetty-io-9.4.19.v20190610.jar!/:9.4.19.v20190610]
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:781) ~[jetty-util-9.4.19.v20190610.jar!/:9.4.19.v20190610]
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:917) ~[jetty-util-9.4.19.v20190610.jar!/:9.4.19.v20190610]
Jul 10 11:14:21 raspberrypi launch.sh[17358]:         at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_212]
Jul 10 11:14:21 raspberrypi launch.sh[17358]: 2019-07-10 11:14:21.115 ERROR 17372 --- [           main] c.samourai.whirlpool.cli.utils.CliUtils  : ⣿ ERROR ⣿ Unable to connect to pushTxService
Jul 10 11:14:21 raspberrypi launch.sh[17358]: 2019-07-10 11:14:21.115  INFO 17372 --- [           main] com.samourai.whirlpool.cli.Application   : ------------ whirlpool-client-cli ending ------------
Jul 10 11:14:21 raspberrypi launch.sh[17358]: 2019-07-10 11:14:21.116 DEBUG 17372 --- [           main] com.samourai.whirlpool.cli.Application   : shutdown
Jul 10 11:14:21 raspberrypi launch.sh[17358]: 2019-07-10 11:14:21.117 DEBUG 17372 --- [           main] c.s.t.c.TorOnionProxyInstance[shared]    : clearing Tor
Jul 10 11:14:21 raspberrypi launch.sh[17358]: 2019-07-10 11:14:21.124 DEBUG 17372 --- [           main] c.s.t.c.TorOnionProxyInstance[regOut]    : clearing Tor
Jul 10 11:14:21 raspberrypi launch.sh[17358]: 2019-07-10 11:14:21.125 DEBUG 17372 --- [      Thread-22] c.s.t.c.TorOnionProxyInstance[shared]    : stopping Tor
Jul 10 11:14:21 raspberrypi launch.sh[17358]: 2019-07-10 11:14:21.136 DEBUG 17372 --- [           main] ConfigServletWebServerApplicationContext : Closing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@33ce2c, started on Wed Jul 10 11:14:01 BST 2019
Jul 10 11:14:21 raspberrypi launch.sh[17358]: 2019-07-10 11:14:21.138 DEBUG 17372 --- [      Thread-23] c.s.t.c.TorOnionProxyInstance[regOut]    : stopping Tor

Are you sure there is no other Tor process running which may be conflicting?

I am running Tor as part of Dojo, but it is inside a Docker container with no ports exposed to the host machine (I believe). I have also tried with Dojo (and thus Tor) disabled (container destroyed) with the same issue.

zeroleak commented 5 years ago

Many thanks for detailed reports, I keep investigating.

zeroleak commented 5 years ago

FYI a new update is available (CLI 0.7.1) but it probably wont fix your issue. Still investigating with ketominer.

LaurentMT commented 5 years ago

Hi there,

I've been struggling with Whirpool + Tor on Debian 9 (Stretch) for a few hours but I think that I've finally found a workaround (a.k.a. my dirty hack).

Diagnostic

Workaround

After some searches about similar issues with libssl1.0.0, I've finally tried a hack which seems to work for Whirlpool (at least on Debian Stretch):

# Move to directory storing the libssl.so.1.0.2 lib on the machine
cd /usr/lib/x86_64-linux-gnu

# Create a symlink to libssl.so.1.0.2 named libssl.so.1.0.0
sudo ln -s libssl.so.1.0.2 libssl.so.1.0.0

# Create a symlink to libcrypto.so.1.0.2 named libcrypto.so.1.0.0
sudo ln -s libcrypto.so.1.0.2 libcrypto.so.1.0.0

# Restart Whirpool
ketominer commented 5 years ago

I've been struggling with Whirpool + Tor on Debian 9 (Stretch) for a few hours but I think that I've finally found a workaround (a.k.a. my dirty hack).

They're late on tor as on many things, torproject provides a clean and elegant way to add their own repositories and not use debian's packages (including the deb.torproject.org-keyring package that allows the update of the keys through the repo itself)

https://2019.www.torproject.org/docs/debian.html.en

zeroleak commented 5 years ago

hi, We found a problem affecting Nodl and recent Tor versions. CLI 0.7.2 should now run smoothly on all setups! https://github.com/Samourai-Wallet/whirlpool-runtimes/releases/download/cli-0.7.2/whirlpool-client-cli-0.7.2-run.jar

Technifocal commented 5 years ago

@zeroleak Seems to be working :+1: