Released 1.36.32 The Memory Remains

Discussions related to the 1.36.x series of ZoneMinder
User avatar
iconnor
Posts: 3181
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Released 1.36.32 The Memory Remains

Post by iconnor »

# Changes since 1.36.31

- More properly fix the alarm status api changing. The previous hack broke doing alarm on/off.
- fix handle of SQL generation of IN array when array is empty. Just always return false.
- Fix test for null in Object::find
- Make inputs on filter action table 100%
- Fix Warning when monitor is not visible
- Switch to utf8mb4 to support 4 byte unicode Fixes #3514
- Make search input the same size as other toolbar elements
- Remove deprecated CAMBOZOLA references
- Update Monitor symlinking, improving deleting old link when changing name
- Fix zone deleting and fix an extra comma in default coordinates
- Add libswscale6 and libswresample4 dependencies for ubuntu kinetic
- Remove return type from session class methods. not supported in php5.4. Fixes breakage on centos7. Fixes #3622
- Fix recalculating Event Disk Space a second time when updating.
- Set xhrFields: withCredentials: true so that we send cookies with our streaming xhr requests so that we pick up new auth hashes
- Add Access-Control-Allow-Credentials: true so that we can pass cookies along with xhr requests.
- Add Cause, Notes and EndDateTime to available columns in events list on watch view
- Make button on Filter Debug modal be Close instead of Cancel
- Handle empty but defined REQUEST[action]
- replace php Memcached with Apc on Fedora
- Allow MonitorName as default sort field as well as Monitor
- Try out just using connkey as the semaphore key instead of ftok in ajax streaming requests
- Turn back on error_reporting, just don't display the error in json ajax requests.
- Check for return value of openEvent. Fixes crash when openEvent fails
- Fix infinite recursion in montagereview
- Add error message when minTime >= maxTime in montagereview
- Fix crash in zmfilter DiskSpace Update when Event doesn't exist
- Make .form-group styles export page specific because they are affecting layout in modals
- Cleanup the state modal. Fix form post
- Set web backend db connection to utf8 Fixes #3631
- implode the output from zmu to fix php complaint about array to string
- convert strings into integers before doing math as of php 8.2 Fixes Unsupported operand types: string - int


**Full Changelog**: https://github.com/ZoneMinder/zoneminde ... ...1.36.32
pat2
Posts: 157
Joined: Fri Sep 16, 2016 6:35 pm

Re: Released 1.36.32 The Memory Remains

Post by pat2 »

upgraded on 16.04.
fine. ZM Ninja integration too.

thanks
---------------------------------------------------------------------------
ZM 1.36.36 - 14 cameras on Orange Pi 5 (arm64) - Ubuntu Jammy 22.04
mconfortino
Posts: 26
Joined: Sun Oct 24, 2021 8:21 pm
Location: Rawson, Patagonia

Re: Released 1.36.32 The Memory Remains

Post by mconfortino »

Fine release. Faster and less memory consuming than 1.36.31. Excellent work.
Only repeating message in logs:
Can't execute. Unknown column 'StartTime' in 'field list'
related to zmaudit.pl, no line number.
In the database the field is StartDateTime. Should I correct the file, or I will break it?
User avatar
iconnor
Posts: 3181
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Released 1.36.32 The Memory Remains

Post by iconnor »

zmaudit.pl shouldn't contain any references to StartTime anymore... Are you sure it's coming from zmaudit.pl ?

Also you shouldn't really need to run zmaudit unless cleaning up after a crash...
mconfortino
Posts: 26
Joined: Sun Oct 24, 2021 8:21 pm
Location: Rawson, Patagonia

Re: Released 1.36.32 The Memory Remains

Post by mconfortino »

Hi
11/23/22, 12:30:24 AM GMT-3 zmaudit 366509 FAT Can't execute: Unknown column 'StartTime' in 'field list' zmaudit.pl -
11/23/22, 12:15:22 AM GMT-3 zmaudit 315254 FAT Can't execute: Unknown column 'StartTime' in 'field list' zmaudit.pl -
Sorry I can't copy more lines. The selection gets cleared before I can hit Ctl-C. This is a fresh installation, Ubuntu server 22.04, MySQL 8, php 8 and Zoneminder 1.36.32. RUN_AUDIT is checked in options. Anyway, it appears to have solved by itself. But memory use is rising again. System is 12 cores in two Xeon @ 1.7GHz, 64GB RAM, 26 TB of RAID 1E storage. Recording 27 IP cameras @ 1280x720 resolution and 20 fps. After three or four hours it reaches 90% of memory use
User avatar
iconnor
Posts: 3181
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Released 1.36.32 The Memory Remains

Post by iconnor »

Turn off zmaudit.
mconfortino
Posts: 26
Joined: Sun Oct 24, 2021 8:21 pm
Location: Rawson, Patagonia

Re: Released 1.36.32 The Memory Remains

Post by mconfortino »

Done!
dlandon
Posts: 17
Joined: Fri Oct 12, 2018 12:49 am

Re: Released 1.36.32 The Memory Remains

Post by dlandon »

I'm coming back to work on my docker container and when trying to update the container, I am now running into an api issue. The debug message is:

Fatal error: Uncaught Error: Call to undefined function apc_fetch() in /usr/share/zoneminder/www/api/lib/Cake/Cache/Engine/ApcEngine.php:91 Stack trace: #0 /usr/share/zoneminder/www/api/lib/Cake/Cache/Cache.php(363): ApcEngine->read() #1 /usr/share/zoneminder/www/api/lib/Cake/I18n/I18n.php(235): Cache::read() #2 /usr/share/zoneminder/www/api/lib/Cake/basics.php(636): I18n::translate() #3 /usr/share/zoneminder/www/api/lib/Cake/Cache/Cache.php(182): __d() #4 /usr/share/zoneminder/www/api/lib/Cake/Cache/Cache.php(151): Cache::_buildEngine() #5 /usr/share/zoneminder/www/api/app/Config/core.php(375): Cache::config() #6 /usr/share/zoneminder/www/api/lib/Cake/Core/Configure.php(72): include('/usr/share/zone...') #7 /usr/share/zoneminder/www/api/lib/Cake/bootstrap.php(442): Configure::bootstrap() #8 /usr/share/zoneminder/www/api/app/webroot/index.php(102): include('/usr/share/zone...') #9 {main} thrown in /usr/share/zoneminder/www/api/lib/Cake/Cache/Engine/ApcEngine.php on line 91

I haven't done an update for well over a year and I'd like to get things going again. Can someone offer what I am missing?
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Released 1.36.32 The Memory Remains

Post by Magic919 »

Probably PHP-APCU.
-
User avatar
iconnor
Posts: 3181
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Released 1.36.32 The Memory Remains

Post by iconnor »

Hey dlandon!

@knightofni changed some things for fedora etc that may be related. We used to rely on php-pecl-memcached but now I think we need php-pecl-apcu.

In ubuntu land the package is php-apcu

So perhaps you just need that in your deps?
dlandon
Posts: 17
Joined: Fri Oct 12, 2018 12:49 am

Re: Released 1.36.32 The Memory Remains

Post by dlandon »

I got it. Turns out I needed the php-apc package.
hns
Posts: 4
Joined: Mon Mar 29, 2021 4:58 pm

Re: Released 1.36.32 The Memory Remains

Post by hns »

Hello,
today i broke the Murphy's rule - if it works, don't touch it - and i made upgrade from 1.34.23 to 1.36.32.
I just change the number in apt list.
Run apt update and apt upgrade.
It updates ZM and database nicely and smoothly. All went well without any error message.
After update was finished i tried to open zmNinja and nothing happened. I can't see anything. So i tried to open zm/api page and i got E404.
Surprise. I remember that something happened before already and i remember that i have to instal cakephp. So i did it and zmNinja start working with live streams. But page zm/api give me errors as shown on zmcake.png from attachment.
zmcake.png
zmcake.png (35.9 KiB) Viewed 308770 times
I followed all whats in the point 1 and i found out that i have all as it should be.

Another issue is the console and all web pages. It doesn't look like normal. And i can't see live view (the video is static picture). No matter used browser. It is doing the same in all browsers and OS. See zm.png from attachments
zm.png
zm.png (51.91 KiB) Viewed 308770 times
I am not able to find out how to fix it.
Used OS is Debian Bullseye with default installation from repo since 1.32.xx. Then only upgraded. After upgrade to 1.34 i found out that i can't have mini previews. But that doesn't bother me at all so i didn't do anything about it.
Can someone help me to kick me to the right way for fix it please?
User avatar
burger
Posts: 433
Joined: Mon May 11, 2020 4:32 pm

