Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mounted drive disappears #865

Open
tridral opened this issue Apr 29, 2024 · 7 comments
Open

Mounted drive disappears #865

tridral opened this issue Apr 29, 2024 · 7 comments

Comments

@tridral
Copy link

tridral commented Apr 29, 2024

I mount two Google accounts as two drives on Ubuntu. One seems to be stable the other disappears randomly and I have no idea why. I would appreciate help in diagnosing the cause of the problem. Thank you!

When the drive disappears it's 'sort of' still there. Even though it's not visible i can 'cd' to it,but if I ty[e 'ls' I get

ls: cannot open directory '.': Input/output error

I then unmount the drive
fusermount -u
And get my empty mountpoint back

I then remount the drive it appears fora moment and then disappears again.

I would like any help with diagnosing the fault.

@JuanoD
Copy link

JuanoD commented Apr 29, 2024

Same for me. -debug does nothing

@tridral
Copy link
Author

tridral commented Apr 30, 2024

Thanks for replying @JuanoD . I'm sorry that you have a problem, but on the other hand, I'm glad I'm not alone.

For me the setup worked for weeks and then stopped and I can't get it back again.
Even more peculiar, I have two drives set up. One has never failed.

@tridral
Copy link
Author

tridral commented Apr 30, 2024

I've just run the mount again with -debug

I get a log file gdfuse.log under the label I'm using for the drive. In there, there is this :

[1.498596] TID=4: Error during request: Unexpected error response: {
"error": "invalid_grant",
"error_description": "Token has been expired or revoked."
}

I shall investigate further. ...

@tridral
Copy link
Author

tridral commented Apr 30, 2024

I reran the

google-drive-ocamlfuse -id xxxxxxxxxx.apps.googleusercontent.com -secret XXX-YYY-ZZZ

business and now the 'mount' runs without an error in the gdfuse.log file, but the drive still does not mount.

@tridral
Copy link
Author

tridral commented Apr 30, 2024

I deleted all the configuration information for tis drive (see under /homel/.gdfuse/...)

I then reran the

google-drive-ocamlfuse -id xxxxxxxxxx.apps.googleusercontent.com -secret XXX-YYY-ZZZ

Thing and authorised the drive via a browser.

I now have a drive again (for how long...?)

So this may be worth a try. Delete all the config information for this drive and authorise it again. See if that brings it back.

If you have more than one drive, referenced via a different label, make sure you are removing just the one you want to re-authorise.

It seems to have worked for me.

@JuanoD
Copy link

JuanoD commented Apr 30, 2024

Thanks for explaining how you solved it. After reading your comments, I went to ~/.gdfuse/default/state and deleted last_access_token, refresh_token, and auth_request_id

Then ran:

google-drive-ocamlfuse -id xxxxxxxxxx.apps.googleusercontent.com -secret XXX-YYY-ZZZ

Performed web auth

fusermount -u /path/to/mount
google-drive-ocamlfuse -debug /path/to/mount

It works again.

I love this piece of software and is the only one that solves the drive sync problem for linux users AFAIK, but seems a bit unstable lately. Every time I re-install, I have to deal with different stuff.

@tridral
Copy link
Author

tridral commented Apr 30, 2024

I'm glad that proved helpful

It would be nice to hear back from the developer at some point to see if there's a better solution.

anyway, I'm glad that you have your drive back!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants