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

It doesn't work, runtime disconnects #98

Closed ghost closed 2 years ago

ghost commented 2 years ago

I tried on many occasions, and I always end up by being disconnected within minutes of the setup after running:

!pip install git+https://github.com/demotomohiro/remocolab.git
import remocolab
remocolab.setupVNC()

or

remocolab.setupVNC(tunnel = 'argotunnel', public_key = '...')

So far I have tried using multiple accounts, and all of them are gpu-restricted ever since.

demotomohiro commented 2 years ago

Please read this: https://github.com/demotomohiro/remocolab/wiki/Frequently-Asked-Questions#google-colab-disconnected-before-or-right-after-remocolabsetupvnc-done

Do you still get disconnected within minutes even if you run a simple python3 code that do not use remocolab like this?

import time

begin = time.time()
for i in range(30 * 6):
  time.sleep(10)
  print(time.time() - begin)
ghost commented 2 years ago

I was able to run python code and remocolab code, and it works fine without any particular changes I made therefore I'll close the issue. Does this imply that I'll always have to run this 30 min code beforehand each time I connect to colab?

demotomohiro commented 2 years ago

No, you don't need to do it. Sometimes colab disconnects after running a cell about 5~10 minutes regardless of what the code do. I don't know how to fix it. Sometimes, it fixed after a few days. Maybe, colab trys to allocate more machines for paid user by disconnecting a machine for free user.