icewind1991 / files_inotify

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

log spamming and only scanning one subfolder #16

Open szaimen opened 4 years ago

szaimen commented 4 years ago

Hey, I run NC 19.0.3 with Postgresql, PHP-fpm 7.4 with Apache2 on Ubuntu 20.04 and get the following error in the logs many many times, so that the log is nearly unreadable. How can i prevent this message to appear?

[PHP] Error: Module 'smbclient' already loaded at Unknown#0

GET /index.php/apps/files/ajax/getstoragestats.php?dir=%2F from 192.168.178.152 by admin at 2020-09-22T00:58:27+02:00


Could this issue be related to the fact, that the app seem to detect changes only in one subfolder of the local external storage and not in any other subfolder?

E.g.: I have the following structure: ('Data' is the name of the external storage in Nextcloud, 'Datenaustausch', 'Test' and 'geht das' are subfolders in 'Data')

Data
├── Datenaustausch
├── Test
├── geht das

If I now e.g. create a file in Datenaustausch it gets seen and scanned nearly in real-time. But a new file in the geht das or Test subfolder doesn't get seen and scanned until I visit the folder manually in Nextcloud. Is it meant to be this way?

szaimen commented 4 years ago

Additionally I got this issue one time: [PHP] Error: fclose(): supplied resource is not a valid stream resource at /var/www/nextcloud/apps/files_inotify/lib/Storage/NotifyHandler.php#235

at 2020-09-22T00:28:52+02:00