You are not logged in.

#1 2012-05-30 20:32:44

ellis
Member
From: Birmingham, UK
Registered: 2011-10-20
Posts: 21

Apache2 'apr_socket_accept' error

Hi,
I have a Pogoplug B01 which I am configuring for LAMP. After installing the necessary packages, apache does not serve html page requests.

SSH session:

15:19:43 root@pink ~ wget http://localhost/index.html
--2012-05-30 15:19:54--  http://localhost/index.html
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:80... connected.
HTTP request sent, awaiting response... 

That last line will hang indefinitely. Similarly, access by a browser causes the page to sit there waiting to load, never actually retrieving anything. If I turn the box off and try to access the page again, I get a standard file not found error, so something within the system is stopping HTTP requests ever been serviced.

Apache has spammed the error_log file with 13MB of this error:

/var/log/httpd/error_log

[Tue May 29 19:54:15 2012] [error] (38)Function not implemented: apr_socket_accept: (client socket)

Google reveals very little about the subject. The closest I came up with was some Gentooers who had this problem, which was solved by re-compiling the dev-lib/apr package. Does anyone have any idea what is going on here? I think it could be a Pogoplug-specific problem, but I'm at a loss. Any help would be greatly appreciated.

Other relevant info:

Every 200 lines or so, these 4 line chunk appears in the error_log, amidst all the function not implemented errors:
/var/log/httpd/error_log

[Tue May 29 19:54:12 2012] [warn] Init: Session Cache is not configured [hint: SSLSessionCache\]
[Tue May 29 19:54:12 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue May 29 19:54:12 2012] [notice] Digest: generating secret for digest authentication ...
[Tue May 29 19:54:12 2012] [notice] Digest: done

Here's the package details:

15:24:27 root@pink ~ pacman -Q apache mysql php lynx
apache 2.2.22-3
mysql 5.5.24-1
php 5.4.3-1
lynx 2.8.7-5

And to prove I'm not going crazy:

15:31:28 root@pink ~ ls /srv/http/
index.html  test.php

Any help would be greatly appreciated.
Chris


"Paradoxically, learning stuff is information-society enemy number one"

Offline

#2 2012-05-30 21:56:32

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,983

Re: Apache2 'apr_socket_accept' error

I am slowly grasping what you are saying.  If I understand, host 'pink' is your PogoPlug B01, and it is running a headless Arch Linux?

What if you wget from its IP address, rather than from its localhost address?
What if you try something that does not use php first (just a static page)?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2012-05-31 19:05:20

ellis
Member
From: Birmingham, UK
Registered: 2011-10-20
Posts: 21

Re: Apache2 'apr_socket_accept' error

Thanks for the response. I'm sorry if my question isn't very clear. You're right, I have host pink (it makes sense if you've seen a PogoPlug smile ) running headless oxnas arch linux.

"wget 127.0.0.1/index.html" freezes in exactly the same way, so I don't think it is a hostname resolution problem. From what I can deduce, the host is resolved and the http request is sent, but it is never returned, causing browsers/wget to hang.

Last edited by ellis (2012-05-31 19:05:46)


"Paradoxically, learning stuff is information-society enemy number one"

Offline

#4 2012-06-02 08:50:52

rowdog
Member
From: East Texas
Registered: 2009-08-19
Posts: 118

Re: Apache2 'apr_socket_accept' error

Accept is an unusual place to see errors so I searched on your error message and found a similar bug over on Gentoo that was solved by recompiling apr. If you're lucky, maybe the answer is as simple as "pacman -Syu". If not, I believe you will probably need to recompile apache (or file an appropriate bug so the maintainer will).

Gentoo Bug: https://bugs.gentoo.org/294827?id=294827

Offline

Board footer

Powered by FluxBB