PDA

View Full Version : Problems starting SlimServer



max.spicer
2005-04-21, 10:26
I run SlimServer 6.01 on Debian Sarge. It used to start up fine, but at some point stopped starting at system startup. No message is logged to the log file, but if I watch the console (difficult as the server is normally headless) I see a message saying that SlimServer failed to change to group slimserver. If I wait until the server has started and then manually start slimserver, it starts perfectly. Can anyone offer any suggestions as I'm a bit stumped!

I've attached my /etc/init.d/slimserver script as slimserver.txt
My /etc/default/slimserver file is attached as slimserverdefault.txt

The slimserver user and group exists.

max.spicer
2005-04-27, 11:31
I'm still having this problem and would appreciate any help in finding a solution. When slimserver tries to start at system startup, it fails with the following error message:

"Unable to set effictive group(s) to slimserver (1001) is: 1001:
"

Note the carriage return at the end of that output, as if something is missing.

However, if I start it manually (by calling "/etc/init.d/slimserver start" as root) immediately after the system starts, it works fine. Slimserver is almost the last thing to start at bootup, so this is puzzling! The only thing that runs after slimserver is S99stop-bootlogd. I run slimserver as S99slimserver in order to make it come after the S99rmnologin script (an act of desperation that yielded nothing).

Any suggestions appreciated, no matter how vague!

mherger
2005-04-27, 11:42
On Wed, 27 Apr 2005 20:31:38 +0200, max.spicer
<max.spicer.1o5u0c (AT) no-mx (DOT) forums.slimdevices.com> wrote:

> I'm still having this problem and would appreciate any help in finding a
> solution. When slimserver tries to start at system startup, it fails
> with the following error message:
>
> "Unable to set effictive group(s) to slimserver (1001) is: 1001:
> "
>
> Note the carriage return at the end of that output, as if something is
> missing.

Does your user slimserver exist (grep slimserver /etc/passwd)? Does it
have read/write access to /etc/slimserver.conf and
/etc/sysconfig/slimserver? If the very first time slimserver was started
as root, there might be permission problems with these files.

--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
StringEditor Plugin (http://www.herger.net/slim/)

max.spicer
2005-04-27, 11:59
Does your user slimserver exist (grep slimserver /etc/passwd)? Does it
have read/write access to /etc/slimserver.conf and
/etc/sysconfig/slimserver? If the very first time slimserver was started
as root, there might be permission problems with these files.
Slimserver runs fine when I manually start it by calling /etc/init.d/slimserver start. It does the same user and group changing then (I think!) as when it is run at startup, meaning that the user and group does exist and the file permissions are fine (again, I think!).

To be paranoid, I've checked /etc/passwd and /etc/group and the user and group are in there.

mherger
2005-04-27, 12:04
[..]
> To be paranoid, I've checked /etc/passwd and /etc/group and the user
> and group are in there.

Have you also checked permissions on the two files I mentioned? slimserver
should be owner of /etc/slimserver.pref.

--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
StringEditor Plugin (http://www.herger.net/slim/)

max.spicer
2005-04-27, 12:11
Have you also checked permissions on the two files I mentioned? slimserver
should be owner of /etc/slimserver.pref.
# ls -l slimserver.conf
-rw-r--r-- 1 slimserver slimserver 16397 Apr 27 19:58 slimserver.conf

/etc/sysconfig/slimserver does not exist (this is Debian), but:
# ls -l /etc/default/slimserver
-rw-r--r-- 1 root root 179 Mar 22 19:35 /etc/default/slimserver

It shouldn't need write access to this file.

mherger
2005-04-27, 12:26
> To be paranoid, I've checked /etc/passwd and /etc/group and the user
> and group are in there.

....and do the numerical IDs correspond? Just a thought... I'm sure it's a
permission issue ;-)

What about those two other files/folders /var/log/slimserver.log
/var/cache/slimserver?

--

Michael

-----------------------------------------------------------
Help translate SlimServer by using the
StringEditor Plugin (http://www.herger.net/slim/)

max.spicer
2005-04-27, 12:40
....and do the numerical IDs correspond? Just a thought... I'm sure it's a
permission issue ;-)

What about those two other files/folders /var/log/slimserver.log
/var/cache/slimserver?
dante:/etc# ls -l /var/cache/slimserver/
total 4
drwxr-xr-x 3 slimserver root 4096 Mar 22 19:19 usr
dante:/etc# ls -l /var/log/slimserver.log
-rw-r--r-- 1 slimserver root 1410369 Apr 25 19:11 /var/log/slimserver.log

They aren't group writable, but that shouldn't matter, should it? I don't understand why permissions would make a difference. Root is starting slimserver at startup and I'm running as root (su -) when I start it manually.

max.spicer
2005-05-07, 02:46
I'm still having this problem and would appreciate any help in finding a solution. When slimserver tries to start at system startup, it fails with the following error message:

"Unable to set effective group(s) to slimserver (1001) is: 1001:
"

Note the carriage return at the end of that output, as if something is missing.

However, if I start it manually (by calling "/etc/init.d/slimserver start" as root) immediately after the system starts, it works fine. Slimserver is almost the last thing to start at bootup, so this is puzzling! The only thing that runs after slimserver is S99stop-bootlogd. I run slimserver as S99slimserver in order to make it come after the S99rmnologin script (an act of desperation that yielded nothing).

Any suggestions appreciated, no matter how vague!
Now I've got a real squeezebox, this is becoming far more of a problem. The error I'm getting is being generated by slimserver.pl at line 974 (rev 3144). Could someone give pointers about exactly what would be causing the error and what it's trying to say - from my output, it looks like some bits are missing. I've checked and double checked permissions, and it's starting as root anyway, so I'm stuck!