no images in zone editor (reinstall. under UBUNTU14.04)

Forum for questions and support relating to the 1.27.x releases only.
Locked
mariuszz
Posts: 2
Joined: Sun May 18, 2014 5:10 pm

no images in zone editor (reinstall. under UBUNTU14.04)

Post by mariuszz »

Hello everybody, it is my first post.
I have UBUNTU 14.04LTE desktop with working LAMP and SAMBA server.
The "Add new monitor" button was not working after the first installation of zoneminder (using apt-get install zoneminder).
After that I try manuall installation of ZoneMinder 1.27 using sources from zoneminder webpage.

In this moment I have 2 monitors:
1) the first IP camera is connected using "ffmpeg" from RTSP (1024x720) and
2) the second one is connected using "remote" from RSP/RTSP (1280x1024).
The grabbed images are displayed in the montage view with 1.5 and 15 fps respectively.

Problems:
A) The images are not displayed in the zone view, therefore I cannot see image durning the zone editing :(
B) /usr/bin/zmpkg.pl return 255 from /etc/init.d/zoneminder start
C) I have following info. in the log file:
'zma -m 1' exited abnormally, exit status 255 -> from zmdc.pl
Can't symlink '1' to 'IPCAM1': Permission denied ->from zma_m1=> line 554 in /usr/local/src/ZoneMinder-1.27.0/src/zm_monitor.cpp
Can't make events/1: Permission denied ->from zma_m1=> line 547 in /usr/local/src/ZoneMinder-1.27.0/src/zm_monitor.cpp
Can't open memory map file /dev/shm/zm.mmap.1, probably not enough space free: Permission denied zm_monitor.cpp 386
and
the similar logs for the 2-nd monitor

REMARK: "/usr/local/src/ZoneMinder-1.27.0/src/zm_monitor.cpp" is in the correct configuration.

The configuration of zoneminder 1.27 (from sources) is based on the previous installation 1.2? (from apt-get),
therefore the following symbolic links are made manually (chmod 755, owner and group www-data):
/usr/local/src/ZoneMinder-1.27.0/web/events -> /var/cache/zoneminder/events
/usr/local/src/ZoneMinder-1.27.0/web/images -> /var/cache/zoneminder/images
/usr/local/src/ZoneMinder-1.27.0/web/temp -> /var/cache/zoneminder/events
/usr/local/src/ZoneMinder-1.27.0/web/cgi-bin -> /usr/lib/cgi-bin (not required, allias ia apache2 config.)

Could you help to solve problem A?
DELETED [PARTIAL SOLUTION is also included in my last post]
Last edited by mariuszz on Thu May 22, 2014 9:26 am, edited 1 time in total.
CKrypto
Posts: 12
Joined: Mon Feb 18, 2013 8:57 pm

Re: no images in zone editor (reinstall. under UBUNTU14.04)

Post by CKrypto »

I had the same problem.

You can have the events and images directory anywhere you like as long as they are sim linked to the root of the zoneminder www directory. For example, I have a separate disk on which I want to keep my zoneminder data... /storage/zoneminder/events, /storage/zoneminder/images. My default zoneminder www directory is /usr/local/share/zoneminder/www. I just sim link the directories:

Code: Select all

ln -s /storage/zoneminder/events /usr/local/share/zoneminder/www
ln -s /storage/zoneminder/images /usr/local/share/zoneminder/www
Just make sure that under 'Options' -> 'Paths' that the values for DIR_EVENTS and DIR_IMAGES is 'events' and 'images' respectively and not the full path. Otherwise, it will try to access that path and most likely not have permission to do so(unless specified in the httpd conf file).

Hope that helps.
mariuszz
Posts: 2
Joined: Sun May 18, 2014 5:10 pm

Re: no images in zone editor (reinstall. under UBUNTU14.04)

Post by mariuszz »

Thank You for help.

I find a loto of problems associated with reinstallation from sources after apt-get installation.
Therefore the best solution is to clear and purge previous installation.

I think that this part of post will help somebody:
The temporary files are in /var/lib/zoneminder (not in /var/cache/zoneminder), therefore:
mkdir /var/lib/zoneminder/events/1
mkdir /var/lib/zoneminder/events/2 <- and others monitors
mkdir /var/lib/zoneminder/events/<1-st monitor name>
mkdir /var/lib/zoneminder/events/<2-nd monitor name> <- and others monitors
chown -R www-data:video /var/lib/zoneminder
chmod -R g+rwx /var/lib/zoneminder
cd /usr/lib/cgi-bin
ln -s /var/lib/zoneminder/events

In /usb/bin are the executables files from old installation and the new one in /usb/local/bin, therefore
cd /usr/local/src/ZoneMinder-1.27.0/src
make
make install
cd /usr/bin
rm zm*
ln -s /usr/local/bin
The next problem was with old service script, therefore
cp /usr/local/src/ZoneMinder-1.27.0/zm /etc/init.d/zoneminder
vi /etc/init.d/zoneminder <-add sleep 15 at the start function

My interpretation of event zones has been also wrong. I have been set "innactive" for "All" zone and several "active" small zones. It is equivalent to inactives all zones.
Locked