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

err: SocksClientError: Proxy connection timed out #69

Closed
Trard opened this issue Nov 4, 2021 · 5 comments
Closed

err: SocksClientError: Proxy connection timed out #69

Trard opened this issue Nov 4, 2021 · 5 comments
Labels

Comments

@Trard
Copy link

Trard commented Nov 4, 2021

I get an error when I use the docker

image

see https://github.com/Trard/dockertor

@Trard Trard changed the title err: SocksClientError: connect ECONNREFUSED 127.0.0.1:9050 while docker err: SocksClientError: connect ECONNREFUSED 127.0.0.1:9050 when docker Nov 4, 2021
@Trard Trard changed the title err: SocksClientError: connect ECONNREFUSED 127.0.0.1:9050 when docker err: SocksClientError: connect ECONNREFUSED 127.0.0.1:9050 when I use the docker Nov 4, 2021
@Trard
Copy link
Author

Trard commented Nov 5, 2021

Maybe I found what caused this error

docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "/usr/bin/tor --RunAsDaemon 1": stat /usr/bin/tor --RunAsDaemon 1: no such file or directory: unknown.
ERRO[0000] error waiting for container: context canceled

@Trard
Copy link
Author

Trard commented Nov 5, 2021

Maybe I found what caused this error

docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "/usr/bin/tor --RunAsDaemon 1": stat /usr/bin/tor --RunAsDaemon 1: no such file or directory: unknown. ERRO[0000] error waiting for container: context canceled

It has been fixed by Trard/dockertor@c793534
(see: https://stackoverflow.com/questions/60875207/docker-oci-runtime-create-failed-container-linux-go349-starting-container-pro)

But here is a new error:

err: SocksClientError: Proxy connection timed out
      at SocksClient._closeSocket (/test/node_modules/socks/build/client/socksclient.js:368:32)
      at SocksClient.onEstablishedTimeout (/test/node_modules/socks/build/client/socksclient.js:257:18)
      at Timeout._onTimeout (/test/node_modules/socks/build/client/socksclient.js:206:45)
      at listOnTimeout (node:internal/timers:557:17)
      at processTimers (node:internal/timers:500:7) {
    options: { proxy: [Object], destination: [Object], command: 'connect' }
  }

@Trard Trard changed the title err: SocksClientError: connect ECONNREFUSED 127.0.0.1:9050 when I use the docker err: SocksClientError: Proxy connection timed out Nov 5, 2021
@Trard
Copy link
Author

Trard commented Nov 5, 2021

Maybe I found what caused this error
docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "/usr/bin/tor --RunAsDaemon 1": stat /usr/bin/tor --RunAsDaemon 1: no such file or directory: unknown. ERRO[0000] error waiting for container: context canceled

It has been fixed by Trard/dockertor@c793534 (see: https://stackoverflow.com/questions/60875207/docker-oci-runtime-create-failed-container-linux-go349-starting-container-pro)

But here is a new error:

err: SocksClientError: Proxy connection timed out
      at SocksClient._closeSocket (/test/node_modules/socks/build/client/socksclient.js:368:32)
      at SocksClient.onEstablishedTimeout (/test/node_modules/socks/build/client/socksclient.js:257:18)
      at Timeout._onTimeout (/test/node_modules/socks/build/client/socksclient.js:206:45)
      at listOnTimeout (node:internal/timers:557:17)
      at processTimers (node:internal/timers:500:7) {
    options: { proxy: [Object], destination: [Object], command: 'connect' }
  }

This error was only on docker run [image id]. I used docker run -p 9050:9050 [image id] and all worked.

@Trard
Copy link
Author

Trard commented Nov 5, 2021

nice

@Trard Trard closed this as completed Nov 5, 2021
@talmobi
Copy link
Owner

talmobi commented Nov 8, 2021

@Trard thank you very much for this writeup~

@talmobi talmobi added the <3 label Nov 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants