empty memory map file size 0

Forum for questions and support relating to 1.33.x development only.
Locked
User avatar
zd59
Posts: 102
Joined: Wed Jan 18, 2017 1:39 pm
Location: EU - Slovenia

empty memory map file size 0

Post by zd59 »

Hi!

Zoneminder compiled from GIT (dates newer than 6. 1. 2019), fresh install Mariadb & Zoneminder.

Code: Select all

mysql  Ver 15.1 Distrib 10.3.12-MariaDB, for Linux (x86_64) using readline 5.1
The service do not start, no log info abut that.
After creating a new camera and try to start zoneminder, debug info show:

Code: Select all

01/20/19 19:57:53.686648 zms_m1[27601].DB1-zm_monitor.cpp/2331 [Loaded monitor 1(jug-VGA), 1 zones]
01/20/19 19:57:53.686674 zms_m1[27601].DB3-zm_monitor.cpp/521 [Connecting to monitor.  Purpose is 0]
01/20/19 19:57:53.686706 zms_m1[27601].DB3-zm_monitor.cpp/528 [Success opening mmap file at (/dev/shm/zm.mmap.1)]
01/20/19 19:57:53.686724 zms_m1[27601].ERR-zm_monitor.cpp/542 [Got empty memory map file size 0, is the zmc process for this monitor running?]
01/20/19 19:57:53.697259 zms_m1[27601].ERR-zm_stream.cpp/48 [Unable to connect to monitor id 1 for streaming]
01/20/19 19:57:53.703350 zms_m1[27601].ERR-zms.cpp/254 [Unable to connect to zmc process for monitor 1]
01/20/19 19:57:53.705932 zms_m1[27601].DB1-zm_logger.cpp/255 [Terminating Logger]
and shm is:

Code: Select all

[/usr/src/zoneminder] # ls -la /dev/shm
total 0
drwxrwxrwt  2 root   root     60 Jan 20 20:22 .
drwxr-xr-x 15 root   root   5080 Jan 20 10:41 ..
-rw-------  1 apache apache    0 Jan 20 19:57 zm.mmap.1
The camera configuration is exact copy of a valid data from a working zoneminder-1.30.0.
rockedge
Posts: 1173
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: empty memory map file size 0

Post by rockedge »

operating system and version ZM is installed in?
User avatar
zd59
Posts: 102
Joined: Wed Jan 18, 2017 1:39 pm
Location: EU - Slovenia

Re: empty memory map file size 0

Post by zd59 »

Please take a look at my post from, 18th January:
viewtopic.php?f=39&t=27977

GIT compiled/installed ZM worked until 6th January, then failed. Some ZM changes introduced? - new compile options, new variables...
Please answer the questions I posted in above post.
Strange: I set up debug to 9 in GUI, but none of errors reported except zero size zm.mmap.1 created. What could be the reason? As file is created, permissions are adequate for /dev/shm and its size is 8GB, all free and available.
User avatar
zd59
Posts: 102
Joined: Wed Jan 18, 2017 1:39 pm
Location: EU - Slovenia

Re: empty memory map file size 0

Post by zd59 »

Obviously I discovered a bug that was solved today by iconnor:
https://github.com/ZoneMinder/zoneminde ... 87ac421cbf

ZM now works.

Thanks to developers.
Locked