shared memory Ubuntu 9.04

Forum for questions and support relating to the 1.24.x releases only.
Locked
RemoteCamera
Posts: 3
Joined: Mon Jun 08, 2009 12:57 pm

shared memory Ubuntu 9.04

Post by RemoteCamera »

Hi

I'm Using zoneminder_1.24.1
On Ubuntu 9.04

Need to access ip Camera
[Axis 211]

Iget a black screen and these erros in log



zmwatch.log

05/27/09 15:03:01.020779 zmwatch[2716].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
05/27/09 15:03:11.021439 zmwatch[2716].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
05/27/09 15:03:21.022613 zmwatch[2716].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]

zm_Debug.log

05/27/09 16:12:42.088896 zmc_m1[8860].INF-zm_debug.c/292 [New Debug Level = 0, New Debug Log = /tmp/zm_debug.log.08860]
05/27/09 16:12:42.105799 zmc_m1[8860].INF-zmc.cpp/186 [Starting Capture]
05/27/09 16:12:42.271182 zmc_m1[8860].ERR-zm_remote_camera_http.cpp/99 [Can't connect to remote camera: No route to host]
05/27/09 16:12:42.271250 zmc_m1[8860].ERR-zm_remote_camera_http.cpp/1019 [Unable to connect to camera]
05/27/09 16:12:42.271269 zmc_m1[8860].ERR-zmc.cpp/251 [Failed to pre-capture monitor 1 (0/1)]

zmdc.log

05/27/09 15:02:07.316738 zmdc[2686].INF [Server starting at 09/05/27 15:02:07]
05/27/09 15:02:10.447738 zmdc[2686].INF ['zmc -m 1' starting at 09/05/27 15:02:10, pid = 2708]
05/27/09 15:02:10.554589 zmdc[2686].ERR ['zmc -m 1' exited abnormally, exit status 255]
05/27/09 15:02:10.554802 zmdc[2686].INF [Starting pending process, zmc -m 1]
midian
Posts: 11
Joined: Mon Jun 08, 2009 12:18 am
Location: New England, USA

Post by midian »

Just a thought, but this might be the same problem I encountered on OpenSuse 11. In short, the web interface attempts to start processes with the authorization of the apache user ("www" on Ubuntu, "wwwrun" on OpenSuse"). On OpenSuse at least, this user does NOT have authorization to access shared memory or start processes. Nor should it in my opinion. If this user could do these things, then any hacker out there would have very elevated permissions to pound away at your machine.

Instead of using the web interface, try starting the processes as a service using either:

Option 1: sudo /etc/init.d/zm (start | stop | restart) : uses Daemon permission

Option 2: sudo /usr/bin/zmpkg.pl (start | stop | restart) : uses root permissions

Both of the above doe the same thing, but with daemon or root permissions. Option 1 of course is best once you sort your issues out. This solution fixes this issue with OpenSuse 11.1 at least and I hope might be of help on Ubuntu too.
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

05/27/09 16:12:42.271182 zmc_m1[8860].ERR-zm_remote_camera_http.cpp/99 [Can't connect to remote camera: No route to host]

sounds like you have the addres of camera wrong
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

kingofkya wrote:05/27/09 16:12:42.271182 zmc_m1[8860].ERR-zm_remote_camera_http.cpp/99 [Can't connect to remote camera: No route to host]

sounds like you have the addres of camera wrong
Agreed,
Check your addressing and make sure you can ping the cam. Something is not configured right or is blocking.
RemoteCamera
Posts: 3
Joined: Mon Jun 08, 2009 12:57 pm

Post by RemoteCamera »

Hi
Thanks for Replay

I Still Have Sherd Memory Erorr

I view Camera from this link
http://10.0.10.90/view/index.shtml
and it have username and password

Kind Regards
Locked