-
Notifications
You must be signed in to change notification settings - Fork 354
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
Device or resource busy #48
Comments
You should try to reproduce the problem, running the program in debug mode :
Then you should check the log files gdfuse.log and curl.log (you will find in ~/.gdfuse/default) and look for errors 400/500, returned by Google Drive. |
I didn't reproduce the problem exactly in the debug session. Copying a big Error: cannot close sqlite db. At the same time, the "cp" command issues a lot of messages (one for every Cannot 'stat': el otro extremo de la conexión no esta conectado. The logs show "500 Internal Server" errors on the "resource busy" errors: ----gdfuse.log--- [4039.294670] TID=0: getattr /Mis imágenes----curl.log----- [4039.270979] curl: header in: HTTP/1.1 500 Internal Server Error [On the final lines of gdfuse.log:Thread id=0: Error: cannot close db Clearing context...doneSaludos de jose.brihuega@gmail.com 2014-01-31 Alessandro Strada notifications@github.com:
|
I guess this is related... I wanted to make a backup of my files stored in gdrive - so its the opposite direction. i mounted the folder with:
remounted with:
after remounting i get a similar output i also noticed some files where corupted every time i found this in the logs:
i'm using google-drive-ocamlfuse version 0.5.3 on Ubuntu 13.10 'headless' so...
Thanks! |
setting 'sqlite3_busy_timeout=5000' helped, but when it was time to refresh the access token things went wrong again.
my test system is a pretty old computer and is under full load doing this, maybe this is some kind of race condition... i'll try again without mounting -m Cheers |
@piccaso: thanks for your feedback. There were some issues with the Drive backend on Feb 6. Maybe they are related to your issues.
No, I've never experienced errors during token refresh. But I never use the -m option, because the FUSE binding I'm using is too unstable with that option turned on.
Yes, that's the way OAuth works.
No, I've experienced some of your issues uploading a large amount of files, but downloading usually works with both cp and rsync.
OK, I'm putting that on my TODO list.
No,
I'm thinking about removing that option, because it usually causes more problems than it solves. @brihuega: thanks for your feedback too. I will try to improve stability, retrying requests on every error, and try to implement a better error handling mechanism. But it's not easy to do it right. |
Thanks for your response @astrada! I don't think its related to the Feb 6 issue, i still have the same problems (even without -m) Large timeouts and cache - just clear cache on demand. using rsync with -W (no delta operations - copy Whole file) speeds it up and handles corrupted files better than cp When the connection fails i just umount and delete the state file - so the cache is not lost - and redo the autentication part, mount and than restart rsync. To bad i cant wrap my head around ocaml, but it looks like i can only code in languages that have curly braces :/ |
Thanks for your efforts making this great software. I will give you more Saludos de jose.brihuega@gmail.com 2014-02-08 18:27 GMT+01:00 piccaso notifications@github.com:
|
I did another test with similar results, but I got another message repeated several times: Warning: Unexpected leaf: name=messsage data_type=Scalar in GapiService.RequestError.parse |
It's "messsage" with 3 s's? If it's so, then it's a bug on Google side and my application cannot parse the error. |
No, I copied it by hand and mispelled it. |
I'm seeing same errors when issuing commands like git init in a directory, or trying to cp/mv a directory into gdrive... PS what's the right way to stop/unmount a runing ocamluse mount? |
If |
thank you! the errors I reported seem to have been solved using the -o big_writes option. |
First, thanks for this great software! Very useful.
I have an issue when copying big amounts of files to the drive, (commands as "cp -R"). It copies some dozens of files and then starts sending messages "device or resource busy" ("Dispositivo o recurso ocupado" in my locale).
If I interrupt the command, every access to the drive gives the same error. I have to unmount the drive and mount it again to retake control.
I'm running:
google-drive-ocamlfuse, version 0.5.2
Ubuntu Server 12.04.3 LTS with: Linux 3.8.0-29-generic #42~precise1-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux
Thanks!
The text was updated successfully, but these errors were encountered: