Bug 1085 - Slimserver daemon fails to start in FC3
: Slimserver daemon fails to start in FC3
Status: CLOSED REMIND
Product: Logitech Media Server
Classification: Unclassified
Component: Database
: 6.0.0
: PC RedHat Linux
: P2 major (vote)
: ---
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-03-14 14:34 UTC by Patrick Dixon
Modified: 2008-12-15 13:37 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Dixon 2005-03-14 14:34:41 UTC
Slimserver V6.0b1
Fedora Core 3

On boot, slimserver carshes out with log file error:
"DBI connect('dbname=/root/.slimserversql.db','',...) failed: unable to open
database file(1) at dbdimp.c line 94 at
/usr/local/slimserver//Slim/DataStores/DBI/DataModel.pm line 106"
Comment 1 Dan Sully 2005-03-14 16:59:19 UTC
Patrick - this looks like a permission problem. Are you running the server as root?

I just installed FC3, and am having no issues with SlimServer
Comment 2 Dan Sully 2005-03-14 23:07:05 UTC
Patrick - can you give this a try with the latest nightly?

I'm having no problems running SlimServer on FC3.

Thanks.
Comment 3 Patrick Dixon 2005-03-16 05:08:17 UTC
I am running the server as root: /etc/init.d/slimserver start
It also fails on boot into runlevel 5, before any logins are enabled.
I have downloaded the 14/3/05 nightly, and the problem persists.

I assume the problems is whatever is causing the "//" ?
Comment 4 Dan Sully 2005-03-17 16:01:13 UTC
No - the // shouldn't have any effect. The filesystem (or the shell) will just
resolve that to one slash. Try:

ls -l ///tmp
Comment 5 Patrick Dixon 2005-03-18 01:04:43 UTC
You're correct (of course),
"ls -l /usr/local/slimserver//Slim/DataStores/DBI/DataModel.pm" works fine.

DataModel.pm line 106 looks like it's trying to open the dB, so if it's a
permissions problem where should I look?

Running as root, "perl -w /usr/local/slimserver/slimserver.pl" works fine,
whereas "/etc/init.d/slimserver start" doesn't (it says [OK] - but it isn't). 
So what's the difference?
Comment 6 Patrick Dixon 2005-03-18 04:42:53 UTC
OK - I'm getting somewhere with this:

I've done "chown -R slimserver:slimserver /usr/local/slimserver" to get rid of
various files owned by "1000" and "root" (didn't solve it).

.slimserver.db
.silmserversql.db
have been installed in /root on my machine, owned by root with permissions 644.
/root has permissions set 750.

"chmod 777 /root/" enables root to start the slimserver daemon - but having
/root set with 777 permissions doesn't seem ideal.

So where should .slim*.db go, and what ownership/permissions are required for
the directory/files?
Comment 7 Patrick Dixon 2005-03-18 07:20:58 UTC
Permissions problem also with

/root/usr/local/squeezebox/....

which chmod -R 777 /root/usr/local/squeezebox resolves.

Seems like these are just getting installed in the wrong place?
Comment 8 Dan Sully 2005-03-30 13:34:52 UTC
Patrick - where are we with this? Is SlimServer running for you now, but still
have lingering permissions problems?
Comment 9 Dan Sully 2005-04-07 16:45:43 UTC
Patrick - from your list comments, it sounds like you're up and running on FC3.

Please reopen if that is not the case.

Thanks.
Comment 10 James Richardson 2008-12-15 13:37:01 UTC
Closing forgotten bug