[SOLVED] Problems with IP cameras and ZM 1.24.0

Forum for questions and support relating to the 1.24.x releases only.
Locked
RichiH
Posts: 2
Joined: Wed Apr 14, 2010 9:11 am

[SOLVED] Problems with IP cameras and ZM 1.24.0

Post by RichiH »

Hi all,

I am using Debian Lenny and ZM 1.24.0 compiled from sources. 1.24.2 did not play nice with FFMPEG so we had to downgrade to 1.24.0.
The same setup used to work perfectly with ZM 1.23.

Normal video cams work great with 1.24.0 now.

Our IP cams won't work, though. I verified that they work by wgetting images from the cams to our ZM host. Thus, subnetting, firewalls, access restrictions etc pp are not an issue.

When I try to access any IP cam with the settings known to work with 1.23, I only get a black rectangle. No text or any overlays, just a black box.

My /var/log/messages shows this:

Apr 14 11:35:02 video1 zmc_m3[6115]: INF [Debug Level = 0, Debug Log = <none>]
Apr 14 11:35:02 video1 zmc_m3[6115]: INF [Starting Capture]
Apr 14 11:35:37 video1 zms[6128]: INF [Debug Level = 0, Debug Log = <none>]
Apr 14 11:35:37 video1 zms[6128]: WAR [Shared data not initialised by capture daemon, some query functions may not be available or produce
invalid results]
Apr 14 11:35:37 video1 zms[6128]: WAR [Unable to store frame as shared memory invalid]
Apr 14 11:35:42 video1 zmdc[6024]: INF [Starting pending process, zmc -m 3]
Apr 14 11:35:42 video1 zmdc[6130]: INF ['zmc -m 3' started at 10/04/14 11:35:42]
Apr 14 11:35:42 video1 zmdc[6024]: INF ['zmc -m 3' starting at 10/04/14 11:35:42, pid = 6130]
Apr 14 11:35:42 video1 zmc_m3[6130]: INF [Debug Level = 0, Debug Log = <none>]
Apr 14 11:35:42 video1 zmc_m3[6130]: INF [Starting Capture]
Apr 14 11:35:50 video1 zms[6133]: INF [Debug Level = 0, Debug Log = <none>]
Apr 14 11:35:50 video1 zms[6133]: WAR [Shared data not initialised by capture daemon, some query functions may not be available or produce
invalid results]
Apr 14 11:35:50 video1 zms[6133]: WAR [Unable to store frame as shared memory invalid]
Apr 14 11:37:02 video1 zmdc[6024]: INF [Starting pending process, zmc -m 3]
Apr 14 11:37:02 video1 zmdc[6136]: INF ['zmc -m 3' started at 10/04/14 11:37:02]
Apr 14 11:37:02 video1 zmdc[6024]: INF ['zmc -m 3' starting at 10/04/14 11:37:02, pid = 6136]
Apr 14 11:37:02 video1 zmc_m3[6136]: INF [Debug Level = 0, Debug Log = <none>]
Apr 14 11:37:02 video1 zmc_m3[6136]: INF [Starting Capture]
Apr 14 11:37:40 video1 zms[6138]: INF [Debug Level = 0, Debug Log = <none>]
Apr 14 11:37:40 video1 zms[6138]: WAR [Shared data not initialised by capture daemon, some query functions may not be available or produce
invalid results]
Apr 14 11:37:40 video1 zms[6138]: WAR [Unable to store frame as shared memory invalid]

My buffers are configured this way:

video1:~# for i in /proc/sys/kernel/shm*; do echo -n "$i : "; cat $i; done
/proc/sys/kernel/shmall : 563000
/proc/sys/kernel/shmmax : 2253000000
/proc/sys/kernel/shmmni : 4096
video1:~#

/var/log/apache2/error.log while displaying the blak box:

[Wed Apr 14 11:27:42 2010] [error] [client <anon>] socket_sendto( /tmp/zms-377939s.sock ) failed: No such file or directory, referer: http://<anon>/zm/index.php?view=montage&group=0
[Wed Apr 14 11:27:42 2010] [error] [client <anon>] array (\n 0 => \n array (\n 'file' => '/var/www/zm/ajax/stream.php',\n 'line' => 51,\n 'function' => 'ajaxError',\n 'args' => \n array (\n 0 => 'socket_sendto( /tmp/zms-377939s.sock ) failed: No such file or directory',\n ),\n ),\n 1 => \n array (\n 'file' => '/var/www/zm/index.php',\n 'line' => 116,\n 'args' => \n array (\n 0 => '/var/www/zm/ajax/stream.php',\n ),\n 'function' => 'require_once',\n ),\n), referer: http://<anon>/zm/index.php?view=montage&group=0

And finally /tmp/zmwatch.log with shedloads of :

04/14/2010 12:07:58.463175 zmwatch[6087].ERR [Can't get shared memory id '7a6d0003', 3: No such file or directory]
04/14/2010 12:08:08.464541 zmwatch[6087].ERR [Can't get shared memory id '7a6d0003', 3: No such file or directory]
04/14/2010 12:08:08.464697 zmwatch[6087].ERR [Can't get shared memory id '7a6d0003', 3: No such file or directory]
04/14/2010 12:08:18.466078 zmwatch[6087].ERR [Can't get shared memory id '7a6d0003', 3: No such file or directory]
04/14/2010 12:08:18.466232 zmwatch[6087].ERR [Can't get shared memory id '7a6d0003', 3: No such file or directory]


Any and all feedback appreciated; we need this machine to work!

Thanks,
Richard
Last edited by RichiH on Fri Apr 16, 2010 8:08 am, edited 1 time in total.
RichiH
Posts: 2
Joined: Wed Apr 14, 2010 9:11 am

Post by RichiH »

FWIW, I re-installed Debian Lenny & used the packages from unstable. That works.
butlerm1977
Posts: 36
Joined: Wed Sep 09, 2009 4:47 pm

Post by butlerm1977 »

I have a similar problem with one of my IP cameras. I've got a total of 5 IP cams. 4 are Trendnet IP501P and one wireless IP501W.

All 4 wired cameras work flawlessly. Since they are all wired IP cameras I get a constant ping of <1ms.

My one wireless camera however does not have such an ideal constant ping. Results range between 2-15ms, with 80% ranging between 2-6ms.

I have found at times I get the same error that the original poster was having and I'm wondering if it has something to do with the network side. I have just adjusted the FPS of the wireless camera down to a max of 5 fps. So maybe that will help. My other cams are recording at 10fps.

I've also read in some other posts that the "shared memory invalid" error was more of a browser error. Any other ideas?
Flash_
Posts: 441
Joined: Wed Jan 11, 2006 12:19 pm

Post by Flash_ »

Just had this yesterday on a debian box using the official packages.

During a bunch of updates, zoneminder got upgraded automatically and I didn't notice the installer CHANGED the events and images files back to the default of /usr/src/zoneminder/events ../images

I was getting those shared memory problems and nothing would initialise until I deleted those dirs and re-symlinked to the new ones.

ln -s /data/events

So, that would suggest a permissions problem or similar, possibly related to the upgrades?
Locked