1 (edited by fabio.beretta 2019-10-28 03:44:15)

Topic: SOGO Configuration lost after upgrade today

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9 MARIADB edition.
- Deployed with iRedMail Easy or the downloadable installer? installer
- Linux/BSD distribution name and version: Ubuntu 18.04.3 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hello,

I have update today the SOGo installation and the installer has probably changed the config files. I was actually asked if I wanted to update certain locally modified files to the standard ones and I replied yes...

Now I have to find out a way to change the configuraito files to have back SOGo working with MariaDB.

Right now, when connecting gives an LDAP error in the browser javascript console:

{"LDAPPasswordPolicyError": 65535}

Anyone can point me out the right tutorial to restore the config files of SOGo?

This is what I upgraded:

Start-Date: 2019-10-27  08:59:16
Commandline: apt upgrade
Requested-By: ubuntu (1000)
Upgrade: libsope-appserver4.9:amd64 (4.9.r1664.20190913, 4.9.r1664.20191024), sogo:amd64 (4.0.8.20191024-1, 4.1.0.20191027-1), sogo-activesync:amd64 (4.0.8.20191024-1, 4.1.0.2$
End-Date: 2019-10-27  09:00:19

Those are the logs I get in sogo.log

Oct 27 16:12:57 sogod [2422]: xxx.xxx.xxx.xxx "GET /SOGo HTTP/1.0" 302 0/0 0.001 - - 0
Oct 27 16:12:57 sogod [2422]: [ERROR] <0x0x558312552300[SOGoSQLUserProfile]> failed to acquire channel for URL: (null)
Oct 27 16:12:57 sogod [2422]: [ERROR] <0x0x558312552300[SOGoSQLUserProfile]> failed to acquire channel for URL: (null)
Oct 27 16:12:57 sogod [2422]: [ERROR] <0x0x558312552300[SOGoSQLUserProfile]> failed to acquire channel for URL: (null)
Oct 27 16:12:57 sogod [2422]: [ERROR] <0x0x558312552300[SOGoSQLUserProfile]> failed to acquire channel for URL: (null)
Oct 27 16:12:57 sogod [2422]: [ERROR] <0x0x558312552300[SOGoSQLUserProfile]> failed to acquire channel for URL: (null)
Oct 27 16:12:57 sogod [2422]: [ERROR] <0x0x558312552300[SOGoSQLUserProfile]> failed to acquire channel for URL: (null)
Oct 27 16:12:57 sogod [2422]: xxx.xxx.xxx.xxx "GET /SOGo/ HTTP/1.0" 200 9025/0 0.012 29010 68% 0
Oct 27 16:23:24 sogod [2422]: SOGoRootPage Login from 'xxx.xxx.xxx.xxx' for user 'user.name@myaccount.com' might not have worked - password policy: 65535  grace: -1  expire: -1  bound: 0
Oct 27 16:23:24 sogod [2422]: xxx.xxx.xxx.xxx "POST /SOGo/connect HTTP/1.0" 403 34/88 0.002 - - 0
Oct 27 19:37:40 sogod [2422]: SOGoRootPage Login from 'xxx.xxx.xxx.xxx' for user 'user.name@myaccount.com' might not have worked - password policy: 65535  grace: -1  expire: -1  bound: 0
Oct 27 19:37:40 sogod [2422]: xxx.xxx.xxx.xxx "POST /SOGo/connect HTTP/1.0" 403 34/88 0.001 - - 0

Thanks,
Fabio

----

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

2

Re: SOGO Configuration lost after upgrade today

Try to find backup file generated by apt under /etc/sogo/ and restore it, then restart sogo service.

3

Re: SOGO Configuration lost after upgrade today

And it worked. Thanks.

4 (edited by raudraido 2019-10-28 17:17:06)

Re: SOGO Configuration lost after upgrade today

I had the same problem. sogo.conf is lost and backup file is also overwritten I think. It happend after friday's update.
How can I restore my sogo.conf

5

Re: SOGO Configuration lost after upgrade today

I checked in the /etc/sogo and I found this file:

sogo.conf.dpkg-old

Backed up sogo.conf that was modified to the stock version (just incase).
I renamed to sogo.conf.dpkg-old to sogo.conf

Changed the owner/group to sogo:sogo and restarted. It worked.

Fabio

6

Re: SOGO Configuration lost after upgrade today

Yes, I also noticed that file, but because it was completely different from sogo.conf then I didn't try it.
But it worked. Thanks!
Now I know that automatic updates for SOGo isn't a good idea.

fabio.beretta wrote:

I checked in the /etc/sogo and I found this file:

sogo.conf.dpkg-old

Backed up sogo.conf that was modified to the stock version (just incase).
I renamed to sogo.conf.dpkg-old to sogo.conf

Changed the owner/group to sogo:sogo and restarted. It worked.

Fabio