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 2020-08-24 22:11:37

Nikolai
Member
Registered: 2018-07-12
Posts: 13

[9.5.1] mailgate and queuednotification tasks remain running

After updating to 9.5.1, when a mail with an image embedded in the body, the mailgate and queuednotification tasks remain running till I abort the tasks.

Usually the error occurs when the email is sent from a smartphone. The structure of the email seems to be different than with a mail program like Outlook.

Nothing happens. Emails are not imported.

If I delete all emails with an image attached from the mailbox, the import works again without errors.

It seems to be a similar problem as in 9.2.1: https://github.com/glpi-project/glpi/issues/3494

Unfortunately I access the emails via POP3 and therefore can't provide detailed logs.

I have the hope that the error is reproducible and a solution can be found quickly.

Thanks and best regards

Offline

#2 2020-08-24 22:49:28

Nikolai
Member
Registered: 2018-07-12
Posts: 13

Re: [9.5.1] mailgate and queuednotification tasks remain running

I’ve got the following mail from cron deamon:

Cron <x@x> /usr/bin/php -f 'httpdocs/x/front/cron.php' > /dev/null

PHP Notice:  Undefined index: users_id in /var/www/vhosts/x/httpdocs/x/inc/mailcollector.class.php on line 762
PHP Notice:  Undefined index: _users_id_requester_notif in /var/www/vhosts/x/httpdocs/x/inc/mailcollector.class.php on line 767
PHP Notice:  Undefined index: users_id in /var/www/vhosts/x/httpdocs/x/inc/mailcollector.class.php on line 762
PHP Notice:  Undefined index: _users_id_requester_notif in /var/www/vhosts/x/httpdocs/x/inc/mailcollector.class.php on line 767
PHP Notice:  Undefined index: users_id in /var/www/vhosts/x/httpdocs/x/inc/mailcollector.class.php on line 762
PHP Notice:  Undefined index: _users_id_requester_notif in /var/www/vhosts/x/httpdocs/x/inc/mailcollector.class.php on line 767
PHP Notice:  Undefined index: users_id in /var/www/vhosts/x/httpdocs/x/inc/mailcollector.class.php on line 762
PHP Notice:  Undefined index: _users_id_requester_notif in /var/www/vhosts/x/httpdocs/x/inc/mailcollector.class.php on line 767
PHP Notice:  Undefined index: users_id in /var/www/vhosts/x/httpdocs/x/inc/mailcollector.class.php on line 762
PHP Notice:  Undefined index: _users_id_requester_notif in /var/www/vhosts/x/httpdocs/x/inc/mailcollector.class.php on line 767
PHP Notice:  Undefined index: users_id in /var/www/vhosts/x/httpdocs/x/inc/mailcollector.class.php on line 762
PHP Notice:  Undefined index: _users_id_requester_notif in /var/www/vhosts/x/httpdocs/x/inc/mailcollector.class.php on line 767
PHP Notice:  Undefined index: users_id in /var/www/vhosts/x/httpdocs/x/inc/mailcollector.class.php on line 762
PHP Notice:  Undefined index: _users_id_requester_notif in /var/www/vhosts/x/httpdocs/x/inc/mailcollector.class.php on line 767
PHP Notice:  Undefined index: users_id in /var/www/vhosts/x/httpdocs/x/inc/mailcollector.class.php on line 762
PHP Notice:  Undefined index: _users_id_requester_notif in /var/www/vhosts/x/httpdocs/x/inc/mailcollector.class.php on line 767
PHP Notice:  Undefined index: users_id in /var/www/vhosts/x/httpdocs/x/inc/mailcollector.class.php on line 762
PHP Notice:  Undefined index: _users_id_requester_notif in /var/www/vhosts/x/httpdocs/x/inc/mailcollector.class.php on line 767
PHP Notice:  Undefined index: users_id in /var/www/vhosts/x/httpdocs/x/inc/mailcollector.class.php on line 762
PHP Notice:  Undefined index: _users_id_requester_notif in /var/www/vhosts/x/httpdocs/x/inc/mailcollector.class.php on line 767
PHP Notice:  Undefined index: users_id in /var/www/vhosts/x/httpdocs/x/inc/mailcollector.class.php on line 762
PHP Notice:  Undefined index: _users_id_requester_notif in /var/www/vhosts/x/httpdocs/x/inc/mailcollector.class.php on line 767
PHP Notice:  Undefined index: users_id in /var/www/vhosts/x/httpdocs/x/inc/mailcollector.class.php on line 762
PHP Notice:  Undefined index: _users_id_requester_notif in /var/www/vhosts/x/httpdocs/x/inc/mailcollector.class.php on line 767
PHP Notice:  Undefined index: users_id in /var/www/vhosts/x/httpdocs/x/inc/mailcollector.class.php on line 762
PHP Notice:  Undefined index: _users_id_requester_notif in /var/www/vhosts/x/httpdocs/x/inc/mailcollector.class.php on line 767
PHP Notice:  Undefined index: users_id in /var/www/vhosts/x/httpdocs/x/inc/mailcollector.class.php on line 762
PHP Notice:  Undefined index: _users_id_requester_notif in /var/www/vhosts/x/httpdocs/x/inc/mailcollector.class.php on line 767
PHP Notice:  Undefined index: users_id in /var/www/vhosts/x/httpdocs/x/inc/mailcollector.class.php on line 762
PHP Notice:  Undefined index: _users_id_requester_notif in /var/www/vhosts/x/httpdocs/x/inc/mailcollector.class.php on line 767
PHP Notice:  Undefined index: from in /var/www/vhosts/x/httpdocs/x/inc/rulemailcollectorcollection.class.php on line 116
PHP Notice:  Undefined index: from in /var/www/vhosts/x/httpdocs/x/inc/rulemailcollectorcollection.class.php on line 116
PHP Notice:  Undefined index: from in /var/www/vhosts/x/httpdocs/x/inc/rulemailcollectorcollection.class.php on line 116
PHP Notice:  Undefined index: from in /var/www/vhosts/x/httpdocs/x/inc/rulemailcollectorcollection.class.php on line 116

