Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: moOde does not appear to notice when ashuffle fails to start
#2
As a thought for the whole startup and being able to get the status - ashuffle ships with a default systemd config that can be used as a system level config instead of a user level config (https://github.com/joshkunz/ashuffle/pull/75/files).

I've done a quick test that proves that this systemd config works. Putting in the filters etc via the override.conf feature of systemd should hypothetically work; the override just rewrites the ExecStart with all the additional bits.

Once the service is started, the status can be checked easily enough with systemctl status ashuffle.service or systemctl is-active ashuffle.service, and on failure (which could then potentially be passed to the web ui?), the status looks like:
Code:
● ashuffle.service - Shuffle service for mpd
  Loaded: loaded (/lib/systemd/system/ashuffle.service; enabled; vendor preset: enabled)
 Drop-In: /etc/systemd/system/ashuffle.service.d
          └─override.conf
  Active: failed (Result: exit-code) since Sun 2021-05-23 20:55:14 IST; 18s ago
 Process: 11668 ExecStart=/usr/local/bin/ashuffle --queue-buffer 2 (code=exited, status=1/FAILURE)
Main PID: 11668 (code=exited, status=1/FAILURE)

May 23 20:55:06 moode systemd[1]: Started Shuffle service for mpd.
May 23 20:55:14 moode ashuffle[11668]: libmpdclient received a malformed response from the server.
May 23 20:55:14 moode ashuffle[11668]: This may be because a song's metadata attribute (for example,
May 23 20:55:14 moode ashuffle[11668]: a comment) was longer than 4KiB.
May 23 20:55:14 moode ashuffle[11668]: See https://github.com/joshkunz/ashuffle/issues/89 for
May 23 20:55:14 moode ashuffle[11668]: details or updates.
May 23 20:55:14 moode ashuffle[11668]: MPD error: Response line too large
May 23 20:55:14 moode systemd[1]: ashuffle.service: Main process exited, code=exited, status=1/FAILURE
May 23 20:55:14 moode systemd[1]: ashuffle.service: Failed with result 'exit-code'.
Reply


Messages In This Thread
RE: moOde does not appear to notice when ashuffle fails to start - by cricalix - 05-23-2021, 08:03 PM

Forum Jump: