abhishekkrthakur / colabcode

Run VSCode (codeserver) on Google Colab or Kaggle Notebooks
MIT License
2.06k stars 275 forks source link

Colab disconnecting in an hour #82

Closed ashwani-bhat closed 3 years ago

ashwani-bhat commented 3 years ago

I am using ColabCode from the last 3, 4 months and I have never encountered the problem with colab disconnecting while I was writing code. Recently, Colab is getting disconnecting within an hour after I run colabcode even when I am writing the code. Can anyone help me with this. I am using Colab Pro.

abhishekkrthakur commented 3 years ago

Please use api_key from ngrok to avoid this issue. You can get the API key for free when you create an account on ngrok.

ashwani-bhat commented 3 years ago

Hi @abhi1thakur , do you mean the authtoken. If yes, I am using the authtoken but it is still getting disconnected in an hour. If it's something else, kindly guide me.

abhishekkrthakur commented 3 years ago

@ashwani-bhat can you try a version lower than the latest and let me know if issue happens?

ashwani-bhat commented 3 years ago

@abhishekkrthakur I tried with the version 0.2.0 but the problem still exists. I have attached the ss below, as you can see, that colab is getting disconnected in exactly 1 hour after use. Thanks for the help. image

misalraj commented 3 years ago

Hi @ashwani-bhat there is an issue with colab pro timeout. I don't think there is an issue with colabcode pkg. Pls check with other google non-subscriber account. Let us know if issue still persist.

https://colab.research.google.com/signup#

Screenshot_20210616-202941__01.jpg

ashwani-bhat commented 3 years ago

hi @misalraj I have actually encountered this problem only recently (AFAIR, it starting happening in June). Before that everything was working quite smooth, I was infact able to connect up to 24 hours. If this is a Google thing, is there any workaround as to how can I keep the connection persistent even after 1 hour (since only colabcode code keeps in running in colab). If yes, kindly help.

misalraj commented 3 years ago

There is a hack to keep colab running. I dont know If you ever tried on not...

LInk --> https://www.youtube.com/watch?v=RpQaAbMmqkA&ab_channel=HACKANONS Do check this and try with this trick.

ashwani-bhat commented 3 years ago

I will look into this. Thanks for the help