Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic Aurora

 AfterLogic Forum : AfterLogic Aurora
Subject Topic: Calendar cron problem Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
solkmaaker
Senior Member
Senior Member


Joined: 28 June 2020
Online Status: Offline
Posts: 136
Posted: 17 March 2022 at 5:30pm | IP Logged Quote solkmaaker

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 View solkmaaker's Profile Search for other posts by solkmaaker
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 5902
Posted: 18 March 2022 at 1:14am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 
solkmaaker
Senior Member
Senior Member


Joined: 28 June 2020
Online Status: Offline
Posts: 136
Posted: 18 March 2022 at 2:05am | IP Logged Quote solkmaaker

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 View solkmaaker's Profile Search for other posts by solkmaaker
 
solkmaaker
Senior Member
Senior Member


Joined: 28 June 2020
Online Status: Offline
Posts: 136
Posted: 18 March 2022 at 2:17am | IP Logged Quote solkmaaker

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 View solkmaaker's Profile Search for other posts by solkmaaker
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 5902
Posted: 23 March 2022 at 6:55am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 
solkmaaker
Senior Member
Senior Member


Joined: 28 June 2020
Online Status: Offline
Posts: 136
Posted: 23 March 2022 at 7:09am | IP Logged Quote solkmaaker

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 View solkmaaker's Profile Search for other posts by solkmaaker
 
solkmaaker
Senior Member
Senior Member


Joined: 28 June 2020
Online Status: Offline
Posts: 136
Posted: 23 March 2022 at 8:04am | IP Logged Quote solkmaaker

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 View solkmaaker's Profile Search for other posts by solkmaaker
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide