files_inotify icon indicating copy to clipboard operation
files_inotify copied to clipboard

Missing dependency with latest version of Nextcloud?

Open jlficken opened this issue 2 years ago • 3 comments

I see this error when updating and was wondering what I can do about it?

App "INotify file watcher" cannot be installed because the following dependencies are not fulfilled: The library inotify is not available.

How do I install the missing library?

jlficken avatar Jul 19 '22 15:07 jlficken

pecl install inotify

then add extension=inotify.so to your php.ini

For the Apache based Docker image of nextcloud I had to do

RUN pecl install inotify\
  && echo "extension=inotify.so" > /usr/local/etc/php/conf.d/pecl-php-ext-inotify.ini

It could be nice to add it to the README btw

jclaveau avatar Oct 16 '22 10:10 jclaveau

1st of all - i have to downgrade libssl - i´m on upgraded ubuntu 20 (from 18), Nextcloud V26, PHP8.2 (latest supported) via: sudo apt-get install libssl1.1="1.1.1f-1ubuntu2" (with no Docker at all) https://serverfault.com/questions/1035430/install-libssl-dev-on-ubuntu-20-04-1-upgrade-from-18-04-1-reports-unmet-depend

pecl install inotify && echo "extension=inotify.so" > /etc/php/php8.2/fpm/conf.d/pecl-php-ext-inotify.ini (its the wrong path) image

So where it the right php.ini to put "extension=inotify.so" - this seem the right place image

After CLI restart the php82-fpm.service i could activate it, without the error. systemctl restart php8.2-fpm.service systemctl reload apache2

image

Next Mission: Adds support detecting changes in local external storages with occ files_external:notify. Note that there are scalability limitations to using inotify on large folder structures, see the README for more information

XTC-Desperado avatar Jun 07 '23 20:06 XTC-Desperado

Just a comment because my search pointed me to this issue and maybe others run into similar issues: I had recently upgraded to Ubuntu 22.04 and files-inotify was silently failing because of a missing Inotify PHP-module.

To my surprise it does not seem to be available from the the Ubuntu repos. I had to 'add-apt-repository ppa:ondrej/php' in order to install it.

sm8ps avatar Aug 27 '23 14:08 sm8ps