Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Noob Problem

  1. #1

    Noob Problems - Errors with 6.5.1 with Edgy Eft (ubuntu)

    Total Ubuntu Noob - I can't get slimserver to start on my edgy eft box. Can anyone tell me what's wrong?

    This is from the most recent nightly. 6.5.1

    :~$ sudo slimserver start

    2006-12-25 21:36:34.5690 ERROR: Cannot write to preferences file /home/chris/slimserver.pref, any changes made will not be preserved for the next startup of the server

    2006-12-25 21:36:34.5696 Use of uninitialized value in negation (-) at /usr/share/perl5/Slim/Utils/Misc.pm line 1148.
    2006-12-25 21:36:34.5716 Use of uninitialized value in join or string at /usr/share/perl/5.8/File/Spec/Unix.pm line 37.
    2006-12-25 21:36:34.5721 Use of uninitialized value in join or string at /usr/share/perl/5.8/File/Spec/Unix.pm line 37.
    2006-12-25 21:36:34.9717 Use of uninitialized value in join or string at /usr/share/perl/5.8/File/Spec/Unix.pm line 37.
    2006-12-25 21:36:34.9723 Use of uninitialized value in join or string at /usr/share/perl/5.8/File/Spec/Unix.pm line 37.
    2006-12-25 21:36:34.9728 Use of uninitialized value in join or string at /usr/share/perl/5.8/File/Spec/Unix.pm line 37.
    2006-12-25 21:36:34.9733 Use of uninitialized value in join or string at /usr/share/perl/5.8/File/Spec/Unix.pm line 37.
    2006-12-25 21:36:34.9737 Use of uninitialized value in join or string at /usr/share/perl/5.8/File/Spec/Unix.pm line 37.
    mkdir /MySQL: Permission denied at /usr/share/perl5/Slim/Utils/MySQLHelper.pm line 156
    2006-12-25 21:36:34.9827 Use of uninitialized value in sprintf at /usr/share/perl5/Slim/Utils/MySQLHelper.pm line 470.
    Last edited by thespaugh; 2006-12-25 at 22:49.

  2. #2
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    18,933

    Noob Problem

    > Can anyone tell me what's wrong?

    You've got a permissions issue: slimserver can't write to your folder. It
    seems to be pointing to your home folder, but the slimserver user does not
    have the right to do so.

    How did you install SlimServer?

    --

    Michael

    -----------------------------------------------------------------
    http://www.herger.net/SlimCD - your SlimServer on a CD
    http://www.herger.net/slim - AlbumReview, Biography, MusicInfoSCR

  3. #3
    Junior Member
    Join Date
    Dec 2006
    Posts
    5
    I too have this same issue. I am using Gentoo and originally used the eBuild in Portage for my install. This worked (and installs 6.5.0); however, I was having issues with it. It would not scan everything. Despite a long, careful re-tagging session, slimserver would still not find certain things. I decided to try the latest nightly.

    I removed the Portage installed version and extracted the .tar.gz to my /usr/local directory. I saw that the user/owner of everything was '999' so I changed it to root:root as per what the ebuild did:

    chown -R root:root *

    This changed the permissions. Despite this, I still get the message described above by thespaugh.

    I have searched for info/howto/etc on the forums & wiki for proper installation on a generic (i.e. non-rpm-based) linux system. Obviously I've missed something. Ideas?
    Last edited by DoubleA; 2006-12-26 at 08:16.

  4. #4
    Junior Member
    Join Date
    Dec 2006
    Posts
    5
    More info:

    I have also run ./Bin/build-perl-modules.pl. This appears to run ok, but I get the following:

    Downloading DBI-1.50.tar.gz to: /usr/local/slimserver
    Uncompressing..
    Configuring..
    /usr/bin/perl Makefile.PL

    I see you're using perl 5.008008 on x86_64-linux, okay.
    Remember to actually *read* the README file!
    Use 'make' to build the software (dmake or nmake on Windows).
    Then 'make test' to execute self tests.
    Then 'make install' to install the DBI and then delete this working
    directory before unpacking and building any DBD::* drivers.

    (Rest cut to save space).

    I have verified that I have 5.8.8 of perl and have ensured that /usr/bin/perl is 5.8.8. All the modules that build say:

    Library for <module> is OK!

  5. #5
    Junior Member
    Join Date
    Dec 2006
    Posts
    5
    Even more info:

    If I run as a user (not root) I get:

    061226 10:28:54 [ERROR] Error message file '/usr/local/slimserver/MySQL/errmsg.sys' had only 463 error messages,
    but it should contain at least 472 error messages.
    Check that the above file is the right version for this program!
    061226 10:28:54 [ERROR] Aborting

  6. #6

    Permissions?

    Quote Originally Posted by Michael Herger View Post
    >
    You've got a permissions issue: slimserver can't write to your folder. It
    seems to be pointing to your home folder, but the slimserver user does not
    have the right to do so.

    How did you install SlimServer?
    --
    This is how I install:

    sudo apt-get update
    sudo apt-get install slimserver

    My repositories point to:
    http://debian.slimdevices.com testing/main Packages

  7. #7
    formerly known as Fletch
    Join Date
    May 2005
    Location
    Lake Oswego, OR
    Posts
    2,162
    Quote Originally Posted by thespaugh View Post
    :~$ sudo slimserver start

    2006-12-25 21:36:34.5690 ERROR: Cannot write to preferences file /home/chris/slimserver.pref, any changes made will not be preserved for the next startup of the server
    I think the above command is running the slimserver.pl file rather than the Debian init script. If you are really running the proper debian init script, I don't think slimserver will ever look for a prefs file other than /etc/slimserver/slimserver.conf (even if your permissions are hosed.)

    Try "sudo /etc/init.d/slimserver start" instead.

  8. #8
    Thanks for the response.

    With sudo /etc/init.d/slimserver start
    I get "Starting SlimServer Audio Server."

    Is there a command to see if the service has really started?

    My browser times out when I try to see http://localhost:9000

  9. #9
    formerly known as Fletch
    Join Date
    May 2005
    Location
    Lake Oswego, OR
    Posts
    2,162
    Quote Originally Posted by thespaugh View Post
    My browser times out when I try to see http://localhost:9000
    Look for errors in /var/log/slimserver/slimserver.log

  10. #10
    Senior Member Patrick Dixon's Avatar
    Join Date
    Apr 2005
    Location
    UK
    Posts
    1,804
    Quote Originally Posted by thespaugh View Post
    Thanks for the response.

    With sudo /etc/init.d/slimserver start
    I get "Starting SlimServer Audio Server."

    Is there a command to see if the service has really started?

    My browser times out when I try to see http://localhost:9000
    (sudo) /etc/init.d/slimserver status

    It doesn't sound like it has though.

    Check slimserver.log - you might need to look in the /etc/init.d/slimserver script to see where it is. It's also possible that the script is trying to look for or write slimserver.log or the pref file somewhere where it doesn't have permission too. Both these probably need to be writeable by the user 'slimserver'

Posting Permissions

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