Offline

#3 2020-08-25 20:09:33

Nikolai
Member
Registered: 2018-07-12
Posts: 13

Re: [9.5.1] mailgate and queuednotification tasks remain running

Does anyone else have the same problem or at least a tip how I can temporarily solve this problem?

Offline

#4 2020-08-26 10:04:46

xismailaydin
Member
Registered: 2020-08-11
Posts: 7

Re: [9.5.1] mailgate and queuednotification tasks remain running

Hi Nikolai, after 9.5.1 update, my GLPI installation started mailgate proccess hanging "running".

For troubleshooting;
First go to Setup>Receivers and click list your receiver address. In receiver settings, go to "Actions" tab and click "Get email tickets now".

If GLPI goes to white empty page, your mail receiver don't work correctly. I changed mail receiver addresses for temporary solution.

I have 5 mail receivers and after first update, I have to change mailbox adresses 2 of 5.

After all, one of mail receiver having same issue time to time. I changed mail address 3 times but problem is repeating every morning.

I'm using Gsuite mail addresses and connecting imap. You may try to pop but you should empty your mailbox before pass to imap to pop.

Offline

#5 2020-08-29 10:28:42

Nikolai
Member
Registered: 2018-07-12
Posts: 13

Re: [9.5.1] mailgate and queuednotification tasks remain running

Hi xismailaydin,

I have changed the addresses as a test. Also changed IMAP to POP. But I do not see any improvement. The Mailgate still hangs at mails with certain contents. I get a white page when retrieved manually. The retrieval only works if I delete the corresponding mails.

Offline

#6 2020-08-29 10:39:36

Nikolai
Member
Registered: 2018-07-12
Posts: 13

Re: [9.5.1] mailgate and queuednotification tasks remain running

