Dropbox error - 'echo 100000 | sudo tee / proc/sys/fs/inotify/max_user_watches'
Dropbox gives me an error that mentions echo tee 100000 but then it disappears. How to fix or remove msg?
03 Answers
Edit your /etc/sysctl.conf file with your favourite text editor, e.g. nano:
sudo nano /etc/sysctl.confand append (or modify the value of) fs.inotify.max_user_watches=100000 at the end of the file as a new line.
As an option you can use the command sudo sysctl -w fs.inotify.max_user_watches=100000 or the command below, as described on the Dropbox help guide, the results will be the same.
From the advanced help guide from Dropbox
0Monitoring more than 10000 folders
The Linux version of the Dropbox desktop application is limited from monitoring more than 10000 folders by default. Anything over that is not watched and, therefore, ignored when syncing. There's an easy fix for this. Open a terminal and enter the following:
echo fs.inotify.max_user_watches=100000 | sudo tee -a /etc/sysctl.conf; sudo sysctl -pThis command will tell your system to watch up to 100000 folders. Once the command is entered and you enter your password, Dropbox will immediately resume syncing.
With Ubuntu 13.04:
$ sudo nano /proc/sys/fs/inotify/max_user_watchesThen change what is in the file (I had 8192) to 100000
Then "ctrl o" to save and "ctrl x" to exit
Then run:
$ sudo sysctl -pthen restart Dropbox.
3Editing /proc/sys/fs/inotify/max_user_watches directly results in Fsync errors in GVIM. This is because you can't really modify those files directly. Instead, it is better to use this command:
sudo sysctl -w fs.inotify.max_user_watches=100000
This doesn't cause file editing problems, and to me, looks like a more proper method.
5More in general
"Zoraya ter Beek, age 29, just died by assisted suicide in the Netherlands. She was physically healthy, but psychologically depressed. It's an abomination that an entire society would actively facilitate, even encourage, someone ending their own life because they had no hope. Th…"