mopidy / mopidy-local

Mopidy extension for playing music from your local music archive
https://mopidy.com/ext/local/
Apache License 2.0
61 stars 26 forks source link

Local library - "resource not found" from scan. #28

Open jmbillings opened 9 years ago

jmbillings commented 9 years ago

I'm using Pi Musicbox, which is backed by Mopidy. I've added a samba share to a USB drive plugged into my router, and can see all the music folders if I run "ls" from ssh.

When my Pi starts up, the scan kicks in (I can hear the drive chuntering away), but I never get anything in the musicbox library. Looking in the logfile, all my tracks are listed with an error of "resource not found", for example:

...... 2015-02-11 22:30:01,222 - WARNING Failed local:track:Sigur%20R%C3%B3s/%28%20%29/03%20-%20Sigur%203%20%28Untitled%29.mp3: Resource not found. 2015-02-11 22:30:01,272 - WARNING Failed local:track:Sigur%20R%C3%B3s/%28%20%29/04%20-%20Sigur%204%20%28Untitled%29.mp3: Resource not found. 2015-02-11 22:30:01,314 - WARNING Failed local:track:Sigur%20R%C3%B3s/%28%20%29/05%20-%20Sigur%205%20%28Untitled%29.mp3: Resource not found. 2015-02-11 22:30:01,359 - WARNING Failed local:track:Sigur%20R%C3%B3s/%28%20%29/06%20-%20Sigur%206%20%28Untitled%29.mp3: Resource not found. 2015-02-11 22:30:01,410 - WARNING Failed local:track:Sigur%20R%C3%B3s/%28%20%29/07%20-%20Sigur%207%20%28Untitled%29.mp3: Resource not found. 2015-02-11 22:30:01,447 - WARNING Failed local:track:Sigur%20R%C3%B3s/%28%20%29/08%20-%20Sigur%208%20%28Untitled%29.mp3: Resource not found. 2015-02-11 22:30:01,522 - WARNING Failed local:track:Sigur%20R%C3%B3s/%C3%81g%C3%A6tis%20Byrjun/01%20Svefn-G-Englar%20%28Intro%29.mp3: Resource not found. .......

Obviously the tracks themselves are being found otherwise the log would be empty... any ideas?

adamcik commented 9 years ago

Probably a path encoding issue. Though local:track:Sigur Rós/( )/08 - Sigur 8 (Untitled).mp3 looks about right. @kingosticks do you remember what the magick encoding setting was for getting this type of thing right?

kingosticks commented 9 years ago

Not sure to be honest, this one? On 10 Mar 2015 21:27, "Thomas Adamcik" notifications@github.com wrote:

Probably a path encoding issue. Though local:track:Sigur Rós/( )/08 - Sigur 8 (Untitled).mp3 looks about right. @kingosticks https://github.com/kingosticks do you remember what the magick encoding setting was for getting this type of thing right?

— Reply to this email directly or view it on GitHub https://github.com/mopidy/mopidy/issues/978#issuecomment-78152078.

adamcik commented 9 years ago

Thought there was some discussion about this over on dicuss.mopidy.com about something like this. But might be mistaken.

tkem commented 9 years ago

There was some discussion concerning charsets and iocharset=utf8 here: https://discuss.mopidy.com/t/network-folders-are-showing-up-empty-in-musicbox-0-5-1rc/315/30

However, according to @jmbillings

all my tracks are listed with an error of "resource not found"

so my question is whether "all his files" contain non-ASCII characters, or this problem also occurs with pure-ASCII filenames?

kingosticks commented 9 years ago

My reply would have made considerably more sense if I had actually pasted the link as I had intended. https://github.com/woutervanwijk/Pi-MusicBox/issues/106#issuecomment-50521240

jmbillings commented 9 years ago

Sorry for the delay in replying, and thanks for the suggestions. I've made a little bit of progress... Following the links, I installed UTF-8. This didn't achieve much on it's own, but some more hunting based on a new error I got suggested updating SQLite (https://discuss.mopidy.com/t/network-folders-are-showing-up-empty-in-musicbox-0-5-1rc/315/35) I did that, and I can now browse local files (artist/album etc are all empty, but "folders" works).

Unfortunately, playing still doesn't work. Extended characters are shown in the path as the little "diamond question mark", but even trying to play a normal file gives an error in the log:

`

I shall keep googling and fiddling :smile:

Domen988 commented 9 years ago

Hi,

getting a very similar problem with playing local files myself. This is the error in the log:

ERROR    Resource not found.
WARNING  Setting GStreamer state to GST_STATE_PLAYING failed
WARNING  Track is not playable: local:track:asdf.mp3

I can see the metadata in the more verbose versions of the output, so something gets read. If I use 'mopidy -vvv' the next error appears:

ERROR    2015-05-24 01:33:14,116 [82671:MainThread] mopidy.audio.gst
  Resource not found.

I'm playing around with locale settings, but that is getting me nowhere.. There is no non-ASCII characters in the tracks metadata.

Anybody has any ideas? I'm totally new to mopidy, thanks for understanding.