Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Senior Member
    Join Date
    Apr 2005
    Location
    Brooklyn, NY USA
    Posts
    126

    Help! 6.5.1 Kills Fully Working Server Install on Gentoo

    Tried to get this going two different ways:

    1. New Install
    2. Overlay over the 6.5.0 install

    This is what I see when I run ./slimserver.pl:

    2007-01-19 20:05:19.1228 ERROR: Cannot write to preferences file /root/slimserver.pref, any changes made will not be preserved for the next startup of the server

    2007-01-19 20:05:19.1240 Use of uninitialized value in negation (-) at /usr/local/slimserver/Slim/Utils/Misc.pm line 1148.
    2007-01-19 20:05:19.1254 Use of uninitialized value in join or string at /usr/lib/perl5/5.8.8/File/Spec/Unix.pm line 81.
    2007-01-19 20:05:19.1256 Use of uninitialized value in join or string at /usr/lib/perl5/5.8.8/File/Spec/Unix.pm line 81.
    2007-01-19 20:05:19.3706 Use of uninitialized value in join or string at /usr/lib/perl5/5.8.8/File/Spec/Unix.pm line 81.
    2007-01-19 20:05:19.3710 Use of uninitialized value in join or string at /usr/lib/perl5/5.8.8/File/Spec/Unix.pm line 81.
    2007-01-19 20:05:19.3712 Use of uninitialized value in join or string at /usr/lib/perl5/5.8.8/File/Spec/Unix.pm line 81.
    2007-01-19 20:05:19.3714 Use of uninitialized value in join or string at /usr/lib/perl5/5.8.8/File/Spec/Unix.pm line 81.
    2007-01-19 20:05:19.3715 Use of uninitialized value in join or string at /usr/lib/perl5/5.8.8/File/Spec/Unix.pm line 81.
    mkdir /MySQL: Permission denied at /usr/local/slimserver/Slim/Utils/MySQLHelper.pm line 156
    2007-01-19 20:05:19.3749 Use of uninitialized value in sprintf at /usr/local/slimserver/Slim/Utils/MySQLHelper.pm line 470.


    Any all help is greatly appreciated!

    *Bradley

  2. #2
    NOT a Slim Devices Employee kdf's Avatar
    Join Date
    Apr 2005
    Posts
    9,493

    Help! 6.5.1 Kills Fully Working Server Install on Gentoo

    seems obviously a permissions problem. you should consider creating a
    slimserver user and running slimserver.pl as that user.

    -kdf


  3. #3
    Senior Member
    Join Date
    Apr 2005
    Location
    Brooklyn, NY USA
    Posts
    126
    Quote Originally Posted by kdf View Post
    seems obviously a permissions problem. you should consider creating a
    slimserver user and running slimserver.pl as that user.

    -kdf
    It's NOT so Obvious and NOT so simple apparently

    I have a slimserver user and slimserver group. I've done a chown -R on everything slimserver related.

    I still get the same error.

    I even tried installing the Ebuild of Slimserver-6.5.1 through Portage. Still get the same error.

    I can still get my old Slimserver 6.5.0 build up and running. Thus I say, the Slimserver 6.5.1 build is BROKEN -- because SOMETHING has changed between versions.

    Can ANYONE Please Help me? Thanks in advance

    *Bradley

  4. #4
    NOT a Slim Devices Employee kdf's Avatar
    Join Date
    Apr 2005
    Posts
    9,493

    Re: Help! 6.5.1 Kills Fully Working Server Install onGentoo

    On 19-Jan-07, at 6:55 PM, Bradley wrote:

    >
    > kdf;172149 Wrote:
    >> seems obviously a permissions problem. you should consider creating a
    >> slimserver user and running slimserver.pl as that user.
    >>
    >> -kdf

    >
    > It's NOT so Obvious and NOT so simple apparently
    >

    good luck then

    Maybe ask a gentoo forum why they have a permission denied error in the
    OS when it has nothing to do with permissions.

    cheers
    kdf


  5. #5
    formerly known as Fletch
    Join Date
    May 2005
    Posts
    2,260
    Quote Originally Posted by Bradley View Post
    2007-01-19 20:05:19.1228 ERROR: Cannot write to preferences file /root/slimserver.pref, any changes made will not be preserved for the next startup of the server
    This will happen if you've run slimserver (or scanner.pl) as root.

  6. #6
    Senior Member snarlydwarf's Avatar
    Join Date
    Jul 2005
    Location
    Oregon
    Posts
    3,674
    Quote Originally Posted by Bradley View Post
    It's NOT so Obvious and NOT so simple apparently

    I have a slimserver user and slimserver group. I've done a chown -R on everything slimserver related.
    Define "everything slimserver related"...

    Code:
    2007-01-19 20:05:19.1228 ERROR: Cannot write to preferences file /root/slimserver.pref, any changes made will not be preserved for the next startup of the server
    Which says you are writing to /root/slimserv.pref for your config files.... Which most likely means your home directory is "/root"... are you starting Slimserver as root?

    I even tried installing the Ebuild of Slimserver-6.5.1 through Portage. Still get the same error.
    No idea what that means -- I use the .deb on debian...
    I can still get my old Slimserver 6.5.0 build up and running. Thus I say, the Slimserver 6.5.1 build is BROKEN -- because SOMETHING has changed between versions.
    How are you starting the 6.5.0 version? Surely you are not starting it as root from a shell...

  7. #7
    Senior Member
    Join Date
    Dec 2006
    Location
    Boulder, CO
    Posts
    692

    SlimServer 6.5.1 works on my Gentoo system

    I just installed SlimServer 6.5.1 via "emerge slimserver" on my Gentoo Linux system and it works fine. All I had to do was copy in some additional third-party plugins that weren't in the new /opt/slimserver/Plugins directory. I did not change any permissions or ownership of any files in the /opt/slimserver directory.

    I start SlimServer via "service slimserver start" as root. The /etc/init.d/slimserver script runs SlimServer as userid and groupid "slimserver", and uses the preferences file /etc/slimserver.prefs; you should try this instead of doing a ./slimserver.pl in the /opt/slimserver directory.

    Try running "service slimserver start" as root and see if it fixes your startup problem. If you do this, check to make sure your /etc/slimserver.prefs file has the preferences carried over from the 6.5.0 version.

    System info:

    SlimServer Version: 6.5.1 - 11206 - Linux - EN - utf8
    Server IP address: 192.168.0.6
    Perl Version: 5.8.8 i686-linux
    MySQL Version: 5.0.21-standard
    Last edited by Ron Olsen; 2007-01-19 at 20:52.

  8. #8
    Senior Member
    Join Date
    Apr 2005
    Location
    Brooklyn, NY USA
    Posts
    126
    My old 6.5.0 install works fine. Maybe that's the problem. Is the 6.5.1 script expecting to create directories? They're already all there based on having a 6.5.0 install, as is a full non-slimserver install of MySQL.

    As for the permissions issue, all the /opt/slimserver or /usr/local/slimserver or the /var/cache/slimserver or the /var/log/slimserver directories/files are chowned to slimserver:slimserver.

    The user slimserver, however does not have a home directory.

    When I normally start slimserver, I use the /etc/init.d/slimserver start command -- which is run as root but then switches to the slimserver user using the --user parm in the script.

    The reason I was running ./slimserver.pl is to see the error output because running the /etc/init.d/slimserver start command displays nothing.

    I did a search on the forums and see that there are several other users that have had the same problem on the pre-release version of 6.5.1 since December. I do not see a resolution to their issues either and they stem from the same problem.

    I took a look at the MySQLHelper.pm script (where the error is happening) and don't see anything significantly different about 6.5.0 and 6.5.1 in there.

    I'm willing to provide more debugging information. I just need someone to specify more helpful info, so I can help debug. For example: What directory is it trying to create? Perhaps I can manually create it and set the correct permissions.

    Please try to help me.

    Thank you,

    *Bradley

  9. #9
    NOT a Slim Devices Employee kdf's Avatar
    Join Date
    Apr 2005
    Posts
    9,493

    Re: Help! 6.5.1 Kills Fully Working Server Install onGentoo

    On 19-Jan-07, at 9:00 PM, Bradley wrote:
    >
    > I'm willing to provide more debugging information. I just need someone
    > to specify more helpful info, so I can help debug. For example: What
    > directory is it trying to create? Perhaps I can manually create it and
    > set the correct permissions.
    >
    > Please try to help me.
    >

    If you'll refrain from barking at the attempt, I'll be willing to
    suggest a next step.

    slimserver.pl --d_mysql --d_startup

    please try to avoid running it as root, so that it will not try to
    create/access files in /root.

    If you have been using an init.d script, you have the option of
    pointing slimserver to that usual prefs file:

    ../slimserver.pl --d_mysql --d_startup --prefsfile /etc/slimserver.pref

    edit to suit the location for your system, of course.

    -kdf


  10. #10
    Senior Member
    Join Date
    Apr 2005
    Location
    Brooklyn, NY USA
    Posts
    126

    Here's what I did to isolate the problem and get 6.5.1 running (with a bandaid)

    The error originally described at the start of this thread dealt with an error happening in MySQLHelper.pm. I briefly eyeballed the script and really saw nothing apparent in the 6.5.0 vs. the 6.5.1 versions, so I copied the MySQLHelper.pm script from the 6.5.0 release to the proper place in the 6.5.1 release. That eliminated the permissions problems!

    So, pretty pretty please: SD/Logitech Devs please look into what's going on with the logic in THAT script between 6.5.0 and 6.5.1.

    That'll probably reveal the ultimate problem and get a solid fix for me and anyone else struggling with this or a similar problem.

    For now, the "bandaid" I discovered at least is allowing me to run under 6.5.1.

    If anyone has any further insight, please add to this thread.

    *Bradley

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •