1

Topic: IRedAPD Stopping on Sundays

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.2
- Linux/BSD distribution name and version: Debian 8
- 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:
====

Every sunday IRedAPD exits its service

service status -
root@FS:/home/zinc# service iredapd status
● iredapd.service - LSB: Control iredapd daemon.
   Loaded: loaded (/etc/init.d/iredapd)
   Active: active (exited) since Sun 2015-10-25 00:09:23 CDT; 21h ago

Oct 25 00:09:23 FS iredapd[15993]: Starting iredapd ...

at this point i have to stop the service and start it once again

i have debug on IRedAPD and here is the log...
2015-10-25 07:48:33 DEBUG SQL query result: None
2015-10-25 07:48:33 DEBUG <-- Result: DUNNO (Not a mail alias account)
2015-10-25 07:48:33 INFO [176.107.177.70] RCPT, AcceleratedTeachingCertification@newtrickk.win -> zinc@xxxxx.com, DUNNO
2015-10-25 07:48:33 DEBUG Session ended
2015-10-25 21:30:33 INFO Starting iRedAPD (version: 1.7.0, backend: mysql), listening on 127.0.0.1:7777.
2015-10-25 21:30:33 INFO Loading plugin: reject_null_sender
2015-10-25 21:30:33 INFO Loading plugin: amavisd_wblist
2015-10-25 21:30:33 INFO Loading plugin: sql_alias_access_policy
2015-10-25 21:31:06 DEBUG Connect from 127.0.0.1, port 36027.

----

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

2

Re: IRedAPD Stopping on Sundays

Try to remove /etc/logrotate.d/iredapd (or move it to other folder).

3

Re: IRedAPD Stopping on Sundays

moved, ill report back sunday

4

Re: IRedAPD Stopping on Sundays

Looks like it didn't exit this week.  the service restarted around midnight.  Obviously the log is not rotating anymore though.

root@FS:/home/zinc# service iredapd status
● iredapd.service - LSB: Control iredapd daemon.
   Loaded: loaded (/etc/init.d/iredapd)
   Active: active (running) since Sun 2015-11-01 00:12:38 CDT; 9h ago
  Process: 2717 ExecStop=/etc/init.d/iredapd stop (code=exited, status=0/SUCCESS)
  Process: 2727 ExecStart=/etc/init.d/iredapd start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/iredapd.service
           └─2730 python /opt/iredapd/iredapd.py

Nov 01 00:12:37 FS iredapd[2727]: Starting iredapd ...

here is the file from /etc/logrotate.d/iredapd

# File generated by iRedMail (2013.12.06.23.41.25):
#
# Version:  0.8.5
# Project:  http://www.iredmail.org/
#
# Community: http://www.iredmail.org/forum/
#

/var/log/iredapd.log {
    compress
    weekly
    rotate 10
    create 0600 root root
    missingok

    # Use bzip2 for compress.
    compresscmd /bin/bzip2
    uncompresscmd /bin/bunzip2
    compressoptions -9
    compressext .bz2

    postrotate
        /etc/init.d/iredapd restart
    endscript
}

5

Re: IRedAPD Stopping on Sundays

Thanks for the feedback.

Upcoming iRedAPD release will handle log rotate itself, and compress.

6

Re: IRedAPD Stopping on Sundays

so do i have to fix this until that is released? or just let the logs pile up?

7

Re: IRedAPD Stopping on Sundays

It's ok to wait for our new release.