Hi Tyler,

In case it's of any help..

For sites I've managed in the past, I've always had the following general settings in Apache (with mod_proxy and mod_proxy_ajp):

## Proxy / Forwarding Settings ##
<Proxy *>
AddDefaultCharset Off
Order deny,allow
Allow from all
</Proxy>

# Pass all requests to Tomcat's AJP Connector
ProxyPass / ajp://localhost:8009/
ProxyPassReverse / ajp://localhost:8009/

In Tomcat 7, I just have:

<Connector port="8009" protocol="AJP/1.3" URIEncoding="UTF-8"/>

I also setup the / (ROOT) path to just load my DSpace UI of choice.

Since you are using Shibboleth, you may also wish to review your settings for mod_shib. I doubt it's the root issue, but it's possible that Shibboleth could be a factor as well. We do have recommended mod_shib settings documented at:
https://wiki.duraspace.org/display/DSDOC5x/Authentication+Plugins#AuthenticationPlugins-ShibbolethAuthentication

This StackOverflow answer regarding the same error message also points to using either "timeout" (in ProxyPass) or ProxyTimeout (which Hardy recommended):
http://serverfault.com/questions/655362/mod-proxy-ajp-70007the-timeout-specified-has-expired-ajp-ilink-receive-can

Good luck! Let us know if you find a resolution, so that we can add it to the wiki/documentation if needed.

- Tim

On 9/22/2015 9:38 AM, Tyler Danstrom wrote:
Hi,

So, after more investigation we've figured out that the problem is with
the ajp ilink

The following appears in our logs

[Wed Sep 16 14:51:35 2015] [error] (70007)The timeout specified has
expired: ajp_ilink_receive() can't receive header

[Wed Sep 16 14:51:35 2015] [error] ajp_read_header: ajp_ilink_receive failed

[Wed Sep 16 14:51:35 2015] [error] (70007)The timeout specified has
expired: proxy: read response failed from (null) (localhost)

Does anyone know what DSpace recommends to set on timeout with an AJP link?


On Thursday, September 17, 2015 at 11:00:00 AM UTC-5, helix84 wrote:

    Never experienced this problem. 503 only ever correctly appears only
    when tomcat is down. Here's my configuration:

    Apache 2.2, 2.4:

             ProxyPass / ajp://localhost:8009/ retry=2
             ProxyPassReverse / ajp://localhost:8009/

    Tomcat 7, 8:
         <Connector port="8009" protocol="AJP/1.3" redirectPort="8443"
    URIEncoding="UTF-8" />

    I probably wouldn't set retry to 0. Try to turn on the keepalive
    parameter:
    http://httpd.apache.org/docs/2.4/mod/mod_proxy.html#proxypass
    <http://httpd.apache.org/docs/2.4/mod/mod_proxy.html#proxypass>


    Regards,
    ~~helix84

    Compulsory reading: DSpace Mailing List Etiquette
    https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
    <https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette>

--
You received this message because you are subscribed to the Google
Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at http://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

--
Tim Donohue
Technical Lead for DSpace & DSpaceDirect
DuraSpace.org | DSpace.org | DSpaceDirect.org

--
You received this message because you are subscribed to the Google Groups "DSpace 
Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to