Pulseaudio fails to start after reboot if home partition is encrypted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pulseaudio (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
It seems that with Ubuntu 20.10, Pulseaudio now tries to start as main user too early, before user logs in and the home partition is decrypted. Probably pulseaudio should not start as main user before login of this user.
Starting pulseaudio manually after login works.
grep 'pulseaudio' /var/log/syslog
Feb 24 10:52:31 aziber systemd[1451]: Not generating service for XDG autostart app-pulseaudio-
Feb 24 10:52:31 aziber dbus-daemon[972]: [system] Activating via systemd: service name='org.
Feb 24 10:52:38 aziber systemd[3631]: Not generating service for XDG autostart app-pulseaudio-
Feb 24 10:52:38 aziber pulseaudio[3690]: Failed to create secure directory (/home/
Feb 24 10:52:38 aziber systemd[3609]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
Feb 24 10:52:38 aziber systemd[3609]: pulseaudio.service: Failed with result 'exit-code'.
Feb 24 10:52:38 aziber systemd[3609]: pulseaudio.service: Scheduled restart job, restart counter is at 1.
Feb 24 10:52:38 aziber pulseaudio[3899]: Failed to create secure directory (/home/
Feb 24 10:52:38 aziber systemd[3609]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
Feb 24 10:52:38 aziber systemd[3609]: pulseaudio.service: Failed with result 'exit-code'.
Feb 24 10:52:39 aziber systemd[3609]: pulseaudio.service: Scheduled restart job, restart counter is at 2.
Feb 24 10:52:39 aziber pulseaudio[4128]: Failed to create secure directory (/home/
Feb 24 10:52:39 aziber systemd[3609]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
Feb 24 10:52:39 aziber systemd[3609]: pulseaudio.service: Failed with result 'exit-code'.
Feb 24 10:52:39 aziber systemd[3609]: pulseaudio.service: Scheduled restart job, restart counter is at 3.
Feb 24 10:52:39 aziber pulseaudio[4311]: Failed to create secure directory (/home/
Feb 24 10:52:39 aziber systemd[3609]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
Feb 24 10:52:39 aziber systemd[3609]: pulseaudio.service: Failed with result 'exit-code'.
Feb 24 10:52:39 aziber systemd[3609]: pulseaudio.service: Scheduled restart job, restart counter is at 4.
Feb 24 10:52:39 aziber pulseaudio[4493]: Failed to create secure directory (/home/
Feb 24 10:52:39 aziber systemd[3609]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
Feb 24 10:52:39 aziber systemd[3609]: pulseaudio.service: Failed with result 'exit-code'.
Feb 24 10:52:39 aziber systemd[3609]: pulseaudio.service: Scheduled restart job, restart counter is at 5.
Feb 24 10:52:39 aziber systemd[3609]: pulseaudio.service: Start request repeated too quickly.
Feb 24 10:52:39 aziber systemd[3609]: pulseaudio.service: Failed with result 'exit-code'.
Feb 24 10:52:39 aziber systemd[3609]: pulseaudio.socket: Failed with result 'service-
Feb 24 10:52:42 aziber pulseaudio.
Feb 24 10:52:42 aziber pulseaudio.
Feb 24 10:52:42 aziber gnome-session[
Feb 24 10:52:42 aziber gnome-session-
Feb 24 10:52:42 aziber systemd[3609]: app-gnome-
Feb 24 10:52:42 aziber systemd[3609]: app-gnome-
Feb 24 10:52:45 aziber systemd[1432]: pulseaudio.service: Succeeded.
Feb 24 10:52:55 aziber systemd[1432]: pulseaudio.socket: Succeeded.
ProblemType: Bug
DistroRelease: Ubuntu 20.10
Package: pulseaudio 1:13.99.
ProcVersionSign
Uname: Linux 5.8.0-44-generic x86_64
ApportVersion: 2.20.11-0ubuntu50.5
Architecture: amd64
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', '/dev/snd/
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Wed Feb 24 10:57:51 2021
InstallationDate: Installed on 2019-11-29 (452 days ago)
InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
SourcePackage: pulseaudio
UpgradeStatus: Upgraded to groovy on 2020-10-25 (121 days ago)
dmi.bios.date: 01/09/2020
dmi.bios.release: 1.54
dmi.bios.vendor: LENOVO
dmi.bios.version: AUCN54WW
dmi.board.
dmi.board.name: LNVNB161216
dmi.board.vendor: LENOVO
dmi.board.version: SDK0R32862 WIN
dmi.chassis.
dmi.chassis.type: 31
dmi.chassis.vendor: LENOVO
dmi.chassis.
dmi.ec.
dmi.modalias: dmi:bvnLENOVO:
dmi.product.family: Yoga C940-14IIL
dmi.product.name: 81Q9
dmi.product.sku: LENOVO_
dmi.product.
dmi.sys.vendor: LENOVO
Hi Anton,
As a workaround, you can try to edit the systemd file "/usr/lib/ systemd/ user/pulseaudio .service" and add the line:
```
RestartSec=2s
```
Your [Service] section would look like to this:
``` /usr/bin/ pulseaudio --daemonize=no --log-target= journal Execute= yes ces=yes tectures= native r=@system- service
[Service]
ExecStart=
LockPersonality=yes
MemoryDenyWrite
NoNewPrivileges=yes
Restart=on-failure
RestartSec=2s
RestrictNamespa
SystemCallArchi
SystemCallFilte
# Note that notify will only work if --daemonize=no
Type=notify
UMask=0077
```
Samuel