You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2023-05-12 15:59:32

velidinc
Member
Registered: 2023-01-04
Posts: 5

GLPI 10.0.7 Crontab Notification

I upgraded glpi to version 10.0.7 after that Crontab works in Linux ubuntu but none of the automated tasks work. Notifications are not sent. automatic ticket closing does not work. So none of the automated processes are working. Where am I doing wrong can someone help?

Before GLPI: 10.0.5
Upgrated GLPI: 10.0.7
OS: Ubuntu 22.04.2 LTS
PHP: 8.2
Mysql: 8.0.33
Apache2: 2.4.52
GPLI Path: /var/www/html/glpi/

Crontab Content:
* * * * * /usr/bin/php /var/www/html/glpi/front/cron.php
* * * * * /usr/bin/php /var/www/html/glpi/front/cron.php --debug
* * * * * php GLPI/front/cron.php
* * * * *  php GLPI/front/cron.php --force mailgate
*/1 * * * * root cd /var/www/html/glpi/front/ && php cron.php
*/1 * * * *  www-data cd /var/www/html/glpi/front/ && php cron.php
* * * * * apache /usr/bin/php /var/www/html/glpi/front/cron.php &>/dev/null
*/1 * * * *  /usr/bin/php8.2 /usr/share/glpi/front/cron.php

Offline

#2 2023-05-16 16:43:04

chribra
Member
Registered: 2023-05-16
Posts: 1

Re: GLPI 10.0.7 Crontab Notification

Hi velidinc

I had similar problems with 9.5.x. Under ubuntu the path /usr/bin/php points to /etc/alternatives/php.

ls -la /usr/bin/php
lrwxrwxrwx 1 root root 21 May 10 11:12 /usr/bin/php -> /etc/alternatives/php

And sometimes it didn't work in the past. Now my crontab looks like this.

* * * * * cd /var/www/html/glpi/front/ && /usr/bin/php8.1 cron.php &>/dev/null

You could try this.

Best regards
Christian

Offline

#3 2023-05-19 13:38:30

velidinc
Member
Registered: 2023-01-04
Posts: 5

Re: GLPI 10.0.7 Crontab Notification

chribra wrote:

Hi velidinc

I had similar problems with 9.5.x. Under ubuntu the path /usr/bin/php points to /etc/alternatives/php.

ls -la /usr/bin/php
lrwxrwxrwx 1 root root 21 May 10 11:12 /usr/bin/php -> /etc/alternatives/php

And sometimes it didn't work in the past. Now my crontab looks like this.

* * * * * cd /var/www/html/glpi/front/ && /usr/bin/php8.1 cron.php &>/dev/null

You could try this.

Best regards
Christian


Hello Christian,

I added it but it doesn't work. Actually, some automatic processes work but some do not, I don't understand why.
the new crontab looks like this:
* * * * * /usr/bin/php /var/www/html/glpi/front/cron.php
* * * * * /usr/bin/php /var/www/html/glpi/front/cron.php --debug
* * * * * cd /var/www/html/glpi/front/ && /usr/bin/php8.2 cron.php &>/dev/null

The system is as follows:
Ubuntu 22.04.2 LTS
PHP 8.2.6 (cli)
mysql Ver 8.0.33
Apache/2.4.52

Offline

Board footer

Powered by FluxBB