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

Not able to run tor-router with instances #12

Open
prashant1507 opened this issue Nov 16, 2019 · 3 comments
Open

Not able to run tor-router with instances #12

prashant1507 opened this issue Nov 16, 2019 · 3 comments

Comments

@prashant1507
Copy link

prashant1507 commented Nov 16, 2019

when I am trying to run tor-router -j 3 -s 127.0.0.1:16379 with node v10.17.0 and npm 6.13.0

`info: [control]: control server listening on tcp://:9077
info: [tor]: starting 3 tor instance(s)...
info: [socks]: listening on socks5://127.0.0.1:16379
events.js:174
throw er; // Unhandled 'error' event
^

Error: spawn /home/shibu/Downloads/node_modules/granax/bin/tor-browser_en-US/Browser/TorBrowser/Tor/tor ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
at onErrorNT (internal/child_process.js:415:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
Emitted 'error' event at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
at onErrorNT (internal/child_process.js:415:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
`

Also, granax dependencies are changes to @deadcanaries/granax. Can you please help me fixing the issue.

@jogli5er
Copy link
Contributor

jogli5er commented Nov 21, 2019

On which platform do you run it? Documentation by granax states that they only download the Tor Browser bundle on Mac and Windows, but on Linux one has to specify the path to the binary.

When Granax is installed on Mac OSX or Windows platforms, it will automatically download a copy of the Tor Browser Bundle locally and use it - no configuration required! On GNU+Linux systems, Granax expects the tor package to be installed.

(Compare https://deadcanaries.gitlab.io/granax/tutorial-getting-started.html)

@znetstar
Copy link
Owner

Situations like the one you've encountered are exactly why I recommend using Docker lol. As specified in the documentation using Docker you can run docker run --rm -it -p 127.0.0.1:1637:9050 znetstar/tor-router -j 3 -s and it should work without issue, since the Docker image bundles the correct version of Tor.

That being said, I'm assuming you're on Linux because of the reference to /home/shibu. Download tor through your package manager, apt install tor on Debian/Ubuntu or yum install tor on Fedora/RedHat/Suse. You can then run tor-router -t /usr/bin/tor -j 3 -s 127.0.0.1:16379

@talha0324
Copy link

talha0324 commented Nov 25, 2019

This is according to global installation
go to this path
C:\Users\<user>\AppData\Roaming\npm\node_modules\tor-router\node_modules\@deadcanaries\granax\index.js

and replace the line

  switch (platform) {
    case 'win32':
->      torpath = path.join(BIN_PATH, 'Browser', 'TorBrowser', 'Tor', 'tor.exe');
      break;

with this:

  switch (platform) {
    case 'win32':
      torpath = path.join(BIN_PATH, /*'Browser', 'TorBrowser', A FIX HERE */'Tor', 'tor.exe');
      break;

then there should be no error.

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

4 participants