Re: [slim] Unable to run slimserver 6.0.0 on linux as user other than root
Hi Michael, I'm running slimserver on a Buffalo Linkstation. I downloaded the complete .tar.gz archive and expanded it in /usr/local/slimserver directory so I did not use any rpm. My call script uses --daemon and --user slimserver etc... (I created that user with its home directory at /home/slimserver). This used to work just fine for V5.4.x where all user files would get created in /home/slimserver but now it seems that --user doesn't completely work (seems like some paths are hardcoded maybe?) Tonight I'll try looking at the code that generates the error to see if I can find anything... Thanks, Daniel On Tue, 29 Mar 2005 08:07:11 +0200, Michael Herger [EMAIL PROTECTED] wrote: Daniel What linux are you using? How did you install? On Mon, 28 Mar 2005 23:21:14 +, Daniel Born [EMAIL PROTECTED] wrote: Hi, If I try to have the slimserver run as another user (slimserver), I get this message in log file: DBI connect('dbname=/root/.slimserversql.db','',...) failed: unable to open database file(1) at dbdimp.c line 94 at /usr/local/slimserver6/Slim/DataStores/DBI/DataModel.pm line 106 Since my user slimserver has its home directory at /home/slimserver, it's not surprising that it can't open the file in the root's home directory. If I use user root, then it works fine. Thanks, Daniel ___ Discuss mailing list Discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss ___ Discuss mailing list Discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
Re: [slim] Unable to run slimserver 6.0.0 on linux as user other than root
That's the thing, I haven't run it as root. As a matter of fact, I just cleared out *everything* pertaining to slimserver on my linkstation and reinstalled *everything* back from the official 6.0.0 release. Then I used my startup script with the --user slimserver in it and it still does the exact same thing... Thankfully it seems that setting the --cachedir to the directory I wanted did the trick though. I still think there's a bug in the code. Thanks, Daniel On Tue, 29 Mar 2005 15:20:43 +0200, Michael Herger [EMAIL PROTECTED] wrote: On Tue, 29 Mar 2005 12:55:22 +, Daniel Born [EMAIL PROTECTED] wrote: Hi Michael, I'm running slimserver on a Buffalo Linkstation. I downloaded the complete .tar.gz archive and expanded it in /usr/local/slimserver directory so I did not use any rpm. My call script uses --daemon and --user slimserver etc... (I created that user with its home directory at /home/slimserver). SlimServer tries to access its database in the /root/ folder - where the user slimserver does not have access to. I guess the first time you ran slimserver you did it as root. Try removing /etc/slimserver* as well as ~/.slimserver.prefs. Then start slimserver as user slimserver. This should create a new .slimserver.prefs file. Or use the --cachedir option. This used to work just fine for V5.4.x where all user files would get created in /home/slimserver but now it seems that --user doesn't completely work (seems like some paths are hardcoded maybe?) I guess it was configured when you (accidentally?) ran it as user root. Tonight I'll try looking at the code that generates the error to see if I can find anything... Have fun :-) Thanks, Daniel On Tue, 29 Mar 2005 08:07:11 +0200, Michael Herger [EMAIL PROTECTED] wrote: Daniel What linux are you using? How did you install? On Mon, 28 Mar 2005 23:21:14 +, Daniel Born [EMAIL PROTECTED] wrote: Hi, If I try to have the slimserver run as another user (slimserver), I get this message in log file: DBI connect('dbname=/root/.slimserversql.db','',...) failed: unable to open database file(1) at dbdimp.c line 94 at /usr/local/slimserver6/Slim/DataStores/DBI/DataModel.pm line 106 Since my user slimserver has its home directory at /home/slimserver, it's not surprising that it can't open the file in the root's home directory. If I use user root, then it works fine. Thanks, Daniel ___ Discuss mailing list Discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss ___ Discuss mailing list Discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss ___ Discuss mailing list Discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
Re: [slim] Unable to run slimserver 6.0.0 on linux as user other than root
Another thing, after clearing out everything and re-installing I got this message in the log file (over and over): Couldn't write preferences file out /etc/slimserver6.conf It appears that this file was created by slimserver under user root... After a chown slimserver:slimserver, things were able to be saved in the prefs file... What do I need to do to have this run as user slimserver?? I have everything under /usr/local/slimserver6 as user slimserver:slimserver, my startup script uses --user slimserver and still... what am I missing? Thanks, Daniel On Tue, 29 Mar 2005 22:21:03 +, Daniel Born [EMAIL PROTECTED] wrote: That's the thing, I haven't run it as root. As a matter of fact, I just cleared out *everything* pertaining to slimserver on my linkstation and reinstalled *everything* back from the official 6.0.0 release. Then I used my startup script with the --user slimserver in it and it still does the exact same thing... Thankfully it seems that setting the --cachedir to the directory I wanted did the trick though. I still think there's a bug in the code. Thanks, Daniel On Tue, 29 Mar 2005 15:20:43 +0200, Michael Herger [EMAIL PROTECTED] wrote: On Tue, 29 Mar 2005 12:55:22 +, Daniel Born [EMAIL PROTECTED] wrote: Hi Michael, I'm running slimserver on a Buffalo Linkstation. I downloaded the complete .tar.gz archive and expanded it in /usr/local/slimserver directory so I did not use any rpm. My call script uses --daemon and --user slimserver etc... (I created that user with its home directory at /home/slimserver). SlimServer tries to access its database in the /root/ folder - where the user slimserver does not have access to. I guess the first time you ran slimserver you did it as root. Try removing /etc/slimserver* as well as ~/.slimserver.prefs. Then start slimserver as user slimserver. This should create a new .slimserver.prefs file. Or use the --cachedir option. This used to work just fine for V5.4.x where all user files would get created in /home/slimserver but now it seems that --user doesn't completely work (seems like some paths are hardcoded maybe?) I guess it was configured when you (accidentally?) ran it as user root. Tonight I'll try looking at the code that generates the error to see if I can find anything... Have fun :-) Thanks, Daniel On Tue, 29 Mar 2005 08:07:11 +0200, Michael Herger [EMAIL PROTECTED] wrote: Daniel What linux are you using? How did you install? On Mon, 28 Mar 2005 23:21:14 +, Daniel Born [EMAIL PROTECTED] wrote: Hi, If I try to have the slimserver run as another user (slimserver), I get this message in log file: DBI connect('dbname=/root/.slimserversql.db','',...) failed: unable to open database file(1) at dbdimp.c line 94 at /usr/local/slimserver6/Slim/DataStores/DBI/DataModel.pm line 106 Since my user slimserver has its home directory at /home/slimserver, it's not surprising that it can't open the file in the root's home directory. If I use user root, then it works fine. Thanks, Daniel ___ Discuss mailing list Discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss ___ Discuss mailing list Discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss ___ Discuss mailing list Discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss
Re: [slim] Unable to run slimserver 6.0.0 on linux as user other than root
Daniel What linux are you using? How did you install? On Mon, 28 Mar 2005 23:21:14 +, Daniel Born [EMAIL PROTECTED] wrote: Hi, If I try to have the slimserver run as another user (slimserver), I get this message in log file: DBI connect('dbname=/root/.slimserversql.db','',...) failed: unable to open database file(1) at dbdimp.c line 94 at /usr/local/slimserver6/Slim/DataStores/DBI/DataModel.pm line 106 Since my user slimserver has its home directory at /home/slimserver, it's not surprising that it can't open the file in the root's home directory. If I use user root, then it works fine. Thanks, Daniel ___ Discuss mailing list Discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss -- Michael --- Help translate SlimServer by using the StringEditor Plugin (http://www.herger.net/slim/) ___ Discuss mailing list Discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss