PDA

View Full Version : slimserver 5.4.0 installation problem on solaris x86



Jason Holtzapple
2005-02-10, 19:38
--- nico-kw-slim.950fa0 (AT) gianniotis (DOT) org wrote:

> PS: Do I need to run slimserver.pl as root?

No, your current setup should be ok, as long as user slimserver can
write to its home directory .

> PPS: My perl is v5.8.4

Should work fine.

> PPS: I think there is something wierd going on with cachedir and the
> creation of dynamic web content? For example, when I truss
> slimserver.pl, it appears to be creating a subdirectory hierarchy
> under /home/slimserver//home/slimserver/HTML/Default/... (note the
> double //). I'm not sure I understand if this is normal or part of the
> problem.

This looks like a problem. What is cachedir set to in $HOME/.slimserver?
Try changing it to /home/slimserver/Cache and restarting the server.
If you still have trouble try running the server without the --daemon
flag and see if you get any interesting messages to the terminal.

nico-kw-slim.950fa0@gianniotis.org
2005-02-10, 22:08
Jason Holtzapple writes:

> --- nico-kw-slim.950fa0 (AT) gianniotis (DOT) org wrote:
>> PS: Do I need to run slimserver.pl as root?

> No, your current setup should be ok, as long as user slimserver
> can write to its home directory .

User slimserver can write to its home directory, I have verified this.

>> PPS: I think there is something wierd going on with cachedir
>> and the creation of dynamic web content? For example, when I
>> truss slimserver.pl, it appears to be creating a subdirectory
>> hierarchy under
>> /home/slimserver//home/slimserver/HTML/Default/... (note the
>> double //). I'm not sure I understand if this is normal or part
>> of the problem.

> This looks like a problem. What is cachedir set to in
> $HOME/.slimserver?

cachedir = /home/slimserver

> Try changing it to /home/slimserver/Cache and restarting the
> server.

cachedir = /home/slimserver/Cache

Same results. Truss again shows the following kinds of things
happening:

[...]
stat64("/home/slimserver/Cache//home/slimserver/HTML/Default", 0x08137AA0) Err#2 ENOENT
stat64("/home/slimserver/Cache//home/slimserver/HTML", 0x08137AA0) Err#2 ENOENT
stat64("/home/slimserver/Cache//home/slimserver/HTML", 0x08137AA0) Err#2 ENOENT
stat64("/home/slimserver/Cache//home/slimserver", 0x08137AA0) Err#2 ENOENT
stat64("/home/slimserver/Cache//home/slimserver", 0x08137AA0) Err#2 ENOENT
stat64("/home/slimserver/Cache//home", 0x08137AA0) Err#2 ENOENT
stat64("/home/slimserver/Cache//home", 0x08137AA0) Err#2 ENOENT
stat64("/home/slimserver/Cache", 0x08137AA0) Err#2 ENOENT
stat64("/home/slimserver/Cache", 0x08137AA0) Err#2 ENOENT
stat64("/home/slimserver", 0x08137AA0) = 0
mkdir("/home/slimserver/Cache", 0777) = 0
mkdir("/home/slimserver/Cache//home", 0777) = 0
mkdir("/home/slimserver/Cache//home/slimserver", 0777) = 0
mkdir("/home/slimserver/Cache//home/slimserver/HTML", 0777) = 0
mkdir("/home/slimserver/Cache//home/slimserver/HTML/Default", 0777) = 0
stat64("/home/slimserver/Cache//home/slimserver/HTML/EN", 0x08137AA0) Err#2 ENOENT
stat64("/home/slimserver/Cache//home/slimserver/HTML", 0x08137AA0) = 0
mkdir("/home/slimserver/Cache//home/slimserver/HTML/EN", 0777) = 0
[...]

Same garbled response returned to the browser.

Here's a listing of what gets created under /home/slimserver/Cache:

kamakura[slimserver]: find /home/slimserver/Cache -ls
218002 1 drwxr-xr-x 3 slimserver staff 512 Feb 11 16:01 /home/slimserver/Cache
235703 1 drwxr-xr-x 3 slimserver staff 512 Feb 11 16:01 /home/slimserver/Cache/home
241534 1 drwxr-xr-x 3 slimserver staff 512 Feb 11 16:01 /home/slimserver/Cache/home/slimserver
247550 1 drwxr-xr-x 4 slimserver staff 512 Feb 11 16:01 /home/slimserver/Cache/home/slimserver/HTML
253403 1 drwxr-xr-x 2 slimserver staff 512 Feb 11 16:01 /home/slimserver/Cache/home/slimserver/HTML/Default
253404 4 -rw------- 1 slimserver staff 3658 Nov 16 06:59 /home/slimserver/Cache/home/slimserver/HTML/Default/homeplayer_list.html
253405 5 -rw------- 1 slimserver staff 4628 Nov 16 06:59 /home/slimserver/Cache/home/slimserver/HTML/Default/index.html
259354 1 drwxr-xr-x 2 slimserver staff 512 Feb 11 16:01 /home/slimserver/Cache/home/slimserver/HTML/EN
259355 2 -rw------- 1 slimserver staff 1622 Nov 16 06:59 /home/slimserver/Cache/home/slimserver/HTML/EN/include.html
259356 3 -rw------- 1 slimserver staff 2402 Nov 16 06:59 /home/slimserver/Cache/home/slimserver/HTML/EN/select_option.html

