Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 6 of 6
  1. #1
    Junior Member
    Join Date
    Jan 2020
    Posts
    7

    Problem with LMS 8.2.1 on Fedora 33

    Having upgraded my house server from Fedora 32 to Fedora 33 over
    Thursday night and got it up and running, I discovered that my old copy
    of LMS 7.9 wasn't happy, so have just installed 8.2 - to be precise,
    I installed this archive:

    logitechmediaserver-8.2.0-0.1.1616822338.noarch.rpm

    which seemed to go all right, but wouldn't run. A small amount of
    fiddling got the squeezeboxserver user and groups set up and systemd
    doing its thing without complaining, but LMS still won't run.┬

    Any attempt to start it gets a failure:
    ================================================== ======================
    =======
    $ sudo systemctl start squeezeboxserver
    $ sudo systemctl status squeezeboxserver
    ÔŚĆ squeezeboxserver.service - Squeezeboxserver
    Loaded: loaded (/usr/lib/systemd/system/squeezeboxserver.service;
    enabled; vendor preset: disabled)
    Active: inactive (dead) since Sat 2021-04-03 18:02:50 BST; 12s ago
    Process: 195745 ExecStart=/usr/libexec/squeezeboxserver --prefsdir
    $SQUEEZEBOX_CFG_DIR --logdir $SQUEEZEBOX_LOG_DIR --cachedir
    $SQUEEZEBOX_CACHE_DIR --charset $SQUEEZEBO>
    Main PID: 195745 (code=exited, status=0/SUCCESS)

    Apr 03 18:02:49 zoogz.gregorie.lan systemd[1]: Started Squeezeboxserver.
    Apr 03 18:02:50 zoogz.gregorie.lan squeezeboxserver[195745]: Undefined
    subroutine &Slim::Utils::Misc::makeTempDir called at
    /usr/libexec/squeezeboxserver line 946.
    Apr 03 18:02:50 zoogz.gregorie.lan squeezeboxserver[195745]: [21-04-03
    18:02:50.7691] main::init (389) Starting Logitech Media Server (v8.2.0,
    1616822338, Sat Mar 27 07:18:1>
    Apr 03 18:02:50 zoogz.gregorie.lan systemd[1]: squeezeboxserver.service:
    Succeeded.
    ================================================== ======================
    =======

    ...... so can I have a fix, please?

    Best,
    Martin Gregorie



  2. #2

    Check symbolic link vs.copy

    Hi,

    Assuming that you are using a 64 bit version of Fedora and that you made an in-place upgrade to Fedora 33, I would first check whether you have a symbolic link from /usr/lib/perl5/vendor_perl/Slim to /usr/lib64/perl5/vendor_perl/Slim or to /usr/lib64/perl5/Slim.

    If one or both of the two latter locations is not a symbolic link, but a directory (maybe you copied it there when you install Logitech Media Server 7.9??), then delete the directory and replace it with a symbolic link.

    Regards, Johan

  3. #3
    Junior Member
    Join Date
    Jan 2020
    Posts
    7

    Problem with LMS 8.2.1 on Fedora 33

    Assuming that you are using a 64 bit version of Fedora and that you made an in-place upgrade to Fedora 33, I would first check whether you have a symbolic link from /usr/lib/perl5/vendor_perl/Slim to /usr/lib64/perl5/vendor_perl/Slim or to /usr/lib64/perl5/Slim.

    Thanks for that. Yes, I am running in 64 bit mode.

    If one or both of the two latter locations is not a symbolic link, but a directory (maybe you copied it there when you install Logitech Media Server 7.9??), then delete the directory and replace it with a symbolic link.

    Good assumption: /usr/lib/perl5/vendor_perl/Slim was a hard address. After upgrading again: rpm -U logitechmediaserver-8.2.0-0.1.1617534301.noarch.rpm
    I erased the final term: Slim in /usr/lib/perl5/vendor_perl/Slim and replaced it with a simlink:

    sudo ln -s /usr/lib64/perl5/vendor_perl/Slim Slim

    which now allows the command "less /usr/lib64/perl5/vendor_perl/Slim/Utils/Misc.pm" to read the contents of Misc.pm, but the makeTempDir() subroutine isn't defined in Misc.pm and attempts to run the latest version of squeezeboxserver are still failing with the same error:

    Undefined subroutine &Slim::Utils::Misc::makeTempDir called at /usr/libexec/squeezeboxserver line 946.


    Regards, Johan[/QUOTE]

  4. #4
    Hi,

    I think that I might have not been absolutely clear.

    You should have deleted:

    /usr/lib64/perl5/Slim (if it was a directory rather than a symbolic link)

    You should keep

    /usr/lib/perl5/vendor_perl/Slim

    You should create the symbolic link:

    sudo ln -s /usr/lib/perl5/vendor_perl/Slim /usr/lib64/perl5/Slim

    or (as a matter of taste)

    sudo ln -s /usr/lib/perl5/vendor_perl/Slim /usr/lib64/perl5/vendor_perl/Slim

    If you look into the RPM (rpm -qilp name -pf-rpm-package), you will see that the package will put the necessary files in /usr/lib/perl5/vendor_perl/Slim.

    Actually you should not even have to create that symbolic link. If you look in the post-installation script of the RPM (rpm -qp --scripts name-of-package, you will see that the symbolic link is created in that script. When you first updated from v. 7.9 this creation failed because the location already existed as a directory/hard link.

    Regards, Johan
    Last edited by Johan S; 2021-04-04 at 11:17.

  5. #5
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,542

    Problem with LMS 8.2.1 on Fedora 33

    > which now allows the command "less
    > /usr/lib64/perl5/vendor_perl/Slim/Utils/Misc.pm" to read the contents of
    > Misc.pm, but the makeTempDir() subroutine isn't defined in Misc.pm and
    > attempts to run the latest version of squeezeboxserver are still failing
    > with the same error:
    >
    > Undefined subroutine &Slim::Utils::Misc::makeTempDir called at
    > /usr/libexec/squeezeboxserver line 946.

    Please make sure you don't have two different copies of
    Slim/Utils/Misc.pm in your system. It looks as if you had a new LMS
    using an old copy of that file.

    --

  6. #6
    Junior Member
    Join Date
    Jan 2020
    Posts
    7
    All good now, thanks. That last hint did it.

    I deleted Misc.pm to make sure and then ran

    rpm --reinstall logitechmediaserver-8.2.0-0.1.1617534301.noarch.rpm

    Checking datestamps on all copies of Misc.pm showed that there was onlt the one version and that it had come from the reinstall
    After that running "systemctl status squeezeboxserver" showed it to be up and automatically started by the reinstall - which is what systemd should have done.

    Clearing the play list and then selecting a track, which played as expected, shows all is well.

    So, thanks very much for your help.

Posting Permissions

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