Event thumbnails not being created

Forum for questions and support relating to the 1.30.x releases only.
Locked
Last_Mile
Posts: 8
Joined: Tue Jan 03, 2017 3:08 pm

Event thumbnails not being created

Post by Last_Mile »

After several months of flawless operation, event thumbnails are no longer being created. One of the typical error messages is: "Can't create thumbnail 'images/68620-d-capture-4.jpg'". The file pointed to in the log is: "/usr/share/zoneminder/www/includes/functions.php"

I verified the file exists. Also /var/log/syslog shows the same error messages. These error messages are only created when monitor events are selected from the zoneminder console. The events play back just fine, only the thumbnail is broken in the last two days.

No changes have been made to zoneminder, but I did notice a lot of events were deleted, supposedly triggered by the 75% full filter I had in place. EXCEPT, the events were taken down from 77% to 4%! Is the database broken?
2017-01-03_07-12-14.png
2017-01-03_07-12-14.png (353.68 KiB) Viewed 2959 times
Last_Mile
Posts: 8
Joined: Tue Jan 03, 2017 3:08 pm

Re: Event thumbnails not being created

Post by Last_Mile »

Doing more investigation on why my event page isn't seeing thumbnails, I found the Apache2 logs. It seems to echo what the syslogs says. I also see a PHP warning. Has there been a recent change to ZM 1.30.0?

zm@zoneminder:/var/log/apache2$ tail -F error.log
[Tue Jan 03 07:11:37.083060 2017] [:error] [pid 26991] [client 192.168.1.202:55331] PHP Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in /usr/share/zoneminder/www/includes/functions.php on line 1003, referer: https://192.168.1.147/zm/index.php
[Tue Jan 03 07:11:37.083066 2017] [:error] [pid 26991] [client 192.168.1.202:55331] PHP Warning: imagejpeg() expects parameter 1 to be resource, boolean given in /usr/share/zoneminder/www/includes/functions.php on line 1005, referer: https://192.168.1.147/zm/index.php
[Tue Jan 03 07:11:37.085868 2017] [:error] [pid 26991] [client 192.168.1.202:55331] ERR [Can't create thumbnail 'images/67561-d-capture-4.jpg'], referer: https://192.168.1.147/zm/index.php
[Tue Jan 03 07:11:37.088962 2017] [:error] [pid 26991] [client 192.168.1.202:55331] PHP Warning: getimagesize(events/5/16/12/31/11/39/16/d-capture.jpg): failed to open stream: No such file or directory in /usr/share/zoneminder/www/includes/functions.php on line 996, referer: https://192.168.1.147/zm/index.php
[Tue Jan 03 07:11:37.088979 2017] [:error] [pid 26991] [client 192.168.1.202:55331] PHP Warning: imagecreatetruecolor(): Invalid image dimensions in /usr/share/zoneminder/www/includes/functions.php on line 1001, referer: https://192.168.1.147/zm/index.php
[Tue Jan 03 07:11:37.089734 2017] [:error] [pid 26991] [client 192.168.1.202:55331] PHP Warning: imagecreatefromjpeg(events/5/16/12/31/11/39/16/d-capture.jpg): failed to open stream: No such file or directory in /usr/share/zoneminder/www/includes/functions.php on line 1002, referer: https://192.168.1.147/zm/index.php
[Tue Jan 03 07:11:37.089758 2017] [:error] [pid 26991] [client 192.168.1.202:55331] PHP Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in /usr/share/zoneminder/www/includes/functions.php on line 1003, referer: https://192.168.1.147/zm/index.php
[Tue Jan 03 07:11:37.089763 2017] [:error] [pid 26991] [client 192.168.1.202:55331] PHP Warning: imagejpeg() expects parameter 1 to be resource, boolean given in /usr/share/zoneminder/www/includes/functions.php on line 1005, referer: https://192.168.1.147/zm/index.php
[Tue Jan 03 07:11:37.092458 2017] [:error] [pid 26991] [client 192.168.1.202:55331] ERR [Can't create thumbnail 'images/67560-d-capture-4.jpg'], referer: https://192.168.1.147/zm/index.php
[Tue Jan 03 09:07:15.144707 2017] [:error] [pid 26990] [client 192.168.1.202:58784] INF [Login successful for user "admin"], referer: https://192.168.1.147/zm/index.php
Locked