Page 1 of 1

Alarm notification with corrupted image file

Posted: Fri May 24, 2024 3:35 pm
by Rajstopy
Dear ZM users,

I've just managed to install Zoneminder 1.36.33 on TrueNAS in a jail. I spent hours not to say days but everything is working pretty good except when I try to send an email following an alarm, where I pass the %EIM% variable. In that case I get the attached grayed picture... I've just no idea how I could investigate about this issue. Any idea from where I could start from?

Cheers,
R.
00005-capture.jpg
00005-capture.jpg (15.52 KiB) Viewed 1694 times

Re: Alarm notification with corrupted image file

Posted: Fri May 24, 2024 6:25 pm
by iconnor
This is fixed in 1.37. In short it is sending the email and attaching the image before zmc is finished writing the file.

We added file locking so that this wouldn't happen.

Re: Alarm notification with corrupted image file

Posted: Fri May 24, 2024 9:01 pm
by Rajstopy
Great! Thanks so much and congrats for your job over the years.

R.

Re: Alarm notification with corrupted image file

Posted: Tue May 28, 2024 2:50 pm
by Rajstopy
By the way, videos records sending doesn't work either... Is that a side effect or do I have another problem?

Basically, when starting the filter including %EV% variable, the interface is looping for a while and then landing on a 504 Gateway Time-out page.
Looking for logs shows :

Code: Select all

Video generation '/usr/local/bin/zmvideo.pl -e 270 -r 1 -s 0 -f mp4' failed with status: 2
However, the .mp4 file seems to be existing on the filesystem.

Would be good if I could at least get the videos triggering the alarm, if I can't get the picture...

Note: Mmmm, sending videos may not be the best option... Is there an easy workaround to get pictures sent? Such as adding some delay before sending? Obviously a dirty fix but I'm not a developper...

Cheers,

R.