-
Notifications
You must be signed in to change notification settings - Fork 59
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
Workstation SSH connection failed or timed out (Unexpected HTTP response status code 407) #3219
Comments
Thank you for the detailed report! Looks like this might be related to the proxy settings, the http requests in the log are successful. To help debugging:
|
@ruomengz, thanks for your answer! When I run:
then I see When I run |
Hey @ovavadim , sorry for the late reply. Looks like you are able to create the tcp tunnel from gcloud, while we are trying to reproduce the proxy issue, can you try this workaround?
Another question, do you also configure your proxy on Windows system? |
Hello, @ruomengz Well, firstly I do this: Then I see there "Listening on port [22222]". Then I go to JetBrains Gateway to SSH connection, I do this: Then I click "Check Connection and Continue" and I see "Checking connection..." label, which never disappears. So, the same problem as I showed in previous message in SSH. About configuring the proxy on Windows: As you can see, it's configured in control panel by the employer. So, what should I do? Have a nice day! |
Thanks @ovavadim! Sorry for the-back-and-forth, it is hard for us to reproduce the issue with proxy setup. |
Hello, @ruomengz! Well, I've tested before proxy configuring:
Then this:
Then I configured proxy using Then I tries the command Then I've tried again ssh:
So, the same SSH problem, as it was before proxy configuring. Anyway, what does this Have a nice day and thank you! |
Thank you for testing, looks like gcloud has the same behavior as the IDE does for creating the TCP tunnel. Is it possible that your proxy server does not support websockets properly? Are you able to connect without a proxy? |
@ruomengz Could you, maybe, specify, what exactly |
I found a similar issue (updated link). Would you be able to try some workarounds in that issue? |
@ruomengz |
So sorry about that, here is the updated link. |
@ruomengz Now I did the workarounds, see the data below.
Well, all the links say the same: the application can't resolve the IP address of the host. Then I used nslookup command and that's what I see:
But maybe it tries to resolve another DNS name, which is not in the list of these four? |
Thank you for the debugging logs, @ovavadim ! The team is aware of the issue and still investigating. |
@ruomengz, hello! I have an update here: Hope, this can help to understand the problem. Anyway, deleting the last slash signs in JetBrains Gateway API overriding (Settings -> Tools -> Cloud workstations - > Advanced) didn't help. |
Hello, @ruomengz! I have an interesting update. It's related to the proxy. Google endpoint (....cloudworkstations.dev), which is in front of workstations, can only be reached via the proxy (there are some reasons for this). When I use
then But when I use the command: So, what's the difference between
and When I set proxy settings in JetBrains Gateway, this still doesn't help anyhow. Even more news: But the command So, why this
doesn't work while this |
Hello!
I use "Cloud Workstations" plugin for JetBrains Gateway (Windows 10).
My machine uses Proxy server. JetBrains Gateway is configured for this proxy, connection checking works successfully. Gateway also sees my Google workstation project and the workstation. But when I try to launch through Gateway, it says "Workstation SSH connection failed or timed out".
In the logs of Gateway it looks like:
Caused by: jdk.internal.net.http.websocket.CheckFailedException: Unexpected HTTP response status code 407
at java.net.http/jdk.internal.net.http.websocket.OpeningHandshake.checkFailed(OpeningHandshake.java:343)
at java.net.http/jdk.internal.net.http.websocket.OpeningHandshake.handleResponse(OpeningHandshake.java:252)
at java.net.http/jdk.internal.net.http.websocket.OpeningHandshake.resultFrom(OpeningHandshake.java:222)
(see the log file attached)
A 407 status code means "Proxy Authentication Required". But JetBrains Gateway works well with my proxy. I guess, it's a problem of "Cloud Workstation" plugin.
How can I separately configure it for a correct work with my proxy, if it really doesn't inherit proxy settings from JetBrains Gateway?
Have a nice day!
Version Information
JetBrains Gateway version: 2024.1.2
Cloud Workstations plugin version: 24.3.1-api-version-231
idea.log
The text was updated successfully, but these errors were encountered: