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:

```
[Service]
ExecStart=/usr/bin/pulseaudio --daemonize=no --log-target=journal
LockPersonality=yes
MemoryDenyWriteExecute=yes
NoNewPrivileges=yes
Restart=on-failure
RestartSec=2s
RestrictNamespaces=yes
SystemCallArchitectures=native
SystemCallFilter=@system-service
# Note that notify will only work if --daemonize=no
Type=notify
UMask=0077
```

Samuel

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1889416

Title:
  pulseaudio.service: Start request repeated too quickly.

Status in fscrypt package in Ubuntu:
  Confirmed
Status in systemd package in Ubuntu:
  Confirmed

Bug description:
  PA doesn't start on it's own after the latest update.

  ```
  nafallo@wendigo:~$ systemctl --user status pulseaudio
  ● pulseaudio.service - Sound Service
       Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; enabled; 
vendor preset: enabled)
       Active: failed (Result: exit-code) since Wed 2020-07-29 14:59:19 CEST; 
11min ago
  TriggeredBy: ● pulseaudio.socket
      Process: 2774 ExecStart=/usr/bin/pulseaudio --daemonize=no 
--log-target=journal (code=exited, status=1/FAILURE)
     Main PID: 2774 (code=exited, status=1/FAILURE)

  Jul 29 14:59:19 wendigo systemd[2664]: pulseaudio.service: Scheduled restart 
job, restart counter is at 5.
  Jul 29 14:59:19 wendigo systemd[2664]: Stopped Sound Service.
  Jul 29 14:59:19 wendigo systemd[2664]: pulseaudio.service: Start request 
repeated too quickly.
  Jul 29 14:59:19 wendigo systemd[2664]: pulseaudio.service: Failed with result 
'exit-code'.
  Jul 29 14:59:19 wendigo systemd[2664]: Failed to start Sound Service.
  Jul 29 14:59:20 wendigo systemd[2664]: pulseaudio.service: Start request 
repeated too quickly.
  Jul 29 14:59:20 wendigo systemd[2664]: pulseaudio.service: Failed with result 
'exit-code'.
  Jul 29 14:59:20 wendigo systemd[2664]: Failed to start Sound Service.
  ```

  But works after starting it manually.

  ```
  nafallo@wendigo:~$ systemctl --user start pulseaudio
  nafallo@wendigo:~$ systemctl --user status pulseaudio
  ● pulseaudio.service - Sound Service
       Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; enabled; 
vendor preset: enabled)
       Active: active (running) since Wed 2020-07-29 15:11:14 CEST; 5min ago
  TriggeredBy: ● pulseaudio.socket
     Main PID: 5675 (pulseaudio)
       CGroup: /user.slice/user-1000.slice/user@1000.service/pulseaudio.service
               └─5675 /usr/bin/pulseaudio --daemonize=no --log-target=journal

  Jul 29 15:11:13 wendigo systemd[2664]: Starting Sound Service...
  Jul 29 15:11:14 wendigo systemd[2664]: Started Sound Service.
  ```

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: pulseaudio 1:13.99.1-1ubuntu3.5
  ProcVersionSignature: Ubuntu 5.4.0-42.46-generic 5.4.44
  Uname: Linux 5.4.0-42-generic x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
  ApportVersion: 2.20.11-0ubuntu27.4
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC0:  nafallo    5675 F.... pulseaudio
  CasperMD5CheckResult: skip
  CurrentDesktop: ubuntu:GNOME
  Date: Wed Jul 29 15:11:28 2020
  InstallationDate: Installed on 2018-06-27 (763 days ago)
  InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
  SourcePackage: pulseaudio
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 12/11/2019
  dmi.bios.vendor: Dell Inc.
  dmi.bios.version: 1.12.1
  dmi.board.name: 0W970W
  dmi.board.vendor: Dell Inc.
  dmi.board.version: A03
  dmi.chassis.type: 10
  dmi.chassis.vendor: Dell Inc.
  dmi.modalias: 
dmi:bvnDellInc.:bvr1.12.1:bd12/11/2019:svnDellInc.:pnXPS139370:pvr:rvnDellInc.:rn0W970W:rvrA03:cvnDellInc.:ct10:cvr:
  dmi.product.family: XPS
  dmi.product.name: XPS 13 9370
  dmi.product.sku: 07E6
  dmi.sys.vendor: Dell Inc.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/fscrypt/+bug/1889416/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to