You are not logged in.
Hi, bit of a specific problem, here. I have a systemd service that starts a flask app :
# /etc/systemd/system/jukebox.service
[Unit]
Description=Jukebox service
Wants=sound.target
After=sound.target
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
# Location of the jukebox, absolute (no ~/ for example)
WorkingDirectory=/home/myuser/jukebox
ExecStart=authbind bin/python run.py
# Restart=always
# RestartSec=12
# Allow access to alsa ? (doesn't work)
PrivateDevices=No
# User running python (your session name)
User=myuser
# Group the user belong to
Group=myuser
SupplementaryGroups=audio authbind
[Install]
WantedBy=multi-user.target
While starting the app works just fine with authbind bin/python run.py in the same cwd as the service, launching the service results in this error in the app :
journalctl -xeu jukebox.service
shows this
sept. 29 10:58:56 host authbind[229175]: File "/home/myuser/jukebox/jukebox/src/util.py", line 23, in get_mixer_name
sept. 29 10:58:56 host authbind[229175]: if "AMIXER_CHANNEL" in app.config and app.config["AMIXER_CHANNEL"] in alsaaudio.mixers():
sept. 29 10:58:56 host authbind[229175]: ^^^^^^^^^^^^^^^^^^^
sept. 29 10:58:56 host authbind[229175]: alsaaudio.ALSAAudioError: Host is down [default]
sept. 29 10:58:56 host systemd[1]: Stopping Jukebox service...
I'm using pipewire with wireplumber, all config is default and here are all my pipewire-related packages :
local/libpipewire 1:0.3.80-1
Low-latency audio/video router and processor - client library
local/libwireplumber 0.4.14-1
Session / policy manager implementation for PipeWire - client library
local/pipewire 1:0.3.80-1
Low-latency audio/video router and processor
local/pipewire-alsa 1:0.3.80-1
Low-latency audio/video router and processor - ALSA configuration
local/pipewire-audio 1:0.3.80-1
Low-latency audio/video router and processor - Audio support
local/pipewire-jack 1:0.3.80-1
Low-latency audio/video router and processor - JACK replacement
local/pipewire-pulse 1:0.3.80-1
Low-latency audio/video router and processor - PulseAudio replacement
local/wireplumber 0.4.14-1
Session / policy manager implementation for PipeWire
Did I do something wrong with my service and is there anything I should tweak within wireplumber to allow this service to work ?
I suspect that it has something to do with wireplumber running as a user service but running systemctl with user "myuser" doesn't show any wireplumber related services...
Not sure if this fitted more in "multimedia and games" or in "system administration" so I just posted it here for it was the first on the list. If that was a mistake, I'll gladly move the post over to the system administration section.
Thanks in advance for any response !
Last edited by kStor2poche (2023-09-29 20:19:52)
Offline