-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Control port file not created #128
Comments
Sometimes the Tor process will output errors to its normal inputStream. To get more info, try going OnionProxyManager.spawnTorProcess and changing the following line
to I opened issue #129 to track adding the inputstream to console for debugging. |
Thanks a lot for quick reply. While I am trying to research the solution, I will put logs here...
|
Seems that the issue is related to the torrc file, I will share the initialization code
And here is 'torrc' file from the folder which I pass as the 'installDir' param during the initialization- folder name 'tor_exec':
|
@sisbell can you orient me, please, with place where I should check the behavior? Maybe you have some ideas, as I see you have a lot of experience with tor |
@torwarrior There are two common causes of startup failure. First would be if the torrc file is specifying some port that another app (or instance of tor) is also using. You can check if other tor processes are running on your system which may be using the ports. The second possibility is if the torrc file is not configured properly or has some invalid value. You can test this by taking the torrc file and running it directly with tor from the command line:
If that is bad, it will throw up some errors in the console |
Hello, sorry to ressurect an old thread, but I am having the same issue, basically it seems the torrc file is the one that comes straight from the tor-binary package, and it seems to be missing the directive "ControlPortWriteToFile" so the control.txt file is initialized as an empty file by the TorInstaller, but never actually written by TOR. |
you might be interested in my work to make a more native TorService,
which no longer needs the control port file
https://github.com/eighthave/tor-android
|
OK So I'm having the same issue at this point. I haven't been able to successfully get the tor bin to start up. Ive tried in many different configurations. It also happens even when I try to run the smoke test in this repo. Any ideas? |
i have a same problem
same issue for me |
Bumping into the same thing.... Even adding "ControlPortWriteToFile" to my default torrc file as @SilverGhostBS suggested doesn't seem to do the trick. keep getting an IllegalArgumentException at startup for the FileObserver
|
Been playing around with Tor Browser's Finding that you've gotta call TorConfig will have the file pathway for your Also, in the |
Also finding that the |
These kinds of issues is why I put a bunch of work into eliminating the ControlPort file and the hunt for the connection. The TorService I implemented uses a UNIX domain socket: https://gitlab.com/eighthave/tor-android/-/blob/927a2a25/tor-android-binary/src/main/java/org/torproject/jni/TorService.java#L299 Ultimately, I think TorService should communicate with Tor using stdin/stdout or even direct function call. Here's more on that: |
I use tor for android project. Control port has been creating each time just as empty file. Any thoughts how can I fix it or find the reason?
I`ve also tried on the android instrumentation test in the repository, and result is still the same.
The text was updated successfully, but these errors were encountered: