unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [WIP] Lightdm service
@ 2019-04-17 14:43 L p R n d n
  2019-04-18 10:49 ` L p R n d n
  0 siblings, 1 reply; 3+ messages in thread
From: L p R n d n @ 2019-04-17 14:43 UTC (permalink / raw)
  To: guix-devel


Hello,

I'm trying to write a service for lightdm but I'm currently stuck but
maybe some of you might have a clue.
FYI, relevant patches can be found here:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=35305

The problem is that the service is unable to start a session. After
login, lightdm just black screen and restart.

Looking at logs, the only relevant problem I was able to find is from
pam. It says something like:
`pam_elogind[...] Failed to release session: No session 'cN' known`

Also, an issue was posted recently upstream about window managers not
being able to find Xauthority if XAUTHORITY environment variable is set.
See https://github.com/CanonicalLtd/lightdm/issues/68 . But I'm not sure
it's relevant her.

So if anyone has a lead, please share it! :)

Have a nice day,

L  p R n  d n   

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [WIP] Lightdm service
  2019-04-17 14:43 [WIP] Lightdm service L p R n d n
@ 2019-04-18 10:49 ` L p R n d n
  2019-04-18 13:28   ` L p R n d n
  0 siblings, 1 reply; 3+ messages in thread
From: L p R n d n @ 2019-04-18 10:49 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 125 bytes --]

Hello again!

Just sharing some logsthat might be usefull.
And everything is tested in a simple vm.

Thanks,

L  p R n  d n


[-- Attachment #2: secure --]
[-- Type: application/octet-stream, Size: 1251 bytes --]

Apr 18 12:12:47 localhost polkitd[252]: Loading rules from directory /etc/polkit-1/rules.d
Apr 18 12:12:47 localhost polkitd[252]: Loading rules from directory /gnu/store/by70zyx20zfcsc19fsprgdw9dc3n78g9-polkit-0.115/share/polkit-1/rules.d
Apr 18 12:12:47 localhost polkitd[252]: Finished loading, compiling and executing 0 rules
Apr 18 12:12:47 localhost polkitd[252]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
Apr 18 12:12:48 localhost lightdm: pam_unix(lightdm-greeter:session): session opened for user lightdm by (uid=0)
Apr 18 12:12:52 localhost lightdm: pam_elogind(lightdm-greeter:session): Failed to release session: No session 'c1' known
Apr 18 12:12:52 localhost lightdm: pam_unix(lightdm-greeter:session): session closed for user lightdm
Apr 18 12:12:52 localhost lightdm: pam_unix(lightdm:session): session opened for user alice by (uid=0)
Apr 18 12:12:52 localhost lightdm: pam_unix(lightdm:session): session closed for user alice
Apr 18 12:12:53 localhost lightdm: pam_unix(lightdm-greeter:session): session opened for user lightdm by (uid=0)
Apr 18 12:13:05 localhost login[211]: pam_unix(login:session): session opened for user root by LOGIN(uid=0)
Apr 18 12:13:05 localhost login[324]: ROOT LOGIN  on '/dev/tty1'

[-- Attachment #3: lightdm.log --]
[-- Type: application/octet-stream, Size: 8026 bytes --]

[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.28.0, UID=0 PID=236
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/xdg/lightdm/lightdm.conf.d/lightdm.conf
[+0.00s] DEBUG: Loading configuration from /gnu/store/0z6w7mjcxg42w5l10aik4nfsdq4m6bzx-lightdm-1.28.0/etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Registered seat module local
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Registered seat module unity
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.01s] DEBUG: Monitoring logind for seats
[+0.01s] DEBUG: New seat added from logind: seat0
[+0.01s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.01s] DEBUG: Seat seat0: Starting
[+0.01s] DEBUG: Seat seat0: Creating greeter session
[+0.02s] DEBUG: Seat seat0: Creating display server of type x
[+0.02s] DEBUG: Could not run plymouth --ping: Failed to execute child process “plymouth” (No such file or directory)
[+0.02s] DEBUG: Using VT 7
[+0.02s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.02s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+0.02s] DEBUG: XServer 0: Writing X server authority to /var/run/lightdm/root/:0
[+0.02s] DEBUG: XServer 0: Launching X Server
[+0.02s] DEBUG: Launching process 245: /gnu/store/v6l3wgbz5y96lmrkihiaxa3lswxkcx1m-startx :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.02s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+0.02s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.02s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.74s] DEBUG: Loading users from org.freedesktop.Accounts
[+0.74s] DEBUG: User /org/freedesktop/Accounts/User1000 added
[+0.74s] WARNING: Error updating user /org/freedesktop/Accounts/User1000: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: No such interface 'org.freedesktop.DisplayManager.AccountsService'
[+2.05s] DEBUG: Got signal 10 from process 245
[+2.05s] DEBUG: XServer 0: Got signal from X server :0
[+2.05s] DEBUG: XServer 0: Connecting to XServer :0
[+2.06s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+2.06s] DEBUG: Session pid=282: Started with service 'lightdm-greeter', username 'lightdm'
[+2.15s] DEBUG: Session pid=282: Authentication complete with return value 0: Success
[+2.15s] DEBUG: Seat seat0: Session authenticated, running command
[+2.15s] DEBUG: Session pid=282: Running command /gnu/store/3cc4yddchv6fjl1hld50j0pch4cawfgs-lightdm-gtk-greeter-2.0.6/sbin/lightdm-gtk-greeter
[+2.15s] DEBUG: Creating shared data directory /var/lib/lightdm-data/lightdm
[+2.15s] DEBUG: Session pid=282: Logging to /var/log/lightdm/seat0-greeter.log
[+2.17s] DEBUG: Activating VT 7
[+2.17s] DEBUG: Activating login1 session c1
[+2.17s] DEBUG: Seat seat0 changes active session to c1
[+2.17s] DEBUG: Session c1 is already active
[+2.97s] DEBUG: Greeter connected version=1.28.0 api=1 resettable=false
[+4.55s] DEBUG: Greeter start authentication for alice
[+4.55s] DEBUG: Session pid=297: Started with service 'lightdm', username 'alice'
[+4.65s] DEBUG: Session pid=297: Got 1 message(s) from PAM
[+4.65s] DEBUG: Prompt greeter with 1 message(s)
[+5.63s] DEBUG: Continue authentication
[+5.64s] DEBUG: Session pid=297: Authentication complete with return value 0: Success
[+5.64s] DEBUG: Authenticate result for user alice: Success
[+5.64s] DEBUG: User alice authorized
[+5.64s] DEBUG: Greeter requests session ratpoison
[+5.70s] DEBUG: Writing /home/alice/.dmrc
[+5.71s] DEBUG: Seat seat0: Stopping greeter; display server will be re-used for user session
[+5.71s] DEBUG: Terminating login1 session c1
[+5.71s] DEBUG: Session pid=282: Sending SIGTERM
[+5.71s] DEBUG: Seat seat0 changes active session to 
[+5.77s] DEBUG: Greeter closed communication channel
[+5.77s] DEBUG: Session pid=282: Exited with return value 0
[+5.77s] DEBUG: Seat seat0: Session stopped
[+5.77s] DEBUG: Seat seat0: Greeter stopped, running session
[+5.77s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
[+5.78s] DEBUG: Session pid=297: Running command lightdm-session /gnu/store/gkrsgwk9blqpfsvjlbp2jdk9p1kbj091-ratpoison-1.4.9/bin/ratpoison
[+5.78s] DEBUG: Creating shared data directory /var/lib/lightdm-data/alice
[+5.78s] DEBUG: Session pid=297: Logging to .xsession-errors
[+5.79s] DEBUG: Activating VT 7
[+5.79s] DEBUG: Activating login1 session c2
[+5.79s] DEBUG: Seat seat0 changes active session to c2
[+5.79s] DEBUG: Session c2 is already active
[+5.80s] DEBUG: Seat seat0 changes active session to 
[+5.80s] DEBUG: Session pid=297: Exited with return value 1
[+5.80s] DEBUG: Seat seat0: Session stopped
[+5.80s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+5.80s] DEBUG: Sending signal 15 to process 245
[+5.81s] DEBUG: Process 245 exited with return value 0
[+5.81s] DEBUG: XServer 0: X server stopped
[+5.81s] DEBUG: Releasing VT 7
[+5.81s] DEBUG: XServer 0: Removing X server authority /var/run/lightdm/root/:0
[+5.81s] DEBUG: Seat seat0: Display server stopped
[+5.81s] DEBUG: Seat seat0: Active display server stopped, starting greeter
[+5.81s] DEBUG: Seat seat0: Creating greeter session
[+5.82s] DEBUG: Seat seat0: Creating display server of type x
[+5.82s] DEBUG: Using VT 7
[+5.82s] DEBUG: Seat seat0: Starting local X display on VT 7
[+5.82s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+5.82s] DEBUG: XServer 0: Writing X server authority to /var/run/lightdm/root/:0
[+5.82s] DEBUG: XServer 0: Launching X Server
[+5.82s] DEBUG: Launching process 303: /gnu/store/v6l3wgbz5y96lmrkihiaxa3lswxkcx1m-startx :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+5.82s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+5.96s] WARNING: Error updating user /org/freedesktop/Accounts/User1000: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: No such interface 'org.freedesktop.DisplayManager.AccountsService'
[+6.37s] WARNING: Error updating user /org/freedesktop/Accounts/User1000: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: No such interface 'org.freedesktop.DisplayManager.AccountsService'
[+6.62s] WARNING: Error updating user /org/freedesktop/Accounts/User1000: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: No such interface 'org.freedesktop.DisplayManager.AccountsService'
[+6.69s] DEBUG: Got signal 10 from process 303
[+6.69s] DEBUG: XServer 0: Got signal from X server :0
[+6.69s] DEBUG: XServer 0: Connecting to XServer :0
[+6.69s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+6.69s] DEBUG: Session pid=307: Started with service 'lightdm-greeter', username 'lightdm'
[+6.78s] DEBUG: Session pid=307: Authentication complete with return value 0: Success
[+6.78s] DEBUG: Seat seat0: Session authenticated, running command
[+6.78s] DEBUG: Session pid=307: Running command /gnu/store/3cc4yddchv6fjl1hld50j0pch4cawfgs-lightdm-gtk-greeter-2.0.6/sbin/lightdm-gtk-greeter
[+6.78s] DEBUG: Creating shared data directory /var/lib/lightdm-data/lightdm
[+6.78s] DEBUG: Session pid=307: Logging to /var/log/lightdm/seat0-greeter.log
[+6.79s] DEBUG: Activating VT 7
[+6.79s] DEBUG: Activating login1 session c3
[+6.79s] DEBUG: Seat seat0 changes active session to c3
[+6.79s] DEBUG: Session c3 is already active
[+7.38s] DEBUG: Greeter connected version=1.28.0 api=1 resettable=false
[+8.30s] DEBUG: Greeter start authentication for alice
[+8.30s] DEBUG: Session pid=322: Started with service 'lightdm', username 'alice'
[+8.40s] DEBUG: Session pid=322: Got 1 message(s) from PAM
[+8.40s] DEBUG: Prompt greeter with 1 message(s)
[+15.09s] DEBUG: Seat seat0 changes active session to 
[+19.44s] DEBUG: Seat seat0 changes active session to c4

[-- Attachment #4: seat0-greeter.log --]
[-- Type: application/octet-stream, Size: 3756 bytes --]

** Message: 12:12:53.548: Starting lightdm-gtk-greeter 2.0.6 (Jan  1 1970, 00:00:01)
** Message: 12:12:53.562: [Configuration] Reading file: /etc/xdg/lightdm/lightdm-gtk-greeter.conf
** Message: 12:12:53.563: [Configuration] Reading file: /gnu/store/3cc4yddchv6fjl1hld50j0pch4cawfgs-lightdm-gtk-greeter-2.0.6/etc/lightdm/lightdm-gtk-greeter.conf

** (lightdm-gtk-greeter:310): WARNING **: 12:12:53.841: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
DEBUG-Message: 12:12:53.841: Connecting to display manager...
DEBUG-Message: 12:12:53.841: Wrote 26 bytes to daemon
DEBUG-Message: 12:12:53.841: Read 8 bytes from daemon
DEBUG-Message: 12:12:53.841: Read 153 bytes from daemon
DEBUG-Message: 12:12:53.841: Connected api=1 version=1.28.0 default-session= show-manual-login=false hide-users=false has-guest-account=false show-remote-login=true
DEBUG-Message: 12:12:53.842: [Configuration] Changing GTK+ theme to ''
DEBUG-Message: 12:12:53.905: [Configuration] GTK+ theme: ''
DEBUG-Message: 12:12:53.905: [Configuration] Changing icons theme to 'Adwaita'
DEBUG-Message: 12:12:53.905: [Configuration] Icons theme: 'Adwaita'
DEBUG-Message: 12:12:53.905: [Configuration] Changing cursor theme to 'Adwaita'
DEBUG-Message: 12:12:53.906: [Configuration] Cursor theme: 'Adwaita'
DEBUG-Message: 12:12:53.906: [Configuration] Changing font to 'Sans 10'
DEBUG-Message: 12:12:53.906: [Configuration] Font: 'Sans 10'
DEBUG-Message: 12:12:53.911: [PIDs] Command executed (#318): /gnu/store/bpjcakm69bj8lwz40a3ajkcc0xvbgsb3-at-spi2-core-2.26.2/libexec/at-spi-bus-launcher
Failed to launch bus: Failed to connect to session busDEBUG-Message: 12:12:54.729: Loaded session /run/current-system/profile/share/xsessions/ratpoison.desktop (ratpoison, Tiling window manager: say goodbye to the rodent!)
DEBUG-Message: 12:12:54.732: [Configuration] Monitor configuration found: '*'
DEBUG-Message: 12:12:54.732: [Background] Connecting to screen: 0x186a060 (1024x768px, 270x203mm)
DEBUG-Message: 12:12:54.732: [Background] Monitors found: 1
DEBUG-Message: 12:12:54.732: [Background] Monitor: <unknown> #0 (1024x768 at 0x0) primary
DEBUG-Message: 12:12:54.732: [Background] No configuration options for monitor <unknown> #0, using default
DEBUG-Message: 12:12:54.734: [Background] Pointer position will be used to set active monitor: 512x384
DEBUG-Message: 12:12:54.757: [Background] Active monitor changed to: (null) #0
DEBUG-Message: 12:12:54.760: Loading users from org.freedesktop.Accounts
DEBUG-Message: 12:12:54.760: User /org/freedesktop/Accounts/User1000 added

** (lightdm-gtk-greeter:310): WARNING **: 12:12:54.761: Error updating user /org/freedesktop/Accounts/User1000: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: No such interface 'org.freedesktop.DisplayManager.AccountsService'
DEBUG-Message: 12:12:54.762: Loading sessions from org.freedesktop.DisplayManager
DEBUG-Message: 12:12:54.763: Failed to load user image: Failed to open file “/home/alice/.face”: Permission denied
DEBUG-Message: 12:12:54.763: Starting authentication for user alice...
DEBUG-Message: 12:12:54.763: Wrote 21 bytes to daemon
DEBUG-Message: 12:12:54.772: Run Gtk loop...

(lightdm-gtk-greeter:310): Gtk-WARNING **: 12:12:54.787: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node menubar owner GreeterMenuBar)
DEBUG-Message: 12:12:54.858: Read 8 bytes from daemon
DEBUG-Message: 12:12:54.858: Read 35 bytes from daemon
DEBUG-Message: 12:12:54.858: Prompt user with 1 message(s)

(lightdm-gtk-greeter:310): Gtk-WARNING **: 12:13:00.736: Drawing a gadget with negative dimensions. Did you forget to allocate a size? (node menubar owner GreeterMenuBar)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [WIP] Lightdm service
  2019-04-18 10:49 ` L p R n d n
@ 2019-04-18 13:28   ` L p R n d n
  0 siblings, 0 replies; 3+ messages in thread
From: L p R n d n @ 2019-04-18 13:28 UTC (permalink / raw)
  To: guix-devel

Hello again again,

Just to tell you, the problem has been fixed.
For information, to start a xsession, it needed a correct wrapper.
'xinitrc' located in gnu/services/xorg.scm seems to provide just that.
Adding it to the lightdm.conf under 'session-wrapper' makes the magic
happen! :D

Have a nice day,

L  p R n  d n

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-04-18 11:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-17 14:43 [WIP] Lightdm service L p R n d n
2019-04-18 10:49 ` L p R n d n
2019-04-18 13:28   ` L p R n d n

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).