Re: Released 1.36.32 The Memory Remains

Post by burger »

hns wrote: Sat Dec 10, 2022 7:29 pm Another issue is the console and all web pages. It doesn't look like normal. And i can't see live view (the video is static picture). No matter used browser. It is doing the same in all browsers and OS. See zm.png from attachments

I am not able to find out how to fix it.
Used OS is Debian Bullseye with default installation from repo since 1.32.xx. Then only upgraded. After upgrade to 1.34 i found out that i can't have mini previews. But that doesn't bother me at all so i didn't do anything about it.
Can someone help me to kick me to the right way for fix it please?
Check that URL Rewriting is enabled per CakePHP. I wrote up something here:
https://wiki.zoneminder.com/API
You can troubleshoot the errors in the web console display by looking at
1) /var/log/apache/error.log (debian) /var/log/zm/{web_php.log,cake_error.log,web_js.log}
or
2) the javascript console in the browser inspector
I have had some sort of graphical glitches on the website before, and it was fixed I think with installing something from apt. Whatever error you get, should show some result in the forum search. If it doesn't, please post the error here.

Finally CakePHP (if necessary) can have debug mode enabled. Maybe clear cookies / cache (try incognito mode).
fastest way to test streams:
ffmpeg -i rtsp://<user>:<pass>@<ipaddress>:554/path ./output.mp4 (if terminal only)
ffplay rtsp://<user>:<pass>@<ipaddress>:554/path (gui)
find paths on ispydb or in zm hcl

If you are new to security software, read:
https://wiki.zoneminder.com/Dummies_Guide
hns
Posts: 4
Joined: Mon Mar 29, 2021 4:58 pm

Re: Released 1.36.32 The Memory Remains

Post by hns »

burger wrote: Sun Dec 11, 2022 3:48 am Check that URL Rewriting is enabled per CakePHP. I wrote up something here:
https://wiki.zoneminder.com/API
You can troubleshoot the errors in the web console display by looking at
1) /var/log/apache/error.log (debian) /var/log/zm/{web_php.log,cake_error.log,web_js.log}
or
2) the javascript console in the browser inspector
I have had some sort of graphical glitches on the website before, and it was fixed I think with installing something from apt. Whatever error you get, should show some result in the forum search. If it doesn't, please post the error here.

Finally CakePHP (if necessary) can have debug mode enabled. Maybe clear cookies / cache (try incognito mode).
as i wrote before, i checked all .htaccess and everywhere is rewriting enabled
1) todays apache error.log doesn't exist at all, in the previous error logs is only written the restarts i did
something like AH00163: apache/2.4.54 (debian) openssl/1.1.1n configured -- resuming normal operations
AH00094: command line: '/usr/sbin/apache2'

cake_error.log for today doesn't exist yet
web_js.log doesn't exist as well
web_php.log doesn't exist as well

2) here will be the problem
cannot be loaded css skin
im getting many error404 that zm/cache/*.css not found
and this
Uncaught ReferenceError: jQuery is not defined
at ?view=options&tab=skins&skin=classic&css=base:186:61
Uncaught TypeError: $j is not a function
at ?view=options&tab=skins&skin=classic&css=base:499:52
im going to investigate whats wrong

thank you burger for kick


SOLVED:
/etc/apache2/conf-enabled must be changed from

Code: Select all

 Alias /zm/cache "/var/cache/zoneminder"
    <Directory "/var/cache/zoneminder">
        Options -Indexes +FollowSymLinks
        AllowOverride All
        <IfModule mod_authz_core.c>
           # Apache 2.4
           Require all granted
        </IfModule>
    </Directory>
to

Code: Select all

 Alias /zm/cache "/var/cache/zoneminder/cache"
    <Directory "/var/cache/zoneminder/cache">
        Options -Indexes +FollowSymLinks
        AllowOverride All
        <IfModule mod_authz_core.c>
           # Apache 2.4
           Require all granted
        </IfModule>
    </Directory>
Pedulla
Posts: 167
Joined: Thu Nov 27, 2014 11:16 am
Location: Portland, Or

Re: Released 1.36.32 The Memory Remains

Post by Pedulla »

Ahhhh CAMBOZOLA....
Gonna miss that plugin ;)
Post Reply