[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 <jslaby@novell.com> 2011-05-31 09:59:03 UTC --- # rpm -q systemd apache2 systemd-28-110.1.x86_64 apache2-2.2.17-7.1.x86_64 -- 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#c2 Kay Sievers <kasievers@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |jslaby@novell.com --- Comment #2 from Kay Sievers <kasievers@novell.com> 2011-05-31 11:25:53 UTC --- Any idea what times out? You need passwords to entered to start it up? What does: systemctl status apache2.service say? -- 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#c3 Jiri Slaby <jslaby@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|jslaby@novell.com | --- Comment #3 from Jiri Slaby <jslaby@novell.com> 2011-05-31 11:30:48 UTC --- (In reply to comment #2)
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 <jslaby@novell.com> 2011-05-31 11:31:38 UTC --- Created an attachment (id=432249) --> (http://bugzilla.novell.com/attachment.cgi?id=432249) strace -fo strace systemctl start apache2.service Strace of the process. There are some ask-pass strings. Dunno if it means anything. -- 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#c5 Kay Sievers <kasievers@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|kasievers@novell.com |bnc-team-screening@forge.pr | |ovo.novell.com Summary|systemd cannot start |apache2: systemd needs |apache2 (time out) |async ask-password | |integration instead of | |X-Interactive --- Comment #5 from Kay Sievers <kasievers@novell.com> 2011-05-31 12:48:14 UTC --- (In reply to comment #4)
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 <jslaby@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |kasievers@novell.com --- Comment #6 from Jiri Slaby <jslaby@novell.com> 2011-05-31 12:56:43 UTC --- (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? (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 <jslaby@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |draht@novell.com |ovo.novell.com | -- 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#c7 Kay Sievers <kasievers@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kasievers@novell.com --- Comment #7 from Kay Sievers <kasievers@novell.com> 2011-05-31 13:07:06 UTC --- (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?
(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 <kasievers@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|kasievers@novell.com | -- 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#c8 --- Comment #8 from Jiri Slaby <jslaby@novell.com> 2011-05-31 13:27:11 UTC --- (In reply to comment #7)
(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 <kasievers@novell.com> 2011-05-31 13:31:59 UTC --- (In reply to comment #8)
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 <jslaby@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |696902 -- 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#c10 Frederic Crozat <fcrozat@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |fcrozat@novell.com InfoProvider| |draht@suse.com --- Comment #10 from Frederic Crozat <fcrozat@novell.com> 2011-07-08 11:49:50 UTC --- I've done a test package at home:fcrozat:systemd / apache2 which plugs into systemd ask password service, when apache2 is started from systemd. Roman, does it seem ok for you, as apache maintainer ? -- 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#c11 --- Comment #11 from Frederic Crozat <fcrozat@novell.com> 2011-08-24 16:54:09 UTC --- I've sr changes (sr 79684) for review. -- 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#c12 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED InfoProvider|draht@suse.com | Resolution| |FIXED --- Comment #12 from Frederic Crozat <fcrozat@suse.com> 2011-09-12 13:38:48 UTC --- sr accepted in Apache project, closing. -- 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#c13 --- Comment #13 from Bernhard Wiedemann <bwiedemann@suse.com> 2011-09-16 10:40:53 CEST --- This is an autogenerated message for OBS integration: This bug (697137) was mentioned in https://build.opensuse.org/request/show/82181 -- 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.
participants (1)
-
bugzilla_noreply@novell.com