I've installed SOGo for the first time and am working through the various
screwups.  I can connect to https://otter.mine.nu/SOGo/ ; SOGo sends
the login form and Apache delivers dependencies (logo image, Javascript)
through its aliases.  I fill in my loginID, password and language, and
submit the form.  Apache waits for ${ProxyTimeout} and reports 502
Bad Gateway, saying in its log that it timed out waiting for the status
line from the remote server (SOGo, localhost:20000).  SOGo log follows, 
also /etc/apache2/conf.d/SOGo.conf and 
~sogo/GNUstep/Defaults/.GNUstepDefaults .  Can anyone give a clue what 
I have  failed to do?  

Versions:  
openSUSE 11.2
SOGo 1.3.5a, compiled (apparently successfully) into RPMs
postgresql-server 8.4.5
apache2 2.2.13
openldap2 2.4.17 for native (SOGo) authentication
SOGo, Apache, LDAP and PostgreSQL are all on the same machine, a Koolu :-)

====> SOGo log with annotations:
# Hit "reload" on browser, URL = https://otter.mine.nu/SOGo/
Feb 22 22:08:21 sogod [9131]: <0x0x833a0f8[SOGoCache]> Cache cleanup interval 
set every 300.000000 seconds
Feb 22 22:08:21 sogod [9131]: <0x0x833a0f8[SOGoCache]> Using host(s) 
'localhost' as server(s)
2011-02-22 22:08:21.354 sogod[9131] Note(SoObject): SoDebugKeyLookup is enabled!
2011-02-22 22:08:21.356 sogod[9131] Note(SoObject): SoDebugBaseURL is enabled!
2011-02-22 22:08:21.357 sogod[9131] Note(SoObject): relative base URLs are 
enabled.
2011-02-22 22:08:21.521 sogod[9131] WOCompoundElement: pool embedding is on.
2011-02-22 22:08:21.521 sogod[9131] WOCompoundElement: id logging is on.
2011-02-22 22:08:21.778 sogod[9131] WARNING(-[NSNull(misc) count]): called 
NSNull -count (returns 0) !!!
localhost - - [22/Feb/2011:22:08:21 GMT] "GET /SOGo/ HTTP/1.1" 200 3438/0 0.642 
10456 67% 2M

# Filled in and submitted the login form
Feb 22 22:09:01 sogod [9131]: SOGoRootPage successful login for user 'jimc' - 
expire = -1  grace = -1
Feb 22 22:09:01 sogod [9131]: [WARN] <0x0x8453610[SOGoWebDAVAclManager]> entry 
'{DAV:}write' already exists in DAV permissions table
Feb 22 22:09:01 sogod [9131]: [WARN] <0x0x8453610[SOGoWebDAVAclManager]> entry 
'{DAV:}write-properties' already exists in DAV permissions table
Feb 22 22:09:01 sogod [9131]: [WARN] <0x0x8453610[SOGoWebDAVAclManager]> entry 
'{DAV:}write-content' already exists in DAV permissions table
2011-02-22 22:09:01.799 sogod[9131] Note: Using UTF-8 as URL encoding in 
NGExtensions.
localhost - - [22/Feb/2011:22:09:01 GMT] "POST /SOGo/connect HTTP/1.1" 200 
27/80 0.921 - - 492K
# (The size of what's posted varies, ranging up to 2M (megabytes I assume.)
localhost - - [22/Feb/2011:22:09:01 GMT] "GET /SOGo/jimc HTTP/1.1" 302 0/0 
0.019 - - 16K
localhost - - [22/Feb/2011:22:09:01 GMT] "GET /SOGo/jimc/view HTTP/1.1" 302 0/0 
0.029 - - 4K
localhost - - [22/Feb/2011:22:09:01 GMT] "GET /SOGo/so/jimc/Mail HTTP/1.1" 302 
0/0 0.019 - - 0
# And it sits there -- this is the last message in the log, for 10 minutes.

# After 10 minutes it does this:
Feb 22 22:19:01 sogod [9117]: [WARN] <0x0x8193008[WOWatchDogChild]> safety belt 
-- sending KILL signal to pid 9131
Feb 22 22:19:02 sogod [9117]: <0x0x8193008[WOWatchDogChild]> child 9131 exited
Feb 22 22:19:02 sogod [9117]: <0x0x8193008[WOWatchDogChild]>  (terminated due 
to signal 9)
Feb 22 22:19:02 sogod [9117]: <0x0x81776a8[WOWatchDog]> child spawned with pid 
9298
Feb 22 22:19:02 sogod [9298]: <0x0x82c1ad8[SOGoProductLoader]> SOGo products 
loaded from '/usr/lib/GNUstep/SOGo':
Feb 22 22:19:02 sogod [9298]: <0x0x82c1ad8[SOGoProductLoader]>   
ContactsUI.SOGo, Contacts.SOGo, SchedulerUI.SOGo, Appointments.SOGo, 
MailPartViewers.SOGo, AdministrationUI.SOGo, CommonUI.SOGo, MainUI.SOGo, 
MailerUI.SOGo, PreferencesUI.SOGo, Mailer.SOGo
Feb 22 22:19:02 sogod [9298]: |SOGo| version 1.3.5 (build 
r...@simba.math.ucla.edu 201102181642) -- starting
Feb 22 22:19:02 sogod [9298]: |SOGo| vmem size check enabled: shutting down app 
when vmem > 384 MB


