Fails to start pulseaudio (No card found by this name or index.)

Bug #1937919 reported by Jarno Suni
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pulseaudio (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

First pulseaudio fails for some reason. Pulseaudio Plugin i.e. the volume control in Xfce panel shows mute after I start session, but I can not change it. This does not happen every time.

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: pulseaudio 1:13.99.1-1ubuntu3.11
ProcVersionSignature: Ubuntu 5.4.0-77.86-generic 5.4.119
Uname: Linux 5.4.0-77-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.18
Architecture: amd64
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', '/dev/snd/by-id', '/dev/snd/controlC0', '/dev/snd/hwC0D3', '/dev/snd/hwC0D0', '/dev/snd/pcmC0D7p', '/dev/snd/pcmC0D3p', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', '/dev/snd/controlC1', '/dev/snd/pcmC1D1p', '/dev/snd/pcmC1D0p', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CasperMD5CheckResult: skip
CurrentDesktop: XFCE
Date: Sun Jul 25 00:21:17 2021
InstallationDate: Installed on 2019-12-05 (597 days ago)
InstallationMedia: Xubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
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 focal on 2020-07-10 (379 days ago)
dmi.bios.date: 06/28/2018
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A30
dmi.board.name: 051FJ8
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 15
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrA30:bd06/28/2018:svnDellInc.:pnOptiPlex9010:pvr01:rvnDellInc.:rn051FJ8:rvrA00:cvnDellInc.:ct15:cvr:
dmi.product.name: OptiPlex 9010
dmi.product.sku: OptiPlex 9010
dmi.product.version: 01
dmi.sys.vendor: Dell Inc.

Revision history for this message
Jarno Suni (jarnos) wrote :
Revision history for this message
Jarno Suni (jarnos) wrote :
description: updated
Jarno Suni (jarnos)
description: updated
Revision history for this message
Jarno Suni (jarnos) wrote :

From syslog:
"Jul 25 00:07:01 jarnos-OptiPlex-9010 pulseaudio[1580]: No card found by this name or index.
Jul 25 00:07:01 jarnos-OptiPlex-9010 pulseaudio[1580]: Failed to initialize daemon due to errors while executing startup commands. Source of commands: /home/jarnos/.config/pulse//default.pa
Jul 25 00:07:01 jarnos-OptiPlex-9010 systemd[1569]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
Jul 25 00:07:01 jarnos-OptiPlex-9010 systemd[1569]: pulseaudio.service: Failed with result 'exit-code'.
Jul 25 00:07:01 jarnos-OptiPlex-9010 systemd[1569]: Failed to start Sound Service.
Jul 25 00:07:01 jarnos-OptiPlex-9010 systemd[1569]: Reached target Main User Target.
Jul 25 00:07:01 jarnos-OptiPlex-9010 systemd[1569]: Startup finished in 220ms.
Jul 25 00:07:02 jarnos-OptiPlex-9010 systemd[1569]: pulseaudio.service: Scheduled restart job, restart counter is at 1."

default.pa attached?field.comment=From syslog:
"Jul 25 00:07:01 jarnos-OptiPlex-9010 pulseaudio[1580]: No card found by this name or index.
Jul 25 00:07:01 jarnos-OptiPlex-9010 pulseaudio[1580]: Failed to initialize daemon due to errors while executing startup commands. Source of commands: /home/jarnos/.config/pulse//default.pa
Jul 25 00:07:01 jarnos-OptiPlex-9010 systemd[1569]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
Jul 25 00:07:01 jarnos-OptiPlex-9010 systemd[1569]: pulseaudio.service: Failed with result 'exit-code'.
Jul 25 00:07:01 jarnos-OptiPlex-9010 systemd[1569]: Failed to start Sound Service.
Jul 25 00:07:01 jarnos-OptiPlex-9010 systemd[1569]: Reached target Main User Target.
Jul 25 00:07:01 jarnos-OptiPlex-9010 systemd[1569]: Startup finished in 220ms.
Jul 25 00:07:02 jarnos-OptiPlex-9010 systemd[1569]: pulseaudio.service: Scheduled restart job, restart counter is at 1."

default.pa attached

Revision history for this message
Jarno Suni (jarnos) wrote :

From syslog:
"Jul 25 00:07:01 jarnos-OptiPlex-9010 pulseaudio[1580]: No card found by this name or index.
Jul 25 00:07:01 jarnos-OptiPlex-9010 pulseaudio[1580]: Failed to initialize daemon due to errors while executing startup commands. Source of commands: /home/jarnos/.config/pulse//default.pa
Jul 25 00:07:01 jarnos-OptiPlex-9010 systemd[1569]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
Jul 25 00:07:01 jarnos-OptiPlex-9010 systemd[1569]: pulseaudio.service: Failed with result 'exit-code'.
Jul 25 00:07:01 jarnos-OptiPlex-9010 systemd[1569]: Failed to start Sound Service.
Jul 25 00:07:01 jarnos-OptiPlex-9010 systemd[1569]: Reached target Main User Target.
Jul 25 00:07:01 jarnos-OptiPlex-9010 systemd[1569]: Startup finished in 220ms.
Jul 25 00:07:02 jarnos-OptiPlex-9010 systemd[1569]: pulseaudio.service: Scheduled restart job, restart counter is at 1."

default.pa attached?field.comment=From syslog:
"Jul 25 00:07:01 jarnos-OptiPlex-9010 pulseaudio[1580]: No card found by this name or index.
Jul 25 00:07:01 jarnos-OptiPlex-9010 pulseaudio[1580]: Failed to initialize daemon due to errors while executing startup commands. Source of commands: /home/jarnos/.config/pulse//default.pa
Jul 25 00:07:01 jarnos-OptiPlex-9010 systemd[1569]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
Jul 25 00:07:01 jarnos-OptiPlex-9010 systemd[1569]: pulseaudio.service: Failed with result 'exit-code'.
Jul 25 00:07:01 jarnos-OptiPlex-9010 systemd[1569]: Failed to start Sound Service.
Jul 25 00:07:01 jarnos-OptiPlex-9010 systemd[1569]: Reached target Main User Target.
Jul 25 00:07:01 jarnos-OptiPlex-9010 systemd[1569]: Startup finished in 220ms.
Jul 25 00:07:02 jarnos-OptiPlex-9010 systemd[1569]: pulseaudio.service: Scheduled restart job, restart counter is at 1."

default.pa attached

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

It sounds like the error is coming from:

  /home/jarnos/.config/pulse/default.pa

so I would recommend just deleting that custom config file if you can't figure out where the error is.

If the file reappears and you didn't manually create it then we would need to find out which app is creating the file.

Changed in pulseaudio (Ubuntu):
status: New → Incomplete
Revision history for this message
Jarno Suni (jarnos) wrote :

I created the custom default.pa. It adds only two commands when compared to default /etc/pulse/default.pa:
load-module module-native-protocol-tcp auth-ip-acl=192.168.100.51
set-card-profile alsa_card.pci-0000_00_1b.0 input:analog-stereo

The first one I need for network access of pulseaudio from a separate server (https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Network/#authorization) and the second one sets up the profile for the integrated alsa_card.pci-0000_00_1b.0 to use it only for input. I use an USB device for output. Pulseaudio should be able to handle these.

Changed in pulseaudio (Ubuntu):
status: Incomplete → New
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Yes PulseAudio should be able able to handle it but it also looks like the cause of this bug. Please try temporarily moving that file to a different directory and logging in again.

Changed in pulseaudio (Ubuntu):
status: New → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Assuming the config file is correct, the next step would be to report the problem to the developers at:

  https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues

and then tell us the new issue ID.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for pulseaudio (Ubuntu) because there has been no activity for 60 days.]

Changed in pulseaudio (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.