JensErat / docker-sogo

Dockerfile for SOGo image. Not maintained any more, image is outdated.
ISC License
19 stars 19 forks source link

Service Unavailable #8

Closed liquidat closed 8 years ago

liquidat commented 8 years ago

I try to use the container to play around with Sogo, but for some reason I cannot get it working. When I try to access the container I get a "Service Unavailable" message. In the container itself, the sogo ports are started:

root@sogo-c:/# ps -efH 
UID        PID  PPID  C STIME TTY          TIME CMD
root       105     0  0 12:39 ?        00:00:00 /bin/bash
root       136   105  0 12:43 ?        00:00:00   ps -efH
root         1     0  0 12:38 ?        00:00:00 /usr/bin/python3 -u /sbin/my_init
root        12     1  0 12:38 ?        00:00:00   /usr/bin/runsvdir -P /etc/service
root        13    12  0 12:38 ?        00:00:00     runsv cron
root        19    13  0 12:38 ?        00:00:00       /usr/sbin/cron -f
root        14    12  0 12:38 ?        00:00:00     runsv sshd
root        15    12  0 12:38 ?        00:00:00     runsv syslog-forwarder
root        18    15  0 12:38 ?        00:00:00       tail -F -n 0 /var/log/syslog
root        16    12  0 12:38 ?        00:00:00     runsv syslog-ng
root        21    16  0 12:38 ?        00:00:00       syslog-ng -F -p /var/run/syslog-ng.pid --no-caps
root        17    12  0 12:38 ?        00:00:00     runsv apache2
root        23    17  0 12:38 ?        00:00:00       /bin/sh /usr/sbin/apache2ctl start
root        41    23  0 12:38 ?        00:00:00         /usr/sbin/apache2 -DNO_DETACH -k start
www-data    49    41  0 12:38 ?        00:00:00           /usr/sbin/apache2 -DNO_DETACH -k start
www-data    50    41  0 12:38 ?        00:00:00           /usr/sbin/apache2 -DNO_DETACH -k start
root        20    12  0 12:38 ?        00:00:00     runsv memcached
memcache    27    20  0 12:38 ?        00:00:00       /usr/bin/memcached -m 64
root        22    12  0 12:38 ?        00:00:00     runsv sogod
sogo        26    22 99 12:38 ?        00:05:14       /usr/sbin/sogod -WONoDetach YES -WOPidFile /var/run/sogo/sogo.pid

However, there is no sogo log file created:

root@sogo-c:/# ls -la /var/log/sogo                                                                     
total 4
drwxr-x--- 2 sogo sogo      6 Jun  5 05:20 .
drwxrwxr-x 8 root syslog 4096 Jun 11 12:38 ..

And no one listens on the port 20000:

root@sogo-c:/# netstat -tulpen             
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       User       Inode       PID/Program name
tcp        0      0 0.0.0.0:11211           0.0.0.0:*               LISTEN      103        5625174     -               
tcp6       0      0 :::443                  :::*                    LISTEN      0          5624377     41/apache2      
tcp6       0      0 :::11211                :::*                    LISTEN      103        5625175     -               
tcp6       0      0 :::80                   :::*                    LISTEN      0          5624373     41/apache2      
udp        0      0 0.0.0.0:11211           0.0.0.0:*                           103        5625178     -               
udp6       0      0 :::11211                :::*                                103        5625179     -              

The (relevant) sogo configuration is:

{
  /* Database configuration (mysql:// or postgresql://) */
  SOGoProfileURL = "postgresql://sogo:PWD@linktodb:5432/sogo/sogo_user_profile";
  OCSFolderInfoURL = "postgresql://sogo:PWD@linktodb:5432/sogo/sogo_folder_info";
  OCSSessionsFolderURL = "postgresql://sogo:PWD@linktodb:5432/sogo/sogo_sessions_folder";

  /* Mail */
  //SOGoDraftsFolderName = Drafts;
  //SOGoSentFolderName = Sent;
  //SOGoTrashFolderName = Trash;
  SOGoIMAPServer = linktoimap;
  //SOGoSieveServer = sieve://127.0.0.1:4190;
  SOGoSMTPServer = linktosmtp;
  SOGoMailDomain = bayz.de;

  /* LDAP authentication example */
  SOGoUserSources = (
    {
      type = ldap;
      CNFieldName = cn;
      UIDFieldName = uid;
      IDFieldName = uid; // first field of the DN for direct binds
      UIDFieldName = uid;
      baseDN = "ou=accounts,dc=bayz,dc=de";
      bindAsCurrentUser = YES;
      canAuthenticate = YES;
      hostname = ldap://linktoldap:389;
      id = public;
      isAddressBook = NO;
    }
  );

  /* Debug */
  WOLogFile = /var/log/sogo/sogo.log;
}

I'd appreciate any idea how to further debug the problem.

liquidat commented 8 years ago

I figured out that the sogod fails to start up properly:

[2035024.776109] sogod[25218]: segfault at 7ffe744aeff8 ip 00007fc2b0b7314c sp 00007ffe744af000 error 6 in libgnustep-base.so.1.24.0[7fc2b0a16000+47d000]

Any idea how to prevent that or what might cause the problem?

liquidat commented 8 years ago

I do not use the Docker image anymore, the bug that is not relevant to me anymore.