Bug 516331 - httpd isn't starting after apr upgrade to apr-1.3.8-1.fc11.i586
Summary: httpd isn't starting after apr upgrade to apr-1.3.8-1.fc11.i586
Alias: None
Product: Fedora
Classification: Fedora
Component: apr
Version: 11
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Joe Orton
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2009-08-08 09:57 UTC by Marek Goldmann
Modified: 2009-08-15 21:45 UTC (History)
3 users (show)

Fixed In Version: 1.3.8-2.fc11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2009-08-15 21:45:02 UTC
Type: ---

Attachments (Terms of Use)

Description Marek Goldmann 2009-08-08 09:57:44 UTC
Description of problem:

When I try to start httpd after upgrade to latest (apr-1.3.8-1.fc11.i586) apr version, it fails with output:

[root@domU-12-31-39-00-50-04 ~]# /etc/init.d/httpd start
Starting httpd: [Sat Aug 08 05:41:51 2009] [crit] (22)Invalid argument: alloc_listener: failed to get a socket for (null)
Syntax error on line 134 of /etc/httpd/conf/httpd.conf:
Listen setup failed

My httpd.conf (Fedora's default): http://gist.github.com/164368

Strange is that this error only appears on EC2, on my local VMware machine everything works with exactly same configuration. What could be the problem?

Version-Release number of selected component (if applicable):

[root@domU-12-31-39-00-50-04 ~]# rpm -qa | grep apr

How reproducible:

Always in EC2 environment, in my VMware environment I hadn't experienced it.

Steps to Reproduce:

Use Amazon EC2 AMI: ami-7b6d8c12, httpd is started on boot.

1. Stop htttpd
2. Update apr
3. Start httpd
4. Httpd start fails.

More info: http://gist.github.com/164366
Actual results:

httpd isn't starting.

Expected results:

httpd should start.

Additional info:

I can provide access to an EC2 instance to debug this pb.

[root@domU-12-31-39-00-50-04 ~]# uname -a
Linux domU-12-31-39-00-50-04 #1 SMP Fri Feb 15 12:39:36 EST 2008 i686 athlon i386 GNU/Linux

Comment 1 Bojan Smojver 2009-08-09 01:36:32 UTC
The problem is the kernel you have (too old). It doesn't have accept4(), dup3() and epoll_create1() functions.


Would you like me to revert this in APR 1.3.8 and go back to not using these calls in APR?

PS. Marek, if you build your own APR on that Xen instance, it will correctly pick up the older functions and work.

Comment 2 Marek Goldmann 2009-08-10 06:07:46 UTC
Just want to point out, that every F11 instance (not sure about other versions) on EC2 will be affected since kernel is the newest available.

Comment 3 Bojan Smojver 2009-08-10 06:35:39 UTC
Is this the kernel we ship with F-11 or is this coming from somewhere else?

Comment 4 Marek Goldmann 2009-08-10 06:46:59 UTC
No, this is a build for Fedora 8. These are newest supported kernel versions for EC2. Newer kernels are unsupported (if I install it, it will be overridden with default, very old kernel).

EC2 users have no choice, they must use that kernel.

Here is it located: http://kojipkgs.fedoraproject.org/packages/kernel-xen-2.6/

Comment 5 Oliver Falk 2009-08-10 06:59:08 UTC
Any chance to code a fallback in case the kernel is too old and doesn't support the new functions?

Comment 6 Bojan Smojver 2009-08-10 07:07:01 UTC
I'll build -2 of APR 1.3.8 now, with new functions removed. Once I do, please test it and we'll then push it to updates.

Comment 7 Fedora Update System 2009-08-10 07:15:48 UTC
apr-1.3.8-2.fc11 has been submitted as an update for Fedora 11.

Comment 8 Marek Goldmann 2009-08-10 07:40:35 UTC
Just tested those packages, apr-1.3.8-2.fc11 fixes that problem, thank you!

Comment 9 Joe Orton 2009-08-10 15:20:57 UTC
Thanks Bojan.  Per dev@apr discussion, sucks that we have to do this, but it seems we do :(

Comment 10 Fedora Update System 2009-08-10 21:47:41 UTC
apr-1.3.8-2.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update apr'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-8434

Comment 11 Bojan Smojver 2009-08-10 21:53:19 UTC
(In reply to comment #9)
> Per dev@apr discussion, sucks that we have to do this, but it
> seems we do :(  

Current Rawhide has all these new functions enabled. So, are we going to keep it like that for now and see what crops up, or would you like me to revert that right away as well?

Comment 12 Fedora Update System 2009-08-15 21:44:57 UTC
apr-1.3.8-2.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.