Closed mat44444 closed 1 year ago
hi, there no files being deleted. That was a syns issue between two GLPI node. To keep web acces fast to enduser, we made a load balance over NGINX that route user to one node and other task to the second node(Fusion inventory import/cron/mail collector/AD import/send notification). We have a RSYNC process to merge file différencial every 2 minute. For some reaseon the RSYNC cron was stuck.
Thank for the fix
De : Curtis Conard @.> Envoyé : 3 décembre 2022 04:42 À : glpi-project/glpi @.> Cc : mat44444 @.>; Author @.> Objet : Re: [glpi-project/glpi] Missing image in notification stop all notification to be send. (Issue #13516)
Hello,
Do you know how/why the files are being deleted from the file system rather than deleting the document in GLPI?
— Reply to this email directly, view it on GitHubhttps://github.com/glpi-project/glpi/issues/13516#issuecomment-1336123963, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AB7H7K2ETICLP5SN6TMAMPLWLMIXLANCNFSM6AAAAAASSGR7Q4. You are receiving this because you authored the thread.Message ID: @.***>
I have this same problem, but I don´t have balancing or anything like that, just the default GLPI only on one server.
`[2022-12-13 15:25:03] glpiphplog.WARNING: *** PHP Warning (2): getimagesize(/var/www/html/glpi/files/PNG/76/2afb157f1dd772b46a807551748268bb8c03f3.PNG): Failed to open stream: No such file or directory in /var/www/html/glpi/src/NotificationEventMailing.php at line 283 Backtrace : src/NotificationEventMailing.php:283 getimagesize() src/QueuedNotification.php:602 NotificationEventMailing::send() src/CronTask.php:1018 QueuedNotification::cronQueuedNotification() front/cron.php:84 CronTask::launch()
[2022-12-13 15:25:03] glpiphplog.WARNING: *** PHP Warning (2): Trying to access array offset on value of type bool in /var/www/html/glpi/src/NotificationEventMailing.php at line 284 Backtrace : src/QueuedNotification.php:602 NotificationEventMailing::send() src/CronTask.php:1018 QueuedNotification::cronQueuedNotification() front/cron.php:84 CronTask::launch()
[2022-12-13 15:25:03] glpiphplog.WARNING: *** PHP Warning (2): Trying to access array offset on value of type bool in /var/www/html/glpi/src/NotificationEventMailing.php at line 285 Backtrace : src/QueuedNotification.php:602 NotificationEventMailing::send() src/CronTask.php:1018 QueuedNotification::cronQueuedNotification() front/cron.php:84 CronTask::launch()
[2022-12-13 15:25:03] glpiphplog.CRITICAL: *** Uncaught Exception DivisionByZeroError: Division by zero in /var/www/html/glpi/src/NotificationEventMailing.php at line 289 Backtrace : src/QueuedNotification.php:602 NotificationEventMailing::send() src/CronTask.php:1018 QueuedNotification::cronQueuedNotification() front/cron.php:84 CronTask::launch() ` some guidance?
I solved the problem by creating the PNG file in place and set the same permission as the other files inside the folder.
Fixed by #13517.
Code of Conduct
Is there an existing issue for this?
Version
10.0.5
Bug description
Notification stop beeing sent by mail. looking a the log, a missing file appear. making a false file of the same name, let's the process continue and solve the issue.
Maybe a good idea to handle the kind of exception
Relevant log output
Page URL
No response
Steps To reproduce
1) Stop the notification processe 2) Generate a ntoficiation that contain an image, like a new ticket with image 3) Delete from file directory the specify image 4) restart notification process.
After that all other notification arent handle and are stuck in the process
Your GLPI setup information
Informations sur le système, l'installation et la configuration
Server
GLPI constants
Libraries
LDAP directories
SQL replicas
Notifications
Plugins list
Anything else?
No response