Topic: SOGo MySQL connection
==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- 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 all,
I have installed SOGo, and created its database. A sogo service restart created the tables in said database.
I can log in to all email accounts using roundcube, however I can not get into any of them using SOGo web UI.
/var/log/sogo/sogo/log shows the following:
2016-10-26 21:24:21.657 sogod[20989] ERROR: could not open MySQL4 connection to database 'sogo': Can't connect to MySQL server on '127.0.0.1' (111)
Oct 26 21:24:21 sogod [20989]: [ERROR] <0x0x5647f64f9e18[GCSChannelManager]> could not open channel <MySQL4Channel[0x0x5647f67befa8] connection=0x(null)> for mysql://127.0.0.1/sogo/sogo_view
Oct 26 21:24:21 sogod [20989]: [WARN] <0x0x5647f64f9e18[GCSChannelManager]> will prevent opening of this channel 5 seconds after 2016-10-26 21:24:21 +0000
Oct 26 21:24:21 sogod [20989]: [ERROR] <0x0x5647f6804cb8[SQLSource]> failed to acquire channel for URL: mysql://sogo:secret@127.0.0.1:5432/sogo/sogo_view
Oct 26 21:24:21 sogod [20989]: SOGoRootPage Login from '1xx.xxx.xxx.xxx' for user 'postmaster@ixxxxxxxxs.com' might not have worked - password policy: 65535 grace: -1 expire: -1 bound: 0
Oct 26 21:24:21 sogod [20989]: 190.211.140.13 "POST /SOGo/connect HTTP/1.1" 403 34/85 0.002 - - 64K
sXXX@mailserver:/etc/apache2/conf-enabled$
My sogo.conf MySQL configs are:
SOGoProfileURL = "mysql://sogo:secret@localhost:5432/sogo/sogo_user_profile";
OCSFolderInfoURL = "mysql://sogo:secret@localhost:5432/sogo/sogo_folder_info";
OCSSessionsFolderURL = "mysql://sogo:secret@localhost:5432/sogo/sogo_sessions_folder";
Any idea what the issue is?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.