Skip to content
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

Bad HashedControlPassword: wrong length or bad encoding error #15

Open
00h-i-r-a00 opened this issue Sep 4, 2016 · 0 comments
Open

Comments

@00h-i-r-a00
Copy link

00h-i-r-a00 commented Sep 4, 2016

Hello,

I have an application that uses node-ths to instantiate an instance of Tor. It works alright sometimes, but periodically it goes into a state of silently failing, that is it is completely unable to instantiate any instance of Tor. For quite a long amount of time. Sometimes several days. To debug it, I printed this line

console.log('Error with the tor process : ' + data.toString('utf8'));

inside this.start inside index.js

and its giving me the error:

Error with the tor process : Sep 04 16:21:17.032 [warn] Failed to parse/validate config: Bad HashedControlPassword: wrong length or bad encoding

Error with the tor process : Sep 04 16:21:17.032 [err] Reading config failed--see warnings above.

So, I tried to check the hash thats being returned by passHash.js, and what I found was that it was returning "undefined". As a possible solution, I have tried replacing the hash inside saveTorrc to something static (found inside my tor's torrc file) but that isn't working either. Do you think you could help?

Also, another question that I have is that when you instantiate tor, does it take into account the torrc file that I have inside my local etc/tor folder? When I try changing the exit nodes inside the etc/tor version (and not the one found inside ths-data within node-ths), it does work. So, I have a certain confusion about which particular torrc file is being used for configuration?

Thanks. Would really appreciate help regarding this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant