Can't add monitors

Discussions related to the 1.36.x series of ZoneMinder
RonRN18
Posts: 58
Joined: Tue Aug 13, 2019 1:00 am

Can't add monitors

Post by RonRN18 »

I'm not sure what happened to cause this. I'm not sure if it has something to do with upgrading to Ubuntu 22.04 or not, but I can no longer add new monitors. If I make any attempts to add a new monitor, once I hit the "Save" button, it takes me back to the first screen of Monitors... the "General" tab. I immediately see that "Logs" has gone to red, but upon going to "Logs", it is stuck on "Loading... Please wait." I can't view what has gone wrong in the logs via the web interface. Is there a CLI way to view the logs? Any ideas as to what went wrong?

Just because I thought I may have FUBAR'd things, I uninstalled all portions of Apache2, MariaDB, PHP and Zoneminder and then reinstalled. I still have the same thing upon trying to create a monitor. I have no issues until that point.
aarons6
Posts: 44
Joined: Mon Feb 08, 2016 12:13 pm

Re: Can't add monitors

Post by aarons6 »

same. i tried to add a new camera today and none of the buttons are working, probe or onvif.
if i add manually and hit save it just reloads the page but doesnt actually save anything.

version
1.36.16

tried with both edge and chrome.
User avatar
bkjaya1952
Posts: 282
Joined: Sat Aug 25, 2018 3:24 pm
Location: Sri Lanka

Re: Can't add monitors

Post by bkjaya1952 »

Yes . I also have the same problem
viewtopic.php?t=31792
clipo
Posts: 101
Joined: Sat Sep 06, 2008 9:55 am
Location: Manchester, UK
Contact:

Re: Can't add monitors

Post by clipo »

I am also experiencing the same issues.
I've just done a 100% reinstall of the OS and everything and still the same issues as listed above.

Ubuntu 22.04
ZM 1.36.16

I have also just upgraded an existing systems ZM install to the latest version and have the same issue with this system.
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Can't add monitors

Post by Magic919 »

Works fine for me. Ensure you state the width and height of the video.
-
clipo
Posts: 101
Joined: Sat Sep 06, 2008 9:55 am
Location: Manchester, UK
Contact:

Re: Can't add monitors

Post by clipo »

Magic919 wrote: Tue May 31, 2022 9:06 am Works fine for me. Ensure you state the width and height of the video.
I have setup all parameters for the camera with no change,
This is also causing the same issue with an existing installed system with multiple working cameras.
User avatar
bkjaya1952
Posts: 282
Joined: Sat Aug 25, 2018 3:24 pm
Location: Sri Lanka

Re: Can't add monitors

Post by bkjaya1952 »

Magic919 wrote: Tue May 31, 2022 9:06 am Works fine for me. Ensure you state the width and height of the video.
Please try with the latest zoneminder fresh installation .
The problem is in the latest zoneminder
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Can't add monitors

Post by Magic919 »

I was responding to the post above mine regarding an upgraded system.

I won't spend time testing on a new install, sorry.
-
clipo
Posts: 101
Joined: Sat Sep 06, 2008 9:55 am
Location: Manchester, UK
Contact:

Re: Can't add monitors

Post by clipo »

Ive managed to get some logs that is complaining about a depreciated function and also the php code thats seems to cause the issue.

web_php[15396].ERR [127.0.0.1] [Error saving new Monitor.] at /usr/share/zoneminder/www/includes/actions/monitor.php line 231

