New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API call restartserver on macOS stops server but not starts #911
Comments
If you checked the activity monitor, is LMS ( |
Yes, these two processes are gone on restart:
Is there way to fix it? |
Hmm... seems to be working for me. Verified with both 8.3.1 and the latest 8.4.0:
What system information do you see on Settings/Information? |
Actually I use Material Skin which has restart menu. When I switch to default skin, after installed a plugin only warning to restart, no "restart now" prompt. Logitech Media Server Version: 8.4.0 - 1695355776 @ Fri Sep 22 06:21:22 CEST 2023 Cache Folder |
Oh, that's interesting! Are you running LMS as a system service which is started before you sign-in? Looking into related code I found this comment here: https://github.com/Logitech/slimserver/blob/public/8.4/Slim/Utils/OS/OSX.pm#L445-L448 |
Yes exactly, I am running LMS as system service /Library/LaunchDaemons/Squeezebox.plist under my admin user name! I don't want GUI auto login as admin to launch LMS. |
TBH I thought that running LMS this way on Mac had been broken a long time ago... Did you configure this yourself? The standard installation nowadays would run LMS in the user's context. But that also means you'd have to sign that user in automatically. I think the big overall issue is that the Mac integration would need a lot of work to be brought up to speed. The pref pane is still built on an OSX 10.5! And it's partially broken, as is this restart stuff. I don't even remember why we couldn't restart it in this configuration. |
Yes, I manually did copy Squeezelite.service to /Library/LaunchDaemonds/ added UserName key with my user name under which I installed LMS and loaded witch sudo launchctl load -w. No issues actually on macOS 13.5.2 accept this one, but I still can restart LMS with ssh script as mentioned before without reloading service as sudo. |
You seem to be technical. Would you be able to edit the above linked file in your installation to always |
Patching canRestartServer to always return 1 doesn't work. I have reloaded system service after patch, same behaviour: stops but not starts. |
IMHO there are two issues:
You mentioned you were able to run |
To restart LMS server in OSX via terminal: |
or better as a shell script:
|
And no |
Correct, no |
edited |
Sorry, restarting from Material Skin is working since I edited |
Here is my /Library/LaunchDaemons/Squeezebox.plist :
|
Also working in Default Skin now. I have rebooted for any case. |
So you're confirming that we could always restart? In that case I can simplify that |
Yes, I confirm that. Thank you. |
I am running LMS last beta 8.4.0 - 1695355776 on macOS Ventura and restart server action from web UI only stops the server but not starts.
I suppose this action is API restartserver call and I can't investigate the problem but found that restart-server.sh script in /Library/PreferencePanes/Squeezebox.prefPane/Contents/server/Bin/darwin/ folder works well if executed in ../../../
The text was updated successfully, but these errors were encountered: