CALDAV Problem [BAD Gateway] [SOLVED]

Best practice information from Scalix users relating to integration of Scalix with other products.

Moderator: ScalixSupport

PrisonMind
Posts: 308
Joined: Thu Jul 10, 2008 5:00 am
Location: Adua

CALDAV Problem [BAD Gateway] [SOLVED]

Postby PrisonMind » Thu Oct 30, 2008 10:20 am

hi,

since my upgrade to 11.4.2 my caldav not working,
when i type
http://<server</api/dav
or a complete adress with the username and calendar
i receive the error

Bad Gateway
The proxy server received an invalid response from an upstream server.

in my httpd logs i have a connection refused
ct 30 13:27:24 2008] [error] (111)Connection refused: proxy: HTTP: attempt to connect to XXX.XXX.XXX.XXX:8080 cpmany.com) failed

/etc/opt/scalix-tomcat/ports
scalix01+8005
scalix01+8006

/etc/opt/scalix-tomcat/connector/ajp
app-server.api.conf
ProxyPass /api/dav http://server.com:8080/api/dav
ProxyPass /api ajp://server.com:8009/api

must i only in the /etc/opt/scalix-tomcat/ports a new entry with 8080??

webmail / sac and mobile client working correctly...
Last edited by PrisonMind on Fri Oct 31, 2008 4:24 am, edited 1 time in total.

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Postby Valerion » Fri Oct 31, 2008 2:00 am

Check that tomcat is actually running on port 8080, and that it's the correct tomcat (not another instance)

PrisonMind
Posts: 308
Joined: Thu Jul 10, 2008 5:00 am
Location: Adua

Postby PrisonMind » Fri Oct 31, 2008 3:42 am

thats my problem, on this scalix server nothing listen on port 8080

Code: Select all

lsof -i :8080

how can i tell tomcat that they listen on this port,too?
i thought only in the server.xml??

firewall is disabled...

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Postby Valerion » Fri Oct 31, 2008 3:45 am

My close-to-stock installation has this in the server.xml:

Code: Select all

    <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
    <Connector port="8080" maxHttpHeaderSize="8192"
               address="bugsy.valerion.nom.za"
               maxThreads="500" minSpareThreads="50" maxSpareThreads="125"
               enableLookups="false" redirectPort="8443" acceptCount="100"
               connectionTimeout="20000" disableUploadTimeout="true"
               URIEncoding="UTF-8" />
    <!-- Note : To disable connection timeouts, set connectionTimeout value
     to 0 -->

        <!-- Note : To use gzip compression you could set the following properti
es :

                           compression="on"
                           compressionMinSize="2048"
                           noCompressionUserAgents="gozilla, traviata"
                           compressableMimeType="text/html,text/xml"
        -->


I suggest you check that tomcat was installed correctly, possibly the server.xml was not updated?

PrisonMind
Posts: 308
Joined: Thu Jul 10, 2008 5:00 am
Location: Adua

Postby PrisonMind » Fri Oct 31, 2008 3:53 am

you have only differents maxthreads and so on,
but that is not so important, or?

<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
<!--
<Connector port="8080" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true"
URIEncoding="UTF-8" />
-->
<!-- Note : To disable connection timeouts, set connectionTimeout value
to 0 -->

<!-- Note : To use gzip compression you could set the following properties :

compression="on"
compressionMinSize="2048"
noCompressionUserAgents="gozilla, traviata"
compressableMimeType="text/html,text/xml"
-->

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Postby Valerion » Fri Oct 31, 2008 4:09 am

Yours is commented out

<!--

-->

This denotes a comment in HTML/XML

PrisonMind
Posts: 308
Joined: Thu Jul 10, 2008 5:00 am
Location: Adua

Postby PrisonMind » Fri Oct 31, 2008 4:23 am

so easy....THAANKS!!!


Return to “Third Party Integration”



Who is online

Users browsing this forum: No registered users and 1 guest