This is also my first attempt to install this wonderful zoneminder and only had a few experiences with ubuntu and it's derivates as a desktop solution.
Just created a virtual machine(1024MB, 2cores) with xubuntu 10.04.2 through an alternate cd.
Installed zoneminder from the repositories with
Code: Select all
$ sudo apt-get install zoneminder
To make sure Apache refers to zm
Code: Select all
$ sudo ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf
$ sudo /etc/init.d/apache2 force-reload
Afterwards i created a monitor through ZM's web interface like this(settings taken from the vivotek 7131 as it seams edimax's cameras are rebranded vivoteks):
Remote Protocol RTSP
Remote Method RTP/RTSP
Remote Host Name 192.168.20.13
Remote Host Port 554
Remote Host Path /ipcam.sdp
Remote Image Colours 24bit
Capture Width (pixels) 640
Capture Height (pixels) 480
Changed STREAM_METHOD on the "Images"- Tab in the options from jpeg to mpeg and made sure MPEG_LIVE_FORMAT is set to swf.
After restarting ZM I tried to access the camera on ZM's web interface from several different browsers(Firefox, IE, Chrome) but couldn't get a picture on any of them.
Having a look at the tmp folder and the corresponding zm log files didn't get me any further as I am not sure at which I start looking for.
I believe xubuntu is missing the proper codecs to create the image(even if ffmpeg is installed)
zmaudit
empty
zmdc
Code: Select all
09/06/2011 12:09:34.734251 zmdc[7191].INF [Server starting at 11/09/06 12:09:34]
09/06/2011 12:09:37.907393 zmdc[7191].INF ['zmfilter.pl' starting at 11/09/06 1$
09/06/2011 12:09:38.060935 zmdc[7191].INF ['zmaudit.pl -c' starting at 11/09/06$
09/06/2011 12:09:38.284165 zmdc[7191].INF ['zmwatch.pl' starting at 11/09/06 12$
09/06/2011 12:14:25.928011 zmdc[7191].WAR [Can't find process with command of '$
09/06/2011 12:14:25.950578 zmdc[7191].INF ['zmc -m 1' starting at 11/09/06 12:1$
09/06/2011 12:14:26.020534 zmdc[7191].ERR ['zmc -m 1' exited abnormally, exit s$
09/06/2011 12:14:26.021770 zmdc[7191].INF [Starting pending process, zmc -m 1]
09/06/2011 12:14:26.026387 zmdc[7191].INF ['zmc -m 1' starting at 11/09/06 12:1$
09/06/2011 12:14:26.116373 zmdc[7191].ERR ['zmc -m 1' exited abnormally, exit s$
09/06/2011 12:14:26.167975 zmdc[7191].WAR [Can't find process with command of '$
09/06/2011 12:14:31.054096 zmdc[7191].INF [Starting pending process, zmc -m 1]
09/06/2011 12:14:31.055767 zmdc[7191].INF ['zmc -m 1' starting at 11/09/06 12:1$
09/06/2011 12:14:31.344283 zmdc[7191].ERR ['zmc -m 1' exited abnormally, exit s$
09/06/2011 12:14:41.080456 zmdc[7191].INF [Starting pending process, zmc -m 1]
09/06/2011 12:14:41.082520 zmdc[7191].INF ['zmc -m 1' starting at 11/09/06 12:1$
09/06/2011 12:14:41.123948 zmdc[7191].ERR ['zmc -m 1' exited abnormally, exit s$
09/06/2011 12:15:01.077543 zmdc[7191].INF [Starting pending process, zmc -m 1]
09/06/2011 12:15:01.079983 zmdc[7191].INF ['zmc -m 1' starting at 11/09/06 12:1$
09/06/2011 12:15:01.122356 zmdc[7191].ERR ['zmc -m 1' exited abnormally, exit s$
09/06/2011 12:15:32.625303 zmdc[7191].INF ['zmwatch.pl ' stopping at 11/09/06 1$
09/06/2011 12:15:32.625363 zmdc[7191].INF ['zmwatch.pl ' exited, signal 14]
09/06/2011 12:15:32.625366 zmdc[7191].INF ['zmaudit.pl -c' stopping at 11/09/06$
09/06/2011 12:15:32.625374 zmdc[7191].INF ['zmaudit.pl -c' exited, signal 14]
09/06/2011 12:15:32.625374 zmdc[7191].INF ['zmfilter.pl ' stopping at 11/09/06 $
09/06/2011 12:15:32.632487 zmdc[7191].INF ['zmfilter.pl ' exited, signal 14]
09/06/2011 12:15:42.813233 zmdc[7191].INF [Server shutdown at 11/09/06 12:15:42]
09/06/11 12:15:42.981041 zmdc[7776].INF [Server starting at 11/09/06 12:15:42]
09/06/11 12:15:45.996266 zmdc[7776].INF ['zmc -m 1' starting at 11/09/06 12:15:$
09/06/11 12:15:46.030401 zmdc[7776].ERR ['zmc -m 1' exited abnormally, exit sta$
09/06/11 12:15:46.032907 zmdc[7776].INF [Starting pending process, zmc -m 1]
09/06/11 12:15:46.037830 zmdc[7776].INF ['zmc -m 1' starting at 11/09/06 12:15:$
09/06/11 12:15:46.134480 zmdc[7776].ERR ['zmc -m 1' exited abnormally, exit sta$
09/06/11 12:15:46.161794 zmdc[7776].INF ['zmfilter.pl' starting at 11/09/06 12:$
09/06/11 12:15:46.346129 zmdc[7776].INF ['zmaudit.pl -c' starting at 11/09/06 1$
09/06/11 12:15:46.681075 zmdc[7776].INF ['zmwatch.pl' starting at 11/09/06 12:1$
09/06/11 12:15:51.032307 zmdc[7776].INF [Starting pending process, zmc -m 1]
09/06/11 12:15:51.034663 zmdc[7776].INF ['zmc -m 1' starting at 11/09/06 12:15:$
09/06/11 12:15:51.093069 zmdc[7776].ERR ['zmc -m 1' exited abnormally, exit sta$
09/06/11 12:16:01.043246 zmdc[7776].INF [Starting pending process, zmc -m 1]
09/06/11 12:16:01.045505 zmdc[7776].INF ['zmc -m 1' starting at 11/09/06 12:16:$
09/06/11 12:16:01.084026 zmdc[7776].ERR ['zmc -m 1' exited abnormally, exit sta$
09/06/11 12:16:21.053066 zmdc[7776].INF [Starting pending process, zmc -m 1]
09/06/11 12:16:21.055566 zmdc[7776].INF ['zmc -m 1' starting at 11/09/06 12:16:$
09/06/11 12:16:21.097652 zmdc[7776].ERR ['zmc -m 1' exited abnormally, exit sta$
09/06/11 12:17:01.007875 zmdc[7776].INF [Starting pending process, zmc -m 1]
09/06/11 12:17:01.010114 zmdc[7776].INF ['zmc -m 1' starting at 11/09/06 12:17:$
09/06/11 12:17:01.050513 zmdc[7776].ERR ['zmc -m 1' exited abnormally, exit sta$
09/06/11 12:18:21.041845 zmdc[7776].INF [Starting pending process, zmc -m 1]
09/06/11 12:18:21.043934 zmdc[7776].INF ['zmc -m 1' starting at 11/09/06 12:18:$
09/06/11 12:18:21.090846 zmdc[7776].ERR ['zmc -m 1' exited abnormally, exit sta$
09/06/11 12:21:01.091103 zmdc[7776].INF [Starting pending process, zmc -m 1]
09/06/11 12:21:01.093322 zmdc[7776].INF ['zmc -m 1' starting at 11/09/06 12:21:$
09/06/11 12:21:01.134062 zmdc[7776].ERR ['zmc -m 1' exited abnormally, exit sta$
09/06/11 12:26:21.049407 zmdc[7776].INF [Starting pending process, zmc -m 1]
09/06/11 12:26:21.052430 zmdc[7776].INF ['zmc -m 1' starting at 11/09/06 12:26:$
09/06/11 12:26:21.094406 zmdc[7776].ERR ['zmc -m 1' exited abnormally, exit sta$
09/06/11 12:36:21.067510 zmdc[7776].INF [Starting pending process, zmc -m 1]
09/06/11 12:36:21.070171 zmdc[7776].INF ['zmc -m 1' starting at 11/09/06 12:36:$
09/06/11 12:36:21.137864 zmdc[7776].ERR ['zmc -m 1' exited abnormally, exit sta$
09/06/11 12:46:21.033665 zmdc[7776].INF [Starting pending process, zmc -m 1]
09/06/11 12:46:21.036184 zmdc[7776].INF ['zmc -m 1' starting at 11/09/06 12:46:$
09/06/11 12:46:21.092842 zmdc[7776].ERR ['zmc -m 1' exited abnormally, exit sta$
09/06/11 12:56:21.058557 zmdc[7776].INF [Starting pending process, zmc -m 1]
09/06/11 12:56:21.061190 zmdc[7776].INF ['zmc -m 1' starting at 11/09/06 12:56:$
09/06/11 12:56:21.102153 zmdc[7776].ERR ['zmc -m 1' exited abnormally, exit sta$
09/06/11 13:06:21.040856 zmdc[7776].INF [Starting pending process, zmc -m 1]
Code: Select all
09/06/2011 12:09:38.320442 zmfilter[7213].INF [Scanning for events]
09/06/11 12:15:46.661884 zmfilter[7803].INF [Scanning for events]
Code: Select all
09/06/2011 12:09:34.361504 zmpkg[7181].INF [Command: start]
09/06/11 12:15:32.464372 zmpkg[7743].INF [Command: restart]
Code: Select all
9/06/2011 12:09:38.459005 zmwatch[7218].INF [Watchdog starting]
09/06/2011 12:09:38.459703 zmwatch[7218].INF [Watchdog pausing for 30 seconds]
09/06/2011 12:14:28.509187 zmwatch[7218].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
09/06/2011 12:14:38.511523 zmwatch[7218].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
09/06/2011 12:14:48.512497 zmwatch[7218].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
09/06/2011 12:14:58.513426 zmwatch[7218].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
09/06/2011 12:15:08.515422 zmwatch[7218].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
09/06/2011 12:15:18.517846 zmwatch[7218].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
09/06/2011 12:15:28.520664 zmwatch[7218].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
09/06/11 12:15:46.907037 zmwatch[7807].INF [Watchdog starting]
09/06/11 12:15:46.908280 zmwatch[7807].INF [Watchdog pausing for 30 seconds]
09/06/11 12:16:16.911822 zmwatch[7807].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
09/06/11 12:16:26.914820 zmwatch[7807].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
Greets, Janis
EDIT:
Found the advanced debugging checkbox in the options!
Now I get usable error messages that are telling me that it might not have enough shared memory which is quite a common problem as it seems...
I'll try to fix it myself with the infos given in the FAQ, first!
EDIT #2
After lowering the resolution on camera and in ZM to 320x240 and restarting the ZM shared memory errors are gone.
zmdc.log now gives me this
Code: Select all
09/06/11 16:07:23.123574 zmdc[1385].INF [Server starting at 11/09/06 16:07:23]
09/06/11 16:07:26.363195 zmdc[1385].INF ['zmc -m 1' starting at 11/09/06 16:07:2$
09/06/11 16:07:26.484760 zmdc[1385].INF ['zmfilter.pl' starting at 11/09/06 16:0$
09/06/11 16:07:26.713936 zmdc[1385].INF ['zmaudit.pl -c' starting at 11/09/06 16$
09/06/11 16:07:26.911716 zmdc[1385].INF ['zmwatch.pl' starting at 11/09/06 16:07$
09/06/11 16:07:30.706239 zmdc[1385].ERR ['zmc -m 1' exited abnormally, exit stat$
09/06/11 16:07:30.706851 zmdc[1385].INF [Starting pending process, zmc -m 1]
09/06/11 16:07:30.708681 zmdc[1385].INF ['zmc -m 1' starting at 11/09/06 16:07:3$
09/06/11 16:07:34.875693 zmdc[1385].ERR ['zmc -m 1' exited abnormally, exit stat$
09/06/11 16:07:39.002818 zmdc[1385].INF [Starting pending process, zmc -m 1]
09/06/11 16:07:39.004783 zmdc[1385].INF ['zmc -m 1' starting at 11/09/06 16:07:3$
Code: Select all
09/06/11 16:07:30.741535 zmc_m1[1426].INF-zm_debug.c/292 [New Debug Level = 0, N$
09/06/11 16:07:30.753130 zmc_m1[1426].INF-zmc.cpp/188 [Starting Capture]
09/06/11 16:07:34.273860 zmc_m1[1427].ERR-zm_rtsp.cpp/562 [RTSP timed out]
09/06/11 16:07:34.870990 zmc_m1[1426].ERR-zmc.cpp/260 [Failed to capture image f$
Code: Select all
09/06/11 16:12:11.938171 zms[1465].INF-zm_debug.c/292 [New Debug Level = 0, New $
09/06/11 16:12:12.461043 zms[1465].ERR-zm_monitor.cpp/3579 [Terminating, last fr$
Now after changing values for shmall and shmmax there is only one error left
Code: Select all
09/06/11 17:06:02.486278 zms[1513].INF-zm_debug.c/292 [New Debug Level = 0, New Debug Log = /tmp/zm_debug.log.01513]
09/06/11 17:06:03.000520 zms[1513].ERR-zm_monitor.cpp/3579 [Terminating, last frame sent time 1315321562.499771 secs more than maximum of 10.000000]