PDA

View Full Version : slimserver crashes when using iTunes



Christopher Jacob
2004-08-01, 12:22
I am running the slimserver as root when I run it manually, so I don't think
it's a file permissions problem.

Can someone tell me the typical setup when using iTunes. Do most people use
it when they are running smilserver on a windows machine?

I honestly think that I am making this more complicated than it needs to be,
but I have searched the mailing lists and hunted for any documentation I
could find.

Again, I would like to run slimserver and store my mp3's on a linux box. I
would like to run iTunes to make burning and organization of cd's easy.

Am I on the right track here, or can someone suggest something else?

Thanks,

Chris

-----Original Message-----
From: discuss-bounces (AT) lists (DOT) slimdevices.com
[mailto:discuss-bounces (AT) lists (DOT) slimdevices.com] On Behalf Of kdf
Sent: Sunday, August 01, 2004 1:19 AM
To: Slim Devices Discussion
Subject: [slim] slimserver crashes when using iTunes

Quoting Christopher Jacob <chris (AT) jacob-solutions (DOT) com>:

> Hey All,
>
> Hopefully someone can help... I have the following set up;
>
> Linux box (oliver) running slimserver
> Samba running and sharing /usr/local/mp3 as mp3
> All my music is on /usr/local/mp3
>
> Windows XP Pro (binkley) running iTunes
> Mapping a drive (m) to \\binkley\mp3
> iTunes users "m:\" as it's library.
>
> This all works fine,
>
> I tried manually moving the iTunes Music Library.xml file to
/usr/local/mp3
> When I scan for music the slimserver crashes
>
> I tried mounting the iTunes folder on the XP box to the Linux box
> Smbmount //oliver/itunes /usr/local/iTunes
> And setting the parameter in the web interface to that path.
> This too crashes slimserver when I hit scan.
>
> I get the following when I run it from manually. I know the file lock
looks
> obvious but nothing else has that file open...
>
> [root@oliver slimserver]# perl slimserver.pl --d_scan --d_itunes
> 2004-07-31 20:04:06.4727 canUseiTunesLibrary().
> 2004-07-31 20:04:06.4740 findMusicLibraryFile().
> 2004-07-31 20:04:06.4764 itunes: found path via config file at:
> /usr/local/iTunes
> 2004-07-31 20:04:06.4771 itunes: set iTunes library to
> itunes_library_music_path value of: /usr/local/mp3
> 2004-07-31 20:04:06.4776 using itunes library: 1
> 2004-07-31 20:04:06.5197 canUseiTunesLibrary().
> 2004-07-31 20:04:06.5207 using itunes library: 1
> 2004-07-31 20:04:13.6487 canUseiTunesLibrary().
> 2004-07-31 20:04:13.6501 using itunes library: 1
> 2004-07-31 20:04:13.7226 canUseiTunesLibrary().
> 2004-07-31 20:04:13.7237 using itunes library: 1
> 2004-07-31 20:04:19.4367 canUseiTunesLibrary().
> 2004-07-31 20:04:26.8853 canUseiTunesLibrary().
> 2004-07-31 20:04:26.8886 canUseiTunesLibrary().
> 2004-07-31 20:04:26.8889 using itunes library: 1
> 2004-07-31 20:04:26.8893 canUseiTunesLibrary().
> 2004-07-31 20:04:26.8896 using itunes library: 1
> 2004-07-31 20:04:26.8898 startScan: iTunes file: /usr/local/iTunes
> 2004-07-31 20:04:26.8904 canUseiTunesLibrary().
> 2004-07-31 20:04:26.8907 using itunes library: 1
> 2004-07-31 20:04:27.0472 Got file lock on iTunes Library
> couldn't read itunes library! at
/usr/local/slimserver//Slim/Music/iTunes.pm
> line 488.
>
>
> Any suggestions?

double check your permissions on the xml file. the server runs automatically
as
user slimserver, group slimserver so the xml will need to be readable by
that
user, as well as the one you are using when you run the server manually.
-kdf

kdf
2004-08-01, 12:41
of course most ppl run slimserver on windows or mac with iTunes, as this is how
iTUnes is designed to run. Having the library work under linux is a hack,
plain and simple. On the positive side, its a supported hack. something is
either wrong with the xml file you placed in your linux system, or it is
unreadable by some other means. From your description, you havent' done
anything wrong. however, the server still cannot open the file, as reported by
that error.

