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 2022-10-14 16:03:31

employer
Member
Registered: 2017-09-26
Posts: 11

HTTP ERROR 500 in Mailgate

Good Morning.
Some emails are not being downloaded to ticket generating error 500 when running mailgate.

The following message appears in the GLPI logs.

Can anyone help?


   Document_Item->prepareInputForAdd()\n  src/CommonDBTM.php:5519                  in /var/www/glpi/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php on line 146, referer: https://helpdesk.mydomain.com.br/glpi/f … m.php?id=9
[Fri Oct 14 10:57:25.430894 2022] [php7:error] [pid 1848] [client 187.59.150.42:57586] PHP Fatal error:  Uncaught UnexpectedValueException: The stream or file "/var/www/glpi/files/_log/php-errors.log" could not be opened in append mode: failed to open stream: Permission denied\nThe exception occurred while attempting to log:   *** PHP Error (1): Uncaught UnexpectedValueException: The stream or file "/var/www/glpi/files/_log/php-errors.log" could not be opened in append mode: failed to open stream: Permission denied\nThe exception occurred while attempting to log:   *** Uncaught Exception UnexpectedValueException: The stream or file "/var/www/glpi/files/_log/php-errors.log" could not be opened in append mode: failed to open stream: Permission denied\nThe exception occurred while attempting to log:   *** Uncaught Exception UnexpectedValueException: The stream or file "/var/www/glpi/files/_log/php-errors.log" could not be opened in append mode: failed to open stream: Permission denied\nThe exception occurred while attempting to log:   *** PHP User Warning (512): Duplicated document item relation in /var/www/glpi/src/Do in /var/www/glpi/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php on line 146, referer: https://helpdesk.mydomain.com.br/glpi/f … m.php?id=9

Offline

#2 2022-10-16 02:57:17

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,813
Website

Re: HTTP ERROR 500 in Mailgate

Check file permissions on "files/_log" folder and the log files inside it.
You probably have a cron task running as root instead of the web server user (www-data or another) which caused the files to be owned by the wrong user.


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

Board footer

Powered by FluxBB