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-01-22 13:03:51

matalaaranya
Member
Registered: 2018-01-22
Posts: 10

(SOLVED) Mailcron fetch url

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

#2 2018-01-23 19:59:28

matalaaranya
Member
Registered: 2018-01-22
Posts: 10

Re: (SOLVED) Mailcron fetch url

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

#3 2018-01-23 20:49:19

KKAdmin
Member
From: Germany
Registered: 2010-03-05
Posts: 959

Re: (SOLVED) Mailcron fetch url

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

#4 2018-01-23 21:07:46

matalaaranya
Member
Registered: 2018-01-22
Posts: 10

Re: (SOLVED) Mailcron fetch url

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

#5 2018-01-23 21:57:58

kurasul
Member
Registered: 2017-12-20
Posts: 162

Re: (SOLVED) Mailcron fetch url

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

#6 2018-01-23 22:02:08

KKAdmin
Member
From: Germany
Registered: 2010-03-05
Posts: 959

Re: (SOLVED) Mailcron fetch url

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

#7 2018-01-23 22:51:29

matalaaranya
Member
Registered: 2018-01-22
Posts: 10

Re: (SOLVED) Mailcron fetch url

KKAdmin wrote:

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

#8 2018-01-23 23:05:21

KKAdmin
Member
From: Germany
Registered: 2010-03-05
Posts: 959

Re: (SOLVED) Mailcron fetch url

In your logs i see only internal but not external so it is NOT the same. It is different or maybe a language problem smile
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

#9 2018-01-23 23:39:11

matalaaranya
Member
Registered: 2018-01-22
Posts: 10

Re: (SOLVED) Mailcron fetch url

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

#10 2018-01-23 23:44:35

KKAdmin
Member
From: Germany
Registered: 2010-03-05
Posts: 959

Re: (SOLVED) Mailcron fetch url

First read all text from all users and my question and help try also wink

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
kurasul wrote:

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


http://wiki.glpi-project.org/doku.php?i … ig:crontab


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

#11 2018-01-24 00:01:53

matalaaranya
Member
Registered: 2018-01-22
Posts: 10

Re: (SOLVED) Mailcron fetch url

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

#12 2018-01-24 07:50:36

matalaaranya
Member
Registered: 2018-01-22
Posts: 10

Re: (SOLVED) Mailcron fetch url

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

#13 2018-01-24 09:50:24

matalaaranya
Member
Registered: 2018-01-22
Posts: 10

Re: (SOLVED) Mailcron fetch url

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

#14 2018-01-24 16:00:15

matalaaranya
Member
Registered: 2018-01-22
Posts: 10

Re: (SOLVED) Mailcron fetch url

Solution its correct permisions directory.

More thank you

Offline

Board footer

Powered by FluxBB