syslog after changing owner to root

2025-03-07T14:33:01.933824+01:00 hd cron[31866]: (*system*sysstat) INSECURE MODE (group/other writable) (/etc/cron.d/sysstat)
2025-03-07T14:33:01.935960+01:00 hd cron[31866]: (*system*e2scrub_all) INSECURE MODE (group/other writable) (/etc/cron.d/e2scrub_all)
2025-03-07T14:33:01.936069+01:00 hd cron[31866]: (*system*certbot) INSECURE MODE (group/other writable) (/etc/cron.d/certbot)
2025-03-07T14:33:01.936155+01:00 hd cron[31866]: (*system*itflow) RELOAD (/etc/cron.d/itflow)
2025-03-07T14:33:01.936246+01:00 hd cron[31866]: (*system*itflow) ERROR (Missing newline before EOF, this crontab file will be ignored)
2025-03-07T14:33:01.936335+01:00 hd cron[31866]: (*system*anacron) INSECURE MODE (group/other writable) (/etc/cron.d/anacron)
2025-03-07T14:33:01.936426+01:00 hd cron[31866]: (*system*php) INSECURE MODE (group/other writable) (/etc/cron.d/php)
2025-03-07T14:33:01.946635+01:00 hd CRON[58019]: (hd) CMD (php /var/www/hd.xxxx.pl/scripts/cron_ticket_email_parser.php)
2025-03-07T14:33:02.060664+01:00 hd CRON[58018]: (CRON) info (No MTA installed, discarding output)
2025-03-07T14:33:05.596325+01:00 hd kernel: [UFW BLOCK] IN=eth0 OUT= MAC=01:00:5e:00:00:01:f4:e2:c6:c9:80:6c:08:00 SRC=172.15.1.17 DST=224.0.0.1 LEN=32 TOS=0x00 PREC=0xC0 TTL=1 ID=60119 PROTO=2
2025-03-07T14:33:05.596361+01:00 hd kernel: [UFW BLOCK] IN=eth0 OUT= MAC=01:00:5e:00:00:01:f4:e2:c6:c9:80:6c:08:00 SRC=172.15.1.17 DST=224.0.0.1 LEN=32 TOS=0x00 PREC=0xC0 TTL=1 ID=60119 PROTO=2
2025-03-07T14:33:10.829471+01:00 hd kernel: [UFW BLOCK] IN=eth0 OUT= MAC=01:00:5e:00:00:fb:bc:24:11:ed:f6:6a:08:00 SRC=172.15.1.115 DST=224.0.0.251 LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=42871 PROTO=2

CMD (php /var/www/hd.xxxx.pl/scripts/cron_ticket_email_parser.php)

Looks like the permissions are better and its running the script now, but still not with logger.

2025-03-07T14:33:01.936246+01:00 hd cron[31866]: (*system*itflow) ERROR (Missing newline before EOF, this crontab file will be ignored)

Adding a blank line to the end of the file may also be helpful

I added a blank line at the end

syslog:
2025-03-07T14:44:01.454862+01:00 hd cron[31866]: (*system*sysstat) INSECURE MODE (group/other writable) (/etc/cron.d/sysstat)
2025-03-07T14:44:01.455113+01:00 hd cron[31866]: (*system*e2scrub_all) INSECURE MODE (group/other writable) (/etc/cron.d/e2scrub_all)
2025-03-07T14:44:01.455262+01:00 hd cron[31866]: (*system*certbot) INSECURE MODE (group/other writable) (/etc/cron.d/certbot)
2025-03-07T14:44:01.455314+01:00 hd cron[31866]: (*system*itflow) RELOAD (/etc/cron.d/itflow)
2025-03-07T14:44:01.455365+01:00 hd cron[31866]: (*system*anacron) INSECURE MODE (group/other writable) (/etc/cron.d/anacron)
2025-03-07T14:44:01.455419+01:00 hd cron[31866]: (*system*php) INSECURE MODE (group/other writable) (/etc/cron.d/php)
2025-03-07T14:44:01.467295+01:00 hd CRON[58197]: (www-data) CMD (/usr/bin/php /var/www/hd.***.pl/scripts/cron_mail_queue.php |logger -t itflow-email-parser |logger -t itflow-email-parserM)
2025-03-07T14:44:01.467707+01:00 hd CRON[58196]: (hd) CMD (php /var/www/hd.***.pl/scripts/cron_ticket_email_parser.php)
2025-03-07T14:44:01.469557+01:00 hd CRON[58199]: (www-data) CMD (/usr/bin/php /var/www/hd.***.pl/scripts/cron_ticket_email_parser.php |logger -t itflow-email-parser |logger -t itflow-email-parserM)
2025-03-07T14:44:01.506198+01:00 hd itflow-email-parser: Script is already running. Exiting.
2025-03-07T14:44:01.570019+01:00 hd CRON[58195]: (CRON) info (No MTA installed, discarding output)

/usr/bin/php /var/www/hd.xxxx.pl/scripts/cron_mail_queue.php |logger -t itflow-email-parser |logger -t itflow-email-parserM)

Probably don't need to be sending it to logger twice, but other than that it looks like it's running? Is there still nothing in the app debug log?

now works create tickets from emails and send replies to users

thank you very much CI for your help 🙂

could you so briefly write what we did so that someone else who will have the same problem will not have to go through the whole process from the beginning? 🙂

It seems you originally had your Cron configuration in crontab - l. You then added an itflow configuration file in /etc/cron.d but this didn't work due to the wrong file permissions.

Once you removed the old cron configuration from crontab -l, and added the new configurations to the file in /etc/cron.d/itflow (with some logging to syslog), and fixed the permissions to be root/600 with a blank line at the end, everything worked as expected.