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 2017-03-14 11:38:16

nikit0ss
Member
Registered: 2016-08-31
Posts: 24

New Version 9.1.2 and new Problem MAILGARE

after update 9.1.1 to 9.1.2 "maingate" Stopped working automatically/
I mean that tasks from the mailbox are not automatically added
Only by manually pressing the receive button

OS Centos 6.8
crontab -e

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


what`s wrong?

P.S. - not work
*/1 * * * * apache /usr/bin/php /var/www/html/glpi/front/cron.php &>;/dev/null
or
*/5 * * * * /usr/bin/php /var/www/html/glpi/front/cron.php &>;/dev/null

/usr/bin/php - corect path
/var/www/html/glpi/front/cron.php - correct path
php-cli - installed. latest.

GUYS!..

i`am fix it!
F**King time

mail server time 12:20:05
glpi server time 12:24:11

synchronization time fix this problem

Last edited by nikit0ss (2017-03-16 11:30:33)

Offline

#2 2017-03-14 14:20:57

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

Re: New Version 9.1.2 and new Problem MAILGARE

This works for my system:

#GLPI Automatische Jobs mit CLI Mode starten
*/1 * * * * /usr/bin/php5 /var/www/glpi/front/cron.php > /dev/null 2>&1

If you type this on console / putty sesssion what did you get ?

/usr/bin/php /var/www/html/glpi/front/cron.php


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

#3 2017-03-14 15:54:46

nikit0ss
Member
Registered: 2016-08-31
Posts: 24

Re: New Version 9.1.2 and new Problem MAILGARE

yes
this work
/usr/bin/php /var/www/html/glpi/front/cron.php

this not work
*/1 * * * * /usr/bin/php /var/www/glpi/front/cron.php > /dev/null 2>&1

_______________
[root@CNFPDCIT01 ~]# /usr/bin/php /var/www/html/glpi/front/cron.php &>;/dev/null
-bash: syntax error near unexpected token `;'
/usr/bin/php /var/www/html/glpi/front/cron.php &>:/dev/null
-bash: :/dev/null: none file or folder

Last edited by nikit0ss (2017-03-14 16:01:44)

Offline

#4 2017-03-14 19:16:25

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

Re: New Version 9.1.2 and new Problem MAILGARE

Is this your error message ?

nikit0ss wrote:

_______________
[root@CNFPDCIT01 ~]# /usr/bin/php /var/www/html/glpi/front/cron.php &>;/dev/null
-bash: syntax error near unexpected token `;'
/usr/bin/php /var/www/html/glpi/front/cron.php &>:/dev/null
-bash: :/dev/null: none file or folder

1.) Please only edit crontab witch

crontab -e

nothing else
2.) If you have really semicolon in your crontab this is wrong.
3.) Please give us the output from

crontab -l


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

#5 2017-03-15 06:03:33

nikit0ss
Member
Registered: 2016-08-31
Posts: 24

Re: New Version 9.1.2 and new Problem MAILGARE

[root@CNFPDCIT01 ~]# crontab -l
*/1 * * * * /usr/bin/php /var/www/glpi/front/cron.php &>;/dev/null
[root@CNFPDCIT01 ~]#

Offline

#6 2017-03-15 06:08:20

nikit0ss
Member
Registered: 2016-08-31
Posts: 24

Re: New Version 9.1.2 and new Problem MAILGARE

Is this your error message ?
Yes, this is an error message, if I completely register the entire line in the shell
(
[root@CNFPDCIT01 ~]# /usr/bin/php /var/www/html/glpi/front/cron.php &>;/dev/null
-bash: syntax error near unexpected token `;'
)
or
(
[root@CNFPDCIT01 ~]# /usr/bin/php /var/www/html/glpi/front/cron.php &>:/dev/null
-bash: :/dev/null: none file or folder
)

If I write like this:

[root@CNFPDCIT01 ~]# /usr/bin/php /var/www/html/glpi/front/cron.php

All work - The ticket comes

CRON LOG:
Mar 15 07:16:01 CNFPDCIT01 CROND[32029]: (root) CMD (/usr/bin/php /var/www/glpi/front/cron.php &>;/dev/null)
Mar 15 07:17:01 CNFPDCIT01 CROND[32035]: (root) CMD (/usr/bin/php /var/www/glpi/front/cron.php &>;/dev/null)
Mar 15 07:18:01 CNFPDCIT01 CROND[32042]: (root) CMD (/usr/bin/php /var/www/glpi/front/cron.php &>;/dev/null)
Mar 15 07:19:01 CNFPDCIT01 CROND[32072]: (root) CMD (/usr/bin/php /var/www/glpi/front/cron.php &>;/dev/null)

Last edited by nikit0ss (2017-03-15 06:15:57)

Offline

#7 2017-03-16 09:07:10

nikit0ss
Member
Registered: 2016-08-31
Posts: 24

Re: New Version 9.1.2 and new Problem MAILGARE

Up UP UP!

Offline

#8 2017-03-16 11:30:24

nikit0ss
Member
Registered: 2016-08-31
Posts: 24

Re: New Version 9.1.2 and new Problem MAILGARE

GUYS!..

i`am fix it!
F**King time

mail server time 12:20:05
glpi server time 12:24:11

synchronization time fix this problem

Offline

#9 2017-03-16 19:58:04

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

Re: New Version 9.1.2 and new Problem MAILGARE

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.


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

Board footer

Powered by FluxBB