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-07-27 17:46:54

and78
Member
Registered: 2017-07-27
Posts: 3

PHP-error log - R9.1.6 fresh install

Hi all!

I just made a fresh install R 9.1.6 in Centos as VM (proxmox)

I want to auto create tickets from emails:


1. In Mail server - Auto create tickets - I created the mail server and test is ok

2. I have created the email account and I send a test email (in the email inbox I receive the sended email error report).

3. I configured the receiver, when I test I got

Number of messages: available=1, retrieved=1, refused=1, errors=0, blacklisted=0

In the email inbox, the sended message (test email error report) disappear.

4. In Automatic action - mailgate - I have configured the options (5 min, scheduled, CLI)

Logs:

2017-07-27 14:55    Start    0.000 seconds      0    Run mode: GLPI
    Running    0.002 seconds      0    Collect mails from account@domain.com ({hosting.domain.com:143/imap/tls}INBOX)
    Running    4.131 seconds      1    Number of messages: available=1, retrieved=1, refused=1, errors=0, blacklisted=0
    End    4.131 seconds      1    Action completed, fully processed



but no ticket was ceated!

PHP-ERROR.LOG

2017-07-27 14:55:12 [2@vm002]
  *** PHP Notice(8): Undefined index: image002.png
  Backtrace :
  inc/ticket.class.php:6099                         
  inc/mailcollector.class.php:771                    Ticket::convertContentForTicket()
  inc/mailcollector.class.php:508                    MailCollector->buildTicket()
  inc/mailcollector.class.php:1618                   MailCollector->collect()
  :                                                  MailCollector::cronMailgate()
  inc/crontask.class.php:832                         call_user_func()
  front/crontask.form.php:50                         CronTask::launch()


I would appreciate any ideas

Offline

#2 2017-07-28 07:42:47

freewood
Member
From: Moscow
Registered: 2016-01-30
Posts: 116

Re: PHP-error log - R9.1.6 fresh install

>>Number of messages: available=1, retrieved=1, refused=1, errors=0, blacklisted=0
It's means GLPI recieved the mail, but can't create a ticket. Try to check rules for mail recievers and be sure that you have user with this email (from which you send). In other case, you can enable anonymous ticket creation, then you don't need a users in GLPI.

>>(5 min, scheduled, CLI)
Did you edit crontab file to automatically run this job?


Debian Stretch + nginx 1.10.3 + php7.0-fpm
GLPI v9.3.1 + Reports, Behaviors, Forms

Offline

#3 2017-07-28 20:02:37

and78
Member
Registered: 2017-07-27
Posts: 3

Re: PHP-error log - R9.1.6 fresh install

Freewood, thanks for your response; I modify  -enable anonymous ticket creation- and now the ticket is created correctly.

I also add in crontab,

*/5 * * * * root /usr/bin/php /var/www/html/glpi/front/cron.php

Its working fine now!

THANK YOU!!

Offline

Board footer

Powered by FluxBB