Can't add monitors
Can't add monitors
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.
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.
Re: Can't add monitors
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.
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.
- bkjaya1952
- Posts: 282
- Joined: Sat Aug 25, 2018 3:24 pm
- Location: Sri Lanka
Re: Can't add monitors
Yes . I also have the same problem
viewtopic.php?t=31792
viewtopic.php?t=31792
Re: Can't add monitors
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.
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.
- bkjaya1952
- Posts: 282
- Joined: Sat Aug 25, 2018 3:24 pm
- Location: Sri Lanka
Re: Can't add monitors
I was responding to the post above mine regarding an upgraded system.
I won't spend time testing on a new install, sorry.
I won't spend time testing on a new install, sorry.
-
Re: Can't add monitors
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
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
Re: Can't add monitors
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.
You know why I like perl? Because in 25 years I've never had to change my code due to perl changing.
Re: Can't add monitors
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.
Re: Can't add monitors
That explains things a bit better. My servers are on 20.04 and will stay on that as it's LTS and supported.
-
Re: Can't add monitors
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.
The deprecation message is a PHP8 thing and that's not on 20.04.
-
Re: Can't add monitors
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
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