Fix Dropbox “Unable to monitor filesystem” error in Ubuntu (Linux)

Dropbox is in my view the best cloud based file synchronization service. Recently I started getting this error on my Ubuntu OS Unable to monitor filesystem. The screenshot is:

Dropbox Error - Unable to monitor filesystem

Dropbox Error – Unable to monitor filesystem

Additional instructions were (as mentioned in the screenshot) Please run “echo 100000 | sudo tee /proc/sys/fs/inotify/max_user_watches” and restart Dropbox to correct the problem

To my knowledge, there are three ways of fixing this problem:

  1. Run the command as instructed
    Open up the terminal window, type the command:

    echo 100000 | sudo tee /proc/sys/fs/inotify/max_user_watches

    and restart dropbox. Restart can be done manually by right clicking on the icon and selecting “Quit Dropbox” and then start by typing Dropbox in the Unity Dash. Or simply run the following commands:

    sudo dropbox stop
    sudo dropbox start

    This will fix it as long as your system is running. After a restart, these settings will be cleared.
    Update: Also note that for starting the sudo can be skipped also as mentioned in the comments.

  2. Add the command to the rc.local file
    This file (script) is run at the end of each multiuser runlevel. Open this file in the editor with the following command:

    sudo vim /etc/rc.local

    Add the following before the exit 0 line:

    echo 100000 | sudo tee /proc/sys/fs/inotify/max_user_watches

    This will fix it even if your system restarts.

  3. Add the command to the System Configuration File
    Open the System Configuration file (sysctl.conf) using the command:
    sudo vim /etc/sysctl.conf

    Add the following line at the end:

    fs.inotify.max_user_watches = 1048576

    Although the changes have been saved but have not yet been applied. To apply either restart your machine or run the following commands:

    sudo sysctl -p
    sudo dropbox stop
    sudo dropbox start
About these ads

3 thoughts on “Fix Dropbox “Unable to monitor filesystem” error in Ubuntu (Linux)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s