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-06-29 23:59:00

Gold3n
Member
Registered: 2023-06-26
Posts: 5

Cron not running

Description:
I am currently using Ubuntu with GLPI version 10.0.6. I have set up a cron job based on the documentation provided at documentation.fusioninventory.org/FusionInventory_for_GLPI/cron/. The cron job settings I used are as follows:

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

However, none of my tasks are functioning, and I am receiving a warning indicating that the cron job is not running properly.

Steps to Reproduce:

    Install and configure GLPI version 10.0.6 on Ubuntu.
    Set up the cron job with the provided command: * * * * * cd /var/www/glpi/front/ && /usr/bin/php cron.php &>/dev/null.
    Observe the cron tasks not executing and the warning message.

Offline

#2 2023-06-30 08:28:25

Kaya84
Member
Registered: 2019-06-13
Posts: 217

Re: Cron not running

Depending on where you put the cronjob, maybe you forget to add the user , like:

*/5  * * * *  root /usr/bin/php /var/www/glpi/front/cron.php &> /dev/null

(i can suggest you to make cronjob every 5 mins)

Did u tryed with
/usr/bin/php /var/www/glpi/front/cron.php &> /dev/null
inside console and check if it work?

Offline

#3 2023-06-30 08:28:52

WebGreg
Member
Registered: 2020-02-27
Posts: 740

Re: Cron not running

Hi

Try with
* * * * * www-data cd /var/www/html/glpi/front/ && php cron.php > /dev/null


--
GLPI 10.0.17
GLPI-Inventory 1.4.0
Ubuntu Server 20.04 LTS

Offline

#4 2023-06-30 08:58:14

Langundo
Member
Registered: 2016-07-21
Posts: 75

Re: Cron not running

Hi,
my first line in crontab is

MAILTO=""

After that it worked for me.


Debian 11.7 - PHP 7.4.33 - MariaDB 10.5.19 - 10.0.8-dev

Offline

#5 2023-06-30 14:03:05

Gold3n
Member
Registered: 2023-06-26
Posts: 5

Re: Cron not running

Thank you so much for your assistance! I realized that I made a mistake when setting up the cron job. I had only copied the setup from the documentation but forgot to include the /html/ directory in the command. I really appreciate your help in identifying the issue. I will update the cron job command accordingly and test it again. Thank you once again for pointing out the oversight!

Offline

Board footer

Powered by FluxBB