31/05/22 11:45:20.806654 web_js[15396].PNC [127.0.0.1] [Unknown error type: [8192] Function strftime() is deprecated
#0 /usr/share/zoneminder/www/includes/logger.php(529): ZM\Panic('...')
#1 /usr/share/zoneminder/www/includes/logger.php(366): ZM\ErrorHandler(8192, '...', '...', 366)
#2 /usr/share/zoneminder/www/ajax/log.php(66): ZM\Logger->logPrint(-2, '...', '...', '...')
#3 /usr/share/zoneminder/www/ajax/log.php(33): createRequest()
#4 /usr/share/zoneminder/www/index.php(277): require_once('...')] at /usr/share/zoneminder/www/includes/logger.php line 529
Attachments
web_js.log
(10.45 KiB) Downloaded 137 times
web_php.log
(4.97 KiB) Downloaded 92 times
User avatar
iconnor
Posts: 3197
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Can't add monitors

Post by iconnor »

FFS! I am so tired of various libraries/languages deprecating things! I can't keep up!

You know why I like perl? Because in 25 years I've never had to change my code due to perl changing.
clipo
Posts: 101
Joined: Sat Sep 06, 2008 9:55 am
Location: Manchester, UK
Contact:

Re: Can't add monitors

Post by clipo »

iconnor wrote: Tue May 31, 2022 1:56 pm FFS! I am so tired of various libraries/languages deprecating things! I can't keep up!

You know why I like perl? Because in 25 years I've never had to change my code due to perl changing.
Any chance this is an easy fix as I have a production server I need to put back into service after a full rebuild.

I feel the pain with depreciated functions and most of the time its because they made a new function that's basically the same just with a different name because someone forked it after a disagreement.
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Can't add monitors

Post by Magic919 »

That explains things a bit better. My servers are on 20.04 and will stay on that as it's LTS and supported.
-
clipo
Posts: 101
Joined: Sat Sep 06, 2008 9:55 am
Location: Manchester, UK
Contact:

Re: Can't add monitors

Post by clipo »

Magic919 wrote: Tue May 31, 2022 2:44 pm That explains things a bit better. My servers are on 20.04 and will stay on that as it's LTS and supported.
I have a 20.04 server that's also suffering from the same issues so its seems to be a little more wide spread than 22.04
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Can't add monitors

Post by Magic919 »

I'm on 20.04 and 1.36.16 and it works.

The deprecation message is a PHP8 thing and that's not on 20.04.
-
clipo
Posts: 101
Joined: Sat Sep 06, 2008 9:55 am
Location: Manchester, UK
Contact:

Re: Can't add monitors

Post by clipo »

Just tried on my 20.04 system that as you've said is PHP7.4 and I get the below error in the logs and as with 22.04 the monitor wont save.

31/05/22 16:30:57.939564 web_php[160298].ERR [192.168.0.3] [SQL-ERR 'SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'Width' cannot be null', statement was 'INSERT INTO `Monitors` (`Id`, `Name`, `Notes`, `ServerId`, `StorageId`, `Type`, `Function`, `Enabled`, `DecodingEnabled`, `LinkedMonitors`, `Triggers`, `ONVIF_URL`, `ONVIF_Username`, `ONVIF_Password`, `ONVIF_Options`, `Device`, `Channel`, `Format`, `V4LMultiBuffer`, `V4LCapturesPerFrame`, `Protocol`, `Method`, `Host`, `Port`, `SubPath`, `Path`, `SecondPath`, `Options`, `User`, `Pass`, `Width`, `Height`, `Colours`, `Palette`, `Orientation`, `Deinterlacing`, `DecoderHWAccelName`, `DecoderHWAccelDevice`, `SaveJPEGs`, `VideoWriter`, `OutputCodec`, `Encoder`, `OutputContainer`, `EncoderParameters`, `RecordAudio`, `RTSPDescribe`, `Brightness`, `Contrast`, `Hue`, `Colour`, `EventPrefix`, `LabelFormat`, `LabelX`, `LabelY`, `LabelSize`, `ImageBufferCount`, `MaxImageBufferCount`, `WarmupCount`, `PreEventCount`, `PostEventCount`, `StreamReplayBuffer`, `AlarmFrameCount`, `SectionLength`, `MinSectionLength`, `FrameSkip`, `MotionFrameSkip`, `AnalysisFPSLimit`, `AnalysisUpdateDelay`, `MaxFPS`, `AlarmMaxFPS`, `FPSReportInterval`, `RefBlendPerc`, `AlarmRefBlendPerc`, `Controllable`, `ControlId`, `ControlDevice`, `ControlAddress`, `AutoStopTimeout`, `TrackMotion`, `TrackDelay`, `ReturnLocation`, `ReturnDelay`, `ModectDuringPTZ`, `DefaultRate`, `DefaultScale`, `SignalCheckPoints`, `SignalCheckColour`, `WebColour`, `Exif`, `Sequence`, `ZoneCount`, `Refresh`, `DefaultCodec`, `Latitude`, `Longitude`, `RTSPServer`, `RTSPStreamName`, `Importance`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' params:,Monitor-5,,0,0,Ffmpeg,Mocord,1,1,,,192.168.0.12,user,password,,,0,0,,1,,rtpRtsp,,,,,,,,,,,4,0,ROTATE_0,0,,,3,0,0,auto,,# Lines beginning with # are a comment
# For changing quality, use the crf option
# 1 is best, 51 is worst quality
crf=23
,0,0,-1,-1,-1,-1,Event-,%N - %d/%m/%y %H:%M:%S,0,0,1,3,0,0,5,5,0,1,600,10,0,0,,0,,,100,6,6,0,,,user:port@ip,,0,,-1,,0,100,0,0,#0000be,#806c33,0,5,0,,auto,,,0,,Normal] at /usr/share/zoneminder/www/includes/database.php line 161
31/05/22 16:30:57.943869 web_php[160298].ERR [192.168.0.3] [Error saving new Monitor.] at /usr/share/zoneminder/www/includes/actions/monitor.php line 231
Post Reply