You are not logged in.

#1 2015-09-03 16:10:22

hefeweiz3n
Member
Registered: 2015-08-14
Posts: 4

[Resolved] Plasma 5.4 session start fails when using kwallet_pam

Hi,
I am running Plasma 5.4 from testing.

When I add pam_kwallet to /etc/pam.d/sddm as follows Plasma won't let me start my session any more. I get stuck at a black screen and can move only the mouse cursor. Using a tty and exporting DISPLAY=:0 i can start plasmashell or anything else in the X-Session, however kdeinit/kded5 or whatever is not running and therefore it is pretty unusable.

I have added the most recent logs from journalctl. As far as I can tell pam unlocks kwallet successully but then things go awry. Maybe one of you can make sense of it.

#%PAM-1.0

auth           include         system-login
auth           optional        pam_kwallet5.so

account        include         system-login

password       include         system-login

session        include         system-login
session        optional        pam_kwallet5.so
Sep 03 17:40:04 sam systemd[1]: Started Simple Desktop Display Manager.
Sep 03 17:40:04 sam polkitd[613]: Unregistered Authentication Agent for unix-process:1044:122624 (system bus name :1.23, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale de_DE.UTF-8) (disconnected from bus)
Sep 03 17:40:04 sam sddm[1051]: Initializing...
Sep 03 17:40:04 sam sddm[512]: Checking for pam module
Sep 03 17:40:04 sam sddm[512]: Got pam-login
Sep 03 17:40:04 sam sddm[512]: kwalletd: Waiting for hash on 15-
Sep 03 17:40:04 sam sddm[512]: kwalletd: waitingForEnvironment on: 18
Sep 03 17:40:04 sam sddm[512]: kwalletd: client connected
Sep 03 17:40:04 sam sddm[512]: kwalletd: client disconnected
Sep 03 17:40:04 sam sddm[1051]: Starting...
Sep 03 17:40:04 sam sddm[1051]: Adding new display 0 on vt 1 ...
Sep 03 17:40:04 sam sddm[1051]: Adding cookie to "/var/run/sddm/:0"
Sep 03 17:40:04 sam sddm[1051]: Display server starting...
Sep 03 17:40:04 sam sddm[1051]: Running: /usr/bin/X :0 -auth /var/run/sddm/:0 -nolisten tcp -background none -noreset vt1
Sep 03 17:40:05 sam systemd-coredump[1049]: Process 857 (kactivitymanage) of user 1000 dumped core.
Sep 03 17:40:05 sam sddm[1051]: Signal received: SIGUSR1
Sep 03 17:40:05 sam sddm[1051]: Running display setup script  "/usr/share/sddm/scripts/Xsetup"
Sep 03 17:40:05 sam sddm[1051]: Display server started.
Sep 03 17:40:05 sam sddm[1051]: Socket server starting...
Sep 03 17:40:05 sam sddm[1051]: Socket server started.
Sep 03 17:40:05 sam sddm[1051]: Greeter starting...
Sep 03 17:40:05 sam sddm-helper[1073]: [PAM] Starting...
Sep 03 17:40:05 sam sddm-helper[1073]: [PAM] Authenticating...
Sep 03 17:40:05 sam sddm-helper[1073]: [PAM] returning.
Sep 03 17:40:05 sam sddm-helper[1073]: pam_unix(sddm-greeter:session): session opened for user sddm by (uid=0)
Sep 03 17:40:05 sam systemd-logind[476]: New session c4 of user sddm.
Sep 03 17:40:05 sam systemd[1]: Started Session c4 of user sddm.
Sep 03 17:40:05 sam sddm[1051]: Greeter session started successfully
Sep 03 17:40:05 sam sddm-greeter[1074]: Connected to the daemon.
Sep 03 17:40:05 sam sddm[1051]: Message received from greeter: Connect
Sep 03 17:40:05 sam sddm-greeter[1074]: QObject: Cannot create children for a parent that is in a different thread.
                                        (Parent is SDDM::GreeterApp(0x7fffea651850), parent's thread is QThread(0x221e4c0), current thread is QThread(0x22d70f0)
Sep 03 17:40:05 sam sddm-greeter[1074]: QObject: Cannot create children for a parent that is in a different thread.
                                        (Parent is SDDM::GreeterApp(0x7fffea651850), parent's thread is QThread(0x221e4c0), current thread is QThread(0x22d70f0)
Sep 03 17:40:05 sam sddm-greeter[1074]: QObject: Cannot create children for a parent that is in a different thread.
                                        (Parent is SDDM::GreeterApp(0x7fffea651850), parent's thread is QThread(0x221e4c0), current thread is QThread(0x22d70f0)
Sep 03 17:40:05 sam sddm-greeter[1074]: QObject: Cannot create children for a parent that is in a different thread.
                                        (Parent is SDDM::GreeterApp(0x7fffea651850), parent's thread is QThread(0x221e4c0), current thread is QThread(0x22d70f0)
Sep 03 17:40:05 sam sddm-greeter[1074]: QObject: Cannot create children for a parent that is in a different thread.
                                        (Parent is SDDM::GreeterApp(0x7fffea651850), parent's thread is QThread(0x221e4c0), current thread is QThread(0x22d70f0)
Sep 03 17:40:05 sam sddm-greeter[1074]: QObject: Cannot create children for a parent that is in a different thread.
                                        (Parent is SDDM::GreeterApp(0x7fffea651850), parent's thread is QThread(0x221e4c0), current thread is QThread(0x22d70f0)
Sep 03 17:40:05 sam sddm-greeter[1074]: QObject: Cannot create children for a parent that is in a different thread.
                                        (Parent is SDDM::GreeterApp(0x7fffea651850), parent's thread is QThread(0x221e4c0), current thread is QThread(0x22d70f0)
Sep 03 17:40:05 sam sddm-greeter[1074]: QObject: Cannot create children for a parent that is in a different thread.
                                        (Parent is SDDM::GreeterApp(0x7fffea651850), parent's thread is QThread(0x221e4c0), current thread is QThread(0x22d70f0)
Sep 03 17:40:05 sam sddm-greeter[1074]: QObject: Cannot create children for a parent that is in a different thread.
                                        (Parent is SDDM::GreeterApp(0x7fffea651850), parent's thread is QThread(0x221e4c0), current thread is QThread(0x22d70f0)
Sep 03 17:40:05 sam sddm-greeter[1074]: QObject: Cannot create children for a parent that is in a different thread.
                                        (Parent is SDDM::GreeterApp(0x7fffea651850), parent's thread is QThread(0x221e4c0), current thread is QThread(0x22d70f0)
Sep 03 17:40:05 sam sddm-greeter[1074]: QObject: Cannot create children for a parent that is in a different thread.
                                        (Parent is SDDM::GreeterApp(0x7fffea651850), parent's thread is QThread(0x221e4c0), current thread is QThread(0x22d70f0)
Sep 03 17:40:05 sam sddm-greeter[1074]: QObject: Cannot create children for a parent that is in a different thread.
                                        (Parent is SDDM::GreeterApp(0x7fffea651850), parent's thread is QThread(0x221e4c0), current thread is QThread(0x22d70f0)
Sep 03 17:40:05 sam sddm-greeter[1074]: QObject: Cannot create children for a parent that is in a different thread.
                                        (Parent is SDDM::GreeterApp(0x7fffea651850), parent's thread is QThread(0x221e4c0), current thread is QThread(0x22d70f0)
Sep 03 17:40:05 sam sddm-greeter[1074]: QObject: Cannot create children for a parent that is in a different thread.
                                        (Parent is SDDM::GreeterApp(0x7fffea651850), parent's thread is QThread(0x221e4c0), current thread is QThread(0x22d70f0)
Sep 03 17:40:05 sam sddm-greeter[1074]: QObject: Cannot create children for a parent that is in a different thread.
                                        (Parent is SDDM::GreeterApp(0x7fffea651850), parent's thread is QThread(0x221e4c0), current thread is QThread(0x22d70f0)
Sep 03 17:40:05 sam sddm-greeter[1074]: QObject: Cannot create children for a parent that is in a different thread.
                                        (Parent is SDDM::GreeterApp(0x7fffea651850), parent's thread is QThread(0x221e4c0), current thread is QThread(0x22d70f0)
Sep 03 17:40:05 sam sddm-greeter[1074]: QObject::installEventFilter(): Cannot filter events for objects in a different thread.
Sep 03 17:40:06 sam sddm-greeter[1074]: QObject: Cannot create children for a parent that is in a different thread.
                                        (Parent is SDDM::GreeterApp(0x7fffea651850), parent's thread is QThread(0x221e4c0), current thread is QThread(0x22d70f0)
Sep 03 17:40:06 sam sddm-greeter[1074]: QObject::installEventFilter(): Cannot filter events for objects in a different thread.
Sep 03 17:40:06 sam sddm-greeter[1074]: Message received from daemon: Capabilities
Sep 03 17:40:06 sam sddm-greeter[1074]: Message received from daemon: HostName
Sep 03 17:40:07 sam systemd-logind[476]: Removed session c1.
Sep 03 17:40:09 sam sddm[1051]: Message received from greeter: Login
Sep 03 17:40:09 sam sddm[1051]: Reading from "plasma.desktop"
Sep 03 17:40:09 sam sddm-helper[1089]: [PAM] Starting...
Sep 03 17:40:09 sam sddm-helper[1089]: [PAM] Authenticating...
Sep 03 17:40:09 sam sddm-helper[1089]: [PAM] Preparing to converse...
Sep 03 17:40:09 sam sddm-helper[1089]: [PAM] Conversation with 1 messages
Sep 03 17:40:09 sam sddm-helper[1089]: pam_kwallet5(sddm:auth): (null): pam_sm_authenticate
Sep 03 17:40:09 sam sddm-helper[1089]: [PAM] returning.
Sep 03 17:40:09 sam sddm[1051]: Authenticated successfully
Sep 03 17:40:09 sam sddm-greeter[1074]: Message received from daemon: LoginSucceeded
Sep 03 17:40:09 sam sddm-helper[1089]: pam_kwallet5(sddm:setcred): pam_kwallet5: pam_sm_setcred
Sep 03 17:40:09 sam sddm-helper[1089]: pam_unix(sddm:session): session opened for user philipp by (uid=0)
Sep 03 17:40:09 sam systemd-logind[476]: New session c5 of user philipp.
Sep 03 17:40:09 sam systemd[1]: Started Session c5 of user philipp.
Sep 03 17:40:09 sam sddm-helper[1089]: pam_kwallet5(sddm:session): pam_kwallet5: pam_sm_open_session
Sep 03 17:40:09 sam sddm-helper[1089]: pam_kwallet5(sddm:session): pam_kwallet5: final socket path: /tmp/kwallet5_philipp.socket
Sep 03 17:40:09 sam sddm-helper[1089]: Starting: "/usr/share/sddm/scripts/Xsession" "/usr/bin/startkde"
Sep 03 17:40:10 sam sddm-helper[1073]: [PAM] Ended.
Sep 03 17:40:10 sam sddm[1051]: Auth: sddm-helper exited successfully
Sep 03 17:40:10 sam sddm[1051]: Greeter stopped.
Sep 03 17:40:10 sam sddm-helper[1091]: Adding cookie to "/home/philipp/.Xauthority"
Sep 03 17:40:10 sam sddm[1051]: Session started
Sep 03 17:40:10 sam ksplashqml[1111]: Loading stage  "initial" 164
Sep 03 17:40:10 sam kwalletd5[1090]: kwalletd5 started
Sep 03 17:40:10 sam kwalletd5[1090]: Wallet new enough, using new hash
Sep 03 17:40:10 sam kwalletd5[1090]: klauncher not running... launching kdeinit
Sep 03 17:40:10 sam kdeinit5[1136]: Qt: Session management error: networkIdsList argument is NULL
Sep 03 17:40:10 sam kdeinit5[1136]: Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
Sep 03 17:40:10 sam kded5[1139]: Qt: Session management error: networkIdsList argument is NULL
Sep 03 17:40:12 sam kdeinit5[1146]: Qt: Session management error: networkIdsList argument is NULL
Sep 03 17:40:12 sam kdeinit5[1146]: Waiting for already running klauncher to exit.
Sep 03 17:40:12 sam systemd-coredump[1083]: Coredump of 850 (kwin_x11) is larger than configured processing limit, refusing.
Sep 03 17:40:13 sam kdeinit5[1146]: Waiting for already running klauncher to exit.
Sep 03 17:40:14 sam kdeinit5[1146]: Another instance of klauncher is already running!
Sep 03 17:40:14 sam systemd-coredump[1083]: Process 850 (kwin_x11) of user 1000 dumped core.
Sep 03 17:40:14 sam systemd-logind[476]: Removed session c2.
Sep 03 17:40:14 sam ksmserver[1148]: Qt: Session management error: networkIdsList argument is NULL
Sep 03 17:40:14 sam ksmserver[1148]: Configuring Lock Action
Sep 03 17:40:14 sam ksmserver[1148]: XSync seems available and ready
Sep 03 17:40:14 sam ksmserver[1148]: XSync Inited
Sep 03 17:40:14 sam ksmserver[1148]: Supported, init completed
Sep 03 17:40:14 sam ksmserver[1148]: ksmserver: "/run/user/1000/KSMserver"
Sep 03 17:40:14 sam ksmserver[1148]: ksmserver: KSMServer: SetAProc_loc: conn  0 , prot= local , file= @/tmp/.ICE-unix/1148
Sep 03 17:40:14 sam ksmserver[1148]: ksmserver: KSMServer: SetAProc_loc: conn  1 , prot= unix , file= /tmp/.ICE-unix/1148
Sep 03 17:40:14 sam ksmserver[1148]: ksmserver: KSMServer::restoreSession  "saved at previous logout"
Sep 03 17:40:14 sam ksplashqml[1111]: Loading stage  "ksmserver" 4271
Sep 03 17:40:16 sam ksmserver[1148]: QDBusConnection: name 'org.kde.kglobalaccel' had owner '' but we thought it was ':1.8'
Sep 03 17:40:16 sam ksmserver[1148]: detected kglobalaccel restarting, re-registering all shortcut keys
Sep 03 17:40:16 sam ksmserver[1148]: Session path: "/org/freedesktop/login1/session/c5"
Sep 03 17:40:16 sam ksmserver[1148]: completeShutdownOrCheckpoint called
Sep 03 17:40:16 sam ksmserver[1148]: completeShutdownOrCheckpoint called
Sep 03 17:40:16 sam ksmserver[1148]: completeShutdownOrCheckpoint called
Sep 03 17:40:16 sam ksplashqml[1111]: Loading stage  "wm" 6163
Sep 03 17:40:41 sam kactivitymanagerd[1162]: Setting the name:  "org.kde.ActivityManager.ActivityTemplates"
Sep 03 17:40:41 sam kactivitymanagerd[1162]: Setting the name:  "org.kde.ActivityManager.Resources.Scoring"
Sep 03 17:40:41 sam kactivitymanagerd[1162]: Creating directory:  "/home/philipp/.local/share/kactivitymanagerd/resources/"
Sep 03 17:40:41 sam kactivitymanagerd[1162]: KActivities: Database connection:  "kactivities_db_resources_140090996602880_readwrite" 
                                                 query_only:          QVariant(qlonglong, 0) 
                                                 journal_mode:        QVariant(QString, "wal") 
                                                 wal_autocheckpoint:  QVariant(qlonglong, 100) 
                                                 synchronous:         QVariant(qlonglong, 1)
Sep 03 17:40:41 sam ksmserver[1148]: completeShutdownOrCheckpoint called
Sep 03 17:40:41 sam kwin_x11[1155]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 904, resource id: 10485787, major code: 18 (ChangeProperty), minor code: 0
Sep 03 17:40:41 sam kwin_x11[1155]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 910, resource id: 10485770, major code: 20 (GetProperty), minor code: 0
Sep 03 17:40:41 sam kernel: QXcbEventReader[1160]: segfault at 7fda3b205ca9 ip 00007fda3b205ca9 sp 00007fda38c8bde0 error 14 in locale-archive[7fda3b6b6000+20e000]
Sep 03 17:40:41 sam kwin_x11[1155]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 911, resource id: 10485772, major code: 20 (GetProperty), minor code: 0
Sep 03 17:40:41 sam systemd-coredump[1171]: Process 1159 (kactivitymanage) of user 1000 dumped core.
Sep 03 17:41:00 sam kwalletd5[1090]: Wallet opened by PAM
Sep 03 17:41:00 sam kded5[1139]: "Fehler bei der Ausf\u00FChrung von \u201E/usr/bin/kbuildsycoca5\u201C. Entweder l\u00E4uft KLauncher nicht mehr, oder die Anwendung kann nicht gestartet werden."
Sep 03 17:41:00 sam kwalletd5[1090]: Migration agent starting...
Sep 03 17:41:00 sam kwalletd5[1090]: old wallets were already migrated
Sep 03 17:41:00 sam kwalletd5[1090]: Migration agent stop.
Sep 03 17:41:00 sam kded5[1139]: kf5.kded: kded module "proxyscout" has already been found using JSON metadata, please don't install the now unneeded .desktop file ("kded/proxyscout.desktop").
Sep 03 17:41:00 sam kded5[1139]: klauncher not running... launching kdeinit
Sep 03 17:41:00 sam kdeinit5[1174]: Qt: Session management error: networkIdsList argument is NULL
Sep 03 17:41:00 sam kdeinit5[1174]: Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
Sep 03 17:41:01 sam kwin_x11[1155]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 1005, resource id: 27262977, major code: 18 (ChangeProperty), minor code: 0
Sep 03 17:41:01 sam kwin_x11[1155]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 1009, resource id: 27262978, major code: 18 (ChangeProperty), minor code: 0
Sep 03 17:41:01 sam org.kde.kded5[1098]: kbuildsycoca5 running...
Sep 03 17:41:01 sam kbuildsycoca5[1177]: Reusing existing ksycoca
Sep 03 17:41:01 sam kbuildsycoca5[1177]: Recreating ksycoca file ("/home/philipp/.cache/ksycoca5", version 300)
Sep 03 17:41:01 sam kbuildsycoca5[1177]: Still in the time dict (i.e. deleted files) ("apps")
Sep 03 17:41:01 sam kbuildsycoca5[1177]: Parse error in  "/home/philipp/.config/menus/applications-merged/xdg-desktop-menu-dummy.menu" , line  1 , col  1 :  "unexpected end of file"
Sep 03 17:41:01 sam kbuildsycoca5[1177]: Menu "applications-kmenuedit.menu" not found.
Sep 03 17:41:01 sam kbuildsycoca5[1177]: Saving
Sep 03 17:41:01 sam kbuildsycoca5[1177]: Emitting notifyDatabaseChanged ("apps")
Sep 03 17:41:01 sam kded5[1139]: kf5.kded: kded module "proxyscout" has already been found using JSON metadata, please don't install the now unneeded .desktop file ("kded/proxyscout.desktop").
Sep 03 17:41:49 sam systemd[1]: Started Getty on tty3.
Sep 03 17:41:53 sam login[1181]: pam_unix(login:session): session opened for user philipp by LOGIN(uid=0)
Sep 03 17:41:53 sam systemd-logind[476]: New session c6 of user philipp.
Sep 03 17:41:53 sam systemd[1]: Started Session c6 of user philipp.
Sep 03 17:41:53 sam login[1181]: LOGIN ON tty3 BY philipp

Last edited by hefeweiz3n (2015-11-23 05:50:29)

Offline

#2 2015-11-23 05:49:47

hefeweiz3n
Member
Registered: 2015-08-14
Posts: 4

Re: [Resolved] Plasma 5.4 session start fails when using kwallet_pam

Ok everybody, just wanted to let you know that with the most current KF5/Plasma5 (5.15.0/5.4.3) and sddm/pam (0.13.0/1.2.1) everything is working as expected using the config from above.

Offline

Board footer

Powered by FluxBB