Are VNC / Website types Ready for Production?

Previous development branch now released as 1.36
Locked
User avatar
burger
Posts: 390
Joined: Mon May 11, 2020 4:32 pm

Are VNC / Website types Ready for Production?

Post by burger »

In 1.35 installed roughly 2/25* for Buster / Devuan Beowulf Master. Install was without issue - thanks for sysvinit/Beowulf support. I tested VNC and Website types. I was not able to get either to work. Looking at the logs, it looks like functionality is still WIP, as it faults looking at the DB.

I understand VNC will be be able to record, while website is designed to only act as a monitor. Website recording might have its own use (either video streams, alone / tied into something like streamlink, or only for recording changes to websites (i.e. downtime might be construed as motion, or you can monitor changes of various websites), but I don't know how difficult that would be to do. Maybe this is out of scope for ZM (although the streamlink idea I think would be popular).

What is the status of these modules?

* Sorry don't have exact release available at the moment, but can get if necessary.

Apologies, but (only) relevant logs below:

Source Type: VNC

Code: Select all

Feb 25 21:50:26 devzm zmdc[16899]: INF [Starting pending process, zmc -m 1]
Feb 25 21:50:26 devzm zmdc[3619]: INF ['zmc -m 1' started at 21/02/25 21:50:26]
Feb 25 21:50:26 devzm zmdc[16899]: INF ['zmc -m 1' starting at 21/02/25 21:50:26, pid = 3619]
Feb 25 21:50:26 devzm zmc_m1[3619]: FAT [zmc_m1] [Bogus monitor type 'VNC' for monitor 1]
Feb 25 21:50:26 devzm zmdc[16899]: ERR ['zmc -m 1' exited abnormally, exit status 255]
Feb 25 21:50:26 devzm zmwatch[16938]: ERR [Memory map file '/dev/shm/zm.mmap.1' does not exist in zmMemAttach.  zmc might not be running.]
Feb 25 21:50:26 devzm zmwatch[16938]: INF [Restarting capture daemon for testvnc, shared data not valid]
Feb 25 21:50:26 devzm zmdc[16899]: INF [Command 'zmc -m 1' removed from pending list at 21/02/25 21:50:26]
Feb 25 21:50:26 devzm zmdc[16899]: INF ['zmc -m 1' starting at 21/02/25 21:50:26, pid = 3622]
Feb 25 21:50:26 devzm zmdc[3622]: INF ['zmc -m 1' started at 21/02/25 21:50:26]
Feb 25 21:50:27 devzm zmc_m1[3622]: FAT [zmc_m1] [Bogus monitor type 'VNC' for monitor 1]
Feb 25 21:50:27 devzm zmdc[16899]: ERR ['zmc -m 1' exited abnormally, exit status 255]
Feb 25 21:50:28 devzm zmdc[16899]: INF [Starting pending process, zmc -m 1]
Feb 25 21:50:28 devzm zmdc[3623]: INF ['zmc -m 1' started at 21/02/25 21:50:28]
Feb 25 21:50:28 devzm zmdc[16899]: INF ['zmc -m 1' starting at 21/02/25 21:50:28, pid = 3623]
Feb 25 21:50:28 devzm zmc_m1[3623]: FAT [zmc_m1] [Bogus monitor type 'VNC' for monitor 1]
Feb 25 21:50:28 devzm zmdc[16899]: ERR ['zmc -m 1' exited abnormally, exit status 255]
Feb 25 21:50:33 devzm zmdc[16899]: INF [Starting pending process, zmc -m 1]
Feb 25 21:50:33 devzm zmdc[3624]: INF ['zmc -m 1' started at 21/02/25 21:50:33]
Feb 25 21:50:33 devzm zmdc[16899]: INF ['zmc -m 1' starting at 21/02/25 21:50:33, pid = 3624]
Feb 25 21:50:33 devzm zmc_m1[3624]: FAT [zmc_m1] [Bogus monitor type 'VNC' for monitor 1]
Feb 25 21:50:33 devzm zmdc[16899]: ERR ['zmc -m 1' exited abnormally, exit status 255]
Feb 25 21:50:37 devzm zmwatch[16938]: ERR [Memory map file '/dev/shm/zm.mmap.1' does not exist in zmMemAttach.  zmc might not be running.]
Feb 25 21:50:37 devzm zmwatch[16938]: INF [Restarting capture daemon for testvnc, shared data not valid]
Feb 25 21:50:37 devzm zmdc[16899]: INF [Command 'zmc -m 1' removed from pending list at 21/02/25 21:50:37]
Feb 25 21:50:37 devzm zmdc[3628]: INF ['zmc -m 1' started at 21/02/25 21:50:37]
Feb 25 21:50:37 devzm zmdc[16899]: INF ['zmc -m 1' starting at 21/02/25 21:50:37, pid = 3628]
Feb 25 21:50:37 devzm zmc_m1[3628]: FAT [zmc_m1] [Bogus monitor type 'VNC' for monitor 1]
Feb 25 21:50:37 devzm zmdc[16899]: ERR ['zmc -m 1' exited abnormally, exit status 255]
Source Type: Website

Code: Select all

Feb 25 21:46:49 devzm web_php[3207]: 02/25/21 21:46:49.552280 web_php[3207].ERR [10.23.2.151] [SQL-ERR 'SQLSTATE[23000]: Integrity constraint violation: 
1048 Column 'OutputCodec' 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`, `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`, `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`, `DefaultRate`, `DefaultScale`, `SignalCheckPoints`, `SignalCheckColour`, `WebColour`, `Exif`, `Sequence`, `ZoneCount`, 
`Refresh`, `DefaultCodec`, `Latitude`, `Longitude`, `RTSPServer`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' 
params:,testwebsite,,0,0,WebSite,Mocord,0,0,,,,,,,,0,0,,1,,raw,,,,http://www.steak.com,,,,640,480,4,0,ROTATE_0,0,,,3,0,,auto,,# Lines 
beginning with # are a comment Feb 25 21:46:49 devzm web_php[3207]: # For changing quality, use the crf option Feb 25 21:46:49 devzm web_php[3207]: # 1 
is best, 51 is worst quality Feb 25 21:46:49 devzm web_php[3207]: #crf=23 Feb 25 21:46:49 devzm web_php[3207]: ,0,0,-1,-1,-1,-1,Event-,%N - %d/%m/%y 
%H:%M:%S,0,0,1,20,0,5,5,0,1,600,10,0,0,,0,,,100,6,6,0,,,,,0,,-1,,100,0,0,#0000BE,#ff0000,0,1,0,,auto,,,0] at 
/usr/share/zoneminder/www/includes/database.php line 161 Feb 25 21:46:49 devzm web_php[2970]: 02/25/21 21:46:49.587529 web_js[2970].ERR [10.23.2.151] 
[TypeError%3A%20form.elements%5B'newMonitor%5BFunction%5D'%5D%20is%20undefined] at zm/index.php?view=monitor line 1294 Feb 25 21:46:49 devzm 
web_php[3207]: 02/25/21 21:46:49.604533 web_php[3207].ERR [10.23.2.151] [Error saving new Monitor.] at 
/usr/share/zoneminder/www/includes/actions/monitor.php line 231
Also some slight rendering issues in the browser for the website page. The refresh-timeout label is missing, and width / height are misplaced. Of course, I did test this with relevant height and width (i.e. 640x480). Please ignore the entries of 1 in the screenshot.
Attachments
1.png
1.png (33.17 KiB) Viewed 1027 times
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
User avatar
iconnor
Posts: 2881
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Are VNC / Website types Ready for Production?

Post by iconnor »

So to start with 1.35 is our development version, so by definition, not for production.

That being said the devs use it in production, including VNC and as far as they know it works.
Website monitors have not been tested recently, I'll take a look.

As to VNC.. that Bogus monitor type line happens literally 2 lines below a line that compares the db value to the string "VNC". Apparently for some reason strcmp(dbrow[col], "VNC") didn't work. I'm having trouble thinking of why.
Locked