PDA

View Full Version : Server dies



Chris
2004-05-03, 10:24
Hi,

I've been downloading the latest nightly builds for my Fedora Core 1 box,
it installs and runs fine.

For the past couple of days, with the past couple of builds, I find the
service keeps dying after a few minutes - even without playing anything.
The log shows nothing.

This was over a period of about 5 minutes below - nobody accessed the Web
interface, and there isn't a Squeezebox connected (it's wrapped up for my
birthday next week :-) )

[root@Kylie tmp]# service slimserver start
Starting SlimServer: [ OK ]

[root@Kylie tmp]# service slimserver status
slimserver.pl (pid 9712) is running...

[root@Kylie tmp]# more slimserver.log

[root@Kylie tmp]# service slimserver status
slimserver.pl (pid 9712) is running...

[root@Kylie tmp]# more slimserver.log

[root@Kylie tmp]# service slimserver status
slimserver.pl is stopped

[root@Kylie tmp]# more slimserver.log

Is there anything I can do to debug things?

I assume the file slimserver-2004_05_03-1.noarch.rpm is the appropriate one
I should be installing?

Thanks,
Chris.

kdf
2004-05-03, 10:36
well, first off, its not always teh best idea to be logged in as root all the
time. Especially if this machine is connected to the 'net.

However, beyond that, there are a few things. As you do log in as root, its
possible that you have inadvertently done something that would take on root
control of a slimserver file. This would cause slimserver to fail due to an
inability to write/read a file.

Try running the server manually:
/usr/local/slimserver.pl and see what happens. This bypasses much of the
default command line and will run the server as root (since you are loggged in
as root). You should also see a message in your terminal if it dies at any point.

If that works, then slimserver itself is fine. Then you have to look at
permission problems. Try doing the following:
cd /usr/local
chown -R slimserver:slimserver slimserver
rm /tmp/slimserver.log

try running the service again.

if that still fails try this from the command line:
/usr/local/slimserver/slimserver.pl --prefsfile=/etc/slimserver.conf
--logfile=/tmp/slimserver.log


-kdf


Quoting Chris <write (AT) tochris (DOT) com>:
>
> Is there anything I can do to debug things?
>
> I assume the file slimserver-2004_05_03-1.noarch.rpm is the appropriate one
> I should be installing?
>
> Thanks,
> Chris.
>
>

Chris
2004-05-03, 11:23
>well, first off, its not always teh best idea to be logged in as root all the
>time. Especially if this machine is connected to the 'net.

It only accepts root connections from local machines - but thanks :-)

>However, beyond that, there are a few things. As you do log in as root, its
>possible that you have inadvertently done something that would take on root
>control of a slimserver file. This would cause slimserver to fail due to an
>inability to write/read a file.
>
>Try running the server manually:
>/usr/local/slimserver.pl and see what happens. This bypasses much of the
>default command line and will run the server as root (since you are loggged in
>as root). You should also see a message in your terminal if it dies at
>any point.

In the end I uninstalled the latest nightly rpm and tried a fresh install.
I had to go back to the slimserver-5.1.5-1.noarch.rpm to get the install to
work (the nightly gives an error as a fresh install). Once that was up and
running, I upgraded to the latest nightly and it seems to be fine now.

Thanks very much for the debugging tips (+quick response).. I'll keep my
eye on it and see how stable it is now.

Cheers,
Chris.

Victor Brilon
2004-05-03, 16:37
Chris wrote:
> I had to go back to the slimserver-5.1.5-1.noarch.rpm to get
> the install to work (the nightly gives an error as a fresh install).

Any chance you wrote down the error? I'd like to track this down.

Victor

Chris
2004-05-04, 23:07
>
>Chris wrote:
> > I had to go back to the slimserver-5.1.5-1.noarch.rpm to get
> > the install to work (the nightly gives an error as a fresh install).
>
>Any chance you wrote down the error? I'd like to track this down.
>
>Victor

It doesn't create the user/group (someone just mentioned this in another
thread actually) - I installed the version from the site (which did), and
then upgraded to the nightly.

Cheers,
Chris.