icewind1991 / files_inotify

Adds support detecting changes in local external storages with occ files_external:notify
29 stars 3 forks source link

Missing dependency with latest version of Nextcloud? #22

Open jlficken opened 2 years ago

jlficken commented 2 years ago

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?

jclaveau commented 2 years ago
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

XTC-Desperado commented 1 year ago

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

sm8ps commented 1 year ago

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.