Apparently gmediarender requires a specific IP address to use for libupnp (see here) If multiple addresses of the host are available, it is not specified which one is used.
I have an OpenVPN server running as well, and it chose its IP address instead of the "regular" Wifi IP address. The IP address to be used can be forced by the -I option when starting Gmediarender.
So in my opinion, there are a number of ways to deal with this, not sure which one would be the most suitable for Dietpi.
If you'd like, I would try to get option 3 running and submit a PR, if I get it to work.
@WilburWalsh
Many thanks for reporting and as well fixing with PR 👍: https://github.com/Fourdee/DietPi/pull/2580
I will so some minor tweaks an merge.
Hi @MichaIng ,
not sure, if this is the right place, but as the PR is already merged...
After updating my RPi 1B to the new Beta release, I checked the output of journalctl for errors and problems and found the following
Mär 13 20:02:52 pi1 systemd[1]: [/etc/systemd/system/gmrender.service:8] Executable path is not absolute, ignoring: !/usr/bin/touch /var/log/gmrender.log
Mär 13 20:02:52 pi1 systemd[1]: [/etc/systemd/system/gmrender.service:9] Executable path is not absolute, ignoring: !/bin/chown gmrender:dietpi /var/log/gmrender.log
Obviously the ! Prefix is not supported anymore in the latest systemd version for Debian stretch 🤔
I checked the gmrender.service file with systemd-analyze on my Pi 3 B+ running Dietpi 6.21 and it also complains about it. Changing the prefix to + solves the problem. Not sure, why it is a problem, as the online manual for the latest version of systemd still shows the ! prefix as valid option. Very strange.
@WilburWalsh
Good find!
Perhaps ! is not yet supported by the systemd version that is shipped with Stretch. So yeah we need to change that to +. I will send the commit: https://github.com/MichaIng/DietPi/commit/85baeeccb1388bfbcfa935cdbdc1425f6e91e17d
But I'm pretty sure it did work back when we discussed the original changes to the service file. I would like to revert my system back to a state that contains the up-to-date versions of all packages from like 3 or 4 weeks ago. Unfortunately I haven't found a way to do this yet...
Okay I will also run some tests on Jessie, Stretch and Buster to compare. Although your error message seems very clear.
€: Verified ! works on Debian Buster but not on Stretch. So it's about the systemd version which is not current enough. And the docs are always about the most current systemd version.
! provides a bid less permissions than +, sufficient for the task, but for this trivial well known command in practice it really doesn't matter.The thing is I am still absolutely sure it did work before. Like I wrote here: https://github.com/MichaIng/DietPi/pull/2580#issuecomment-467050018
But I will probably never find out what happened ^^
@WilburWalsh
I guess you didn't check the systemd log that time since it as well does not lead to any failure and is only handled as warning by systemd. The log dir creation/chown is not required (usually) since it is pre-created automatically on install, so redoing this via systemd service ExecStartPre is only a failsafe thing, in case of accidental deletion or an issue with RAMlog and such.