[GH-ISSUE #67] WebSocketError #59

Open
opened 2026-03-02 23:02:04 +03:00 by kerem · 14 comments
Owner

Originally created by @ryujimorimoto on GitHub (Jul 29, 2022).
Original GitHub issue: https://github.com/agrinman/tunnelto/issues/67

When I launch tunnelto, I run into a WebSocketError.
It worked fine until the day before, but suddenly it stopped working.

🌎 Opening remote tunnel...
> Ready on http://localhost:8082 , https://forestbook.tunne
 ERROR tunnelto > Control error: WebSocketError(Tls(Native(Error { code: -9806, message: "connection closed via error" }))). Retrying in 5 seconds.

Could you give me a way to solve this problem?

Originally created by @ryujimorimoto on GitHub (Jul 29, 2022). Original GitHub issue: https://github.com/agrinman/tunnelto/issues/67 When I launch tunnelto, I run into a WebSocketError. It worked fine until the day before, but suddenly it stopped working. ``` 🌎 Opening remote tunnel... > Ready on http://localhost:8082 , https://forestbook.tunne ERROR tunnelto > Control error: WebSocketError(Tls(Native(Error { code: -9806, message: "connection closed via error" }))). Retrying in 5 seconds. ``` Could you give me a way to solve this problem?
Author
Owner

@mbcrute commented on GitHub (Jul 29, 2022):

I also am experiencing this, since about 3 PM EDT on July 28th...

» tunnelto --port 9909 --verbose
 INFO  tunnelto::config > Control Server URL: wss://wormhole.tunnelto.dev:443/wormhole
 DEBUG tunnelto::update > Using latest version.
 ERROR tunnelto         > Control error: WebSocketError(Protocol(HandshakeIncomplete)). Retrying in 5 seconds.
 INFO  tunnelto         > restarting wormhole
 ERROR tunnelto         > Control error: WebSocketError(Tls(Native(Error { code: -9806, message: "connection closed via error" }))). Retrying in 5 seconds.
 INFO  tunnelto         > restarting wormhole
 ERROR tunnelto         > Control error: WebSocketError(Http(Response { status: 502, version: HTTP/1.1, headers: {"server": "Fly/eefa7631 (2022-07-29)", "via": "1.1 fly.io", "fly-request-id": "01G9526VG7HT6KA4PX00105KVG-iad", "content-length": "0", "date": "Fri, 29 Jul 2022 13:27:10 GMT"}, body: None })). Retrying in 5 seconds.
 INFO  tunnelto         > restarting wormhole
🌍 Opening remote tunnel...

Lather. Rinse. Repeat. I sent an email to support yesterday but have yet to receive a response.

<!-- gh-comment-id:1199286396 --> @mbcrute commented on GitHub (Jul 29, 2022): I also am experiencing this, since about 3 PM EDT on July 28th... ```sh » tunnelto --port 9909 --verbose INFO tunnelto::config > Control Server URL: wss://wormhole.tunnelto.dev:443/wormhole DEBUG tunnelto::update > Using latest version. ERROR tunnelto > Control error: WebSocketError(Protocol(HandshakeIncomplete)). Retrying in 5 seconds. INFO tunnelto > restarting wormhole ERROR tunnelto > Control error: WebSocketError(Tls(Native(Error { code: -9806, message: "connection closed via error" }))). Retrying in 5 seconds. INFO tunnelto > restarting wormhole ERROR tunnelto > Control error: WebSocketError(Http(Response { status: 502, version: HTTP/1.1, headers: {"server": "Fly/eefa7631 (2022-07-29)", "via": "1.1 fly.io", "fly-request-id": "01G9526VG7HT6KA4PX00105KVG-iad", "content-length": "0", "date": "Fri, 29 Jul 2022 13:27:10 GMT"}, body: None })). Retrying in 5 seconds. INFO tunnelto > restarting wormhole 🌍 Opening remote tunnel... ``` Lather. Rinse. Repeat. I sent an email to support yesterday but have yet to receive a response.
Author
Owner

@malikid commented on GitHub (Jul 29, 2022):

+1

it fails quite frequently from the beginning of this week. Getting harder and harder to get it to work. keep getting the errors and it retries again and again...

Local Inspect Dashboard: http://localhost:61229
 INFO  tunnelto         > got ping
 WARN  tunnelto         > websocket read error: Protocol("Connection reset without closing handshake")
 INFO  tunnelto         > restarting wormhole
 WARN  tunnelto         > control flow didn't send anything!
 INFO  tunnelto         > connecting to wormhole as client tdO-EWB_a4kPuMcYzCC9Yhu8T5K_nuJRh1JJypcTC-4
 INFO  tunnelto         > Server accepted our connection.
=> Forwarding to localhost:3000

 INFO  tunnelto         > got ping
 WARN  tunnelto         > websocket read error: Protocol("Connection reset without closing handshake")
 INFO  tunnelto         > restarting wormhole
 WARN  tunnelto         > control flow didn't send anything!
 INFO  tunnelto         > connecting to wormhole as client zEuHDxnZi8sWQxFt5BsNZgkNtsesvc07JsoLFKJH8-8
 INFO  tunnelto         > Server accepted our connection.
=> Forwarding to localhost:3000

 INFO  tunnelto         > got ping
<!-- gh-comment-id:1199551200 --> @malikid commented on GitHub (Jul 29, 2022): +1 it fails quite frequently from the beginning of this week. Getting harder and harder to get it to work. keep getting the errors and it retries again and again... ``` Local Inspect Dashboard: http://localhost:61229 INFO tunnelto > got ping WARN tunnelto > websocket read error: Protocol("Connection reset without closing handshake") INFO tunnelto > restarting wormhole WARN tunnelto > control flow didn't send anything! INFO tunnelto > connecting to wormhole as client tdO-EWB_a4kPuMcYzCC9Yhu8T5K_nuJRh1JJypcTC-4 INFO tunnelto > Server accepted our connection. => Forwarding to localhost:3000 INFO tunnelto > got ping WARN tunnelto > websocket read error: Protocol("Connection reset without closing handshake") INFO tunnelto > restarting wormhole WARN tunnelto > control flow didn't send anything! INFO tunnelto > connecting to wormhole as client zEuHDxnZi8sWQxFt5BsNZgkNtsesvc07JsoLFKJH8-8 INFO tunnelto > Server accepted our connection. => Forwarding to localhost:3000 INFO tunnelto > got ping ```
Author
Owner

@drazen-popov-lepaya commented on GitHub (Jul 29, 2022):

+1
[TUNNEL] ERROR tunnelto > Control error: WebSocketError(Tls(Native(Ssl(Error { code: ErrorCode(5), cause: Some(Io(Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" })) }, X509VerifyResult { code: 0, error: "ok" })))). Retrying in 5 seconds.
[TUNNEL] ERROR tunnelto > Control error: WebSocketError(Tls(Native(Ssl(Error { code: ErrorCode(5), cause: Some(Io(Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" })) }, X509VerifyResult { code: 0, error: "ok" })))). Retrying in 5 seconds.
[TUNNEL] ERROR tunnelto > Control error: WebSocketError(Tls(Native(Ssl(Error { code: ErrorCode(5), cause: Some(Io(Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" })) }, X509VerifyResult { code: 0, error: "ok" })))). Retrying in 5 seconds.
[TUNNEL] ERROR tunnelto > Control error: WebSocketError(Tls(Native(Ssl(Error { code: ErrorCode(5), cause: Some(Io(Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" })) }, X509VerifyResult { code: 0, error: "ok" })))). Retrying in 5 seconds.
[TUNNEL] ERROR tunnelto > Control error: WebSocketError(Tls(Native(Ssl(Error { code: ErrorCode(5), cause: Some(Io(Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" })) }, X509VerifyResult { code: 0, error: "ok" })))). Retrying in 5 seconds.

<!-- gh-comment-id:1199551895 --> @drazen-popov-lepaya commented on GitHub (Jul 29, 2022): +1 [TUNNEL] ERROR tunnelto > Control error: WebSocketError(Tls(Native(Ssl(Error { code: ErrorCode(5), cause: Some(Io(Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" })) }, X509VerifyResult { code: 0, error: "ok" })))). Retrying in 5 seconds. [TUNNEL] ERROR tunnelto > Control error: WebSocketError(Tls(Native(Ssl(Error { code: ErrorCode(5), cause: Some(Io(Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" })) }, X509VerifyResult { code: 0, error: "ok" })))). Retrying in 5 seconds. [TUNNEL] ERROR tunnelto > Control error: WebSocketError(Tls(Native(Ssl(Error { code: ErrorCode(5), cause: Some(Io(Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" })) }, X509VerifyResult { code: 0, error: "ok" })))). Retrying in 5 seconds. [TUNNEL] ERROR tunnelto > Control error: WebSocketError(Tls(Native(Ssl(Error { code: ErrorCode(5), cause: Some(Io(Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" })) }, X509VerifyResult { code: 0, error: "ok" })))). Retrying in 5 seconds. [TUNNEL] ERROR tunnelto > Control error: WebSocketError(Tls(Native(Ssl(Error { code: ErrorCode(5), cause: Some(Io(Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" })) }, X509VerifyResult { code: 0, error: "ok" })))). Retrying in 5 seconds.
Author
Owner

@ryujimorimoto commented on GitHub (Jul 30, 2022):

The error is now resolved when you access it after a while.
The cause of this error is unknown.

<!-- gh-comment-id:1200072890 --> @ryujimorimoto commented on GitHub (Jul 30, 2022): The error is now resolved when you access it after a while. The cause of this error is unknown.
Author
Owner

@drazen-popov-lepaya commented on GitHub (Aug 1, 2022):

worked for a short period of time, but it is still broken

ERROR tunnelto > Control error: WebSocketError(Protocol(ResetWithoutClosingHandshake)). Retrying in 5 seconds.
ERROR tunnelto > Control error: WebSocketError(Protocol(ResetWithoutClosingHandshake)). Retrying in 5 seconds.
ERROR tunnelto > Control error: WebSocketError(Http(Response { status: 502, version: HTTP/1.1, headers: {"server": "Fly/b2c77cc8 (2022-07-31)", "via": "1.1 fly.io", "fly-request-id": "01G9CNVDE90TZF128RRNYG4M74-ams", "content-length": "0", "date": "Mon, 01 Aug 2022 12:24:49 GMT"}, body: None })). Retrying in 5 seconds.
ERROR tunnelto > Control error: WebSocketError(Http(Response { status: 502, version: HTTP/1.1, headers: {"server": "Fly/b2c77cc8 (2022-07-31)", "via": "1.1 fly.io", "fly-request-id": "01G9CNVKFS5CDKR7WENPQ5MCAH-ams", "content-length": "0", "date": "Mon, 01 Aug 2022 12:25:09 GMT"}, body: None })). Retrying in 5 seconds.
ERROR tunnelto > Control error: WebSocketError(Http(Response { status: 502, version: HTTP/1.1, headers: {"server": "Fly/b2c77cc8 (2022-07-31)", "via": "1.1 fly.io", "fly-request-id": "01G9CNW6P8707QSXEJFBKHAV8R-ams", "content-length": "0", "date": "Mon, 01 Aug 2022 12:25:25 GMT"}, body: None })). Retrying in 5 seconds.
ERROR tunnelto > Control error: WebSocketError(Protocol(ResetWithoutClosingHandshake)). Retrying in 5 seconds.

<!-- gh-comment-id:1201139068 --> @drazen-popov-lepaya commented on GitHub (Aug 1, 2022): worked for a short period of time, but it is still broken ERROR tunnelto > Control error: WebSocketError(Protocol(ResetWithoutClosingHandshake)). Retrying in 5 seconds. ERROR tunnelto > Control error: WebSocketError(Protocol(ResetWithoutClosingHandshake)). Retrying in 5 seconds. ERROR tunnelto > Control error: WebSocketError(Http(Response { status: 502, version: HTTP/1.1, headers: {"server": "Fly/b2c77cc8 (2022-07-31)", "via": "1.1 fly.io", "fly-request-id": "01G9CNVDE90TZF128RRNYG4M74-ams", "content-length": "0", "date": "Mon, 01 Aug 2022 12:24:49 GMT"}, body: None })). Retrying in 5 seconds. ERROR tunnelto > Control error: WebSocketError(Http(Response { status: 502, version: HTTP/1.1, headers: {"server": "Fly/b2c77cc8 (2022-07-31)", "via": "1.1 fly.io", "fly-request-id": "01G9CNVKFS5CDKR7WENPQ5MCAH-ams", "content-length": "0", "date": "Mon, 01 Aug 2022 12:25:09 GMT"}, body: None })). Retrying in 5 seconds. ERROR tunnelto > Control error: WebSocketError(Http(Response { status: 502, version: HTTP/1.1, headers: {"server": "Fly/b2c77cc8 (2022-07-31)", "via": "1.1 fly.io", "fly-request-id": "01G9CNW6P8707QSXEJFBKHAV8R-ams", "content-length": "0", "date": "Mon, 01 Aug 2022 12:25:25 GMT"}, body: None })). Retrying in 5 seconds. ERROR tunnelto > Control error: WebSocketError(Protocol(ResetWithoutClosingHandshake)). Retrying in 5 seconds.
Author
Owner

@mbcrute commented on GitHub (Aug 1, 2022):

Still not working for me either. I've not gotten a response from the Twitter account or the email I sent to support so I'm canceling my account and self-hosting.

<!-- gh-comment-id:1201704840 --> @mbcrute commented on GitHub (Aug 1, 2022): Still not working for me either. I've not gotten a response from the Twitter account or the email I sent to support so I'm canceling my account and self-hosting.
Author
Owner

@malikid commented on GitHub (Aug 4, 2022):

Still getting errors...

<!-- gh-comment-id:1204967044 --> @malikid commented on GitHub (Aug 4, 2022): Still getting errors...
Author
Owner

@kylebuildsstuff commented on GitHub (Aug 28, 2022):

Just started getting this error this morning. Also had some odd loading issues prior where it'd take minutes to load pages that took seconds just days ago.

<!-- gh-comment-id:1229503589 --> @kylebuildsstuff commented on GitHub (Aug 28, 2022): Just started getting this error this morning. Also had some odd loading issues prior where it'd take minutes to load pages that took seconds just days ago.
Author
Owner

@onlysumitg commented on GitHub (Sep 17, 2022):

Same issue for me.
anyone found a solution for this issue?

ERROR tunnelto > Control error: WebSocketError(Io(Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" })). Retrying in 5 seconds.
ERROR tunnelto > Control error: WebSocketError(Io(Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" })). Retrying in 5 seconds.

<!-- gh-comment-id:1250106912 --> @onlysumitg commented on GitHub (Sep 17, 2022): Same issue for me. anyone found a solution for this issue? ERROR tunnelto > Control error: WebSocketError(Io(Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" })). Retrying in 5 seconds. ERROR tunnelto > Control error: WebSocketError(Io(Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" })). Retrying in 5 seconds.
Author
Owner

@j0no commented on GitHub (Sep 18, 2022):

I'm getting this issue as well.

ERROR tunnelto > Control error: WebSocketError(Io(Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" })). Retrying in 5 seconds.
<!-- gh-comment-id:1250197682 --> @j0no commented on GitHub (Sep 18, 2022): I'm getting this issue as well. ``` ERROR tunnelto > Control error: WebSocketError(Io(Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" })). Retrying in 5 seconds. ```
Author
Owner

@iGhoneim commented on GitHub (Sep 18, 2022):

I'm getting "An existing connection was forcibly closed by the remote host."

ERROR tunnelto > Control error: WebSocketError(Tls(Native(Os { code: 10054, kind: ConnectionReset, message: "An existing connection was forcibly closed by the remote host." }))). Retrying in 5 seconds.

<!-- gh-comment-id:1250380727 --> @iGhoneim commented on GitHub (Sep 18, 2022): I'm getting "An existing connection was forcibly closed by the remote host." ` ERROR tunnelto > Control error: WebSocketError(Tls(Native(Os { code: 10054, kind: ConnectionReset, message: "An existing connection was forcibly closed by the remote host." }))). Retrying in 5 seconds.`
Author
Owner

@Ryusuke-Kawasaki commented on GitHub (Sep 20, 2022):

Hi.
I'm getting same issue. After I ran tunnelto command, I got the following error message.

 ERROR tunnelto > Control error: WebSocketError(Tls(Native(Error { code: -9806, message: "connection closed via error" }))). Retrying in 5 seconds.
<!-- gh-comment-id:1251970140 --> @Ryusuke-Kawasaki commented on GitHub (Sep 20, 2022): Hi. I'm getting same issue. After I ran tunnelto command, I got the following error message. ``` ERROR tunnelto > Control error: WebSocketError(Tls(Native(Error { code: -9806, message: "connection closed via error" }))). Retrying in 5 seconds. ```
Author
Owner

@Ryusuke-Kawasaki commented on GitHub (Sep 21, 2022):

I ran the tunneldev command again today.
As a result, I confirmed that the following problems reported yesterday did not occur and the tunneldev command was executed successfully.

ERROR tunnelto > Control error: WebSocketError(Tls(Native(Error { code: -9806, message: "connection closed via error" }))). Retrying in 5 seconds.
<!-- gh-comment-id:1253073706 --> @Ryusuke-Kawasaki commented on GitHub (Sep 21, 2022): I ran the tunneldev command again today. As a result, I confirmed that the following problems reported yesterday did not occur and the tunneldev command was executed successfully. ``` ERROR tunnelto > Control error: WebSocketError(Tls(Native(Error { code: -9806, message: "connection closed via error" }))). Retrying in 5 seconds. ```
Author
Owner

@j0no commented on GitHub (Sep 27, 2022):

I ran a tunnel and I no longer get the error.

<!-- gh-comment-id:1258921661 --> @j0no commented on GitHub (Sep 27, 2022): I ran a tunnel and I no longer get the error.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tunnelto#59
No description provided.