-
Notifications
You must be signed in to change notification settings - Fork 205
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
Systemd unit file not working on Raspberry Pi #244
Comments
Can you try if adding the following in the top
|
Thanks for getting back to me. With these changes, if I follow correctly, the .service file reads...
I'm not a genius when it comes to LInux, I made the change, did a further daemon-reload, then a reenable for the service, a reboot however, the client is still not visible, and stopping still causes the error. Tom |
For what it's worth, here's the service I've been using for a few years on my Raspberry Pi 3B
More version info
|
Doesn't seem to help, still doesn't appear until stopped, which takes an age, then restarted Tom |
Check this comment out as well: #129 (comment) |
direct after the boot, what does |
The main difference was the user and group, adding these made no difference |
A lot of this seems to date to the init.d stuff, the main point I tried from it was the pre exec with a delay of 10, sadly, still no difference. |
Anything of note in your logfile? The one at What control point/client are you using? |
Sadly not, nothing error or issue looking in there at all. I'm using HiFi Cast on Android as the control point/client |
What client/control point are you using? |
HiFi Cast on Android |
Huh. That's what I use. Never had this issue. What version of libpupnp did you build against? |
How would I check this? |
if you call
You get an output which libraries are linked. |
Can you post the output of your |
I can easily provide this, however I guess to ease your job it would be better if I cleared it, performed a restart, then stopped it, started the service manually and played something? |
So the important part is to see what (not) happens when the Pi reboots and it then doesn't show up. It could be an issue with the network not initialized or something. We look for something like this in the logfile
... followed by some logs which ultimately should show 'Ready for rendering'. So since you experience the issue just after reboot (and not a regular restart of the service), the might be something happening there, so looking at that log generated right after boot would be helpful. |
You won't believe it.... I deleted the log, rebooted and the bloody thing is working fine! I therefore removed the pre exec sleep for 10 added as a result of the post linked to by @mill1000. I then deleted and rebooted again and and it once against stopped working. I have attached the log from when it fails. So yes, I concur, it is trying to start before something is ready. |
so the logfile shows that it indeed hat issues initially (possibly network not ready), but then did the retry-loop and eventually was able to and ready and listened on the port. Is the IP address you see Do you connect via Wifi and ethernet ? Then the Pi gets two IP addresses via DHCP and this might also create trouble. |
Only WiFi is used, and the IP is statically assigned from the router. The IP is the .0.9 |
I have in completed all the steps to get this working, and when launched from the command line it does beautifully. If I copy the .service from from within the Debian folder to /etc/systemd/system, perford the systemctl daemon-reload, enable and start the service, the client can see and use the rendered.
However if I restart the Pi, check the service it is reported as active and ready, but the client can't see it. If I try and stop the service the stop-sigterm times out, but when that finally happens, if I then restart the service it is instantly available and works from the client.
Why?
Aside from the issue stopping it I can find no sign of an error.
The text was updated successfully, but these errors were encountered: