question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TIMEOUT when mounting Google Drive

See original GitHub issue
  • Describe the current behavior:

I can’t mount my drive using the usual drive.mount('/content/drive'). The following error appears:

TIMEOUT                                   Traceback (most recent call last)
<ipython-input-2-d5df0069828e> in <module>()
  1 from google.colab import drive
----> 2 drive.mount('/content/drive')

4 frames
/usr/local/lib/python3.6/dist-packages/pexpect/expect.py in timeout(self, err)
142             exc = TIMEOUT(msg)
143             exc.__cause__ = None    # in Python 3.x we can use "raise exc from None"
--> 144             raise exc
145 
146     def errored(self):

TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0x7f39c621acf8>
searcher: searcher_re:
0: re.compile('google.colab.drive MOUNTED')
1: re.compile('root@352e6fca76e0-72631056df6b4467a181cdbbe437cfeb: ')
2: re.compile('(Go to this URL in a browser: https://.*)$')
3: re.compile('Drive File Stream encountered a problem and has stopped')
4: re.compile('drive EXITED')
<pexpect.popen_spawn.PopenSpawn object at 0x7f39c621acf8>
searcher: searcher_re:
0: re.compile('google.colab.drive MOUNTED')
1: re.compile('root@352e6fca76e0-72631056df6b4467a181cdbbe437cfeb: ')
2: re.compile('(Go to this URL in a browser: https://.*)$')
3: re.compile('Drive File Stream encountered a problem and has stopped')
4: re.compile('drive EXITED')
  • Describe the expected behavior:

I expected it to mount correctly as always. I’ve tried with my business account (G Suite) and my personal account, both have the same issue since today. I’m aware of the drive timeout issues which can happen if there are too many files/folders in the Drive, but it doesn’t seem to be the case as I tried to mount in 2 different Google Colab notebooks with 2 different accounts that don’t share any drives/folders. The same issue also appears for all our collaborators in our business.

  • The web browser you are using (Chrome, Firefox, Safari, etc.):

Google Chrome


The research in our business is based on Google Colab, and we are now stuck because of this issue. It would be great to have some response to this.

Thanks in advance for your help!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:10
  • Comments:19

github_iconTop GitHub Comments

14reactions
condoycommented, Sep 2, 2020

I was able to mount it with a direct string copy. The copy button doesn’t seem to be working right.

2reactions
ValentinMoulletcommented, Sep 2, 2020

@ArtemKarablinov I doubt that the issue is coming from a big number of files as mentioned in #382 , as this problem just started to happen today for multiple people. Also, I don’t have a lot of files in the root of the My Drive of my personal account (less than 10).

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to solve Google Colab and Drive timeout - codeburst
This happens when you have thousands of files in your directory, and if you can not read your data, you can not train...
Read more >
Google Colab TIMEOUT error, previously worked - Part 1 (2020)
Hi, When running drive.mount('/content/drive') and clicking on the link generated by it, we arrive on a page that contains a code which...
Read more >
Fix problems in Drive for desktop - Computer - Google Support
On your computer, open Drive for desktop. · Click Settings Settings and then · Click Settings Settings · Click Disconnect account. · If...
Read more >
Cannot mount google drive anymore - Fatal error - rclone forum
A log from the command with the -vv flag. rclone -vvv mount --daemon --daemon-timeout=5m --allow-non-empty --buffer-size=32M --use- ...
Read more >
How to mount my Google Drive in Colab? - Data Story
Google Colab notebooks have an idle timeout of 90 minutes and absolute timeout of 12 hours. This means, if user does not interact...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found