Just what it says on the tin -- I recently migrated my ITFlow install to another server and I'm finding that the mail queue no longer works. I suspect other cron items may be broken as well.
There was some conflicting information on how to restore the DB for ITFlow here on the forum. I saw a thread where it said to go thru the ITFlow setup, and another one that said you wouldn't. In my case, I installed phpmyadmin on the new system and logged in as the new itflow user that was generated. I then dropped the itflow database and created a new one, then imported the data from the dump I did from the previous ITFlow install via phpmyadmin. From there, everything seemed to work fine. I replaced the config.php
and uploads/
folder with what existed on the old system and applied new permissions.
As part of troubleshooting cron, I have regenerated a cron key and adjusted my crontab as follows: (For clarity, [KEY] is censored in the following context.)
0 2 * * * sudo -u www-data php /var/www/portal.hodgesvcs.com/cron.php [KEY]
* * * * * sudo -u www-data php /var/www/portal.hodgesvcs.com/cron_ticket_email_parser.php [KEY]
* * * * * sudo -u www-data php /var/www/portal.hodgesvcs.com/cron_mail_queue.php [KEY] logger 2>&1 | logger -t itflow-email
I am forwarding logs to syslog to ensure I get more in-depth information.
In my syslog, I see things like:
2024-11-10T19:58:01.155198-06:00 itflow-1 CRON[1406]: (www-data) CMD (/usr/bin/php /var/www/portal.hodgesvcs.com/cron_ticket_email_parser.php [KEY])
2024-11-10T19:58:01.155292-06:00 itflow-1 CRON[1401]: (CRON) info (No MTA installed, discarding output)
2024-11-10T19:58:01.155960-06:00 itflow-1 CRON[1400]: (CRON) info (No MTA installed, discarding output)
2024-11-10T19:58:01.195056-06:00 itflow-1 CRON[1398]: (CRON) info (No MTA installed, discarding output)
2024-11-10T19:58:56.690097-06:00 itflow-1 crontab[1414]: (root) BEGIN EDIT (root)
2024-11-10T19:59:01.273175-06:00 itflow-1 CRON[1428]: (www-data) CMD (/usr/bin/php /var/www/portal.hodgesvcs.com/cron_mail_queue.php [KEY])
2024-11-10T19:59:01.276035-06:00 itflow-1 CRON[1429]: (root) CMD (-u www-data /usr/bin/php /var/www/portal.hodgesvcs.com/cron_ticket_email_parser.php [KEY])
2024-11-10T19:59:01.276248-06:00 itflow-1 CRON[1430]: (www-data) CMD (/usr/bin/php /var/www/portal.hodgesvcs.com/cron_ticket_email_parser.php [KEY])
2024-11-10T19:59:01.276463-06:00 itflow-1 CRON[1431]: (root) CMD (-u www-data /usr/bin/php /var/www/portal.hodgesvcs.com/cron_mail_queue.php [KEY] logger 2>&1 | logger -t itflow-email)
2024-11-10T19:59:01.276514-06:00 itflow-1 CRON[1427]: (CRON) info (No MTA installed, discarding output)
2024-11-10T19:59:01.279027-06:00 itflow-1 CRON[1426]: (CRON) info (No MTA installed, discarding output)
2024-11-10T19:59:01.320278-06:00 itflow-1 CRON[1424]: (CRON) info (No MTA installed, discarding output)
2024-11-10T19:59:55.046410-06:00 itflow-1 crontab[1414]: (root) END EDIT (root)
2024-11-10T20:00:01.395554-06:00 itflow-1 CRON[1450]: (www-data) CMD (/usr/bin/php /var/www/portal.hodgesvcs.com/cron_mail_queue.php [KEY])
2024-11-10T20:00:01.397873-06:00 itflow-1 CRON[1451]: (root) CMD (-u www-data /usr/bin/php /var/www/portal.hodgesvcs.com/cron_ticket_email_parser.php [KEY])
2024-11-10T20:00:01.398051-06:00 itflow-1 CRON[1448]: (CRON) info (No MTA installed, discarding output)
2024-11-10T20:00:01.400346-06:00 itflow-1 systemd[1]: Starting sysstat-collect.service - system activity accounting tool...
2024-11-10T20:00:01.402664-06:00 itflow-1 CRON[1452]: (root) CMD (-u www-data /usr/bin/php /var/www/portal.hodgesvcs.com/cron_mail_queue.php [KEY] logger 2>&1 | logger -t itflow-email)
2024-11-10T20:00:01.405834-06:00 itflow-1 CRON[1453]: (www-data) CMD (/usr/bin/php /var/www/portal.hodgesvcs.com/cron_ticket_email_parser.php [KEY])
2024-11-10T20:00:01.408711-06:00 itflow-1 CRON[1447]: (CRON) info (No MTA installed, discarding output)
2024-11-10T20:00:01.411872-06:00 itflow-1 systemd[1]: sysstat-collect.service: Deactivated successfully.
2024-11-10T20:00:01.411954-06:00 itflow-1 systemd[1]: Finished sysstat-collect.service - system activity accounting tool.
2024-11-10T20:00:01.449529-06:00 itflow-1 CRON[1445]: (CRON) info (No MTA installed, discarding output)
I'm not sure if there's any relevant information there, but I'm seeing that emails do not send as they should anymore. Can confirm all other settings are like they were on the previous install.