googlecolab / colabtools

Python libraries for Google Colaboratory
Apache License 2.0
2.17k stars 705 forks source link

Can't mount google drive in any Colab Notebook #4774

Closed Laconad closed 1 month ago

Laconad commented 1 month ago

Starting this morning none of my Colab Notebooks have been able to mount google drive. Upon opening, the dialog box in the bottom left pops up showing "Mounting Drive..." and a new dialog box says "An error was encountered when permitting access for this notebook to Google Drive." To remedy this, I tried manually mounting it using:

from google.colab import drive

drive.mount("/content/drive", force_remount=True)

But to no avail; I would simply get the following error message:

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
[<ipython-input-2-2fffe05cb118>](https://localhost:8080/#) in <cell line: 3>()
      1 from google.colab import drive
      2 
----> 3 drive.mount("/content/drive", force_remount=True)

1 frames
[/usr/local/lib/python3.10/dist-packages/google/colab/drive.py](https://localhost:8080/#) in mount(mountpoint, force_remount, timeout_ms, readonly)
     98 def mount(mountpoint, force_remount=False, timeout_ms=120000, readonly=False):
     99   """Mount your Google Drive at the specified mountpoint path."""
--> 100   return _mount(
    101       mountpoint,
    102       force_remount=force_remount,

[/usr/local/lib/python3.10/dist-packages/google/colab/drive.py](https://localhost:8080/#) in _mount(mountpoint, force_remount, timeout_ms, ephemeral, readonly)
    281             'https://research.google.com/colaboratory/faq.html#drive-timeout'
    282         )
--> 283       raise ValueError('mount failed' + extra_reason)
    284     elif case == 4:
    285       # Terminate the DriveFS binary before killing bash.

ValueError: mount failed

I looked on GitHub for other similar issues but could find none; in most other failed mount cases, people are trying to mount drives of their other google accounts using a different one, but this is not my problem as I'm just trying to mount my own google drive using the same account.

In another case, an individual would timeout before mounting drive, so I increased timeout_ms to 300000, but I was skeptical of that being my issue because the cell only runs about 4s before crashing. Alas that did not fix my issue either.

I have about 40gb of content on drive, for context. I'm using Chrome on version: 126.0.6478.185 (Official Build) (64-bit)

Any help would be greatly appreciated.

peap commented 1 month ago

Thanks for filing - this is likely the same issue as #4773, so will track there.

peap commented 1 month ago

Duplicate of #4773