Today I noticed that the daily firewall report at 07:00 am always triggers the mailgate problem. Before the update to 9.5.1 this was never a problem.

Offline

#7 2020-08-31 10:02:40

povilas
Member
Registered: 2013-08-01
Posts: 10

Re: [9.5.1] mailgate and queuednotification tasks remain running

The problem repeating at mailgate. The problem exist on emails sent from samsung android phone via samsung.android.email software.
Message is formated via:

Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: base64

The message header:

Return-Path: <EMAILFROM>
Received: from SERVER
    by SERVER with LMTP
    id CM2lKqKKTF9dOwAAEuj9nw
    (envelope-from <EMAILFROM); Mon, 31 Aug 2020 08:29:06 +0300
Return-path: <EMAILFROM
Envelope-to: EMAILTO
Delivery-date: Mon, 31 Aug 2020 08:29:06 +0300
Received: from IP ([IP]:58914 helo=[192.168.0.144])
    by SERVER with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
    (Exim 4.93)
    (envelope-from <EMAILFROM)
    id 1kCcNO-0005H3-Jq; Mon, 31 Aug 2020 08:29:06 +0300
SavedFromEmail: EMAILFROM
Date: Mon, 31 Aug 2020 08:29:05 +0300
Subject: SUBJECT
In-Reply-To: <AM0PR08MB3907CDB37693EA4154778F9B8F520@AM0PR08MB3907.eurprd08.prod.outlook.com>
Importance: normal
From:  <EMAILFROM
To: "Tech" <EMAILTO>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="--_com.samsung.android.email_456710448707940"

Offline

#8 2020-09-20 22:35:29

pepeimpulso
Member
From: Spain
Registered: 2019-04-08
Posts: 14

Re: [9.5.1] mailgate and queuednotification tasks remain running

Nikolai wrote:

Does anyone else have the same problem or at least a tip how I can temporarily solve this problem?

Yes, I'm having the same issue after upgrading to version 9.5.1 from 9.4.6, which was working fine.

If I go to to Receivers and click list your receiver address. In receiver settings, go to "Actions" tab and click "Get email tickets now"... having enabled Debug mode, I get the white screen with this error message:


Uncaught Exception Laminas\Mail\Storage\Exception\InvalidArgumentException: Header with Name message_id or message_id not found in /vendor/laminas/laminas-mail/src/Storage/Part.php at line 307

As of now, I'm going to rollback to 9.4.6, otherwise I can't work with GLPI

Offline

#9 2020-09-21 08:17:24

Nikolai
Member
Registered: 2018-07-12
Posts: 13

Re: [9.5.1] mailgate and queuednotification tasks remain running

Recently I have also been receiving other messages. For example this one:

PHP Notice:  Undefined index: users_id in /var/www/vhosts/glpi/httpdocs/glpi/inc/mailcollector.class.php on line 762
PHP Notice:  Undefined index: _users_id_requester_notif in /var/www/vhosts/glpi/httpdocs/glpi/inc/mailcollector.class.php on line 767

Offline

#10 2020-09-21 08:21:16

Nikolai
Member
Registered: 2018-07-12
Posts: 13

Re: [9.5.1] mailgate and queuednotification tasks remain running

And this one:

