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 [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 apr-util-1.3.9-1.fc11.i586 apr-util-ldap-1.3.9-1.fc11.i586 apr-1.3.8-1.fc11.i586 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 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:39:36 EST 2008 i686 athlon i386 GNU/Linux
The problem is the kernel you have (too old). It doesn't have accept4(), dup3() and epoll_create1() functions. Joe, 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.
Just want to point out, that every F11 instance (not sure about other versions) on EC2 will be affected since kernel 2.6.21.7-2.fc8xen is the newest available.
Is this the kernel we ship with F-11 or is this coming from somewhere else?
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/2.6.21.7/2.fc8
Any chance to code a fallback in case the kernel is too old and doesn't support the new functions?
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.
apr-1.3.8-2.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/apr-1.3.8-2.fc11
Just tested those packages, apr-1.3.8-2.fc11 fixes that problem, thank you!
Thanks Bojan. Per dev@apr discussion, sucks that we have to do this, but it seems we do :(
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
(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?
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.