Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

service mailgate blocked #8796

Closed
Riesuu opened this issue Mar 9, 2021 · 18 comments
Closed

service mailgate blocked #8796

Riesuu opened this issue Mar 9, 2021 · 18 comments

Comments

@Riesuu
Copy link

Riesuu commented Mar 9, 2021

Hi
We have a problem with the mailgate service that remains "running". I have to force it and restart for the collector to work.
We have set up a cron with a boot every 1min. The problem is the same on GLPI 9.5.4

Bests regards.
cron.log
php-errors.log

@cedric-anne
Copy link
Member

Hi,

I am pretty sure that it is related to #8795. Try to apply proposed fix and close this issue if problem disapear.

Regards

@cedric-anne cedric-anne added bug and removed bug labels Mar 9, 2021
@Riesuu
Copy link
Author

Riesuu commented Mar 9, 2021

Actually it work!
many thanks!!

@Riesuu
Copy link
Author

Riesuu commented Mar 10, 2021

Hi, probleme is the same with the fix.

@cedric-anne cedric-anne reopened this Mar 10, 2021
@cedric-anne
Copy link
Member

Hi,

Please provide logs from the exact moment problem occurs (if any).

Regards

@Riesuu
Copy link
Author

Riesuu commented Mar 10, 2021

php-errors.log

The problem appeared around 11:15, but the logs are truncated...

@cedric-anne
Copy link
Member

Can you temporarly disable this automatic action, remove its running state, and then execute php front/cron.php --debug --force mailgate && echo $? from CLI (using the webserver user) ?

@Riesuu
Copy link
Author

Riesuu commented Mar 10, 2021

Done. But i have just the user root.
image

@cedric-anne
Copy link
Member

  1. You should not run GLPI CLI commands using the roor user, it may creates files that you webserver user may not read/write, and so cause caching/logging issues.

  2. You should at least have a External #1: Nothing to launch or a External #1: Launch mailgate in command result (see below image).
    image

Did you tried with all plugins deactivated ?

@Riesuu
Copy link
Author

Riesuu commented Mar 10, 2021

image

Not yet, i will test tommorow or tonight.

image

@Riesuu
Copy link
Author

Riesuu commented Mar 11, 2021

HI,
the problem came back around 9am
i've just disable theses plugins:

  • Alertes 1.8.2
  • FormCreator 2.11.2
  • Cycle de vie des materiels: 2.7.0
  • -Data injection 2.9

@cedric-anne
Copy link
Member

Hi,

Without any error trace, we cannot do anything more. Sorry.

Regards

@Riesuu
Copy link
Author

Riesuu commented Mar 11, 2021

Sorry !
php-errors.log

@Riesuu
Copy link
Author

Riesuu commented Mar 11, 2021

Problem is back:

image

php-errors.log

@cedric-anne
Copy link
Member

[2021-03-11 14:30:02] glpiphplog.CRITICAL:   *** Uncaught Exception TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /var/www/html/glpi/inc/commonitilobject.class.php at line 2708
  Backtrace :
  inc/itilfollowup.class.php:266                     CommonITILObject::isAllowedStatus()
  inc/commondbtm.class.php:1151                      ITILFollowup->post_addItem()
  inc/mailcollector.class.php:877                    CommonDBTM->add()
  inc/mailcollector.class.php:1746                   MailCollector->collect()
  inc/crontask.class.php:845                         MailCollector::cronMailgate()
  front/cron.php:83                                  CronTask::launch()

This problem has been fixed, see #8768

@Riesuu
Copy link
Author

Riesuu commented Mar 11, 2021

Thanks, i have apply fix #8768

@cedric-anne
Copy link
Member

@Riesuu , does it fixes your issue ?

@Riesuu
Copy link
Author

Riesuu commented Mar 15, 2021

For the moment no problem for me

@cedric-anne
Copy link
Member

I close the issue. Feel free to reopen if problem comes back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants