demotomohiro / remocolab

remocolab is a Python module to allow remote access to Google Colaboratory using SSH or TurboVNC.
MIT License
316 stars 229 forks source link

RuntimeError: Failed to get user hostname from cloudflared #92

Open giri256 opened 3 years ago

giri256 commented 3 years ago

There might be a hint to solve your problem in FAQ

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Any code that is executed before or after remocolab's setup code.

Expected behavior A clear and concise description of what you expected to happen.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

demotomohiro commented 3 years ago

Please write how to reproduce this error. I don't know how to fix an error without knowing how to reproduce it. Also please tell me the content of /content/cloudflared.log. You can get the content of it by executing a cell with !cat /content/cloudflared.log command.

Jheks commented 3 years ago
demotomohiro commented 3 years ago

@Jheks That log looks strange and I didn't got such error. remocolab always download latest cloudflared and its download URL match to latest version.

I got different error and I have fixed cloudflared related code and remocolab works with it for me. Please test latest remocolab and let me know if it work.

Jheks commented 3 years ago

no RunTimeError now but failed to connect to the ssh server:

ssh -o UserKnownHostsFile=/dev/null -o VisualHostKey=yes -oProxyCommand="cloudflared access ssh --hostname %h" colab@treaty-sing-continuous-religion.trycloudflare.com /bin/sh: 1: exec: cloudflared: not found kex_exchange_identification: write: Broken pipe

don't know how to fix this

Jheks commented 3 years ago

mine solved

it's just disconnected from colab server