Bug#758299: startx: X server fails to start, strace shows permission error
Package: xinit Version: 1.3.2-1 Severity: important Dear Maintainer, I was connecting my monitor with my laptop to do some writing stuff. This is normally fine, well it fails sometimes but then I restart my computer. This time it failed again and I thought, good time to update debian. So I did. libc6-dev, linux-headers, and linux-image were updated. After that I restarted and when it came to call startx the X server did exit gracefully with no error. And here I am with no GUI. I first checked /var/log/Xorg.0.log but nothing special, no errors and no important warnings in my eyes. Then I used strace -ff which gave me interesting information about the X server, e.g.: * setresuid(-1, 0, -1) = -1 EPERM (Operation not permitted) * rename(/var/log/Xorg.0.log, /var/log/Xorg.0.log.old) = -1 EACCES (Permission denied) * Fatal Server error and Cannot move old log file /var/log/Xorg. 0.log to /var/log/Xorg.0.log.old This seemed to be a simple privileg issue. I tested sudo startx which got X running. Next, I checked if /usr/bin/X and /usr/bin/Xorg had suid. The first one yes, second one no. I tried chmod u+s /usr/bin/Xorg. But startx still didn't work without sudo. I also deleted /var/log/Xorg*. Same result. And put them again in place. My guess is, that it has something to do with the new kernel version and the x server. I had no time for further testing. I would appreciate your help, aureliano -- System Information: Debian Release: 7.6 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages xinit depends on: ii coreutils 8.13-3.5 ii libc6 2.13-38+deb7u3 ii libx11-62:1.5.0-1+deb7u1 ii x11-common 1:7.7+3~deb7u1 ii xauth 1:1.0.7-1 Versions of packages xinit recommends: ii i3-wm [x-window-manager] 4.2-2 ii xserver-xorg [xserver] 1:7.7+3~deb7u1 ii xterm [x-terminal-emulator] 278-4 xinit suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#758299: startx: X server fails to start, strace shows permission error
Aureliano Vismundo x...@mail36.net (2014-08-16): I was connecting my monitor with my laptop to do some writing stuff. This is normally fine, well it fails sometimes but then I restart my computer. This time it failed again and I thought, good time to update debian. So I did. libc6-dev, linux-headers, and linux-image were updated. After that I restarted and when it came to call startx the X server did exit gracefully with no error. And here I am with no GUI. I first checked /var/log/Xorg.0.log but nothing special, no errors and no important warnings in my eyes. Then I used strace -ff which gave me interesting information about the X server, e.g.: * setresuid(-1, 0, -1) = -1 EPERM (Operation not permitted) * rename(/var/log/Xorg.0.log, /var/log/Xorg.0.log.old) = -1 EACCES (Permission denied) * Fatal Server error and Cannot move old log file /var/log/Xorg. 0.log to /var/log/Xorg.0.log.old Running something under strace disables the setuid bit. It would be nice to see stdout/stderr/X log when starting your session as a regular user. If X exits gracefully, that might just be your window/session manager returning, leading to X's graceful exit. Mraw, KiBi. signature.asc Description: Digital signature
Bug#758299: startx: X server fails to start, strace shows permission error
On Sat, 16 Aug 2014 15:19:27 +0200 Cyril Brulebois wrote: Aureliano Vismundo (2014-08-16): I was connecting my monitor with my laptop to do some writing stuff. This is normally fine, well it fails sometimes but then I restart my computer. This time it failed again and I thought, good time to update debian. So I did. libc6-dev, linux-headers, and linux-image were updated. After that I restarted and when it came to call startx the X server did exit gracefully with no error. And here I am with no GUI. I first checked /var/log/Xorg.0.log but nothing special, no errors and no important warnings in my eyes. Then I used strace -ff which gave me interesting information about the X server, e.g.: * setresuid(-1, 0, -1) = -1 EPERM (Operation not permitted) * rename(/var/log/Xorg.0.log, /var/log/Xorg.0.log.old) = -1 EACCES (Permission denied) * Fatal Server error and Cannot move old log file /var/log/Xorg. 0.log to /var/log/Xorg.0.log.old Running something under strace disables the setuid bit. It would be nice to see stdout/stderr/X log when starting your session as a regular user. If X exits gracefully, that might just be your window/session manager returning, leading to Xs graceful exit. Mraw, KiBi. Hi Kibi, ahh, I understand, thanks for your quick response. There was no stdout, but stderr: http://paste.debian.net/115897/ Im using i3 as window manager. Greets aureliano -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#758299: startx: X server fails to start, strace shows permission error
Could it be something with udevd or systemd? Assuming its the window manager, how can I check it? Besides: What does Mraw mean? =) aureliano -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#758299: startx: X server fails to start, strace shows permission error
Heyho, problem solved. I had an incorrect line in my ~/.gnupg/gpg-agent.conf, indicated by ~/.xsession-errors. This prevented Xsession from starting wich caused the Xserver to exit. Until the last update, these lines seemed to be ineffective (I touched them a year ago, because thunderbird did not cache my password, maybe it works now). Cheers aureliano -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org