liberodark / ODrive

Google Drive GUI for Windows / Mac / Linux
https://liberodark.github.io/ODrive/
GNU General Public License v3.0
1.16k stars 133 forks source link

[BUG] "Watcher error: Error: ENOSPC: no space left on device, watch <filename>" #101

Open wonx opened 5 years ago

wonx commented 5 years ago

Describe the bug I can't seem to finish syncing my google drive account. After a while, in the console, I repeatedly see this error:

"Watcher error: Error: ENOSPC: no space left on device, watch" (followed by the name of the file it's attempting to sync).

The full error would be something like this:

Events [ 'add' ]
Emitting last important event for /home/user/Google Drive/account/motion/2019-04-04_16-30-59.jpg add
ignoring events for path /home/user/Google Drive/account/motion/2019-04-04_16-30-11.mp4
Watcher error: Error: ENOSPC: no space left on device, watch '/home/user/Google Drive/account/motion/2019-04-04_16-30-11.mp4'

**Desktop

hubyhuby commented 5 years ago

Hi there, I seem to have a similar issue. I am using Ubuntu mate 18.04 LTS with latest 0.2 .Deb When I restart odrive I get the same kind of message. I am wondering if the message could be more specific .... is it on google drive or on my local drive that we are missing space....??? I have 8GB free on google drive and 200Gb local trying to upload 200Mo / 25 000 files.

NOTE: for now I am not sure wether or not it will sync this folder, since it sends some files ....now 25 000 files seems to be a hard work... Maybe it will be better with upcoming parallel sync.

LOG: Watcher error: Error: ENOSPC: no space left on device, watch '/home/me/drive/dev/studio2/node_modules/webpack-cli/lib/init/transformations/resolveLoader/testfixtures' Watcher error: Error: ENOSPC: no space left on device, watch '/home/me/drive/dev/studio2/node_modules/webpack-cli/lib/init/transformations/resolveLoader/resolveLoader.js' Watcher error: Error: ENOSPC: no space left on device, watch '/home/me/drive/dev/studio2/node_modules/webpack-cli/lib/init/transformations/resolveLoader/resolveLoader.test.js' Watcher error: Error: ENOSPC: no space left on device, watch '/home/me/drive/dev/studio2/node_modules/webpack-cli/lib/init/transformations/stats/snapshots'

toasta commented 5 years ago

Hi,

sudo sysctl fs.inotify.max_user_watches=$((128*1024))

fixed it for me... after digging in the watchpack/chokidar sources. The ENOSPC is a bit misleading.

echo fs.inotify.max_user_watches=$((128*1024)) | sudo tee -a /etc/sysctl.conf or echo fs.inotify.max_user_watches=$((128*1024)) | sudo tee -a /etc/sysctl.d/150-increase-user-inotify.conf

to survive reboots. Check your distro if it supports sysctl.d stuff.

Note that this eats quite a bit of ram, and you only need this if you've lots of files like several ".git/" directories or timelaps images or .... Dropbox coped fine with it, google-drive seems a bit overwhelmed with >10k (dunno the exact number, at least it's quite iffy for my >30k) files.