this is due to a failure in this line:
if (!open(ITUNESLIBRARY, "<$file")) {

nothing fancy, just attempting to open a file. permissions simply the most
likely cause. If you are certain that isn't the case, you will have to do some
reasearch to find out what other things can cause the file to fail. look over
your d_iTunes log again, make sure that the file it reports is the correct
location of the iTunes music file.

-kdf

Quoting Christopher Jacob <chris (AT) jacob-solutions (DOT) com>:

> I am running the slimserver as root when I run it manually, so I don't think
> it's a file permissions problem.
>
> Can someone tell me the typical setup when using iTunes. Do most people use
> it when they are running smilserver on a windows machine?
>
> I honestly think that I am making this more complicated than it needs to be,
> but I have searched the mailing lists and hunted for any documentation I
> could find.
>
> Again, I would like to run slimserver and store my mp3's on a linux box. I
> would like to run iTunes to make burning and organization of cd's easy.
>
> Am I on the right track here, or can someone suggest something else?
>
> Thanks,
>
> Chris
>
> -----Original Message-----
> From: discuss-bounces (AT) lists (DOT) slimdevices.com
> [mailto:discuss-bounces (AT) lists (DOT) slimdevices.com] On Behalf Of kdf
> Sent: Sunday, August 01, 2004 1:19 AM
> To: Slim Devices Discussion
> Subject: [slim] slimserver crashes when using iTunes
>
> Quoting Christopher Jacob <chris (AT) jacob-solutions (DOT) com>:
>
> > Hey All,
> >
> > Hopefully someone can help... I have the following set up;
> >
> > Linux box (oliver) running slimserver
> > Samba running and sharing /usr/local/mp3 as mp3
> > All my music is on /usr/local/mp3
> >
> > Windows XP Pro (binkley) running iTunes
> > Mapping a drive (m) to \\binkley\mp3
> > iTunes users "m:\" as it's library.
> >
> > This all works fine,
> >
> > I tried manually moving the iTunes Music Library.xml file to
> /usr/local/mp3
> > When I scan for music the slimserver crashes
> >
> > I tried mounting the iTunes folder on the XP box to the Linux box
> > Smbmount //oliver/itunes /usr/local/iTunes
> > And setting the parameter in the web interface to that path.
> > This too crashes slimserver when I hit scan.
> >
> > I get the following when I run it from manually. I know the file lock
> looks
> > obvious but nothing else has that file open...
> >
> > [root@oliver slimserver]# perl slimserver.pl --d_scan --d_itunes
> > 2004-07-31 20:04:06.4727 canUseiTunesLibrary().
> > 2004-07-31 20:04:06.4740 findMusicLibraryFile().
> > 2004-07-31 20:04:06.4764 itunes: found path via config file at:
> > /usr/local/iTunes
> > 2004-07-31 20:04:06.4771 itunes: set iTunes library to
> > itunes_library_music_path value of: /usr/local/mp3
> > 2004-07-31 20:04:06.4776 using itunes library: 1
> > 2004-07-31 20:04:06.5197 canUseiTunesLibrary().
> > 2004-07-31 20:04:06.5207 using itunes library: 1
> > 2004-07-31 20:04:13.6487 canUseiTunesLibrary().
> > 2004-07-31 20:04:13.6501 using itunes library: 1
> > 2004-07-31 20:04:13.7226 canUseiTunesLibrary().
> > 2004-07-31 20:04:13.7237 using itunes library: 1
> > 2004-07-31 20:04:19.4367 canUseiTunesLibrary().
> > 2004-07-31 20:04:26.8853 canUseiTunesLibrary().
> > 2004-07-31 20:04:26.8886 canUseiTunesLibrary().
> > 2004-07-31 20:04:26.8889 using itunes library: 1
> > 2004-07-31 20:04:26.8893 canUseiTunesLibrary().
> > 2004-07-31 20:04:26.8896 using itunes library: 1
> > 2004-07-31 20:04:26.8898 startScan: iTunes file: /usr/local/iTunes
> > 2004-07-31 20:04:26.8904 canUseiTunesLibrary().
> > 2004-07-31 20:04:26.8907 using itunes library: 1
> > 2004-07-31 20:04:27.0472 Got file lock on iTunes Library
> > couldn't read itunes library! at
> /usr/local/slimserver//Slim/Music/iTunes.pm
> > line 488.
> >
> >
> > Any suggestions?
>
> double check your permissions on the xml file. the server runs automatically
> as
> user slimserver, group slimserver so the xml will need to be readable by
> that
> user, as well as the one you are using when you run the server manually.
> -kdf
>