thaliproject / Tor_Onion_Proxy_Library

Provides a JAR and an AAR for embedding the Tor Onion Proxy into a Java or Android Program
Apache License 2.0
179 stars 98 forks source link

Running two instances of TorOnionProxy = Cookie Auth file not created #122

Closed zeroleak closed 5 years ago

zeroleak commented 5 years ago

Getting the following error when trying to start() successively two OnionProxyManager in two separate JavaOnionProxyContext. It looks like the two instances are conflicting even if they run in distinct install directory. Any idea?

java.io.IOException: Cookie Auth file not created: /tmp/torTwo17546824732921432657/lib/tor/control_auth_cookie, len = 0 at com.msopentech.thali.toronionproxy.OnionProxyManager.start(OnionProxyManager.java:402) ~[universal-0.0.3.jar!/:na] at com.msopentech.thali.toronionproxy.OnionProxyManager.startWithRepeat(OnionProxyManager.java:131) ~[universal-0.0.3.jar!/:na]

zeroleak commented 5 years ago

fixed with specifying two different homeDir.