[Bug 697137] New: systemd cannot start apache2 (time out)
https://bugzilla.novell.com/show_bug.cgi?id=697137 https://bugzilla.novell.com/show_bug.cgi?id=697137#c0 Summary: systemd cannot start apache2 (time out) Classification: openSUSE Product: openSUSE 12.1 Version: Factory Platform: x86-64 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: kasievers@novell.com ReportedBy: jslaby@novell.com QAContact: qa@suse.de Found By: --- Blocker: --- # systemctl start apache2.service Job failed. See system logs and 'systemctl status' for details.
From /var/log/messages: systemd[1]: apache2.service operation timed out. Terminating. systemd[1]: Unit apache2.service entered failed state.
I would say this is a regression in some of the recent updates. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=697137
https://bugzilla.novell.com/show_bug.cgi?id=697137#c1
--- Comment #1 from Jiri Slaby
https://bugzilla.novell.com/show_bug.cgi?id=697137
https://bugzilla.novell.com/show_bug.cgi?id=697137#c2
Kay Sievers
https://bugzilla.novell.com/show_bug.cgi?id=697137
https://bugzilla.novell.com/show_bug.cgi?id=697137#c3
Jiri Slaby
Any idea what times out?
Nope.
You need passwords to entered to start it up?
No, I have not configured anything like that.
What does: systemctl status apache2.service say?
apache2.service - LSB: Apache 2.2 HTTP Server Loaded: loaded (/etc/init.d/apache2) Active: failed since Tue, 31 May 2011 10:05:31 +0000; 1h 23min ago Process: 2115 ExecStart=/etc/init.d/apache2 start (code=killed, signal=TERM) CGroup: name=systemd:/system/apache2.service -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=697137
https://bugzilla.novell.com/show_bug.cgi?id=697137#c4
--- Comment #4 from Jiri Slaby
https://bugzilla.novell.com/show_bug.cgi?id=697137
https://bugzilla.novell.com/show_bug.cgi?id=697137#c5
Kay Sievers
Strace of the process. There are some ask-pass strings. Dunno if it means anything.
Systemctl always starts the password agent if started from a console, regardless if the service will need it. The problem is X-Interactive in the init script. Apache will need to ask systemd asynchronously for passwords, instead of waiting on the console. The X-Interactive needs to be removed. Here is the Fedora bug: https://bugzilla.redhat.com/show_bug.cgi?id=707917#c3 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=697137
https://bugzilla.novell.com/show_bug.cgi?id=697137#c6
Jiri Slaby
The problem is X-Interactive in the init script. Apache will need to ask systemd asynchronously for passwords, instead of waiting on the console.
The X-Interactive needs to be removed.
If I remove it, the problem still persists. Is there any workaround? (I have the very same problem with openvpn. However this one I reported earlier.)
Here is the Fedora bug: https://bugzilla.redhat.com/show_bug.cgi?id=707917#c3
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=697137
https://bugzilla.novell.com/show_bug.cgi?id=697137#c
Jiri Slaby
https://bugzilla.novell.com/show_bug.cgi?id=697137
https://bugzilla.novell.com/show_bug.cgi?id=697137#c7
Kay Sievers
(In reply to comment #5)
The problem is X-Interactive in the init script. Apache will need to ask systemd asynchronously for passwords, instead of waiting on the console.
The X-Interactive needs to be removed.
If I remove it, the problem still persists. Is there any workaround?
You did a: systemctl --system daemon-reload after editing the init script?
(I have the very same problem with openvpn. However this one I reported earlier.)
Yes, it's the same problem, but not such a simple shell script fix. Openvpn does not have the nice exec directive apache has, it needs a plugin for openvpn that does the async password. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=697137
https://bugzilla.novell.com/show_bug.cgi?id=697137#c
Kay Sievers
https://bugzilla.novell.com/show_bug.cgi?id=697137
https://bugzilla.novell.com/show_bug.cgi?id=697137#c8
--- Comment #8 from Jiri Slaby
(In reply to comment #6)
(In reply to comment #5)
The problem is X-Interactive in the init script. Apache will need to ask systemd asynchronously for passwords, instead of waiting on the console.
The X-Interactive needs to be removed.
If I remove it, the problem still persists. Is there any workaround?
You did a: systemctl --system daemon-reload after editing the init script?
Oh my, that's the trick.
(I have the very same problem with openvpn. However this one I reported earlier.)
Yes, it's the same problem, but not such a simple shell script fix.
My openvpn is compiled to accept passwords from files (it waits for no input). So the fix should be identical... Thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=697137
https://bugzilla.novell.com/show_bug.cgi?id=697137#c9
--- Comment #9 from Kay Sievers
My openvpn is compiled to accept passwords from files (it waits for no input). So the fix should be identical...
Right, it should only be needed if passwords needs to be queried at service startup. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=697137
https://bugzilla.novell.com/show_bug.cgi?id=697137#c
Jiri Slaby
https://bugzilla.novell.com/show_bug.cgi?id=697137
https://bugzilla.novell.com/show_bug.cgi?id=697137#c10
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=697137
https://bugzilla.novell.com/show_bug.cgi?id=697137#c11
--- Comment #11 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=697137
https://bugzilla.novell.com/show_bug.cgi?id=697137#c12
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=697137
https://bugzilla.novell.com/show_bug.cgi?id=697137#c13
--- Comment #13 from Bernhard Wiedemann
participants (1)
-
bugzilla_noreply@novell.com