Announcement

Collapse
No announcement yet.

Restart LMS on macOS

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Restart LMS on macOS

    After several days of the computer running LMS being idle and possibly going into sleep mode, LMS stops working and the LMS system panel doesn't open. The error message is something about error in settings, and that the LMS settings panel cannot be opened.

    How does one restart LMS on macOS and what could be causing LMS to fail?
    LMS 8.4.0 - 1678519305 @ Sat Mar 11 08:50:41 CET 2023
    M1 Macbook, macOS 12.6.2
    Squeezebox2: 137, Duet: 77/7.8.0-r16739, Radio: 7.7.3-r16676

    #2
    Which Mac OS are you running ? (the LMS is very old, 9 years or so).

    Have you completly powered off the Mac and then started it up again ?

    This may not have a happy ending

    ronnie

    Comment


      #3
      But the LMS details you give are from a Linux installation?!?
      Michael

      "It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
      (LMS: Settings/Information)

      Comment


        #4
        LMS 8.4.0 on a M1 Macbook and macOS 12.6.2.

        It works again after a reboot of the os. This problem has occurred several times. It would be useful to know how to restart LMS without a reboot and if possible to fix the issue causing it to fail to respond.

        Originally posted by mherger View Post
        But the LMS details you give are from a Linux installation?!?
        If your referring to my signature it was old information. I've updated it.

        EDIT: I've now also updated LMS to the current version.
        Last edited by Seron; 2023-03-18, 09:52.
        LMS 8.4.0 - 1678519305 @ Sat Mar 11 08:50:41 CET 2023
        M1 Macbook, macOS 12.6.2
        Squeezebox2: 137, Duet: 77/7.8.0-r16739, Radio: 7.7.3-r16676

        Comment


          #5
          Next time it fails - check the last few lines of the LMS server.log (see Settings/Information to find the location).
          Paul Webster
          Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
          and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

          Comment


            #6
            Originally posted by Seron View Post
            How does one restart LMS on macOS and what could be causing LMS to fail?
            Use Script Editor (from the Utilities folder) and paste:
            Code:
            do shell script "sh '/Library/PreferencePanes/Squeezebox.prefPane/Contents/Resources/stop-server.sh'"
            delay 1
            do shell script "sh '/Library/PreferencePanes/Squeezebox.prefPane/Contents/Resources/start-server.sh'"
            Save as File Format = Application.
            Drag this “application" to the Dock. Click to restart server.
            Links to report issues, FAQ (if available) and more information about my plugins are on the GitHub page or in the first post of a plugin's support thread.

            Comment


              #7
              What would be the exact, verbatim error message you get?
              Michael

              "It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
              (LMS: Settings/Information)

              Comment


                #8
                I updated LMS since. I haven't had it fail yet, but usually it takes a few days. Here is the server.log part from around this time. The text in non-English is in Swedish.

                Code:
                [23-03-10 19:36:45.8322] main::init (380) Starting Logitech Media Server (v8.4.0, 1677516856, Mon Feb 27 18:35:59 CET 2023) perl 5.034000 - darwin-thread-multi-2level
                
                /Library/PreferencePanes/Squeezebox.prefPane/Contents/server/Bin/darwin/openprefs.scpt:106:118: execution error: System Preferences drabbades av ett fel: AppleEvent nådde en maxtidsgräns. (-1712)
                
                [23-03-18 09:47:56.4561] main::init (380) Starting Logitech Media Server (v8.4.0, 1678519305, Sat Mar 11 08:50:41 CET 2023) perl 5.034000 - darwin-thread-multi-2level
                ​
                Last edited by Seron; 2023-03-19, 09:42.
                LMS 8.4.0 - 1678519305 @ Sat Mar 11 08:50:41 CET 2023
                M1 Macbook, macOS 12.6.2
                Squeezebox2: 137, Duet: 77/7.8.0-r16739, Radio: 7.7.3-r16676

                Comment


                  #9
                  If I understand that message correctly, then it's likely related to the automatic update. Maybe you can turn it off in Settings/Software Updates and see whether that helps the situation?
                  Michael

                  "It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
                  (LMS: Settings/Information)

                  Comment


                    #10
                    It happened again. Here is an excerpt from the log.
                    Code:
                    [23-03-18 21:23:21.2242] main::init (380) Starting Logitech Media Server (v8.4.0, 1678519305, Sat Mar 11 08:50:41 CET 2023) perl 5.034000 - darwin-thread-multi-2level
                    [23-03-18 21:23:21.7075] main::init (380) Starting Logitech Media Server (v8.4.0, 1678519305, Sat Mar 11 08:50:41 CET 2023) perl 5.034000 - darwin-thread-multi-2level
                    [23-03-18 21:23:23.4134] Slim::Web::Cometd::handler (431) errorNeedsClient: 192.168.4.10, 00:04:20:28:d5:3e, status, -, 10, menu:menu, useContextMenu:1, subscribe:600
                    [23-03-18 21:23:25.5619] Slim::Web::Cometd::handler (431) errorNeedsClient: 192.168.4.70, 00:04:20:29:28:5b, status, -, 10, menu:menu, useContextMenu:1, subscribe:600
                    [23-03-19 09:32:53.9277] Slim::Networking::IO::Select::__ANON__ (130) Error: Select task failed calling Slim::Web::HTTP::sendStreamingResponse: Can't call method "playlist" on an undefined value at /Library/PreferencePanes/Squeezebox.prefPane/Contents/server/Slim/Player/Playlist.pm line 184.
                    ; fh=Slim::Web::HTTP::ClientConn=GLOB(0x10e9d1ca0)
                    [23-03-19 09:32:53.9426] Slim::Networking::IO::Select::__ANON__ (130) Error: Select task failed calling Slim::Web::HTTP::sendStreamingResponse: Can't call method "playlist" on an undefined value at /Library/PreferencePanes/Squeezebox.prefPane/Contents/server/Slim/Player/Playlist.pm line 184.
                    ; fh=Slim::Web::HTTP::ClientConn=GLOB(0x10e9d1ca0)
                    [23-03-19 09:32:54.0832] Slim::Networking::IO::Select::__ANON__ (130) Error: Select task failed calling Slim::Web::HTTP::sendStreamingResponse: Can't call method "playlist" on an undefined value at /Library/PreferencePanes/Squeezebox.prefPane/Contents/server/Slim/Player/Playlist.pm line 184.
                    ; fh=Slim::Web::HTTP::ClientConn=GLOB(0x10e9d1ca0)​
                    ​
                    The last line repeats for many pages with similar intervals until it ceases about one minute later. There is nothing logged after that.
                    LMS 8.4.0 - 1678519305 @ Sat Mar 11 08:50:41 CET 2023
                    M1 Macbook, macOS 12.6.2
                    Squeezebox2: 137, Duet: 77/7.8.0-r16739, Radio: 7.7.3-r16676

                    Comment

                    Working...
                    X