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

Items of type inode/x-empty never get updated #3306

Open
cweiske opened this issue Dec 16, 2024 · 3 comments
Open

Items of type inode/x-empty never get updated #3306

cweiske opened this issue Dec 16, 2024 · 3 comments

Comments

@cweiske
Copy link
Contributor

cweiske commented Dec 16, 2024

Describe the bug
I added 4 new files to an album by copying from my laptop to the NFS server. Gerbera on the NFS server did not pick them up. Even after copying was finished, the files did not appear in the database view.
touching them on the server and restarting gerbera multiple times did not work.
Adding them manually via the web interface's file view did not help either.

I inspected the database and saw that all 4 files were added with a mime_type of inode/x-empty to the mt_cds_object table.
They were only processed correctly after manually deleting them from the database.

To Reproduce
Not sure

Expected behavior
Items with mime type inode/x-empty should be processed correctly.

Server (please complete the following information):

  • OS: Debian 12
  • Gerbera Version: 2.3.0
  • Source: self built

Related: #3202, #3090

@KarlStraussberger
Copy link
Member

While searching for a solution on the web, I came across this useful information

https://unix.stackexchange.com/questions/81663/why-are-inotify-events-different-on-an-nfs-mount
referring to
https://stackoverflow.com/questions/4231243/inotify-with-nfs

Obviously we have to change our approach here completely

@cweiske
Copy link
Contributor Author

cweiske commented Dec 17, 2024

Note that gerbera runs on the NFS server. It does not read the music files from an NFS mount.

@KarlStraussberger
Copy link
Member

This issue is hard to address by gerbera. Because we get the inotify too early and therefore tag the file so that we do not check it on updates - for performance.

Maybe you can play with the mount options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
  NODES
COMMUNITY 2
Note 1
Project 3
USERS 1