You are not logged in.
Pages: 1
Topic closed
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
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
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
And did you try this?
Change in each action the run mode.. from GLPI -> CLI ??
Roberto Flores
Telegram: @rcfloresh
Grupo de GLPI Español (Telegram): https://t.me/glpisp // Discord: https://discord.gg/NXwp2UjC
Offline
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
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
Thanks
Offline
Pages: 1
Topic closed