Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
 
Go Back   Zimbra - Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra - Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-11-2008, 10:39 AM
Senior Member
 
Posts: 67
Default Problem with mod_proxy_ajp re buffer size

Hi!

I have been trying to get Zimbra working together with another webserver, using these wiki-instructions as a basis. I have created a virtual host (see below) in apache for all my Zimbra activities routing everything going to that host to the ajp-interface. Both the webmail and WebDAV seems to work perfectly fine. My problems come when trying to access ZimbraAdmin and ZimbraDesktop through the virtual host and ajp.

It seems to be that ajp doesn't like big responses, my logs are full of
Code:
[Fri Apr 11 16:20:01 2008] [error] ajp_read_header: ajp_ilink_receive failed
[Fri Apr 11 16:20:01 2008] [error] (120007)APR does not understand this error code: proxy: send body failed to 127.0.0.1:8009 (localhost)
The result for /zimbraAdmin is that the POST to /service/admin/soap/GetInfoRequest receives an error from apache apparently from port 80 (everything is supposed to be https). I see the error message using FireBug.

When trying to access zimbra using ZimbraDesktop it's also unable to finish the process and the logs are the same. Anyone got a clue? Is there a way to increase the buffer size for ajp or is that just a symptom of something else?

/Kallisti

HTML Code:
my /etc/httpd/conf.d/zimbra.conf


    
        ServerName z.xx.xxx

        ProxyPass / ajp://localhost:8009/
        ProxyPassReverse / ajp://localhost:8009/

        ErrorLog /var/log/zimbra.domain-error.log
        CustomLog /var/log/zimbra.domain-access.log combined
        CustomLog /var/log/all-access.log combined
    
Reply With Quote
  #2 (permalink)  
Old 04-13-2008, 12:37 AM
Moderator
 
Posts: 6,275
Default

http://www.zimbra.com/forums/announc...r-profile.html please so we can see whether you are using Tomcat or Jetty
__________________
Reply With Quote
  #3 (permalink)  
Old 04-14-2008, 08:18 AM
Senior Member
 
Posts: 67
Default

Done!
ZCS Version: 5.0.4_GA_2101.RHEL5_20080321150546 CentOS5 FOSS
Reply With Quote
  #4 (permalink)  
Old 04-16-2008, 01:48 AM
Member
 
Posts: 13
Default

Got the exact same problem

Apache access log
--------------------
- - [15/Apr/2008:17:12:31 +0200] "POST /service/soap/GetItemRequest HTTP/1.1" 503 265
- - [15/Apr/2008:17:12:31 +0200] "POST /service/soap/GetItemRequest HTTP/1.1" 503 265
- - [15/Apr/2008:17:12:31 +0200] "POST /service/soap/GetItemRequest HTTP/1.1" 503 265
- - [15/Apr/2008:17:12:31 +0200] "POST /service/soap/GetItemRequest HTTP/1.1" 503 265
- - [15/Apr/2008:17:12:31 +0200] "POST /service/soap/GetItemRequest HTTP/1.1" 503 265
- - [15/Apr/2008:17:12:31 +0200] "POST /service/soap/GetItemRequest HTTP/1.1" 503 265

Apache error log
------------------
[Tue Apr 15 17:12:31 2008] [error] ajp_read_header: ajp_ilink_receive failed
[Tue Apr 15 17:12:31 2008] [error] (120007)APR does not understand this error code: proxy: send body failed to 172.16.2.6:8009 (172.16.2.6)
[Tue Apr 15 17:12:31 2008] [error] ajp_read_header: ajp_ilink_receive failed
[Tue Apr 15 17:12:31 2008] [error] (120007)APR does not understand this error code: proxy: send body failed to (null) (172.16.2.6)
[Tue Apr 15 17:12:31 2008] [error] ajp_read_header: ajp_ilink_receive failed
[Tue Apr 15 17:12:31 2008] [error] (120007)APR does not understand this error code: proxy: send body failed to 172.16.2.6:8009 (172.16.2.6)
[Tue Apr 15 17:12:31 2008] [error] ajp_read_header: ajp_ilink_receive failed
[Tue Apr 15 17:12:31 2008] [error] (120007)APR does not understand this error code: proxy: send body failed to 172.16.2.6:8009 (172.16.2.6)
[Tue Apr 15 17:12:31 2008] [error] ajp_read_header: ajp_ilink_receive failed
[Tue Apr 15 17:12:31 2008] [error] (120007)APR does not understand this error code: proxy: send body failed to 172.16.2.6:8009 (172.16.2.6)
[Tue Apr 15 17:12:31 2008] [error] ajp_read_header: ajp_ilink_receive failed
[Tue Apr 15 17:12:31 2008] [error] (120007)APR does not understand this error code: proxy: send body failed to 172.16.2.6:8009 (172.16.2.6)

