Closed pippo571 closed 8 months ago
Hi,
It is probably the same bug as reported in #9913. Could you ensure that your default PHP timezone and your default MySQL timezone are identical ?
Hello,
This indeed seems to solve the problem.
I had a difference of 1 hour between PHP and MariaDB time, both were using their default value (system timezone for MariaDB and UTC for PHP), setting PHP to my system timezone solved the issue, the tickets are now created correcty and not duplicated anymore.
Thanks :)
Thanks for the feedback, I close this issue as it duplicates #9913.
Code of Conduct
Is there an existing issue for this?
Version
10.0.12
Bug description
Hello,
I have a problem with (some of) my recurring tickets after upgrading to version 10.0.12.
When a recurring ticket is created, it is then duplicated every 5 minutes until I set it to "Active : No".
This does not happen with all my recurring tickets. All the recurring tickets (impacted or not) were present before the upgrade.
All duplicated tickets are created with the same opening date, and their last update time is 1 hour before, incrementing by the duplication time, then updates the opening date after last update = opening date. Example that I reproduced today :
I also tried to create a new recurring ticket using a new ticket template with only description and title as predefined fields, same problem.
RecurrentItems automatic action is set to run in CLI mode every 5 minutes, no error in the task logs in GLPI, get "1 Action completed, fully processed" for all tickets.
Tried to move the recurring ticket to another entity, did not help. Tried to clone ticket and delete the original, same result. Tried to delete and
All recurring tickets use the same calendar. All are visible for sub entities. None have an end date. Some impacted and non-impacted tickets are in the same entity.
Relevant log output
Cannot find any relevant logs for that.
Page URL
No response
Steps To reproduce
Set the automatic action "RecurrentItems" to run in CLI mode every 5 minutes.
Set cron for GLPI in your server crontab (that must be set in the crontab of the user running your webserver):
*/5 * * * * /usr/bin/php /var/www/glpi/front/cron.php &>/dev/null
Create a new ticket template.
Add predefined fields :
Create a recurring ticket that is active and uses the template you created at step 1 and 2.
No end date, no preliminary creation, use the default calendar.
Set periodicity to 1 hour.
Set a start date.
Wait for the ticket to be created.
Every 5 minutes after that, a duplicate should be created.
Set the recurring ticket to "Active: No" or delete it to stop the duplicates from being generated.
Your GLPI setup information
Information about system installation & configuration
Server
GLPI constants
Libraries
SQL replicas
Notifications
Plugins list
Anything else?
No response