PHP Notice:  Undefined index: glpiactiveentities in /var/www/vhosts/glpi/httpdocs/glpi/plugins/mreporting/inc/common.class.php on line 1584
PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/glpi/httpdocs/glpi/plugins/mreporting/inc/common.class.php on line 1584
PHP Notice:  Undefined index: glpiactiveentities_string in /var/www/vhosts/glpi/httpdocs/glpi/plugins/mreporting/inc/common.class.php on line 1587
PHP Notice:  Trying to get property 'num_rows' of non-object in /var/www/vhosts/glpi/httpdocs/glpi/inc/dbmysql.class.php on line 419
PHP Notice:  Undefined index: glpiactive_entity in /var/www/vhosts/glpi/httpdocs/glpi/plugins/mreporting/inc/inventory.class.php on line 810
PHP Notice:  Undefined index: glpiactive_entity in /var/www/vhosts/glpi/httpdocs/glpi/plugins/mreporting/inc/inventory.class.php on line 811
PHP Notice:  Undefined index: glpiactive_entity in /var/www/vhosts/glpi/httpdocs/glpi/plugins/mreporting/inc/inventory.class.php on line 815
PHP Notice:  Undefined index: glpiactive_entity in /var/www/vhosts/glpi/httpdocs/glpi/plugins/mreporting/inc/inventory.class.php on line 825
PHP Notice:  Undefined index: glpiactive_entity in /var/www/vhosts/glpi/httpdocs/glpi/plugins/mreporting/inc/inventory.class.php on line 853
PHP Notice:  Undefined index: glpiactiveentities in /var/www/vhosts/glpi/httpdocs/glpi/plugins/mreporting/inc/common.class.php on line 1584
PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/glpi/httpdocs/glpi/plugins/mreporting/inc/common.class.php on line 1584
PHP Notice:  Undefined index: glpiactiveentities_string in /var/www/vhosts/glpi/httpdocs/glpi/plugins/mreporting/inc/common.class.php on line 1587
PHP Notice:  Trying to get property 'num_rows' of non-object in /var/www/vhosts/glpi/httpdocs/glpi/inc/dbmysql.class.php on line 419

Offline

#11 2020-09-21 08:22:42

Nikolai
Member
Registered: 2018-07-12
Posts: 13

Re: [9.5.1] mailgate and queuednotification tasks remain running

Until the update to the current version of GLPI I had no problems. Unfortunately I do not understand the error or the behaviour at all. Apart from the update nothing has changed.

Offline

#12 2020-09-21 09:19:23

pepeimpulso
Member
From: Spain
Registered: 2019-04-08
Posts: 14

Re: [9.5.1] mailgate and queuednotification tasks remain running

I rolled back to 9.4.6 and it works fine. My intention was to upgrade to the latest version, but have no idea why it freezes the mailgate process.

Offline

#13 2020-09-22 17:40:48

pepeimpulso
Member
From: Spain
Registered: 2019-04-08
Posts: 14

Re: [9.5.1] mailgate and queuednotification tasks remain running

No news about this problem? Does anyone else experienced the problem?

I get the impression that this forum is a place to come and cry a bit, like when you are in an empty room with no one to give you a hand. Many tickets that I've looked into don't have a solution to it. Is there anywhere to get proper support, paid or free?

Offline

#14 2020-10-11 21:39:16

pepeimpulso
Member
From: Spain
Registered: 2019-04-08
Posts: 14

Re: [9.5.1] mailgate and queuednotification tasks remain running

As an update, this issue seems to be working fine in 9.5.2. But I'm having some other issues with this new version not related to mailgate freezing.

Offline

#15 2020-10-17 16:45:13

Nikolai
Member
Registered: 2018-07-12
Posts: 13

Re: [9.5.1] mailgate and queuednotification tasks remain running

GLPI 9.5.2:

PHP Notice:  Undefined index: users_id in /var/www/vhosts/httpdocs/glpi/inc/mailcollector.class.php on line 783 PHP Notice:  Undefined index: _users_id_requester_notif in /var/www/vhosts/httpdocs/glpi/inc/mailcollector.class.php on line 788 PHP Notice:  Trying to access array offset on value of type null in /var/www/vhosts/httpdocs/glpi/inc/mailcollector.class.php on line 788 PHP Notice:  Trying to access array offset on value of type null in /var/www/vhosts/httpdocs/glpi/inc/mailcollector.class.php on line 788

Offline

#16 2020-10-23 20:11:45

coolcrash
Member
Registered: 2020-10-23
Posts: 3

Re: [9.5.1] mailgate and queuednotification tasks remain running

