LinHES Forums
http://forum.linhes.org/

zoneminder on R6?
http://forum.linhes.org/viewtopic.php?f=14&t=20145
Page 1 of 2

Author:  bobmyth [ Sun Jul 12, 2009 9:47 pm ]
Post subject:  zoneminder on R6?

It appears R6 includes lighthttpd instead of apache2. I've searched the zoneminder forums, wiki, and did a general search and didn't find any documents about how to set-up zoneminder using lighthttpd. Pointers?

Author:  graysky [ Mon Jul 13, 2009 1:51 pm ]
Post subject: 

Sorry to hijack your thread, can you briefly describe your zoneminder hardware and setup? I have been toying w/ the idea of getting some cams for backyard security but haven't taking this beyond the idea phase :)

Author:  bobmyth [ Tue Jul 21, 2009 9:59 pm ]
Post subject: 

NOTE: This was written before zoneminder could be install from the service menu. Try installing from the service menu before attempting any of these commands.

Install the package:
Code:
pacman -S zoneminder

Edit zoneminder settings file and change:
Quote:
ZM_WEB_USER=http
ZM_WEB_GROUP=http

Code:
sudoedit /etc/zm.conf

Add http to the video group
Code:
vigr
vigr -s

Append "/etc" and "/usr/bin" to open_basedir in /etc/php/php.ini to allow zoneminder to read /etc/zm.conf and run pnm2png
Code:
sudoedit /etc/php/php.ini

Append these two lines:
Quote:
kernel.shmall = 134217728
kernel.shmmax = 134217728

to /etc/sysctl.conf
Code:
sudoedit /etc/sysctl.conf

and run sysctl to make the settings take effect
Code:
sudo /sbin/sysctl -p /etc/sysctl.conf

edit /etc/lighttpd/lighttpd.conf
Code:
sudo /etc/lighttpd/lighttpd.conf

and uncomment mod_alias and then append the following lines:
Quote:
alias.url = (
"/zm" => "/home/httpd/html/zm"
"/cgi-bin" => "/home/httpd/cgi-bin"
)

$HTTP["url"] =~ "^/cgi-bin" {
cgi.assign = ( "" => "" )
}

restart lighttpd
Code:
sudo killall lighttpd


Fix log permissions
Code:
sudo chown -R http:http /var/log/zm


Fix data directory permissions
Code:
sudo chown -R http:http /var/lib/zm


Fix permissions for images, events, sounds, etc
Code:
sudo chown http:http -R /home/httpd/html/zm


Configure logrotate to notify zoneminder when log files have been rotated:
Code:
sudoedit /etc/logrotate.d/zm


and add
Quote:
postrotate
/usr/lib/zm/bin/zmpkg.pl logrot
endscript

