-
The bugHello, I upgraded to 1.94.1 and enabled “Automatic library watching (experimental)”, but the following error occurred:
The OS that Immich Server is running onSynology Version of Immich Server1.94.1 Version of Immich Mobile App1.94.1 Platform with the issue
Your docker-compose.yml contentxx Your .env contentxx Reproduction steps1.
2.
3.
... Additional informationNo response |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
cc @etnoy |
Beta Was this translation helpful? Give feedback.
-
You need to increase the linux limit for the number of watchers. In sysctl, change the following value to a suitable number: fs.inotify.max_user_watches=524288 https://dev.to/shawon/fix-error-enospc-system-limit-for-number-of-file-watchers-reached-pfh |
Beta Was this translation helpful? Give feedback.
-
thanks! I was stuck as well on this and this solved my problem, thank you @cr0n76 |
Beta Was this translation helpful? Give feedback.
-
Hi, I updated today and I can no longer access the interface. [Nest] 7 - 10/15/2024, 8:09:27 PM ERROR [Microservices:LibraryService] Library watcher for library 463fc65b-c378-4407-a6ae-7decd6dfb58f encountered error: Error: ENOSPC: System limit for number of file watchers reached, watch '/srv/dev-disk-by-uuid-9bda9ca2-0860-45b2-92f7-bec289ccb9aa/Seagate4T/Poze/Dropbox/PC Diverse/Promotiematerialen en templates/Styleguide EU/Product Images/New Packaging/Groups/Skin Recovery/Rosacea_WithoutLotion.png' Can someone guide through solving this? I am a complete noob. I do not even know where to run the code given above. I am using portainer on an OMV server. Do I use putty for the above script or what? I tried running it in the container console but it did not work. Thank you PS "In rare cases, the library watcher can hang, preventing Immich from starting up. In this case, disable the library watcher in the configuration file. If the watcher is enabled from within Immich, the app must be started without the microservices. Disable the microservices in the docker compose file, start Immich, disable the library watcher in the admin settings, close Immich, re-enable the microservices, and then Immich can be started normally." there is no microservices in the compose file (anymore?) |
Beta Was this translation helpful? Give feedback.
A short update on how to deactivate it without access to the UI:
If the config file is not in use, the config is stored in the postgres database.
Check here on how to query it.
To update the config to disable automatic library watching one can use
UPDATE system_config SET value = false WHERE key = 'library.watch.enabled';
However the neccessity to update any config value by this should be very rare. Don't do this unless you are really sure that this is the only way and is a sane decision.