Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved How to increase inotify limit for syncthing?

    Syncthing
    2
    3
    415
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • canadaduane
      canadaduane last edited by

      I'm seeing the following warning/error message in my hosted syncthing web page:

      12f00713-fb87-44c1-bef1-b51f5a662767-image.png

      Filesystem Watcher Errors
      
      For the following folders an error occurred while starting to watch for changes. It will be retried every minute, so the errors might go away soon. If they persist, try to fix the underlying issue and ask for help if you can't.
      
      Support Sync
      failed to setup inotify handler. Please increase inotify limits, see https://docs.syncthing.net/users/faq.html#inotify-limits
      

      Does this need to be modified on the host, or within docker? What is the recommended way to do this?

      girish 1 Reply Last reply Reply Quote 0
      • girish
        girish Staff @canadaduane last edited by

        @canadaduane The inotify configuration is not a namespaced/container level configuration. It's value is global and comes from the host. So, you can change it manually on your server using sysctl -w fs.inotify.max_user_watches=204800 . To persist the setting across reboots, echo "fs.inotify.max_user_watches=204800" | sudo tee -a /etc/sysctl.conf

        canadaduane 1 Reply Last reply Reply Quote 3
        • girish
          girish Staff @canadaduane last edited by

          @canadaduane The inotify configuration is not a namespaced/container level configuration. It's value is global and comes from the host. So, you can change it manually on your server using sysctl -w fs.inotify.max_user_watches=204800 . To persist the setting across reboots, echo "fs.inotify.max_user_watches=204800" | sudo tee -a /etc/sysctl.conf

          canadaduane 1 Reply Last reply Reply Quote 3
          • canadaduane
            canadaduane @girish last edited by canadaduane

            @girish Thank you, this did the trick. In my case, I have Ubuntu 20.04 on a kvm inside my host, so I had to change the inotify watch limit for the "inner host". The warning message went away a few minutes after that.

            1 Reply Last reply Reply Quote 1
            • Topic has been marked as a question  girish girish 
            • Topic has been marked as solved  girish girish 
            • Topic is now a regular thread  girish girish 
            • Topic has been marked as a question  girish girish 
            • Topic has been marked as solved  girish girish 
            • First post
              Last post
            Powered by NodeBB