PDA

View Full Version : Logfile permission problem



4mula1
2007-03-07, 13:19
I'm having trouble with SlimServer not finding all of my wife's iTunes library on a Windows XP network share from my Solaris box. It finds most of it, but not all. I thought I'd run SlimServer with the --d_itunes option as well as specifying the logfile path and name. The problem is that for some reason the logfile is always owned by root:root when SlimServer is called with --user=slimsrv --group=slimsrv.

Here's the script I use to call SlimServer without the debug info:

#!/bin/sh

PATH=/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/local/bin:/opt/bin
export PATH

/opt/slimserver/slimserver.pl --cachedir=/opt/slimserver/cachedir --user=slimsrv --group=slimsrv --prefsfile=/opt/slimserver/cachedir/slimserver.pref --pidfile=/opt/slimserver/cachedir/slimserver.pid $*

All I want to add is the --d_itunes and --logfile=/tmp/slim.log but the log ends up being owned by root and SlimServer can't write to it.

Is there something I'm missing, because this seems like it should be pretty simple.

peter
2007-03-08, 03:53
4mula1 wrote:
> I'm having trouble with SlimServer not finding all of my wife's iTunes
> library on a Windows XP network share from my Solaris box. It finds
> most of it, but not all. I thought I'd run SlimServer with the
> --d_itunes option as well as specifying the logfile path and name. The
> problem is that for some reason the logfile is always owned by root:root
> when SlimServer is called with --user=slimsrv --group=slimsrv.
>
> Here's the script I use to call SlimServer without the debug info:
>
> #!/bin/sh
>
> PATH=/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/local/bin:/opt/bin
> export PATH
>
> /opt/slimserver/slimserver.pl --cachedir=/opt/slimserver/cachedir
> --user=slimsrv --group=slimsrv
> --prefsfile=/opt/slimserver/cachedir/slimserver.pref
> --pidfile=/opt/slimserver/cachedir/slimserver.pid $*
>
> All I want to add is the --d_itunes and --logfile=/tmp/slim.log but the
> log ends up being owned by root and SlimServer can't write to it.
>
> Is there something I'm missing, because this seems like it should be
> pretty simple.

chown slimserver /tmp/slim.log
chmod 0666 /tmp/slim.log

?

Regards,
Peter

4mula1
2007-03-08, 05:42
Thanks, Peter. Last night it struck me to do that but for some reason I couldn't get any debug output into it. I ended up deleting it then creating an empty file and doing chown slimsrv:slimsrv /tmp/slim.log and now it's full of output.

The bad part is it appears that the iTunes XML file isn't being properly parsed. On some tracks it doesn't parse out the local path and I get a file not found.

Here's a snippet:

2007-03-08 06:38:50.3122 UPnP: Error adding multicast membership, UPnP may not work properly: Option not supported by protocol
2007-03-08 06:38:50.3134 UPnP: Error setting multicast TTL: Option not supported by protocol
2007-03-08 06:38:51.2973 iTunes: Setting checker for 10 seconds from now.
2007-03-08 06:39:01.3328 iTunes: Setting checker for 3600 seconds from now.
2007-03-08 06:40:06.5563 iTunes: wipedb called - resetting lastITunesMusicLibraryDate
2007-03-08 06:40:06.5816 iTunes: using itunes library: 1
2007-03-08 06:40:06.5820 iTunes: startScan on file: /buddha/iTunes Music Library.xml
2007-03-08 06:40:06.9194 iTunes: found the music folder: [file://localhost/C:/Documents%20and%20Settings/Tricia/My%20Documents/My%20Music/iTunes/iTunes%20Music]
2007-03-08 06:40:06.9198 iTunes: starting track parsing

<snip>

2007-03-08 06:40:18.5855 iTunes: got a track named She's My Kind Of Rain location: file:///buddha/iTunes%20Music/Tim%20McGraw/Reflected_%20Greatest%20Hits,%20Vol.%202/07%20She%27s%20My%20Kind%20Of%20Rain.m4a
2007-03-08 06:40:18.7749 iTunes: got a track named Not A Moment Too Soon location: file:///buddha/iTunes%20Music/Tim%20McGraw/Reflected_%20Greatest%20Hits,%20Vol.%202/09%20Not%20A%20Moment%20Too%20Soon.m4a
2007-03-08 06:40:18.9772 iTunes: file not found: /C:/Documents and Settings/Tricia/My Documents/My Music/iTunes/iTunes Music/Tim McGraw Feat. Nelly/Reflected_ Greatest Hits, Vol. 2/11 Over & Over Again.m4a
2007-03-08 06:40:18.9907 iTunes: got a track named Everywhere location: file:///buddha/iTunes%20Music/Tim%20McGraw/Reflected_%20Greatest%20Hits,%20Vol.%202/12%20Everywhere.m4a


I'm running SlimServer Version: 6.5.2 - 11463 - solaris - EN - iso-8859-1

iTunes is on Windows XP home.

Since Solaris doesn't support smbmount I'm using Sharity Light to create an NFS->SMB bridge so I can mount the remote directory.