Author |
|
solkmaaker Senior Member
![Senior Member](forum_images/3_star_rating.gif)
Joined: 28 June 2020
Online Status: Offline Posts: 160
|
Posted: 17 March 2022 at 5:30pm | IP Logged
|
|
|
v9.3.1
Calendar cronjob (modules/Calendar/Cron.php) gives output (newline) in case where calendar event has notifications.
It means that if cron is configured to sent notifications to server admin in case of output, admin will get empty email (containing newline) from system every time any notification about calendar event is sent to any user.
|
Back to Top |
|
|
Igor AfterLogic Support
![AfterLogic Support](forum_images/5_star_rating.gif)
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6082
|
Posted: 18 March 2022 at 1:14am | IP Logged
|
|
|
If you run the script directly, e.g.:
Code:
php /var/www/aurora/modules/Calendar/Cron.php |
|
|
do you get a newline output there as well? Can you ZIP your copy of the script and upload it somewhere so we compare it with the original script? Thanks.
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
solkmaaker Senior Member
![Senior Member](forum_images/3_star_rating.gif)
Joined: 28 June 2020
Online Status: Offline Posts: 160
|
Posted: 18 March 2022 at 2:05am | IP Logged
|
|
|
File is available: https://ufile.io/4mxomezu
And cronjob is located in /etc/cron.d directory:
Code:
MAILTO="xxxxx@xxxxx.xx"
*/5 * * * * www-data /usr/bin/php /var/www/modules/Calendar/Cron.php
|
|
|
|
Back to Top |
|
|
solkmaaker Senior Member
![Senior Member](forum_images/3_star_rating.gif)
Joined: 28 June 2020
Online Status: Offline Posts: 160
|
Posted: 18 March 2022 at 2:17am | IP Logged
|
|
|
I disabled cron and run it manually.
If there is no even notification to be sent then script does not give output.
I created event with notification, waited until time passed where notification should be sent, and then run script manually.
And it outputs just newline.
Code:
root@mail:~# sudo -u www-data /usr/bin/php /var/www/modules/Calendar/Cron.php
root@mail:~# echo $?
0
root@mail:~# sudo -u www-data /usr/bin/php /var/www/modules/Calendar/Cron.php
root@mail:~# echo $?
0
root@mail:~#
|
|
|
|
Back to Top |
|
|
Igor AfterLogic Support
![AfterLogic Support](forum_images/5_star_rating.gif)
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6082
|
Posted: 23 March 2022 at 6:55am | IP Logged
|
|
|
We're not able to reproduce such an issue on the latest build, no matter what we do.
By the way, it may be a good idea to redirect output for this specific rule into a log file, for example:
Code:
*/5 * * * * www-data /usr/bin/php /var/www/modules/Calendar/Cron.php >> /var/www/data/cron-log.txt |
|
|
--
Regards,
Igor, Afterlogic Support
|
Back to Top |
|
|
solkmaaker Senior Member
![Senior Member](forum_images/3_star_rating.gif)
Joined: 28 June 2020
Online Status: Offline Posts: 160
|
Posted: 23 March 2022 at 7:09am | IP Logged
|
|
|
I'll try to test it with clean install in our test env.
I'll let you know, as soon as it is done.
|
Back to Top |
|
|
solkmaaker Senior Member
![Senior Member](forum_images/3_star_rating.gif)
Joined: 28 June 2020
Online Status: Offline Posts: 160
|
Posted: 23 March 2022 at 8:04am | IP Logged
|
|
|
Hi Igor
I'm sorry. This was not Aurora issue.
Issue was caused by our custom plugin that integrates with calendar.
Sorry again for wasting your time on this.
|
Back to Top |
|
|