below in the /var/log/zm/*log section

Use you favorite web browser to configure zoneminder.

EDIT: fix perms on /home/httpd/html/zm && add /usr/bin to php.ini
EDIT: add http to video group
EDIT: logrotate stuff

Author:  bobmyth [ Wed Jul 29, 2009 7:14 pm ]
Post subject: 

The zoneminder package was updated in the last few days to 1.23.3-6 and now it appears to be broken:
Code:
/usr/lib/zm/bin/zmfix
/usr/lib/zm/bin/zmfix: error while loading shared libraries: libfaad.so.1: cannot open shared object file: No such file or directory


A search for faad shows faad2 which does not resolve the need for libfaad.so.1. Any suggestions?

Author:  azrambler [ Tue Aug 11, 2009 2:16 am ]
Post subject: 

bobmyth wrote:
The zoneminder package was updated in the last few days to 1.23.3-6 and now it appears to be broken:
Code:
/usr/lib/zm/bin/zmfix
/usr/lib/zm/bin/zmfix: error while loading shared libraries: libfaad.so.1: cannot open shared object file: No such file or directory


A search for faad shows faad2 which does not resolve the need for libfaad.so.1. Any suggestions?


It is still broken. I just did a full system upgrade tonight. I got the same errors after the upgrade. I had to roll zoneminder back to the previous package 1.23.3-5. It worked fine after that.

Author:  nharris [ Wed Aug 12, 2009 9:46 am ]
Post subject: 

Is the problem with zoneminder or mythzoneminder? The myth plugin was recently recompiled. So, you might want to update:

pacman -Sy mythzoneminder

Author:  azrambler [ Wed Aug 12, 2009 11:10 am ]
Post subject: 

nharris wrote:
Is the problem with zoneminder or mythzoneminder? The myth plugin was recently recompiled. So, you might want to update:

pacman -Sy mythzoneminder


I am not an expert on this but from what I can tell it looks like the zoneminder-1.23.3-6 package was compiled with either a wrong or missing library. I am running Mythzoneminder and it is working ok. I looked and the package I am running it is mythzoneminder (0.21-3)

Author:  azrambler [ Wed Aug 12, 2009 11:33 am ]
Post subject: 

azrambler wrote:
nharris wrote:
Is the problem with zoneminder or mythzoneminder? The myth plugin was recently recompiled. So, you might want to update:

pacman -Sy mythzoneminder


I am not an expert on this but from what I can tell it looks like the zoneminder-1.23.3-6 package was compiled with either a wrong or missing library. I am running Mythzoneminder and it is working ok. I looked and the package I am running and it is mythzoneminder (0.21-3)


FYI,
Just to make sure I did an upgrade to mythzoneminder only and it installed a newer version. mythzoneminder-0.21-4. I am having no problems with this version of mythzoneminder.

Author:  nharris [ Wed Aug 12, 2009 1:20 pm ]
Post subject: 

Try a "pacman -Syu" and let me know if your problems go away.

Author:  azrambler [ Thu Aug 13, 2009 2:59 am ]
Post subject: 

nharris wrote:
Try a "pacman -Syu" and let me know if your problems go away.


I ran pacman and I downloaded the new update.
Quote:
[2009-08-13 01:20] upgraded zoneminder (1.23.3-5 -> 1.23.3-7)


I am now getting the following error:
Quote:
08/13/09 01:23:06.550185 zmpkg[4283].INF [Command: start]
08/13/09 01:23:06.650661 zmpkg[4283].ERR [Unable to run "/usr/lib/zm/bin/zmfix", output is ""]


A listing on zmfix
Quote:
[root@mythtv bin]# ll /usr/lib/zm/bin/zmfix
-rwsr-xr-x 1 root root 39436 2009-08-12 12:13 /usr/lib/zm/bin/zmfix


I don't know where to go from here. It's getting too late tonight... I'll have to try more tomorrow.

Author:  azrambler [ Fri Aug 14, 2009 12:16 am ]
Post subject: 

azrambler wrote:
nharris wrote:
Try a "pacman -Syu" and let me know if your problems go away.


I ran pacman and I downloaded the new update.
Quote:
[2009-08-13 01:20] upgraded zoneminder (1.23.3-5 -> 1.23.3-7)


I am now getting the following error:
Quote:
08/13/09 01:23:06.550185 zmpkg[4283].INF [Command: start]
08/13/09 01:23:06.650661 zmpkg[4283].ERR [Unable to run "/usr/lib/zm/bin/zmfix", output is ""]


A listing on zmfix
Quote:
[root@mythtv bin]# ll /usr/lib/zm/bin/zmfix
-rwsr-xr-x 1 root root 39436 2009-08-12 12:13 /usr/lib/zm/bin/zmfix


I don't know where to go from here. It's getting too late tonight... I'll have to try more tomorrow.


Ok, I get the same error that Bobmyth got if I try to run the command manually /usr/lib/zm/bin/zmfix

In the log file
Quote:
/var/log/zm/zmpkg.log

I get the following error:
Quote:
08/13/09 23:01:16.550905 zmpkg[3577].ERR [Unable to run "/usr/lib/zm/bin/zmfix", output is ""]


I run the command manually I get:

Code:
/usr/lib/zm/bin/zmfix

The output is:
Quote:
/usr/lib/zm/bin/zmfix: error while loading shared libraries: libfaad.so.1: cannot open shared object file: No such file or directory


I don't know where to go from here. I just followed Bobmyths writeup to get it going.

I rolled it back to zoneminder-1.23.3-5 Since I am leaving out of town and I want the system up and running.

Author:  cecil [ Fri Aug 14, 2009 12:40 am ]
Post subject: 

Code:
sudo pacman -Sy zoneminder

Author:  azrambler [ Fri Aug 14, 2009 2:55 am ]
Post subject: 

cecil wrote:
Code:
sudo pacman -Sy zoneminder


That did the Trick. Thank You!

On the first run I got the following results and told it to delete it.
Quote:
:: File zoneminder-1.23.3-7-i686.pkg.tar.gz is corrupted. Do you want to delete it? [Y/n] y
error: failed to commit transaction (invalid or corrupted package)
zoneminder-1.23.3-7-i686.pkg.tar.gz is invalid or corrupted
Errors occurred, no packages were upgraded.


I ran it again and it installed with no complaints.
I am in the Zone again....

Author:  cecil [ Sat Aug 15, 2009 10:52 pm ]
Post subject: 

:D

Author:  azrambler [ Mon Oct 19, 2009 4:26 pm ]
Post subject: 

One of the new package updates broke my zoneminder a while back and I finally got the time to get it going again.

I wanted to start from scratch since I think I had something lying around from a previous install that was messing things up.

Code:
pacman -Rs mythzoneminder
pacman -Rs zoneminder


I did a full install:
Code:
pacman -Syf zoneminder
pacman -Syf mythzoneminder


I ran the data base init commands and had it start new and wipe out the old.
Code:
/usr/lib/zm/bin/zminit


Everything looked great! I didn't have to fiddle with anything. The webserver was all setup and I had to do nothing to get that going. I configured it for a camera and then started zoneminder. It ran as if it were happy but I was not getting any camera data. I looked in the logs and something is going wrong.
Quote:
Oct 19 15:17:44 mythtv zmpkg[5044]: INF [Command: start]
Oct 19 15:17:44 mythtv zmdc[5058]: INF [Server starting at 09/10/19 15:17:44]
Oct 19 15:17:47 mythtv zmdc[5081]: INF ['zmc -d /dev/video0' started at 09/10/19 15:17:47]
Oct 19 15:17:47 mythtv zmdc[5058]: INF ['zmc -d /dev/video0' starting at 09/10/19 15:17:47, pid = 5081]
Oct 19 15:17:47 mythtv zmdc[5058]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 127]
Oct 19 15:17:47 mythtv zmdc[5058]: INF [Starting pending process, zmc -d /dev/video0]
Oct 19 15:17:47 mythtv zmdc[5082]: INF ['zmc -d /dev/video0' started at 09/10/19 15:17:47]
Oct 19 15:17:47 mythtv zmdc[5058]: INF [Can't find child with pid of '5082']
Oct 19 15:17:47 mythtv zmdc[5058]: INF ['zmc -d /dev/video0' starting at 09/10/19 15:17:47, pid = 5082]
Oct 19 15:17:47 mythtv zmdc[5085]: INF ['zmfilter.pl' started at 09/10/19 15:17:47]
Oct 19 15:17:47 mythtv zmdc[5058]: INF ['zmfilter.pl' starting at 09/10/19 15:17:47, pid = 5085]
Oct 19 15:17:47 mythtv zmdc[5089]: INF ['zmaudit.pl -c' started at 09/10/19 15:17:47]
Oct 19 15:17:47 mythtv zmdc[5058]: INF ['zmaudit.pl -c' starting at 09/10/19 15:17:47, pid = 5089]
Oct 19 15:17:47 mythtv zmdc[5058]: INF ['zmwatch.pl' starting at 09/10/19 15:17:47, pid = 5093]
Oct 19 15:17:47 mythtv zmdc[5093]: INF ['zmwatch.pl' started at 09/10/19 15:17:47]
Oct 19 15:17:48 mythtv zmfilter[5085]: INF [Scanning for events]
Oct 19 15:17:48 mythtv zmwatch[5093]: INF [Watchdog starting]
Oct 19 15:17:48 mythtv zmwatch[5093]: INF [Watchdog pausing for 30 seconds]
Oct 19 15:17:48 mythtv zmdc[5058]: INF ['zmupdate.pl -c' starting at 09/10/19 15:17:48, pid = 5099]
Oct 19 15:17:48 mythtv zmdc[5099]: INF ['zmupdate.pl -c' started at 09/10/19 15:17:48]
Oct 19 15:18:18 mythtv zmwatch[5093]: ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
Oct 19 15:18:18 mythtv zmwatch[5093]: INF [Restarting capture daemon for Cam_1, shared memory not valid]
Oct 19 15:18:18 mythtv zmdc[5058]: INF ['zmc -d /dev/video0' stopping at 09/10/19 15:18:18]
Oct 19 15:18:18 mythtv zmwatch[5093]: INF ['zmc -d /dev/video0' stopping at 09/10/19 15:18:18]
Oct 19 15:18:28 mythtv zmwatch[5093]: ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
Oct 19 15:18:28 mythtv zmwatch[5093]: INF [Restarting capture daemon for Cam_1, shared memory not valid]
Oct 19 15:18:28 mythtv zmdc[5115]: INF ['zmc -d /dev/video0' started at 09/10/19 15:18:28]
Oct 19 15:18:28 mythtv zmdc[5058]: INF ['zmc -d /dev/video0' starting at 09/10/19 15:18:28, pid = 5115]
Oct 19 15:18:28 mythtv zmdc[5058]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 127]
Oct 19 15:18:28 mythtv zmwatch[5093]: INF ['zmc -d /dev/video0' starting at 09/10/19 15:18:28, pid = 5115]
Oct 19 15:18:28 mythtv zmdc[5058]: INF [Starting pending process, zmc -d /dev/video0]
Oct 19 15:18:28 mythtv zmdc[5116]: INF ['zmc -d /dev/video0' started at 09/10/19 15:18:28]
Oct 19 15:18:28 mythtv zmdc[5058]: INF [Can't find child with pid of '5116']
Oct 19 15:18:28 mythtv zmdc[5058]: INF ['zmc -d /dev/video0' starting at 09/10/19 15:18:28, pid = 5116]


I tried clearing the database again through zminit an I also cleared it manually. through mysql.

I am at a loss and don't know where to go from here. Any help would be much appreciated.

Page 1 of 2 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/