-
Notifications
You must be signed in to change notification settings - Fork 57
Connection refused #2
Comments
Is this following the instructions at https://research.google.com/colaboratory/local-runtimes.html? Which browser? Any additional error message from the browser dev tools console? |
My apologies, I started submitting an issue, but got distracted. I did not realise the (empty) issue was posted. |
Did you remove/disable ad blocker? |
I have ad blocker running on chrome, but I have disabled it for colab.research.google.com. |
Changing to
does not help. |
I have the same issue. I am using a remote server by SSH tunneling the localhost port ( similar situation to using Google Cloud as described at the bottom of your guide). |
What SSH client are you using? Since you mention that the connection works locally, just not when SSH'd to another machine, it sounds like the issue may be at that layer. Can you view and execute Jupyter notebooks over the SSH connection, following the URL which is displayed when launching Jupyter? |
The problem is the firewall actually. I tested by opening a WS between my notebook (simulating a Colab request) and the remote server and I got the same problem. |
tl;drOn SERVER, use
On LAPTOP use
Connect to colab from LAPTOP and use Local runtime on port Long versionI used to have the exact same error: On SERVER
(I disabled all security to be sure it was not a problem). On LAPTOP
(I disabled the usual ssh configuration with On LAPTOP I can connect to
However, setting the port-forward to the same port (
Which led me to add the So it seems related to a port error. I have now idea why. Also, I would welcome tips on how to allow connection without removing all security (no token, no password, etc.). |
I think the instructions from @jiho should be on the official instructions for local runtimes: This is just a direct connection to a local server, no ssh tunnel. I had to use empty values for I second the need to have colaboratory be able to connect to servers that use authentication. Not sure if this is the right place to request a feature. |
Thanks @jiho, your solution saved my day. I have similar issues as @b-trav trying to connect colab script to a gcp vm. It works well with colab to local server and local to gcp remote server following the instruction in this link. However, without @jiho's fix, I got the following errors connecting colab to gcp vm server:
It would be great to have colab connecting to gcp vm directly without local port forwarding (having a really slow connection). Well, I am happy for now :) |
for cases of connecting to ssh-tunneled notebook server instances, it seems like there's an implicit requirement here that the local tunnel port is the exact same as the tunnel-dest hosts bind port? is this because the request handler has to make a tcp connection to it's own port on the server side? here's a full trace for 0.0.6 in a case where the local bind port is 8888 but the remote bind port is different:
|
friendly ping @colaboratory-team |
I'm not sure if this is what you meant, but your instructions worked for me even when I removed
|
I had the same problem having colab connect to my EC2 instance and the following snippet resolved it: |
My issue may be similar to @debsahu on #1.
I followed instructions as described here.
I am attempting to get colaboratory working from a browser on my laptop using a different computer as the local runtime - let's call this computer "local_server", which happens to have an ip address of 10.1.1.3 on my local LAN. The browser that I am using is the chrome (Version 67.0.3396.99 (Official Build) (64-bit))
I now want to work on colaboratory on my laptop using local_server as the local runtime
jupyter_notebook_config.py
file on the local_server machine I setNow I can go to
http://localhost:8889/tree
on my laptop and jupyter works but colaboratory does not. I get the following error from jupyter:What am I doing wrong? Any suggestions would be appreciated. Thanks.
The text was updated successfully, but these errors were encountered: