Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listen to scanned files and to generate previews for externally added files (if possible) #484

Open
DriftingShadows opened this issue Jun 24, 2024 · 7 comments

Comments

@DriftingShadows
Copy link

I have a snap install of Nextcloud on an aws instance and running into issues with generating previews for a smb share. The external drive is mounted and its added to nextcloud's UI via External Storage -> Local. The problem is when new files are being added to the external storage, pre-generate does not do anything (it is on a hourly cron job). Running it manually with the -vvv flag finishes in a second without any additional output. Meanwhile running '''generate-all -vvv''' slowly goes through all the new files as per usual. How would i go about addressing this issue?

@st3iny
Copy link
Member

st3iny commented Jun 24, 2024

The problem is when new files are being added to the external storage

Are the files added to the external storage directly or via Nextcloud?

@DriftingShadows
Copy link
Author

The problem is when new files are being added to the external storage

Are the files added to the external storage directly or via Nextcloud?

apologies for delayed response. it is added directly via rsync, not via nextcloud. if doing it this way is a problem, is there any other way to get preview generation working?

@DriftingShadows
Copy link
Author

@st3iny sorry to bump but would you have any suggestions for my situation?

@nikolas-digitalBabylon
Copy link

It seems that when files are added externally (e.g. rsync) changes are not caught. Same situation here, running on docker and using locally mounted external storage.

@DriftingShadows
Copy link
Author

It seems that when files are added externally (e.g. rsync) changes are not caught. Same situation here, running on docker and using locally mounted external storage.

i suspected as much. Is there another way to get these files to be picked up by preview generator?

@nikolas-digitalBabylon
Copy link

It seems that when files are added externally (e.g. rsync) changes are not caught. Same situation here, running on docker and using locally mounted external storage.

i suspected as much. Is there another way to get these files to be picked up by preview generator?

Add external files via the webdav interface provided by nextcloud. Should work then, let us know if it does (for reference).

@st3iny
Copy link
Member

st3iny commented Sep 8, 2024

Yeah, that is correct. Only files that are added or modified using either the desktop client, webdav or the web interface are registered.

Adding the files externally and running a scan will not pick up changes unfortunately.

For now there is no workaround. The proper fix would be to implement a new listener to listen for scanned files (if possible).

@st3iny st3iny changed the title Preview:pre-generate does not pick up files while preview:generate-all does Listen to scanned files and to generate previews for externally added files (if possible) Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants