Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 6 of 6

Thread: FreeBSD port

  1. #1
    TJ Angstman
    Guest

    FreeBSD port

    Brooks,

    First, I want to say thanks for maintaining the freebsd port. I installed
    6.3.1 without a hitch. I am having problems with my upgrade to 6.5. I
    deinstalled 6.3.1 (/usr/ports/audio/slimserver make deinstall). I
    deinstalled mysql (same, make deinstall). I have wiped the
    /usr/local/slimserver and /var/db/slimserver directories. I ran portupgrade
    -r perl. Next I make install clean slimserver. I get the following error:


    compslim# /usr/local/slimserver/slimserver.pl
    061011 5:17:31 [ERROR] Fatal error: Please read "Security" section of the
    manual to find out how to run mysqld as root!

    061011 5:17:31 [ERROR] Aborting

    061011 5:17:31 [Note] /usr/local/libexec/mysqld: Shutdown complete

    2006-10-11 05:18:01.1972 ERROR: MySQLHelper: createSystemTables() Couldn't
    connect to database: [Can't connect to local MySQL server through socket
    '/var/db/slimserver/cache/slimserver-mysql.sock' (2)]

    Any suggestions on what I need to do here?

    Thanks again for maintaining this port!

    T. J.


    -----Original Message-----
    From: discuss-bounces (AT) lists (DOT) slimdevices.com
    [mailto:discuss-bounces (AT) lists (DOT) slimdevices.com] On Behalf Of Brooks Davis
    Sent: Friday, April 16, 2004 5:43 PM
    To: discuss (AT) lists (DOT) slimdevices.com
    Subject: [slim] FreeBSD port

    I wanted to give the SlimServer a try before I bought a Squeezebox
    and after playing with it a bit, I built a port so it's now in the
    FreeBSD ports collection as audio/slimserver. Like the RPM, it
    has a startup script. The script runs the server as user/group
    slimuser for security reasons. The config file is configured to be in
    /var/db/slimserver/slimserver.conf (IMO, it machine generated and thus
    doesn't belong in /etc).

    I've also configured the installation process to not install copies of
    perl modules that exist as ports as per the ports collection policy.
    Similarly I'm using a port of mDNSResponder instead of the builtin
    binary. The upside of this is that SlimServer should work on all
    FreeBSD platforms since it doesn't depend on having binaries in the
    correct format.

    I also apply a couple of patches so the tag cache ends up in
    /var/db/slimserver/slimserver.db. It would be nice if you could do this
    from the command line instead of via patches.

    SlimServer packages should be available for the next FreeBSD release.

    I'm quite impressed with what I've seen so far and plan to purchase a
    Squeezebox when I return from my upcoming vacation.

    -- Brooks

    --
    Any statement of the form "X is the one, true Y" is FALSE.
    PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4


  2. #2
    Junior Member
    Join Date
    Aug 2006
    Location
    Tokyo, Japan
    Posts
    23
    Quote Originally Posted by TJ Angstman View Post
    I get the following error:

    compslim# /usr/local/slimserver/slimserver.pl
    061011 5:17:31 [ERROR] Fatal error: Please read "Security" section of the
    manual to find out how to run mysqld as root!

    061011 5:17:31 [ERROR] Aborting
    This isn't the correct way of starting slimserver on FreeBSD.

    You should put

    slimserver_enable="YES"

    in /etc/rc.conf and then you can use

    /usr/local/etc/rc.d/slimserver start

    to start it (and it will also be restarted automatically when you reboot).

  3. #3
    Thomas J. Angstman
    Guest

    Re: FreeBSD port

    True, and I did this, but the output is silent as the script runs as a
    daemon. So, I manually ran the server and this is the issue I have
    after installing the port. In other words, running the rc.conf script
    just looks like this, with no server running:


    # /usr/local/etc/rc.d/slimserver.sh start
    Starting slimserver.
    #

    Any other ideas?

    Thanks.

    TJ

    -----Original Message-----
    From: discuss-bounces (AT) lists (DOT) slimdevices.com
    [mailto:discuss-bounces (AT) lists (DOT) slimdevices.com] On Behalf Of devin
    Sent: Wednesday, October 11, 2006 6:45 PM
    To: discuss (AT) lists (DOT) slimdevices.com
    Subject: [slim] Re: FreeBSD port


    TJ Angstman;145280 Wrote:
    >
    > I get the following error:
    >
    > compslim# /usr/local/slimserver/slimserver.pl
    > 061011 5:17:31 [ERROR] Fatal error: Please read "Security" section of
    > the
    > manual to find out how to run mysqld as root!
    >
    > 061011 5:17:31 [ERROR] Aborting
    >


    This isn't the correct way of starting slimserver on FreeBSD.

    You should put

    slimserver_enable="YES"

    in /etc/rc.conf and then you can use

    /usr/local/etc/rc.d/slimserver start

    to start it (and it will also be restarted automatically when you
    reboot).


    --
    devin
    ------------------------------------------------------------------------
    devin's Profile: http://forums.slimdevices.com/member.php?userid=6874
    View this thread: http://forums.slimdevices.com/showthread.php?t=28569


  4. #4
    Junior Member
    Join Date
    Aug 2006
    Location
    Tokyo, Japan
    Posts
    23
    Quote Originally Posted by Thomas J. Angstman View Post
    True, and I did this, but the output is silent as the script runs as a
    daemon.
    This is how it is supposed to work. The output from slimserver is written to /var/log/slimserver.log

    Quote Originally Posted by Thomas J. Angstman View Post
    Any other ideas?
    If you are determined to run it directly from the command line, then you should specify the user and group to run as, since it refuses to run as root.

    For example:

    # /usr/local/slimserver/slimserver.pl --user=slimserv --group=slimserv

  5. #5
    Thomas J. Angstman
    Guest

    Re: FreeBSD port

    Ok. I really appreciate your help. I should have looked in the log
    instead. The latest log had a message in it that there was a
    permissions issue:

    /my.cnf: Permission denied at
    /usr/local/slimserver/Slim/Utils/MySQLHelper.pm line 164..

    I installed the software as root, so the folder /usr/local/slimserver
    and its contents were all owned by root. Same with /var/db/slimserver.
    I fixed that up with a chown -R slimserv and we are in business.

    Thanks again for the help.

    T. J. Angstman

    -----Original Message-----
    From: discuss-bounces (AT) lists (DOT) slimdevices.com
    [mailto:discuss-bounces (AT) lists (DOT) slimdevices.com] On Behalf Of devin
    Sent: Wednesday, October 11, 2006 11:15 PM
    To: discuss (AT) lists (DOT) slimdevices.com
    Subject: [slim] Re: FreeBSD port


    Thomas J. Angstman;145564 Wrote:
    > True, and I did this, but the output is silent as the script runs as a
    > daemon.
    >


    This is how it is supposed to work. The output from slimserver is
    written to /var/log/slimserver.log

    Thomas J. Angstman;145564 Wrote:
    > Any other ideas?


    If you are determined to run it directly from the command line, then
    you should specify the user and group to run as, since it refuses to
    run as root.

    For example:

    # /usr/local/slimserver/slimserver.pl --user=slimserv --group=slimserv


    --
    devin
    ------------------------------------------------------------------------
    devin's Profile: http://forums.slimdevices.com/member.php?userid=6874
    View this thread: http://forums.slimdevices.com/showthread.php?t=28569


  6. #6
    Thomas J. Angstman
    Guest

    FreeBSD port

    > Any suggestions on what I need to do here?

    Don't run slimserver as root (it really should puke before starting
    mysql, but it doesn't). Instead, add 'slimserver_enable="YES"' to your
    /etc/rc.conf and run /usr/local/etc/rc.d/slimserver which will cause
    slimserver to be started as slimserv.

    I did this first, but it seemed that there were some permissions issues,
    (perhaps because I installed over a prior installation of 6.3.1?) I
    chmod'd -R all the appropriate directories to slimserv
    (/var/db/slimserver; /usr/local/slimserver; /mp3dir) and moved my
    playlists to the /var/db/slimserver/playlists folder. This seemed to
    allow the slimserver script to run correctly in /usr/local/etc/rc.d but
    I still have some unexpected crashes, I think at the end of my playlists
    or certain files/podcasts.

    I have tried to install a nightly, but then I have various "path" issues
    where components are not able to be found. I was not planning to submit
    a bug report until I tried a nightly or 6.5.1, when it is ported to
    freebsd. Is there an easy way to install a nightly once the freebsd
    port of 6.5 is installed?

    Thanks again!

    TJ

    -----Original Message-----
    From: Brooks Davis [mailto:brooks (AT) one-eyed-alien (DOT) net]
    Sent: Monday, October 16, 2006 8:00 PM
    To: Thomas J. Angstman
    Cc: 'Slim Devices Discussion'
    Subject: Re: [slim] FreeBSD port

    On Wed, Oct 11, 2006 at 05:33:37AM -0600, TJ Angstman wrote:
    > Brooks,
    >
    > First, I want to say thanks for maintaining the freebsd port. I

    installed
    > 6.3.1 without a hitch. I am having problems with my upgrade to 6.5.

    I
    > deinstalled 6.3.1 (/usr/ports/audio/slimserver make deinstall). I
    > deinstalled mysql (same, make deinstall). I have wiped the
    > /usr/local/slimserver and /var/db/slimserver directories. I ran

    portupgrade
    > -r perl. Next I make install clean slimserver. I get the following

    error:
    >
    >
    > compslim# /usr/local/slimserver/slimserver.pl
    > 061011 5:17:31 [ERROR] Fatal error: Please read "Security" section of

    the
    > manual to find out how to run mysqld as root!
    >
    > 061011 5:17:31 [ERROR] Aborting
    >
    > 061011 5:17:31 [Note] /usr/local/libexec/mysqld: Shutdown complete
    >
    > 2006-10-11 05:18:01.1972 ERROR: MySQLHelper: createSystemTables()

    Couldn't
    > connect to database: [Can't connect to local MySQL server through

    socket
    > '/var/db/slimserver/cache/slimserver-mysql.sock' (2)]
    >
    > Any suggestions on what I need to do here?


    Don't run slimserver as root (it really should puke before starting
    mysql, but it doesn't). Instead, add 'slimserver_enable="YES"' to your
    /etc/rc.conf and run /usr/local/etc/rc.d/slimserver which will cause
    slimserver to be started as slimserv.

    > Thanks again for maintaining this port!


    You're welcome.

    -- Brooks

    > T. J.
    >
    >
    > -----Original Message-----
    > From: discuss-bounces (AT) lists (DOT) slimdevices.com
    > [mailto:discuss-bounces (AT) lists (DOT) slimdevices.com] On Behalf Of Brooks

    Davis
    > Sent: Friday, April 16, 2004 5:43 PM
    > To: discuss (AT) lists (DOT) slimdevices.com
    > Subject: [slim] FreeBSD port
    >
    > I wanted to give the SlimServer a try before I bought a Squeezebox
    > and after playing with it a bit, I built a port so it's now in the
    > FreeBSD ports collection as audio/slimserver. Like the RPM, it
    > has a startup script. The script runs the server as user/group
    > slimuser for security reasons. The config file is configured to be in
    > /var/db/slimserver/slimserver.conf (IMO, it machine generated and thus
    > doesn't belong in /etc).
    >
    > I've also configured the installation process to not install copies of
    > perl modules that exist as ports as per the ports collection policy.
    > Similarly I'm using a port of mDNSResponder instead of the builtin
    > binary. The upside of this is that SlimServer should work on all
    > FreeBSD platforms since it doesn't depend on having binaries in the
    > correct format.
    >
    > I also apply a couple of patches so the tag cache ends up in
    > /var/db/slimserver/slimserver.db. It would be nice if you could do

    this
    > from the command line instead of via patches.
    >
    > SlimServer packages should be available for the next FreeBSD release.
    >
    > I'm quite impressed with what I've seen so far and plan to purchase a
    > Squeezebox when I return from my upcoming vacation.
    >
    > -- Brooks
    >
    > --
    > Any statement of the form "X is the one, true Y" is FALSE.
    > PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4
    >


Posting Permissions

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