====> /etc/apache2/conf.d/SOGo.conf :
Alias /SOGo.woa/WebServerResources/ \
      /usr/lib/GNUstep/SOGo/WebServerResources/
Alias /SOGo/WebServerResources/ \
      /usr/lib/GNUstep/SOGo/WebServerResources/
AliasMatch /SOGo/so/ControlPanel/Products/(.*)/Resources/(.*) \
           /usr/lib/GNUstep/SOGo/$1.SOGo/Resources/$2

# jimc added:
<Directory /usr/lib/GNUstep/SOGo/WebServerResources>
    Order allow,deny
    Allow from all
</Directory>

<LocationMatch 
"^/SOGo/so/ControlPanel/Products/.*UI/Resources/.*\.(jpg|png|gif|css|js)">
  SetHandler default-handler
</LocationMatch>

## Uncomment the following to enable proxy-side authentication, you will then
## need to set the "SOGoTrustProxyAuthentication" SOGo user default to YES and
## adjust the "x-webobjects-remote-user" proxy header in the "Proxy" section
## below.
#<Location /SOGo>
#  AuthType XXX
#  Require valid-user
#  SetEnv proxy-nokeepalive 1
#  Allow from all
#</Location>

ProxyRequests Off
SetEnv proxy-nokeepalive 1
ProxyPreserveHost On

# When using CAS, you should uncomment this and install cas-proxy-validate.py
# in /usr/lib/cgi-bin to reduce server overloading
#
# ProxyPass /SOGo/casProxy http://localhost/cgi-bin/cas-proxy-validate.py
# <Proxy http://localhost/app/cas-proxy-validate.py>
#   Order deny,allow
#   Allow from your-cas-host-addr
# </Proxy>

ProxyPass /SOGo http://127.0.0.1:20000/SOGo retry=0

# jimc added:
# SOGo child process was hanging, and default timeout is 600 secs...
ProxyTimeout 20

<Proxy http://127.0.0.1:20000/SOGo>
## adjust the following to your configuration
# (jimc did edit these):
  RequestHeader set "x-webobjects-server-port" "443"
  RequestHeader set "x-webobjects-server-name" "otter.mine.nu"
  RequestHeader set "x-webobjects-server-url" "https://otter.mine.nu";

## When using proxy-side autentication, you need to uncomment and
## adjust the following line:
#  RequestHeader set "x-webobjects-remote-user" "%{REMOTE_USER}e"

  RequestHeader set "x-webobjects-server-protocol" "HTTP/1.0"
  RequestHeader set "x-webobjects-remote-host" %{REMOTE_HOST}e env=REMOTE_HOST

  AddDefaultCharset UTF-8

  Order allow,deny
  Allow from all
</Proxy>

## We use mod_rewrite to pass remote address to the SOGo proxy.
# The remote address will appear in SOGo's log files and in the X-Forward
# header of emails.
RewriteEngine On
RewriteRule ^/SOGo/(.*)$ /SOGo/$1 [env=REMOTE_HOST:%{REMOTE_ADDR},PT]


=====> /var/lib/sogo/GNUstep/Defaults/.GNUstepDefaults
{
    NSGlobalDomain = {
    };
    sogod = {
        OCSEMailAlarmsFolderURL = 
"postgresql://sogo:wouldntyouliketoknow@localhost:5432/sogo/sogo_alarms_folder";
        OCSFolderInfoURL = 
"postgresql://sogo:wouldntyouliketoknow@localhost:5432/sogo/sogo_folder_info";
        OCSSessionsFolderURL = 
"postgresql://sogo:wouldntyouliketoknow@localhost:5432/sogo/sogo_sessions_folder";
        SOGoDraftsFolderName = Drafts;
        SOGoEnablePublicAccess = yes;
        SOGoIMAPAclConformsToIMAPExt = YES;
        SOGoIMAPServer = "localhost:993";
        SOGoLanguage = English;
        SOGoMailDomain = cft.ca.us;
        SOGoMailingMechanism = smtp;
        SOGoProfileURL = 
"postgresql://sogo:wouldntyouliketoknow@localhost:5432/sogo/sogo_user_profile";
        SOGoSMTPServer = localhost;
        SOGoSentFolderName = SentMail;
        SOGoSieveServer = "sieve://localhost";
        SOGoTimeZone = America/Los_Angeles;
        SOGoTrashFolderName = Trash;
        SOGoUserSources = (
            {
                CNFieldName = gecos;
                IDFieldName = uid;
                IMAPHostFieldName = jacinth;
                UIDFieldName = uid;
                baseDN = "ou=People,dc=cft,dc=ca,dc=us";
                canAuthenticate = YES;
                displayName = "Shared Addresses";
                hostname = localhost;
                id = CouchNetLDAP;
                isAddressBook = YES;
                port = 389;
                type = ldap;
            }
        );
        WOWorkersCount = 3;
    };
}


==========
James F. Carter          Voice 310 825 2897    FAX 310 206 6673
UCLA-Mathnet;  6115 MSA; 520 Portola Plaza; Los Angeles, CA, USA  90095-1555
Email: j...@math.ucla.edu    http://www.math.ucla.edu/~jimc (q.v. for PGP key)
-- 
users@sogo.nu
https://inverse.ca/sogo/lists

Reply via email to