Jetty log
---------
- - [15/Apr/2008:17:12:31 +0200] "POST /service/soap/GetItemRequest HTTP/1.1" 200 21364 "https://www.gloudemans.info/zimbra/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.13) Gecko/20080325 Fedora/2.0.0.13-1.fc8 Firefox/2.0.0.13"
- - [15/Apr/2008:17:12:31 +0200] "POST /service/soap/GetItemRequest HTTP/1.1" 200 21364 "https://www.gloudemans.info/zimbra/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.13) Gecko/20080325 Fedora/2.0.0.13-1.fc8 Firefox/2.0.0.13"
- - [15/Apr/2008:17:12:31 +0200] "POST /service/soap/GetItemRequest HTTP/1.1" 200 21364 "https://www.gloudemans.info/zimbra/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.13) Gecko/20080325 Fedora/2.0.0.13-1.fc8 Firefox/2.0.0.13"
- - [15/Apr/2008:17:12:31 +0200] "POST /service/soap/GetItemRequest HTTP/1.1" 200 21364 "https://www.gloudemans.info/zimbra/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.13) Gecko/20080325 Fedora/2.0.0.13-1.fc8 Firefox/2.0.0.13"
- - [15/Apr/2008:17:12:31 +0200] "POST /service/soap/GetItemRequest HTTP/1.1" 200 21364 "https://www.gloudemans.info/zimbra/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.13) Gecko/20080325 Fedora/2.0.0.13-1.fc8 Firefox/2.0.0.13"
- - [15/Apr/2008:17:12:31 +0200] "POST /service/soap/GetItemRequest HTTP/1.1" 200 21364 "https://www.gloudemans.info/zimbra/" "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.13) Gecko/20080325 Fedora/2.0.0.13-1.fc8 Firefox/2.0.0.13"



Zimbra was configured for https and ajp only. The proxy was on another host (also RHEL5.1). User access to that proxy was also https.

[edit] Is it normal that jetty reports the requests as http/1.1?[/edit]

Last edited by lancer : 04-16-2008 at 01:51 AM.
Reply With Quote
  #5 (permalink)  
Old 06-23-2008, 01:52 PM
Starter Member
 
Posts: 1
Default

Same problem here. When i use the Jetty HTTP connector it al works fine. But now I added a AJP connector like
Zimbra with Apache using mod jk - mod proxy - mod proxy ajp - Zimbra :: Wiki

But now i get a 503 exception

1. While opening some specifik HTML email messages i receive the following message:

code: CSFE_SVC_ERROR
method: GetMsgRequest
detail: HTTP response status 503

2. When i press the send/receive email button i also get:
code: CSFE_SVC_ERROR
method: SearchRequest
detail: HTTP response status 503

I added some connector parameters to the AJP connection like:
PHP Code:
    <Call name="addConnector">
      <
Arg>
        <New 
id="ajp" class="org.mortbay.jetty.ajp.Ajp13SocketConnector">
          <
Set name="port">8009</Set>
          <
Set name="maxIdleTime">30000</Set>
          <
Set name="lowResourceMaxIdleTime">1000</Set>
          <
Set name="Acceptors">2</Set>
        </New>
      </
Arg>
    </
Call
But i still get the errors... For more connector arguments like buffers etc. take a look in de JavaDoc of de Ajp13SocketConnector
Ajp13SocketConnector (Jetty Server Project 6.1-SNAPSHOT API)


For now i work with mod_proxy over http. Some help from the Zimbra admins on this issue would be very nice.
Reply With Quote
Reply


Thread Tools
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

Zimbrablog.com