Squeezelite plugin: 0 instances

Einklappen
X
 
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge
  • J V
    LoxBus Spammer
    • 28.08.2015
    • 367

    #1

    Squeezelite plugin: 0 instances

    Hello,

    I'm trying the Squeezelite plugin on Loxberry (last version) on Hyper-V. I have a device defined, but the site states there are 0 instances of squeezelite running. I tried both old and new binaries; when I log in to the console, Squeezelite executables exist. The device do not show up on my lms.

    Do you have to do something to start instances?

    Thanks!


    Jörg
  • Christian Fenzl
    Lebende Foren Legende
    • 31.08.2015
    • 11237

    #2
    Hi Jörg,

    Myself I could figure out that the setup process on LB1.x is not as stable as on 0.2.3
    Unfortunately I haven't found time to update the full setup process to use all the improvements of LB1.x.

    Please could you try these steps, one by one, with rebooting LoxBerry after the change:

    1.
    Navigate to /opt/loxberry/config/plugins/squeezelite/ and delete all sudoers.* files. After reboot, the daemon tries to re-apply permissions.

    2.
    If this is not working, please edit the file /opt/loxberry/webfrontend/htmlauth/plugins/squeezelite/start_instances.cgi (Use putty and nano to edit the file)
    You find the line 166
    Code:
    system("su --preserve-environment -c \"$command\" squeezelox &");
    Change the code to read
    Code:
    system("su --preserve-environment -c \"$command\" loxberry &");
    This changes the user to run Squeezelite from the (possibly not correctly created) user squeezelox to the loxberry user.
    In LB0.2.3 the loxberry user had no permissions using the audio devices, therefore the plugin created it's own user. In LB1.x the loxberry user has full permissions to the audio devices, therefore this now should work.

    The next version of the plugin will work immediately, I promise :-)
    And will come with one or two new, nice features ;-)

    Christian
    Hilfe für die Menschen der Ukraine: https://www.loxforum.com/forum/proje...Cr-die-ukraine

    Kommentar

    • J V
      LoxBus Spammer
      • 28.08.2015
      • 367

      #3
      Thanks! I will try it, either this evening or in the weekend and will report back.

      Still have to figure out some other problems (my squeezeboxes are no longer waking up the server, and I have the impression it is an issue with the LMS - but Windows updates also messes up the wake-on-lan capabilities of my pc). Still, hopefull to finally get back to my loxone stuff.

      Kommentar

      • J V
        LoxBus Spammer
        • 28.08.2015
        • 367

        #4
        The first option was sufficient to make Loxberry/Squeezelite start instances. Thanks!

        Heads-up though:

        Hyper-V does not have audio support (so there are no audiodevices that can be used by Squeezelite) - this is a different matter however... good thing I test it now; this means either squeezelite in Windows or something else.

        Kommentar

        • Tailor1986
          Smart Home'r
          • 25.08.2015
          • 38

          #5
          Zitat von Christian Fenzl

          Please could you try these steps, one by one, with rebooting LoxBerry after the change:

          1.
          Navigate to /opt/loxberry/config/plugins/squeezelite/ and delete all sudoers.* files. After reboot, the daemon tries to re-apply permissions.

          2.
          If this is not working, please edit the file /opt/loxberry/webfrontend/htmlauth/plugins/squeezelite/start_instances.cgi (Use putty and nano to edit the file)
          You find the line 166
          Code:
          system("su --preserve-environment -c \"$command\" squeezelox &");
          Change the code to read
          Code:
          system("su --preserve-environment -c \"$command\" loxberry &");
          Hallo Christian,

          Habe auch ein ähnliches Problem. Nach einem Neustart des Loxberrys startet die Instanz nicht mit. Muss jedes mal aus "speichern und ausführen" klicken. Danach läuft die Instanz.
          Habe beides gemacht was du in diesen Thread empfohlen hast. Aber beides hilft nicht.

          Loxberry Version v1.4.0.2
          Raspberry Model B
          Squeezlite Version 0.5.5

          Vl kannst du mir noch einen Tipp geben das die eine Instanz automatisch startet ;-)

          Danke im Voraus

          sg Wolfgang

          Kommentar

          • Christian Fenzl
            Lebende Foren Legende
            • 31.08.2015
            • 11237

            #6
            Hi Wolfgang,
            wenn du willst, schau ich schnell auf deinen LB per "Remote Support" Widget drauf. Dann bitte per PM deine WhatsApp Tel.
            Für den Zugriff auch das LB-PW und root-PW bereithalten, das brauche ich, um mich anzumelden.
            lg, Christian
            Hilfe für die Menschen der Ukraine: https://www.loxforum.com/forum/proje...Cr-die-ukraine

            Kommentar

            Lädt...