1

Topic: Cron Daemon <sogo@host>

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: CentOS 7.2
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB 10.1.14
- Web server (Apache or Nginx): nginx/1.10.1
- Manage mail accounts with iRedAdmin-Pro?
- Related log if you're reporting an issue:
====
Hello,
every time, after reboot my Server, I have this Email:

From: (Cron Daemon) <sogo@host>
Theme: /usr/sbin/sogo-tool expire-sessions 30; /usr/sbin/sogo-ealarms-notify
Content:
2016-06-23 08:25:01.534 sogo-tool[1042] ERROR: could not open MySQL4 connection to database 'sogo': Can't connect to MySQL server on '127.0.0.1' (111 "Connection refused")
<0x0x2692070[GCSChannelManager]> could not open channel <MySQL4Channel[0x0x24f7e30] connection=0x(null)> for mysql://127.0.0.1/sogo/sogo_sessions_folder
<0x0x2692070[GCSChannelManager]>   will prevent opening of this channel 5 seconds after 2016-06-23 08:25:01 -0400
2016-06-23 08:25:01.537 sogo-tool[1042] Can't aquire channel
2016-06-23 08:25:01.665 sogo-ealarms-notify[1044] ERROR: could not open MySQL4 connection to database 'sogo': Can't connect to MySQL server on '127.0.0.1' (111 "Connection refused")
<0x0x293e1e0[GCSChannelManager]> could not open channel <MySQL4Channel[0x0x2718c60] connection=0x(null)> for mysql://127.0.0.1/sogo/sogo_alarms_folder
<0x0x293e1e0[GCSChannelManager]>   will prevent opening of this channel 5 seconds after 2016-06-23 08:25:01 -0400

How to fix it?

Thank You!

----

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

2

Re: Cron Daemon <sogo@host>

kysil wrote:

2016-06-23 08:25:01.665 sogo-ealarms-notify[1044] ERROR: could not open MySQL4 connection to database 'sogo': Can't connect to MySQL server on '127.0.0.1' (111 "Connection refused")

Those tasks are sogo's cron jobs. Seems cron jobs were ran before mysql service up. I have no idea yet.