Page 1 of 1

HELP ZoneMinder not working: Can't get shared memory

Posted: Wed Aug 04, 2010 10:07 am
by magix_ch
Dear all,

Being trying to install ZoneMinder 1.24.x and the compilation having errors, I found a rpm for the server I bought for ZoneMinder : zoneminder-1.22.3-9.el5.kb.x86_64.rpm

But it doesn't seem to connect to a camera (it looks red on ZM console, as you can see on the image below).

The logs are full of errors, do you have any suggestion on what to do next ?

Every 10 seconds I get :
08/04/10 12:05:44.205765 zmwatch[9783].ERR [Can't get shared memory id '7a6d2001', 1: No such file or directory]
08/04/10 12:05:44.206147 zmwatch[9783].INF [Restarting capture daemon for HDS_Rear, shared memory not valid]
08/04/10 12:05:44.335477 zmwatch[9783].INF ['zmc -m 1' starting at 10/08/04 12:05:44, pid = 15851]
and also
08/04/10 12:05:54.475118 zmdc[9716].INF ['zmc -m 1' starting at 10/08/04 12:05:54, pid = 15865]
08/04/10 12:05:54.491375 zmdc[9716].ERR ['zmc -m 1' exited abnormally, exit status 255]
???

It seems I should change ZM_SHM_KEY in the config ?
But to which value ?

Thanks a lot in advance for any suggestion

Image

Posted: Wed Aug 04, 2010 1:46 pm
by jfkastner
get 1.24.2 from

ftp://ftp.northern-ridge.com.au/zoneminder/

and try it again

IF the key problem comes up again try changing the config key to what's in the error messages eg 0x7a6d0001 etc

they are usually numbers in sequence when you set up the cams but when you delete cams things might get a bit messed up

Posted: Wed Aug 04, 2010 1:58 pm
by magix_ch
Dear jfkastner,

These packages seems to be for Debian/Ubunto but our server is under CentOS ?

Denis

Posted: Wed Aug 04, 2010 4:09 pm
by father1e
Which Centos release are you using? There was a recent post in the 1.24 forum for installing under Centos 5.5.

Posted: Wed Aug 04, 2010 4:13 pm
by magix_ch
Yes I read that recent post. I did as stated but it doesn't say anything about my compilation problems... And anyway I tested it but it doesn't work. (c.f. my other post on compilation problems)

Details on the server :
# uname -a
Linux (host) 2.6.9-023stab051.3-smp #1 SMP Wed Nov 4 18:36:34 MSK 2009 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/redhat-release
CentOS release 5.5 (Final)

Posted: Fri Aug 06, 2010 6:47 pm
by magix_ch
Dear all,

I was finally able to install and launch ZoneMinder v1.24.2 thank to the help of http://www.zoneminder.com/forums/viewtopic.php?t=16252

...but I still have exactly the same problem now !
08/06/10 20:44:16.446495 zmwatch[9583].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
08/06/10 20:44:26.449092 zmwatch[9583].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
08/06/10 20:44:36.451690 zmwatch[9583].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
08/06/10 20:44:46.454285 zmwatch[9583].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
08/06/10 20:44:56.456891 zmwatch[9583].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
08/06/10 20:45:06.459483 zmwatch[9583].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
08/06/10 20:45:16.462095 zmwatch[9583].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
08/06/10 20:45:26.464695 zmwatch[9583].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
08/06/10 20:45:36.467307 zmwatch[9583].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
08/06/10 20:45:46.469899 zmwatch[9583].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
Any help would really be appreciated at that level...

Posted: Fri Aug 06, 2010 6:52 pm
by bb99
As with your other post, try increasing shared memory. Documentation settings are pretty much minimal. Keep increasing until everything works. Don't forget to reboot.

edit /etc/sysctl.conf too make changes permanent.