PDA

View Full Version : Invalid path name used in music file



Bill Moseley
2005-03-15, 11:53
Where do bugs get posted?

This is on Debian Sid.

I just now downloaded the 2005-03-15 nightly and started the server
with the following script:

#!/bin/sh

CWD=$(pwd)

../slimserver.pl --daemon \
--audiodir $HOME/music \
--playlistdir $HOME/playlists \
--cachedir $CWD/cache \
--logfile $CWD/server.log \
--prefsfile $CWD/server.prefs \
--pidfile $CWD/server.pid \
"$@"

I tried to play a file and received this in the log:
(sorry for the long name...)

$ cat server.log
File /home/moseley/music/beatles/sgt_peppers_lonely_hearts_club_band/beatles - sgt_peppers_lonely_hearts_club_band - 01 - sgt_peppers_lonely_hearts_club_band.ogg does not exist or cannot be read. at /home/moseley/SlimServer_v2005-03-15/CPAN/Ogg/Vorbis/Header/PurePerl.pm line 27, <GEN7> line 1.

It's true, that file does not exist. The true path is this:

/home/moseley/music/Beatles/sgt_peppers_lonely_hearts_club_band/beatles - sgt_peppers_lonely_hearts_club_band - 01 - sgt_peppers_lonely_hearts_club_band.ogg

Is someone developing on Windows where case dosen't matter?

By the way, a few questions tracking the devel code -- basically
looking for tips to make trying different versions easier.

1) Can I download a "slim" version of slimserver that doesn't include
all the perl dependencies (CPAN files) and use the ones on my system
instead?

2) Is there anonymous cvs that might make updating easier?

3) Any tricks to managing (keeping) the config files when, say,
upgrading to a new nightly build. That is, what files can I put in a
stable location when trying different nightly builds?

4) Any way to have a common plugins directory used for different
versions? I currently symlink to the plugins I use, but it would be
better to have that picked up automatically.

Thanks,

--
Bill Moseley
moseley (AT) hank (DOT) org

Dan Sully
2005-03-15, 12:14
* Bill Moseley shaped the electrons to say...

>Where do bugs get posted?

http://bugs.slimdevices.com/

>$ cat server.log
>File /home/moseley/music/beatles/sgt_peppers_lonely_hearts_club_band/beatles - sgt_peppers_lonely_hearts_club_band - 01 - sgt_peppers_lonely_hearts_club_band.ogg does not exist or cannot be read. at /home/moseley/SlimServer_v2005-03-15/CPAN/Ogg/Vorbis/Header/PurePerl.pm line 27, <GEN7> line 1.
>
>It's true, that file does not exist. The true path is this:
>
> /home/moseley/music/Beatles/sgt_peppers_lonely_hearts_club_band/beatles - sgt_peppers_lonely_hearts_club_band - 01 - sgt_peppers_lonely_hearts_club_band.ogg
>
>Is someone developing on Windows where case dosen't matter?

No.. we're very case sensetive. Is that path a network share by any chance?

>By the way, a few questions tracking the devel code -- basically
>looking for tips to make trying different versions easier.
>
>1) Can I download a "slim" version of slimserver that doesn't include
>all the perl dependencies (CPAN files) and use the ones on my system
>instead?

http://www.slimdevices.com/downloads/nightly/latest/6.0/SlimServer_v2005-03-15.no-cpan-arch.tar.gz

>2) Is there anonymous cvs that might make updating easier?

We use Subversion.

http://www.slimdevices.com/dev_resources.html#subversion

>3) Any tricks to managing (keeping) the config files when, say,
>upgrading to a new nightly build. That is, what files can I put in a
>stable location when trying different nightly builds?

By default on a *nix system, the pref file will go in $HOME/.slimserver.pref
- which stays there unless you remove it.

>4) Any way to have a common plugins directory used for different
>versions? I currently symlink to the plugins I use, but it would be
>better to have that picked up automatically.

Not really. Most plugins are version dependent.

-D

Bill Moseley
2005-03-15, 13:04
On Tue, Mar 15, 2005 at 11:14:43AM -0800, Dan Sully wrote:
> >Where do bugs get posted?
>
> http://bugs.slimdevices.com/

Should they be posted here before posting a related bug or (horrors)
due to user error?

>
> No.. we're very case sensetive. Is that path a network share by any chance?

No, it's on the same partition.

Ah, user error. I see I happened to have an old playlist around.
Maybe I renamed the directory at one point after the playlist was
created.

moseley@bumby:~/music$ head -1 beatles-sgt_peppers_lonely_hearts_club_band.m3u
beatles/sgt_peppers_lonely_hearts_club_band/beatles - sgt_peppers_lonely_hearts_club_band - 01 - sgt_peppers_lonely_hearts_club_band.ogg

Interesting. I'm using fishbone and browsing by music folder, and the
playlist looks just like any sub-folder. So, I assumed I was
selecting a file that the scan had found not just an entry in a play
list.

Does the browse by folder use the database, or scan directly --
expanding playlists as it goes?

I'm just wondering where would be a good place to stat() files listed
in playlists. I suppose a separate utility would be easy.

Also, might be nice to be able to see in the web interface why the
file isn't playing ("no such file"). Is that possible?



> >4) Any way to have a common plugins directory used for different
> >versions? I currently symlink to the plugins I use, but it would be
> >better to have that picked up automatically.
>
> Not really. Most plugins are version dependent.

I was thinking of 3rd party plugins (Biography for example) and when
changing upgrading from one daily to the next.

Thanks for the tips!



--
Bill Moseley
moseley (AT) hank (DOT) org