Coder Social home page Coder Social logo

Comments (12)

KarlStraussberger avatar KarlStraussberger commented on June 9, 2024

To me this looks like a broken link. You may also try to get rid of the message with hidden-files="no" for the directory.

from gerbera.

efermi avatar efermi commented on June 9, 2024
  1. I've added hidden-files="no" to the directory entries
  2. found no related broken links with $ find ~/. -xtype l

The error message is still there. What else can I do?

from gerbera.

KarlStraussberger avatar KarlStraussberger commented on June 9, 2024

Where does the error message show up. Syslog or gerbera.log.

Can you run gerbera with --debug command line option.

from gerbera.

efermi avatar efermi commented on June 9, 2024

In the syslog. When running it with --debug option the related output is as follows:

2024-02-26 18:58:29.040  trace: [autoscan_inotify.cc:179] threadProc(): inotify event: 210 mask=0x8 name=.mpdascache
2024-02-26 18:58:29.040  error: [autoscan_inotify.cc:203] threadProc(): Failed to read /home/user/.mpdascache: No such file or directory
2024-02-26 18:58:29.040  trace: [autoscan_inotify.cc:210] threadProc(): autoscan not found in watches? (210, watchAs:true, adir:true, /home/user/.mpdascache)

from gerbera.

KarlStraussberger avatar KarlStraussberger commented on June 9, 2024

Can you give a bit more of the log context, so that I can anticipate the logical flow (call history) that leads to the error.

from gerbera.

efermi avatar efermi commented on June 9, 2024

It'll take some time to redact personal info out. Could be it that the database contains an outdated list of files to watch and it could be enough to rebuild it from scratch?

from gerbera.

KarlStraussberger avatar KarlStraussberger commented on June 9, 2024

It is highly recommended to rebuild it from scratch, because there are many new features that come with import. Be aware that 2.0 has some issues with importing playlists (already fixed in HEAD).

from gerbera.

efermi avatar efermi commented on June 9, 2024

I've deleted the database and temporarily left an empty directory in the home dir as a single library location. The issue still persists, here is the full log:
gerbera-output.log
EDIT: I've switched to the gerbera-git from AUR, the error is still there.

from gerbera.

efermi avatar efermi commented on June 9, 2024

I've setup a watch for the ~/.mpdascache file like that:

inotifywait -m -e create,delete --include '\.mpdascache' /home/user |
while read path action file; do
    echo "The file '$file' $action in '$path' at $(date)"
done

and it is indeed being created and deleted multiple times per second indefinitely while the mpdas.service is running as can also be seen here https://github.com/hrkfdn/mpdas/blob/c81c480a6081af104c70c3574fb71319ff1521b7/cache.cpp#L5 IIUIC. While there is probably a better way to do it, is it possible to make gerbera ignore these events which happen outside of specified library locations?

from gerbera.

KarlStraussberger avatar KarlStraussberger commented on June 9, 2024

Now I understand the problem: we monitor all parent dirs of autoscan entries to see when they go any (e.g. unmount). This monitoring has to handle the parent dirs differently.

from gerbera.

KarlStraussberger avatar KarlStraussberger commented on June 9, 2024

Finally, I've found some time to test this in current head. We detect the file which is already gone when we try to analyse it further in your case.
We can suppress the message if we're outside an autoscan dir.

from gerbera.

efermi avatar efermi commented on June 9, 2024

Sounds good to me.

from gerbera.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.