Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 241386 - media-sound/pulseaudio-0.9.12 - module-protocol-stub.c: Failed to create socket directory '/tmp/.esd/socket': Permission denied
Summary: media-sound/pulseaudio-0.9.12 - module-protocol-stub.c: Failed to create sock...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
: 375993 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-11 15:02 UTC by Matteo 'The Peach' Pescarin
Modified: 2013-12-23 16:18 UTC (History)
10 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matteo 'The Peach' Pescarin 2008-10-11 15:02:10 UTC
I don't have esound and I don't want it: seems like pulseaudio is trying to load the esound module anyway but user and system wide:

 module-protocol-stub.c: Failed to create socket directory '/tmp/.esd/socket': Permission denied
 module.c: Failed to load  module "module-esound-protocol-unix" (argument: ""): initialization failed.
 main.c: Module load failed.

this makes pulseaudio crash

# emerge --info
Portage 2.1.4.5 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r7 i686)
=================================================================
System uname: 2.6.25-gentoo-r7 i686 Intel(R) Pentium(R) M processor 1.60GHz
Timestamp of tree: Sat, 11 Oct 2008 09:15:04 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe -m32"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sound /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium-m -pipe -m32"
DISTDIR="/usr/portage/distfiles"
FEATURES="candy ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.ing.unibo.it/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ ftp://213.186.33.37/gentoo-distfiles/ http://213.186.33.37/gentoo-distfiles/ http://gd.tuwien.ac.at/opsys/linux/gentoo/"
LANG="it_IT.UTF-8"
LC_ALL="it_IT.UTF-8"
LINGUAS="it"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip X Xaw3d a52 aac acpi alsa amrnb amrwb apache2 asf audacious audiofile bash-completion bluetooth bundled-libs bzip2 bzlib cairo calendar cdda cdio cdparanoia chardet cli cracklib crypt cups dbus directfb divx4linux dri dts dv dvd dvdr dvdread dynamic effects escreen ethereal exif fb fbcon fbsplash ffmpeg flac flash font-server foomaticdb freetype ftp fuse gecko-sdk geoip gif gimp gimpprint glitz gphoto2 gpm graphviz gtk hal iconv icq id3 imagemagick imlib inkjar ipv6 isdnlog jabber java javascript jbig jikes jpeg jpeg2k lame libnotify libsamplerate lm_sensors lzw-tiff matroska midi mjpeg mmx mng motif mozsvg mp3 mpeg mpeg2 mpeg4 mudflap mysql mysqli ncurses nls nodrm nptl nptlonly nsplugin nvidia offensive ogg opengl openmp pam pcmcia pcre pdf perl php plugin pmu png pnp posix ppds pppd pulseaudio python radiotap rar readline real reflection reiser4 reiserfs rtc samba session slang sockets spamassassin spl sse sse2 ssl startup-notification stroke svg sysfs tcpd theora threads thumbnail tiff tokenizer tordns truetype unicode usb userlocales utf8 v4l v4l2 vcd vorbis wifi win32codecs wma wmf wxgtk1 wxwindows x11vnc x86 xchatdccserver xface xfce xforms xine xinerama xml xorg xosd xpm xscreensaver xv xvid xvmc yv12 zlib" ALSA_CARDS="hda-intel usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="itk" CAMERAS="*" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics wacom joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="nvidia fbdev v4l"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Reproducible: Always

Steps to Reproduce:
1.start pulseaudio with gentoo provided config
Comment 1 Matteo 'The Peach' Pescarin 2008-10-11 15:04:07 UTC
I think that a workaround could be providing a .nofail before loading the esound module:

.nofail
.ifexists module-esound-protocol-unix.so
load-module module-esound-protocol-unix
.endif
.fail

o commenting out the whole loading (bad)
Comment 2 davech 2008-10-23 21:29:20 UTC
The "Failed to create socket directory '/tmp/.esd/socket'" failure always occurs if pulseaudio was previously started as a different user.
Workaround: do "rm -Rf /tmp/.esd" before starting pulsaudio
Comment 3 Bruce Schultz 2009-01-27 21:46:28 UTC
(In reply to comment #2)
> The "Failed to create socket directory '/tmp/.esd/socket'" failure always
> occurs if pulseaudio was previously started as a different user.
> Workaround: do "rm -Rf /tmp/.esd" before starting pulsaudio
> 
Actually, it looks like the solution is to remove the --disable-per-user-esound-socket configure flag in the ebuild. Then, pulseaudio creates a socket based on the user id, like /tmp/.esd-1000/socket.
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-01-27 21:54:43 UTC
Which would just make it not-working since our esound is compiled with a SINGLE socket rather than per-user sockets.
Comment 5 Bruce Schultz 2009-01-28 09:50:14 UTC
Cool, that explains why it is disabled in all of the pulseaudio ebuilds then.

Is there a recommended way for setting it up for multiple users on a single PC, when logged in on different VTs? I previously used a system wide instance of pulseaudio, but the pulseaudio wiki suggests starting it for each login session, which now looks like it won't work.
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-01-29 21:07:15 UTC
Sincerely, I still use it as system wide, even though Lennart dislikes that idea. On the other hand, I think Lennart considers the main target the standard desktop usage, like Windows and OSX does.

We _could_ synchronize both esound and pulseaudio to use per-user sockets like IIRC Ubuntu and Fedora do, but that would also require a rebuild of emul-linux-x86-soundlibs as well.

I sincerely feel ESounD is legacy enough not to care about it, but I guess it might be good enough to put it in .nofail for now. I'll talk with Lennart as soon as I have some spare time.
Comment 7 Nicolas Bock gentoo-dev 2011-05-15 20:43:53 UTC
Diego, any updates on this bug?
Comment 8 Arun Raghavan (RETIRED) gentoo-dev 2011-05-18 04:18:45 UTC
I'm all for completely disabling loading that module by default. Is there really a use for it on current systems?
Comment 9 Pacho Ramos gentoo-dev 2011-07-22 12:46:07 UTC
*** Bug 375993 has been marked as a duplicate of this bug. ***
Comment 10 Pacho Ramos gentoo-dev 2011-11-28 16:03:03 UTC
I am now using pulseaudio and got this issue just now, is there any thing we could do for fixing this? (.nofail, dropping esd module...)

Thanks
Comment 11 Pacho Ramos gentoo-dev 2011-11-29 10:26:53 UTC
CCing Arun as he is shown as co-maintainer (and would like to see this handled soon as three of the machines I maintain have multiple users most of the times and all of them are affected by this :( )
Comment 12 Pacho Ramos gentoo-dev 2011-12-31 20:52:00 UTC
Can this be solved finally? For now, I am living fine without loading esd plugin (and also enabling ACL support in kernel to let other users control volume when they login on different VTs)
Comment 13 razamatan 2012-01-30 10:15:30 UTC
there's going to be pain when gnome-3 goes up for everyone and pulseaudio becomes more and more of a dependency on those installs...

gentoo needs to address this issue.
Comment 14 Arun Raghavan (RETIRED) gentoo-dev 2013-12-23 16:18:10 UTC
We dropped esd support altogether at some point.