Bug 726896

Summary: dependancy cycle (systemd)
Product: [openSUSE] openSUSE 12.1 Reporter: David Kerkhof <dutchkind>
Component: OtherAssignee: Frederic Crozat <fcrozat>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P3 - Medium CC: aduffeck, fcrozat, mt
Version: RC 2   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: dmesg output with systemd debug messages
dmesg output
dmesg output

Description David Kerkhof 2011-10-27 17:24:21 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20100101 Firefox/8.0

On the Acer aspire One 522 with AMD C50 processor and ATI video card, in beta1 I could start with nomodeset in grub, but after upgrading to RC1 X will not start anymore. I can login as root and then run startx, and the graphical system with KDE then starts and runs without any problem, but for normal users I have not been able to start a graphical session.
As a side note, I discovered that a boot in Beta1 would hang with the graphical splash screen enabled, no boot splash screen in grub started the system OK, in combination of nomodeset

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Comment 1 Stefan Dirsch 2011-10-27 18:17:58 UTC
> I can login as root and then run startx

What if you run "rcxdm start" instead? What happens? Any error message?
Comment 2 David Kerkhof 2011-10-28 15:55:12 UTC
I tried, x starts, graphical login screen appears, no errors.
Comment 3 Stefan Dirsch 2011-10-28 15:58:59 UTC
Seems you've booted into runlevel 3.
Comment 4 David Kerkhof 2011-10-28 16:03:26 UTC
But why, I upgrade a working system, 12.1 beta1, to 12.1 RC1? And then, how do I get that fixed, with systemd? (I still need to figure out lots about systemd, it's also not easy to use without any boot messages available on screen)
Comment 5 Stefan Dirsch 2011-10-28 17:32:04 UTC
Well, I'm not familiar with systemd either. Frederic, any hints you can give us?
Comment 6 Frederic Crozat 2011-10-31 12:54:40 UTC
could you start your system with the following added to your boot command line :
systemd.log_level=debug systemd.log_target=kmsg

and once system is booted (text mode, since display manager doesn't start), run dmesg and attach its output to this bug report. 

Thanks.
Comment 7 Andre Duffeck 2011-10-31 15:38:28 UTC
I initially thought i had the same issue but while trying to reproduce it i found that X _does_ start, but only 30 seconds after the login prompt appeared which is quite a bad user experience.

David, is that the same for you or is it a different issue?

I'll attach my dmesg output below, maybe it helps.
Comment 8 Andre Duffeck 2011-10-31 15:39:09 UTC
Created attachment 459611 [details]
dmesg output with systemd debug messages
Comment 9 Frederic Crozat 2011-10-31 15:48:20 UTC
you have a network timeout and remotefs (either nfs or samba) involved, which is causing a 30s timeout.

are you using NetworkManager or legacy ifup ?
Comment 10 Andre Duffeck 2011-10-31 15:57:48 UTC
I use NetworkManager, and yes, i have my home on NIS (which works fine).
Comment 11 Andre Duffeck 2011-10-31 15:59:37 UTC
Hm, ok. i just double-checked and my system is configured to use ifup...
Comment 12 David Kerkhof 2011-10-31 16:52:08 UTC
(In reply to comment #7)
> I initially thought i had the same issue but while trying to reproduce it i
> found that X _does_ start, but only 30 seconds after the login prompt appeared
> which is quite a bad user experience.
> 
> David, is that the same for you or is it a different issue?
> 
> I'll attach my dmesg output below, maybe it helps.

I noticed it takes rather long before the graphical login starts, the first times I thought it didn't start, then I discovered this, so I wait a while. But it's not 30 seconds, a lot less.
Comment 13 David Kerkhof 2011-10-31 16:57:46 UTC
O, I now see what I wrote. When it worked, before, I didn't have to wait that long, now I wait and nothing happens.
I will try and send a dmesg output.

On my own laptop with intel graphics, after a fresh install, I cannot get x to start either. Whatever I try, nomodeset, intellegacy, nothing. Well, actually, it does start, but when I wait a while before entering password, it leaves the graphical shell and returns to console with a no responding system. Or when I login quicker, it starts the KDE session but just at the moment I see my desktop the same thing happens. Shall I create a different bug report for this?
Comment 14 David Kerkhof 2011-10-31 17:15:12 UTC
Created attachment 459634 [details]
dmesg output

Ok, here the dmesg output
Comment 15 David Kerkhof 2011-10-31 18:23:26 UTC
(In reply to comment #13)
> O, I now see what I wrote. When it worked, before, I didn't have to wait that
> long, now I wait and nothing happens.
> I will try and send a dmesg output.
> 
> On my own laptop with intel graphics, after a fresh install, I cannot get x to
> start either. Whatever I try, nomodeset, intellegacy, nothing. Well, actually,
> it does start, but when I wait a while before entering password, it leaves the
> graphical shell and returns to console with a no responding system. Or when I
> login quicker, it starts the KDE session but just at the moment I see my
> desktop the same thing happens. Shall I create a different bug report for this?

Did another test since I have a problem with the encrypted /tmp on the intel laptop, seems that was the cause, because now it starts without a problem. /tmp failed to mount, and obviously without tmp x cannot start.
Comment 16 Stefan Dirsch 2011-10-31 22:17:24 UTC
Frederic, could you also verify what the original reporter meanwhile attached? Andre wasn't the original reporter ...

This is what always happens in bugzilla. Either you don't get (useful) feedback or feedback from the wrong person. :-(
Comment 17 Frederic Crozat 2011-11-02 13:39:57 UTC
David, you have a dependency cycle which should be fixed in RC2 (my guess is you are either using encrypted swap or an encrypted partition with /dev/random as password). Anyway, it doesn't belong to this bug report.

Andre, all I see is network service waiting for 30s
Comment 18 Stefan Dirsch 2011-11-02 13:48:06 UTC
Thanks, Frederic. This confirms, that this bugreport landed in the wrong court. Reassigning to Frederic for now.
Comment 19 David Kerkhof 2011-11-02 17:16:19 UTC
The original bug report was about my Acer aspire One 522 with AMD C50 processor and ATI video card, and the dmesg output that I attached was taken from this one. Does that mean that one is also caused by the encrypted swap and tmp? If so I will see this in a few days when I can install RC2
Comment 20 Frederic Crozat 2011-11-04 09:01:17 UTC
David, yes, I think it should be fixed in RC2. Closing as fixed for now, reopen if needed.
Comment 21 David Kerkhof 2011-11-05 12:10:22 UTC
This is still the same in RC2. In the end I removed systemd and now the system starts as expected, graphical login appears, still one thing not working but that is not in the scope of this bug. It seems this bug was entirely related to systemd which doesn't seem ready for prime time yet. I have even started considering returning to windows. This says enough taken that I have been with suse since 8.2! Getting this version 12.1 running well gives me headaches and I wonder if it will be any better when the final release comes out, sorry.
Comment 22 Frederic Crozat 2011-11-07 10:33:50 UTC
if it is still not working with RC2, reopen this bug and attach dmesg output when booting with systemd.log_level=debug systemd.log_target=kmsg
Comment 23 David Kerkhof 2011-11-08 17:53:22 UTC
Created attachment 460977 [details]
dmesg output

Started with systemd and debugging enabled
Comment 24 David Kerkhof 2011-11-08 17:55:31 UTC
In RC2 same issue
Comment 25 Frederic Crozat 2011-11-09 09:35:11 UTC
your system is not configured to boot in graphical.target (ie new name for runlevel 5), now that systemd is not reading /etc/inittab after initial install

ln -s -f /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target 

should fix this issue.
Comment 26 David Kerkhof 2011-11-10 16:20:31 UTC
That fixed it, thanks. Maybe something that should be checked during upgrade since this was after zypper dup from a previous 12.1 where systemd obviously wasn't used yet.
Comment 27 Frederic Crozat 2011-11-10 16:32:16 UTC
closing as fixed