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 2009-04-16 13:18:34

sangram.gohil
Member
Registered: 2009-04-09
Posts: 12

Automatic ticket creation not working

Hi,

GLPI Version - 0.71.5
mysql Version :5.0.77-1.fc10
OS: Fedora 10
Apache : 2.2.10-2

I am new user for linux and GLPI both.

now i have got everything setup with glpi. all seems working absolutely fine except this auto pull using cron

Few detail are here:

GLPI Directory : /usr/share/glpi
Apache install  with user root

When i manually click on get emails now. It works perfect.

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

it still did not work for me.

i tried restoring cron.php, cron.class.php from original source.

i have added in root`s cron this lines

*/1 * * * * /usr/bin/php /usr/share/glpi/front/cron.php &>/dev/null

also in cron.d folder

i found glpi file where it is something like
*/4 * * * * apache /usr/bin/php /usr/share/glpi/front/cron.php

i am getting mail in root account like this

From root@localhost.localdomain  Thu Apr 16 12:16:01 2009
Return-Path: <root@localhost.localdomain>
Date: Thu, 16 Apr 2009 12:16:01 +0100
From: root@localhost.localdomain (Cron Daemon)
To: root@localhost.localdomain
Subject: Cron <root@InternalSupport> /usr/bin/php /usr/share/glpi/front/cron.php
Content-Type: text/plain; charset=UTF-8
Auto-Submitted: auto-generated
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
Status: R



can any one guide where i am wronge?

Thanks,

Sam

Offline

#2 2009-04-16 13:43:16

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Automatic ticket creation not working

Have you install  php5-cli ?

And change your cron (php5)
*/4 * * * * apache /usr/bin/php5  /usr/share/glpi/front/cron.php

Last edited by yllen (2009-04-16 13:48:08)


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#3 2009-04-16 14:45:27

sangram.gohil
Member
Registered: 2009-04-09
Posts: 12

Re: Automatic ticket creation not working

Hi have installed it already

php-cli-5.2.6-5.i386

more detail guide needed.

i dont have /usr/bin/php5 folder instead i have /usr/bin/php folder

to be more accurate can u guide me where this entry actully need

*/4 * * * * apache /usr/bin/php5  /usr/share/glpi/front/cron.php

i have this entry in my /etc/cron.d/ glpi


i have also add following line by crontab -e from root
*/1 * * * * /usr/bin/php /usr/share/glpi/front/cron.php &>/dev/null


error in log:

Following is the info i found from cron log

(apache) INFO (Job execution of per-minute job scheduled for 14:20 delayed into subsequent minute 14:22. Skipping job run.)

thanks,

sam

Last edited by sangram.gohil (2009-04-16 15:26:27)

Offline

#4 2009-04-16 16:25:01

JMD
GLPI - Lead
Registered: 2004-09-13
Posts: 9,180
Website

Re: Automatic ticket creation not working

what did you see when you try  on command line :

#/usr/bin/php5 -a /usr/share/glpi/front/cron.php

Be sure that in  /etc/php5/cli/php.ini  you set memory limit to  128M


JMD / Jean-Mathieu Doléans - Glpi-project.org - Association Indepnet
Apportez votre pierre au  projet GLPI   : Soutenir

Offline

#5 2009-04-16 16:37:42

sangram.gohil
Member
Registered: 2009-04-09
Posts: 12

Re: Automatic ticket creation not working

the command
#/usr/bin/php5 -a /usr/share/glpi/front/cron.php

result : bash: /usr/bin/php5: No such file or directory


usr/bin/php -a /usr/share/glpi/front/cron.php

result : takes me in php console like this

php>


my php.ini resides in /etc/

i chnages value of memory from 32 MB to 128 MB.

any thing else you suggest?

like .lock files to removed?

Thanks

sam

Offline

#6 2009-04-21 17:21:20

sangram.gohil
Member
Registered: 2009-04-09
Posts: 12

Re: Automatic ticket creation not working

i am being late but

I have done following & it started working.

removed old >lock files from _cron folder

Thanks,

sam

Offline

#7 2009-04-21 17:27:02

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: Automatic ticket creation not working

> it started working.

Perfect, I close


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

Board footer

Powered by FluxBB