[buildd-tools-devel] Bug#675788: schroot: PulseAudio not working in a default desktop schroot

Luca Capello luca at pca.it
Sun Jun 3 11:06:33 UTC 2012


Package: schroot
Version: 1.5.4-1
Severity: important
File: /etc/schroot/desktop/fstab
Usertags: pca.it-multimedia

Hi there!

With the latest upgrade, /etc/schroot/desktop/fstab gained PulseAudio
support (BTW, there is an extra space before the target folder):

--8<---------------cut here---------------start------------->8---
# For PulseAudio and other desktop-related things
/var/lib/dbus	 /var/lib/dbus	none	rw,bind		0	0
--8<---------------cut here---------------end--------------->8---

However, I am not able to use PulseAudio inside the schroot:
=====
root at gismo:~# cat /etc/schroot/chroot.d/test-sid-desktop
[sid-desktop-test]
type=directory
description=Debian sid (unstable) for GUI applications (test schroot)
directory=/srv/chroot/sid-desktop-test
users=luca
groups=users
root-groups=root
profile=desktop

root at gismo:~# cdebootstrap sid /srv/chroot/sid-desktop-test
[...]
root at gismo:~# schroot -c sid-desktop-test
[...]

(sid-desktop-test)root at gismo:~# apt-get update
[...]
(sid-desktop-test)root at gismo:~# apt-get install pulseaudio-utils
[...]

[example WAV files from <https://en.wikipedia.org/wiki/WAV>]
(sid-desktop-test)root at gismo:~# wget http://www.nch.com.au/acm/11k16bitpcm.wav
[...]
(sid-desktop-test)root at gismo:~# paplay 11k16bitpcm.wav
Connection failure: Connection refused
pa_context_connect() failed: Connection refused

(sid-desktop-test)root at gismo:~# apt-get install pulseaudio
[...]
Setting up pulseaudio (2.0-3) ...
Adding user pulse to group audio
[warn] PulseAudio configured for per-user sessions ... (warning).
Setting up pulseaudio-module-x11 (2.0-3) ...
Setting up rtkit (0.10-2) ...
[....] Reloading system message bus config...Failed to open connection \
 to "system" message bus: Failed to connect to socket \
 /var/run/dbus/system_bus_socket: No such file or directory
invoke-rc.d: initscript dbus, action "force-reload" failed.
[...]

(sid-desktop-test)root at gismo:~# paplay 11k16bitpcm.wav
Connection failure: Connection refused
pa_context_connect() failed: Connection refused

(sid-desktop-test)root at gismo:~# service dbus restart
[ ok ] Stopping system message bus: dbus.
[ ok ] Starting system message bus: dbus.
(sid-desktop-test)root at gismo:~# service pulseaudio restart
[warn] PulseAudio configured for per-user sessions ... (warning).
(sid-desktop-test)root at gismo:~# paplay 11k16bitpcm.wav
Connection failure: Connection refused
pa_context_connect() failed: Connection refused

(sid-desktop-test)root at gismo:~# pulseaudio --daemonize
W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified).
E: [pulseaudio] main.c: Daemon startup failed.

(sid-desktop-test)root at gismo:~# cp 11k16bitpcm.wav /home/luca/
(sid-desktop-test)root at gismo:~# su luca
bash: warning: setlocale: LC_NUMERIC: cannot change locale (en_US.UTF-8): No such file or directory
bash: warning: setlocale: LC_MESSAGES: cannot change locale (en_US.UTF-8): No such file or directory
(sid-desktop-test)luca at gismo:/root$ paplay /home/luca/11k16bitpcm.wav
Connection failure: Connection refused
pa_context_connect() failed: Connection refused

(sid-desktop-test)luca at gismo:/root$ pulseaudio --daemonize
E: [pulseaudio] main.c: Daemon startup failed.

(sid-desktop-test)luca at gismo:/root$ mount
/dev/mapper/gismo-home on / type ext4 (rw,noatime,user_xattr,acl,barrier=1,data=ordered)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,relatime,size=1536044k,nr_inodes=384011,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
/dev/mapper/gismo-home on /home type ext4 (rw,noatime,user_xattr,acl,barrier=1,data=ordered)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime,size=617196k)
/dev/mapper/gismo-root on /var/lib/dbus type ext4 (rw,noatime,errors=remount-ro,user_xattr,acl,barrier=1,data=ordered)
=====

Mounting /run/dbus let paplay start, but there is no sound.  Mounting
/run/udev gives sound, exactly as explained at #649884 (affect added,
sorry for the being late).

So, basically, I would say that mounting /var/lib/dbus alone is useless.
Actually, I would even say that it is counter-productive, given that it
gives the false assumption that /var/lib/dbus/ is the only mounting
needed for PulseAudio, while it is not (I would be happy to stand
corrected).

Moreover, please also note that some applications (at least Empathy, see
#652487) does not work as expected with /var/lib/dbus/ mounted.

Thx, bye,
Gismo / Luca

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.3.0-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages schroot depends on:
ii  libboost-filesystem1.49.0       1.49.0-3
ii  libboost-iostreams1.49.0        1.49.0-3
ii  libboost-program-options1.49.0  1.49.0-3
ii  libboost-regex1.49.0            1.49.0-3
ii  libboost-system1.49.0           1.49.0-3
ii  libc6                           2.13-32
ii  libgcc1                         1:4.7.0-11
ii  liblockdev1                     1.0.3-1.4+b2
ii  libpam0g                        1.1.3-7.1
ii  libstdc++6                      4.7.0-11
ii  libuuid1                        2.20.1-5
ii  schroot-common                  1.5.4-1

schroot recommends no packages.

Versions of packages schroot suggests:
pn  aufs-modules | unionfs-modules  <none>
pn  btrfs-tools                     <none>
pn  debootstrap                     1.0.40
pn  lvm2                            2.02.95-3
pn  qemu-user-static                <none>

-- Configuration Files:
/etc/default/schroot changed:
STOP_ACTION="end"
START_ACTION="end"


-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20120603/da63fc0d/attachment.pgp>


More information about the Buildd-tools-devel mailing list