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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Syncthing
  3. How to increase inotify limit for syncthing?

How to increase inotify limit for syncthing?

Scheduled Pinned Locked Moved Solved Syncthing
3 Posts 2 Posters 2.4k Views 2 Watching
  • 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.
  • canadaduaneC Offline
    canadaduaneC Offline
    canadaduane
    wrote on last edited by
    #1

    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?

    girishG 1 Reply Last reply
    0
    • canadaduaneC canadaduane

      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?

      girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      @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

      canadaduaneC 1 Reply Last reply
      3
      • girishG girish

        @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

        canadaduaneC Offline
        canadaduaneC Offline
        canadaduane
        wrote on last edited by canadaduane
        #3

        @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
        1
        • girishG girish marked this topic as a question on
        • girishG girish has marked this topic as solved on
        • girishG girish marked this topic as a regular topic on
        • girishG girish marked this topic as a question on
        • girishG girish has marked this topic as solved on
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Bookmarks
        • Search