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 2018-07-23 14:25:24

Mexonizator2
Guest
Registered: 2018-07-23
Posts: 4

The 'GLPI cron not running, see documentation' error

Hello!

So. I've got GLPI 9.3 + the FusionInventory plugin + Nginx on CentOS 7. I edited the crontab:

*/1 * * * * /usr/bin/php /usr/share/nginx/glpi/front/cron.php

The cron log shows everything is OK:

CROND[2614]: (nginx) CMD (/usr/bin/php /usr/share/nginx/glpi/front/cron.php)

But the error still appears in the web-interface of the plugin.

What I tried (to no avail):

- To set SELinux permissive;
- To run the command manually, as Nginx user and as root as well;
- To run the command manually, adding '-d "date.timezone="' part;
- To check php-fpm log - no errors;
- To toggle the Debug mode - didn't help, didn't see any info;
- To reboot.

What else can be the reason? Earlier there was no that error, and I can't think of anything that could cause it.

Thanks!

Offline

#2 2018-07-23 15:27:00

ashishjha091994
Guest
Registered: 2018-07-19
Posts: 22

Re: The 'GLPI cron not running, see documentation' error

Hi ,

Try this , it's working

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


if any query let me know.....

Offline

#3 2018-07-24 15:39:20

Mexonizator2
Guest
Registered: 2018-07-23
Posts: 4

Re: The 'GLPI cron not running, see documentation' error

Hello!

I tried via making a symbolic link (/usr/share/nginx/glpi/front/cron.php -> /var/www/html/glpi/front/cron.php ) to avoid moving the site and it didn't do the trick. In fact it was the same.

Offline

#4 2018-07-27 19:06:48

robertocarlos.floresh
Moderator
From: San Salvador, El Salvador
Registered: 2014-12-29
Posts: 112

Re: The 'GLPI cron not running, see documentation' error

And did you try this?

Change in each action the run mode.. from GLPI -> CLI ??

aidEET8.png


Roberto Flores
Skype: robertocarlos.flores / Telegram: @rcfloresh

Offline

#5 2018-08-16 10:33:24

Mexonizator2
Guest
Registered: 2018-07-23
Posts: 4

Re: The 'GLPI cron not running, see documentation' error

Oh, I didn't think about it.

Ok, I tried, but to no avail. I'm starting to think that the rights are insufficient somewhere there...

And one more strange thing. I forgot to mention, but right after the installation and launching the cron, everything was ok. Only when a couple of days passed, did that error appear.



P.S. It seems, I finally solved it! What I did:

1. Switched all the tasks on Automatic actions page to CLI mode;
2. Re-runned ones that had Last run date older than today.

And it worked like a charm!

Now I can guess what's the reason of the error. Originally many tasks, including taskscheduler one had GPLI mode. It means that they was launched only when a user (me) was logged in. But for some unclear reason the taskscheduler didn't re-run - just had the 'executing' state indefinitely. In turn, some timeout, that seems to be built in, passed and as a result the error was given. So after re-running the task it was fixed.

I hope that will help someone. And many thanks to Robertocarlos.floresh for pointing me in the right direction!

Last edited by Mexonizator2 (2018-08-16 12:27:01)

Offline

#6 2019-01-08 11:42:36

etadmin
Member
Registered: 2019-01-08
Posts: 1

Re: The 'GLPI cron not running, see documentation' error

Hello,

I had the same issue with :
GLPI 9.3.3
FusionInventory 9.3+1.3

I try what you did about the tasksheduler and it's worked.

Just to let you know that it was useful wink

Thanks

Offline

Board footer

Powered by FluxBB