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 2015-12-03 15:59:40

Igor.Kuzmin
Member
Registered: 2015-12-03
Posts: 3

GLPI 0.90.1 mailgate and cron problem

Good afternoon, colleagues.
Please forgive my poor English.
GLPI do not automatically receive tickets from a mailbox in the job runs as a cron job
Manually via the button "Get email tikets now" from Receiver - works fine.
Topic known, but I tried all the recommendations that have found - is not working.
The people working - I do not.
I've tried GLPI version 0.90 and 0.90.1.

Operating system: Linux Dream 3.13.0-68-generic #111-Ubuntu SMP Fri Nov 6 18:17:06 UTC 2015 x86_64
PHP 5.5.9-1ubuntu4.14 fpm-fcgi (Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apc,
apcu, bcmath, bz2, calendar, cgi-fcgi, ctype, curl, date, dba, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, 
hash, iconv, imap, json, ldap, libxml, mbstring, mhash, mysql, mysqli, openssl, pcre, pdo_mysql, posix, readline, session, 
shmop, soap, sockets, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, zip, zlib)
Setup: max_execution_time="30" memory_limit="256M" post_max_size="40M" safe_mode="" 
session.save_handler="files"   upload_max_filesize="10M" 
Software: nginx/1.8.0
    Mozilla/5.0 (Windows NT 6.1; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0
Server Software: (Ubuntu)
    Server Version: 5.5.46-0ubuntu0.14.04.2
    Server SQL Mode: 
    Parameters: glpi@localhost/glpi
    Host info: Localhost via UNIX socket

Automatic action - mailgate

Run frequency 5-min.   
Status    Running
Run mode CLI   
Run period    0 -> 24
Number of days this action logs are stored    30
Number of emails to retrieve 10   
Last run    2015-12-03 03:00     
Next run    Running - it hangs constantly, but if interrupting the job and execute from a web interface manually, everything is going to work, and mail will go into the system.

cron

/etc/cron.d# cat glpi
PATH=/sbin:/usr/sbin:/bin:/usr/bin

# start glpi mailgate
*/5 * * * * www-data /usr/bin/php5 /usr/share/nginx/glpi/front/cron.php &>/dev/null

I tried to get mail by POP and IMAP - no difference.

Syslog fragment:

Dec  3 13:45:01 Dream CRON[32506]: (www-data) CMD (/usr/bin/php5 /usr/share/nginx/glpi/front/cron.php &>/dev/null)

What am I doing wrong?

Thanks in advance.

Last edited by Igor.Kuzmin (2015-12-03 16:10:03)

Offline

#2 2015-12-04 10:21:51

orthagh
Administrator
From: TECLIB - CAEN
Registered: 2010-11-30
Posts: 662
Website

Re: GLPI 0.90.1 mailgate and cron problem

Status : Running

Your action is surely crashed.
You should reset it with the dedicated button (X)

A started action can't be started again

Offline

#3 2015-12-04 13:46:47

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

Re: GLPI 0.90.1 mailgate and cron problem

in your cron, delete  &>/dev/null to see error until it works fine.


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

#4 2015-12-05 12:34:24

Igor.Kuzmin
Member
Registered: 2015-12-03
Posts: 3

Re: GLPI 0.90.1 mailgate and cron problem

orthagh wrote:

Status : Running

Your action is surely crashed.
You should reset it with the dedicated button (X)

A started action can't be started again


I did it. All repeated.

Offline

#5 2015-12-05 12:47:34

Igor.Kuzmin
Member
Registered: 2015-12-03
Posts: 3

Re: GLPI 0.90.1 mailgate and cron problem

yllen wrote:

in your cron, delete  &>/dev/null to see error until it works fine.

No mistakes. In syslog record that the job was started. Status of the mailgate is running.

Offline

#6 2015-12-08 18:28:02

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

Re: GLPI 0.90.1 mailgate and cron problem

Yes but in cron.log you will see which action in launched


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

Board footer

Powered by FluxBB