> If you still have trouble try running the server without the
> --daemon flag and see if you get any interesting messages to the
> terminal.

Running without --daemon... No messages coming to the terminal. Here's
the transcript:

kamakura[slimserver]: id
uid=1004(slimserver) gid=10(staff)

kamakura[slimserver]: pwd
/home/slimserver

kamakura[slimserver]: ./slimserver.pl
2005-02-11 16:01:00.4753 Your MP3 directory needs to be configured. Please open your web browser,
2005-02-11 16:01:00.4794 go to the following URL, and click on the "Server Settings" link.

2005-02-11 16:01:00.4836 The URL to access the SlimServer is now:
http://kamakura:9000/

TIA,
Nico

Jason Holtzapple
2005-02-11, 07:20
nico-kw-slim.950fa0 (AT) gianniotis (DOT) org wrote:
> Running without --daemon... No messages coming to the terminal. Here's
> the transcript:
>
> kamakura[slimserver]: id
> uid=1004(slimserver) gid=10(staff)
>
> kamakura[slimserver]: pwd
> /home/slimserver
>
> kamakura[slimserver]: ./slimserver.pl
> 2005-02-11 16:01:00.4753 Your MP3 directory needs to be configured. Please open your web browser,
> 2005-02-11 16:01:00.4794 go to the following URL, and click on the "Server Settings" link.
>
> 2005-02-11 16:01:00.4836 The URL to access the SlimServer is now:
> http://kamakura:9000/

Here's one possibility:
../slimserver.pl will use /usr/bin/perl. On Solaris 8 that's perl 5.003 if I recall
and slimserver needs 5.6+

Have you edited slimserver.pl to invoke your newer perl? You can do that or something
like '/usr/local/bin/perl slimserver.pl'

Although there is something strange going on with your Cache directory though.

nico-kw-slim.950fa0@gianniotis.org
2005-02-11, 14:10
Jason Holtzapple writes:

> Here's one possibility: ./slimserver.pl will use /usr/bin/perl.
> On Solaris 8 that's perl 5.003 if I recall and slimserver needs
> 5.6+

> Have you edited slimserver.pl to invoke your newer perl? You can
> do that or something like '/usr/local/bin/perl slimserver.pl'

I've actually replaced the perl 5.003 that comes with Solaris 8 with a
newer version:

kamakura[nico]: ls -als /bin/perl
2 lrwxrwxrwx 1 root other 19 Mar 29 2002 /bin/perl -> /usr/local/bin/perl

kamakura[nico]: /usr/local/bin/perl -v

This is perl, v5.8.4 built for i86pc-solaris-64int

> Although there is something strange going on with your Cache
> directory though.

Any pointers where I can look in the code?

Also, I do a lot of perl development myself on this machine... I'm
wondering if there could be a conflict between modules I have
installed for myself vs those that slimserver uses... Could this
happen? Which 3rdpty modules does slimserver use?

Cheers,
Nico

Jason Holtzapple
2005-02-11, 14:30
nico-kw-slim.950fa0 (AT) gianniotis (DOT) org wrote:
> This is perl, v5.8.4 built for i86pc-solaris-64int
>
> > Although there is something strange going on with your Cache
> > directory though.
>
> Any pointers where I can look in the code?

The TemplateToolkit/cachedir stuff starts at around line 1350 of Web/HTTP.pm,
but I'm not too familiar with that part of the code.

> Also, I do a lot of perl development myself on this machine... I'm
> wondering if there could be a conflict between modules I have
> installed for myself vs those that slimserver uses... Could this
> happen? Which 3rdpty modules does slimserver use?

It's possible. There used to be a dependency on Time::HiRes but that's
included in perl 5.8. You could check the CPAN directory in the main
server directory to see if you have any conflicts.

I used to use slimserver on Solaris 9 Sparc (bundled perl) without any
issues ... but this was a long time ago before slimserver started using
the Template Toolkit.