1 (edited by sameh.onaissi 2016-10-26 07:07:58)

Topic: SOGo uncaught exception

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: Ubuntu 14.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====

Hello,

I have been trying to get SOGo to work after installing it a few months after I had installed iRedMail (Did not install it initially with iRedMail).

I think I finally got it installed, but now when I go to https://mailserverIP/SOGo I get the 503 Service Unavailable error.
Apache's error log shows:

[Tue Oct 25 17:56:01.801197 2016] [proxy:error] [pid 2924] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:20000 (127.0.0.1) failed
[Tue Oct 25 17:56:01.801238 2016] [proxy:error] [pid 2924] AH00959: ap_proxy_connect_backend disabling worker for (127.0.0.1) for 0s
[Tue Oct 25 17:56:01.801247 2016] [proxy_http:error] [pid 2924] [client 190.211.140.13:56466] AH01114: HTTP: failed to make connection to backend: 127.0.0.1

Not much to say, so I looked into the sogo service itself and seems like even though (service sogo start) does not show an error, the service never starts.
Here is what /var/log/sogo/sogo.log shows:

Oct 25 18:57:05 sogod [9513]: version 3.2.0 (build @shiva.inverse 201610230243) -- starting
Oct 25 18:57:05 sogod [9513]: vmem size check enabled: shutting down app when vmem > 384 MB
Oct 25 18:57:05 sogod [9513]: <0x0x56281ec102a8[SOGoProductLoader]> SOGo products loaded from '/usr/lib/GNUstep/SOGo':
Oct 25 18:57:05 sogod [9513]: <0x0x56281ec102a8[SOGoProductLoader]>   PreferencesUI.SOGo, CommonUI.SOGo, MailerUI.SOGo, AdministrationUI.SOGo, MainUI.SOGo, Mailer.SOGo, ContactsUI.SOGo, SchedulerUI.SOGo, Contacts.SOGo, Appointments.SOGo, MailPartViewers.SOGo
/usr/sbin/sogod: Uncaught exception NGDidNotFindServiceException, reason: did not find service PH_SOGO_BIND_PORT


A google search to the above problems only showed some iredmail or sogo source code and nothing more.

Any idea what the problem is?

Thanks

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: SOGo uncaught exception

Did you follow tutorial for SOGo?

3

Re: SOGo uncaught exception

ketan.aagja wrote:

Did you follow tutorial for SOGo?


Hello,

Thanks for the reply.

Yes, that is what I followed to install it.

4

Re: SOGo uncaught exception

hoping you have followed below tutorial perfectly fine.

http://www.iredmail.org/docs/sogo-cento … web-server

log shows it cannot connect to localhost proxy port.  SOGo service seems stopped.

Is it x86 based server?

Oct 25 18:57:05 sogod [9513]: <0x0x56281ec102a8[SOGoProductLoader]> SOGo products loaded from '/usr/lib/GNUstep/SOGo':

check below settings in /etc/httpd/conf.d/SOGo.conf file

ProxyPass /Microsoft-Server-ActiveSync \
http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync \
retry=60 connectiontimeout=5 timeout=3540

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

5 (edited by sameh.onaissi 2016-10-26 23:26:22)

Re: SOGo uncaught exception

ketan.aagja wrote:

hoping you have followed below tutorial perfectly fine.

http://www.iredmail.org/docs/sogo-cento … web-server

log shows it cannot connect to localhost proxy port.  SOGo service seems stopped.

Is it x86 based server?

Oct 25 18:57:05 sogod [9513]: <0x0x56281ec102a8[SOGoProductLoader]> SOGo products loaded from '/usr/lib/GNUstep/SOGo':

check below settings in /etc/httpd/conf.d/SOGo.conf file

ProxyPass /Microsoft-Server-ActiveSync \
http://127.0.0.1:20000/SOGo/Microsoft-Server-ActiveSync \
retry=60 connectiontimeout=5 timeout=3540

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

It is a Ubuntu 14.04  x86_64

Yes, the /etc/apache2/conf-enabled/SOGo.conf file is edited with what you mentioned, except I have timout at 360 instead of 3540.

However, after tinkering a bit more, I think I found the issue.

Seems like the libsope and sope4.9 dependencies are the issue. Where can I get those from? I have added the inverse.ca repo before installing sogo, but that did not help.

