You are not logged in.
Pages: 1
Hello,
I am trying to configure the cron but in my hosting I can only configure it with a fetch URL.
Is there any way to configure it well?
I'm configure with fetch "http://www.domain.com/helpdesk/front/cron.php
But not working cron.
Can you help me?
Thanks
Last edited by matalaaranya (2018-01-24 16:00:38)
Offline
Hello,
I'm not work cron, I have all automatic proces in CLI type.
My configuration cron:
*/5 * * * * /usr/bin/php56 -c /home/domain.com/php.ini /usr/home/domain.com/helpdesk/front/cron.php &>/dev/null
LOG:
cron.log:
Intern #1: Executa queuednotification
2018-01-23 17:54:30 [7@vxadn-15.srv.cat]
Interno #1: Ejecutar slaticket
2018-01-23 17:55:02 [@vxadn-15.srv.cat]
Intern #1: Executa queuednotification
2018-01-23 18:00:02 [@vxadn-15.srv.cat]
Intern #1: Executa ticketrecurrent
2018-01-23 18:05:01 [@vxadn-15.srv.cat]
Intern #1: Executa queuednotification
2018-01-23 18:10:01 [@vxadn-15.srv.cat]
Intern #1: Executa slaticket
2018-01-23 18:15:01 [@vxadn-15.srv.cat]
Intern #1: Executa queuednotification
2018-01-23 18:20:01 [@vxadn-15.srv.cat]
Intern #1: Executa temp
2018-01-23 18:25:01 [@vxadn-15.srv.cat]
Intern #1: Executa slaticket
2018-01-23 18:28:05 [7@vxadn-15.srv.cat]
Interno #1: Ejecutar queuednotification
2018-01-23 18:30:02 [@vxadn-15.srv.cat]
Intern #1: Executa reservation
2018-01-23 18:35:01 [@vxadn-15.srv.cat]
Intern #1: Executa queuednotification
2018-01-23 18:35:42 [7@vxadn-15.srv.cat]
Interno #1: Ejecutar slaticket
2018-01-23 18:40:01 [@vxadn-15.srv.cat]
Intern #1: Res per executar
2018-01-23 18:41:16 [7@vxadn-15.srv.cat]
Interno #1: Nada que ejecutar
2018-01-23 18:45:02 [@vxadn-15.srv.cat]
Intern #1: Res per executar
2018-01-23 18:46:40 [7@vxadn-15.srv.cat]
Interno #1: Nada que ejecutar
2018-01-23 18:50:02 [@vxadn-15.srv.cat]
Intern #1: Res per executar
Do not pick mailgate mail or any other little one will run.
On the server it appears that the cron is running in the logs of the server without any error.
Thank you very much
Offline
In Cron.log is no external (=cli) entry That means cli is Not Started from cron. PLS Check Other Threads here to configure cron correct. Of Course you have no Logs you drop them with /dev/null
You can mark this threat as [resolved] in subject of your threat. (This is only available edit of the first post.) It is good for users who help others to quickly see which post is still open.
##############################################
GLPI 9.3.3
Offline
Hi, I do not understand.
the cron is configured and all the automatic items are in cli mode.
There is something that escapes me. What is wrong? do you have to do something extra in the glpi apart from activating eg mailgate run as cli?
Thank you
Offline
hi matalaaranya
have you check taht your crontab-wide is really ok
try to edit it , and look if you have your line or glpi in.
regards
ps for me in the crontab-wide i push this line
* * * * * root /usr/bin/php7.0 /var/www/glpi/front/cron.php &>/dev/null
Kurasul // IT Manager ============ https://discord.gg/qgDXNwS
OS + plugins: Ubuntu 16.04 // GLPI 9.2.1 // Php 7.0 // Sql + phpmyadmin // LDAP //
Fusion Inventory 9.2+1.0 //Cartographie 4.4.0 // Dashboard 1.4.0 // Gestion de baies 1.8.0 // Comptes 2.3.0 // Impression PDF
Imports fabricants 2.0.0 // Liste des taches 1.2.0 // Plus de rapports 1.4.0 // Arrêté du parc 2.4.0
Offline
Do you have access to shell ?
Try enter your command you want to use. I believe you will get an error.
/usr/bin/php56 -c /home/domain.com/php.ini /usr/home/domain.com/helpdesk/front/cron.php
If the task works you get an entry in cron.log and if nothing to do for the job you get this one:
date time servername
External #1: Nothing to launch
You can mark this threat as [resolved] in subject of your threat. (This is only available edit of the first post.) It is good for users who help others to quickly see which post is still open.
##############################################
GLPI 9.3.3
Offline
Do you have access to shell ?
Try enter your command you want to use. I believe you will get an error./usr/bin/php56 -c /home/domain.com/php.ini /usr/home/domain.com/helpdesk/front/cron.php
If the task works you get an entry in cron.log and if nothing to do for the job you get this one:
date time servername
External #1: Nothing to launch
hello that message is just what appears to me. both by launching the command by hand as in the logs of glpi. But even so it still does not work I do not understand it.
Offline
In your logs i see only internal but not external so it is NOT the same. It is different or maybe a language problem
In your language Intern means internal and Interno means external ? google translator can't help me in this situation.
You can mark this threat as [resolved] in subject of your threat. (This is only available edit of the first post.) It is good for users who help others to quickly see which post is still open.
##############################################
GLPI 9.3.3
Offline
Sorry if it's true what you're telling me, but what can I do to change from intern to external? the cron apparently is correct.
I do not know what it can be I am looking for in the forum but I can not find anyone with the same problem.
Offline
First read all text from all users and my question and help try also
Do you have access to shell ?
Try enter your command you want to use. I believe you will get an error. If you know what to do corrrect it or post the error here.
/usr/bin/php56 -c /home/domain.com/php.ini /usr/home/domain.com/helpdesk/front/cron.php
hi matalaaranya
have you check taht your crontab-wide is really ok
try to edit it , and look if you have your line or "glpi" in.
regardsps for me in the crontab-wide i push this line
* * * * * root /usr/bin/php7.0 /var/www/glpi/front/cron.php &>/dev/null
You can mark this threat as [resolved] in subject of your threat. (This is only available edit of the first post.) It is good for users who help others to quickly see which post is still open.
##############################################
GLPI 9.3.3
Offline
Hello, the problem is that I do not have direct access to the server to perform the test directly.
I have reported it to the provider so they tell me what error comes with that command.
We have created the cron from the documentation that you enclose.
Thank you.
Offline
Hello, i'm find problem path error.
But have another error at run command.
A link to the SQL server could not be established. Please check your configuration.
Le serveur Mysql est inaccessible. Vérifiez votre configuration
Warning: Unknown: open(/usr/home/domain.com/web/helpdesk/files/_sessions/sess_60ec27a4d668d615638693959bbba2ff, O_RDWR) failed: Permission denied (13) in Unknown on line 0
Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/usr/home/domain.com/web/helpdesk/files/_sessions) in Unknown on line 0
Can you helpme please?
Thank you
Last edited by matalaaranya (2018-01-24 07:51:10)
Offline
I'm checking and its fine:
config/config_db.php (user, password and db its OK).
I'm set in all folder files chmod 775
any ideas?
Offline
Solution its correct permisions directory.
More thank you
Offline
Pages: 1