Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 717620 - x11-misc/cdm fails to register logind session (was: xmonad: Failed to create secure directory (/run/user/1000/pulse): No such file or directory)
Summary: x11-misc/cdm fails to register logind session (was: xmonad: Failed to create ...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mark Wright
URL: https://github.com/evertiro/cdm/issue...
Whiteboard:
Keywords:
Depends on:
Blocks: elogind-support
  Show dependency tree
 
Reported: 2020-04-15 20:11 UTC by Ole Langbehn
Modified: 2020-08-24 06:21 UTC (History)
4 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 Ole Langbehn 2020-04-15 20:11:30 UTC
I tried switching to elogind, away from consolekit2 as per the news item from 2020-04-14.

I am running xmonad behind cdm.

When in X, I noticed that there's no sound. When I try mpg123, I see the error message

Failed to create secure directory (/run/user/1000/pulse): No such file or directory

and /run/user is empty.

I am starting xmonad with the following line in .xsession
[[ -f /usr/bin/dbus-launch ]] && exec dbus-launch --sh-syntax --exit-with-session xmonad || xmonad

When logged in, I see that dbus-launch was used to exec xmonad.

emerge --info:

Portage 2.3.99 (python 3.6.10-final-0, default/linux/amd64/17.1, gcc-9.3.0, glibc-2.30-r8, 5.6.3-gentoo x86_64)
=================================================================
System uname: Linux-5.6.3-gentoo-x86_64-Intel-R-_Core-TM-_i7-8850H_CPU_@_2.60GHz-with-gentoo-2.7
KiB Mem:    32368288 total,  28910056 free
KiB Swap:   71412732 total,  71412732 free
Timestamp of repository gentoo: Wed, 15 Apr 2020 08:09:32 +0000
Head commit of repository gentoo: 7bab248261dc709b2a57112380201299f450bec1

sh bash 5.0_p16
ld GNU ld (Gentoo 2.34 p1) 2.34.0
app-shells/bash:          5.0_p16::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.2::gentoo
dev-lang/python:          2.7.17-r2::gentoo, 3.6.10-r1::gentoo, 3.7.7-r1::gentoo
dev-util/cmake:           3.17.1::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.2::gentoo
sys-devel/binutils:       2.34::gentoo
sys-devel/gcc:            9.3.0::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.30-r8::gentoo
Repositories:

brother-overlay
    location: /var/lib/layman/brother-overlay
    sync-type: laymansync
    sync-uri: https://github.com/stefan-langenmaier/brother-overlay.git
    masters: gentoo
    priority: 50

dlang
    location: /var/lib/layman/dlang
    sync-type: laymansync
    sync-uri: https://github.com/gentoo/dlang.git
    masters: gentoo
    priority: 50

dotnet
    location: /var/lib/layman/dotnet
    sync-type: laymansync
    sync-uri: https://github.com/gentoo/dotnet.git
    masters: gentoo
    priority: 50

seeds
    location: /var/lib/layman/seeds
    sync-type: laymansync
    sync-uri: git://github.com/vonavi/seeds.git
    masters: gentoo
    priority: 50

torbrowser
    location: /var/lib/layman/torbrowser
    sync-type: laymansync
    sync-uri: https://github.com/MeisterP/torbrowser-overlay.git
    masters: gentoo
    priority: 50

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: 1000

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -ggdb -ftree-vectorize"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going -j --load-average 8.0 --with-bdeps=y"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.halifax.rwth-aachen.de/gentoo/ http://ftp.fau.de/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 berkdb bsf bzip2 cairo caps cdda cddb cdparanoia cli consolekit crypt cups curl dbus directfb dri dts dvdr encode exif fbcon ffmpeg firefox flac fontconfig fortran ftp gdbm gimp glut gnome gnuplot gphoto2 gpm gstreamer gtk gtkhtml gzip iconv icq icu idn imagemagick imap imlib innodb ipv6 jabber java java6 jingle jpeg jpeg2k kde libnotify libtirpc lm_sensors lzma lzo mad matroska mng mozilla mp3 mp4 mpeg mplayer musicbrainz mysql mysqli ncurses nls nptl ocamlopt ogg openexr opengl openmp pam pcmcia pcre pdf pic png policykit posix postgres ppds pulseaudio qt3support qt5 rdesktop readline recode samba sasl sdl seccomp sharedmem shorten smp sockets sound split-usr sqlite sqlite3 ssl svg syslog tcpd theora threads tidy tiff truetype udev udisks unicode upower vaapi vhosts vim-syntax vorbis wifi x264 xattr xcb xcomposite xft xinerama xml xmpp xosd xpm xsl xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_core authn_dbd authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_connect proxy_http rewrite setenvif so socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="de" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Ole Langbehn 2020-04-15 20:14:44 UTC
Sorry, the list of USE in emerge --info is from after rolling back. When the issue happened, it of course contained "-consolekit elogind" and packages were rebuilt.
Comment 2 Andreas Sturmlechner gentoo-dev 2020-04-16 21:29:29 UTC
$ loginctl

Does it show your session? Did you try to add elogind to boot runlevel?
Comment 3 Ole Langbehn 2020-04-17 06:21:25 UTC
(In reply to Andreas Sturmlechner from comment #2)
> $ loginctl
> 
> Does it show your session? 

Nope.

> Did you try to add elogind to boot runlevel?

Nope, I verified that the daemon was running after login using ps and figured I would not need to do that.
Comment 4 f00wl 2020-05-07 12:16:25 UTC
Hi, I have quite the same problem.
I add elogind to boot runlevel but when I'm logged in with cdm (on tty1) user session not listed with loginctl. Otherwise if I login to tty2 (who don't launch X) user session is well listed. I also tried to login with su <user> in X session but it doesn't works.

Here is my ~/.xinitrc command to launch X:
> exec dbus-launch --sh-syntax --exit-with-session awesome

emerge --info: http://dpaste.com/2EYS8WS
Comment 5 Ole Langbehn 2020-06-25 06:10:29 UTC
Any updates? Shouldn't this be a blocker for moving further ahead with elogind?

According to the news item 2020-06-24-xorg-server-dropping-default-suid, I have 2 options of moving forward if elogind is not an option for me:

* use systemd (not an option for me)
* keep running X as root by using USE="-elogind suid" (would like to change that)

Please give an update on this issue.
Comment 6 Andreas Sturmlechner gentoo-dev 2020-06-25 07:01:08 UTC
(In reply to Ole Langbehn from comment #5)
> * use systemd (not an option for me)
And I doubt it would do anything, if elogind does not work for you either.

From the description here and looking at the x11-misc/cdm ebuild, it looks like cdm has no logind support whatsoever so it does not bring up a session for you.
Comment 7 Ole Langbehn 2020-06-25 07:06:31 UTC
Thanks for the reply.

https://github.com/evertiro/cdm/issues/12 seems to provide a workaround (setting consolekit=yes in cdmrc. Will try that in the next weeks and get back to you.
Comment 8 Andreas Sturmlechner gentoo-dev 2020-06-25 07:08:55 UTC
(In reply to Ole Langbehn from comment #5)
> Any updates? Shouldn't this be a blocker for moving further ahead with
> elogind?

I'm afraid no. If legacy application depends on legacy option in X (or needs to reshuffle its config options) that is a dependency or bug to fix within its meta data.
Comment 9 Ole Langbehn 2020-06-27 15:42:15 UTC
Didn't get cdm to work with elogind using the consolekit=yes setting in cdmrc file.
Comment 10 Sven Eden 2020-08-23 16:07:12 UTC
Ole, is pam_elogind activated?
Comment 11 Ole Langbehn 2020-08-24 06:21:13 UTC
Sorry Sven, but I am no longer using cdm on gentoo. I am closing this issue. Feel free to reopen if deemed necessary.