Any idea where I can get them from?


You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
sogo : Depends: libsope-appserver4.9 (>= 4.9.r1664.20161021) but it is not going to be installed
        Depends: libsope-core4.9 (>= 4.9.r1664.20161021) but it is not going to be installed
        Depends: libsope-gdl1-4.9 (>= 4.9.r1664.20161021) but it is not going to be installed
        Depends: libsope-ldap4.9 (>= 4.9.r1664.20161021) but it is not going to be installed
        Depends: libsope-mime4.9 (>= 4.9.r1664.20161021) but it is not going to be installed
        Depends: libsope-xml4.9 (>= 4.9.r1664.20161021) but it is not going to be installed
        Depends: sope4.9-libxmlsaxdriver but it is not going to be installed
        Depends: sope4.9-db-connector

6

Re: SOGo uncaught exception

edit repo to packages URL and try update/install.

http://packages.inverse.ca/SOGo/nightly/3/ubuntu/

7

Re: SOGo uncaught exception

ketan.aagja wrote:

edit repo to packages URL and try update/install.

http://packages.inverse.ca/SOGo/nightly/3/ubuntu/

ketan.aagja wrote:

edit repo to packages URL and try update/install.

http://packages.inverse.ca/SOGo/nightly/3/ubuntu/

Hello,
Thanks again for the reply.


That is the repo URL I already had.

I tried adding that repo as a deb-src in my source list:

sudo apt-get source sope
Reading package lists... Done
Building dependency tree
Reading state information... Done
NOTICE: 'sope' packaging is maintained in the 'Git' version control system at:
git://git.debian.org/git/collab-maint/sope.git
Skipping already downloaded file 'sope_2.1.1-1.dsc'
Skipping already downloaded file 'sope_2.1.1.orig.tar.gz'
Skipping already downloaded file 'sope_2.1.1-1.debian.tar.gz'
Need to get 0 B of source archives.
sh: 1: dpkg-source: not found
Unpack command 'dpkg-source -x sope_2.1.1-1.dsc' failed.
Check if the 'dpkg-dev' package is installed.
E: Child process failed


installing dpkg-dev gave me this:

The following packages have unmet dependencies:
dpkg-dev : Depends: libdpkg-perl (= 1.17.5ubuntu5.7) but it is not going to be installed
            Recommends: build-essential but it is not going to be installed
            Recommends: fakeroot
            Recommends: libalgorithm-merge-perl but it is not going to be installed

8

Re: SOGo uncaught exception

You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
sogo : Depends: libsope-appserver4.9 (>= 4.9.r1664.20161021) but it is not going to be installed
        Depends: libsope-core4.9 (>= 4.9.r1664.20161021) but it is not going to be installed
        Depends: libsope-gdl1-4.9 (>= 4.9.r1664.20161021) but it is not going to be installed
        Depends: libsope-ldap4.9 (>= 4.9.r1664.20161021) but it is not going to be installed
        Depends: libsope-mime4.9 (>= 4.9.r1664.20161021) but it is not going to be installed
        Depends: libsope-xml4.9 (>= 4.9.r1664.20161021) but it is not going to be installed
        Depends: sope4.9-libxmlsaxdriver but it is not going to be installed
        Depends: sope4.9-db-connector

Have you installed sope4.9-gdl1-mysql? Asking since it asks for sope4.9-db-connector. Which I assume is included in sope4.9-gdl1-mysql.

9 (edited by sameh.onaissi 2016-10-27 04:15:57)

Re: SOGo uncaught exception

I did and got the same error...

The issue has been resolved however.

I just removed and purged sogo and reinstalled it, and it works now... well partially.

I get to the web UI, but none of my roundcube emails can log in.
The sogo DB is created and it has the users table. Passwords plugin and sogo.conf are set to SSHA.

I read this: http://www.iredmail.org/forum/topic8968 … erver.html

And no luck. I guess I should revive that topic.

The database is created and has the users table, password is SSHA as configured in sogo and the password plugin.

10

Re: SOGo uncaught exception

Please check SOGo log file to see why it doesn't work.

sameh.onaissi wrote:

I read this: http://www.iredmail.org/forum/topic8968 … erver.html

And no luck. I guess I should revive that topic.

Don't do this. Just create a new topic with your own issue clearly explained, attach related log / error message.