Ok, I just registered this account so I can answer some poor unlucky guys in here,..
I understand the feeling of no1 here to help so it goes:
I don't " trust " GLPI automation engine, so in case you are using linux machine  as me,
I recomend you to place on the crontab the following:

in case of ubuntu for example on terminal:

crontab -e

add this lines:

*/2 * * * * /usr/bin/php7.3 /var/www/html/glpi/front/cron.php --debug --force queuednotification > /dev/null 2>&1
*/2 * * * * /usr/bin/php7.3 /var/www/html/glpi/front/cron.php --debug --force mailgate > /dev/null 2>&1

in case you are running php7.3 and in case you have installed on this directory ofc.

before you enter this on crontab, make sure on GLPI you disable the automatic actions because its useless if it's not working properly for you.

on the terminal test if the command /usr/bin/php7.3 /var/www/html/glpi/front/cron.php --debug --force mailgate is ok
if not, try to test with different PHP versions installed on ur machine (check /usr/bin/ directory for the PHP versions that u have)
in my case I have this:

root@GLPI:/var/www/html/glpi# /usr/bin/php
php     php5.6  php7.0  php7.2  php7.3

so I tested with all php versions, the only one working is the php7.3

Offline

#17 2020-10-28 10:56:53

Bron
Member
Registered: 2009-06-03
Posts: 19

Re: [9.5.1] mailgate and queuednotification tasks remain running

I'm having the same issue. My setup is Ubuntu 20.04, php 7.4 and glip 9.5.2.
Before the upgrade to 9.5.2, I had no issues with it.

      /usr/bin/php /var/www/html/front/cron.php --debug --force mailgate
      Extern #1: Starten mailgate
      Message is invalid: Invalid header value detected<br/>


When I delete the 'blocking email', it works fine?

I can't trace back the issue to a mail from smartphone.
Just did a test with a standard thunderbird pc mail >>> no problem
Test with bluemail on android phone >>> no problem


GLPI 9.5.1 on Ubuntu 20.04

Offline

#18 2020-11-03 14:48:25

blank
Member
Registered: 2008-02-21
Posts: 20

Re: [9.5.1] mailgate and queuednotification tasks remain running

Any news of this, got the same problem with just some few mail on only one collector:

/var/www/front# php cron.php --debug --force mailgate
Externe #1 : Démarrage mailgate
Erreur lors de l'analyse du message : Invalid header value detected<br/>Erreur lors de l'analyse du message : Invalid header value detected<br/>Erreur lors de l'analyse du message : Invalid header value detected<br/>Erreur lors de l'analyse du message : Invalid header value detected<br/>Erreur lors de l'analyse du message : Invalid header value detected<br/>Erreur lors de l'analyse du message : Invalid header value detected<br/>Erreur lors de l'analyse du message : Invalid header value detected<br/>Erreur lors de l'analyse du message : Invalid header value detected<br/>Erreur lors de l'analyse du message : Invalid header value detected<br/>Erreur lors de l'analyse du message : Invalid header value detected<br/>Erreur lors de l'analyse du message : Invalid header value detected<br/>Erreur lors de l'analyse du message : Invalid header value detected<br/>0

and in mail not collected

ss


glpi 9.5.2 with php7.3

Last edited by blank (2020-11-03 14:53:11)

Offline

#19 2021-08-05 18:28:38

xtekrepair
Member
Registered: 2021-08-05
Posts: 2

Re: [9.5.1] mailgate and queuednotification tasks remain running

Message is invalid: Invalid header value detected<br/>

Keep getting this, I suspected that SpamAssassin is modifying the eMail headers causing issues.  So I have now turned that off to troubleshoot.
I will report back but looks like the receiver is really picky, wondering if there is a code modification or something to just grab messages no matter what.

I would be happy to allow all messages to go through and use my filtering tools outside of GLPI to keep eMail free of Spam.
Need to get all replies and not miss any.

FYI Using 9.5.5

Last edited by xtekrepair (2021-08-05 18:29:03)

Offline

Board footer

Powered by FluxBB