astrada / google-drive-ocamlfuse

FUSE filesystem over Google Drive
https://astrada.github.io/google-drive-ocamlfuse/
MIT License
5.59k stars 354 forks source link

Indexing google drive to plex library #265

Open tekwreck opened 7 years ago

tekwreck commented 7 years ago

I'm indexing a google drive folder to Plex and after a while the system can't read the folders anymore.

If I try to read the directory I'll get this error ls: cannot open directory .: Numerical result out of range

I enabled debugging to see what the logs would say and this is what I see - [24157.470062] TID=162525: Retrying (1/8) final_step after exception: Failure("Sqlite3 error: FULL")

Have you seen this before?

tekwreck commented 7 years ago

I should note if I clear the cache using -cc, I can get the folder to remount

astrada commented 7 years ago

The sqlite error means that your drive is full. With -debug every byte exchanged with Google gets logged. Try with -verbose.

tekwreck commented 7 years ago

Is it possible to force ocaml to use a different folder for the cache? I have a mount point that has 500GB of free space which is more forgiving than the 10GB it has right now working out of the home folder.

astrada commented 7 years ago

Yes, you can choose a custom folder setting cache_directory= in the configuration file.

pisto commented 7 years ago

@jaredneedell you should probably look into force streaming of large files, that's what I do.

tekwreck commented 7 years ago

Thanks @astrada I'll give it a try

@pisto I have that setting set but doesn't seem to do anything.

stream_large_files=true

tekwreck commented 7 years ago

@astrada I changed the cache dir, it never got over 1mb and I was syncing my music folder to Plex when I got the error endpoint not connected. Took about 20 minutes.

astrada commented 7 years ago

Can you please send the log files to alessandro.strada@gmail.com? Thanks!