View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 27 posts ] 
Go to page 1, 2  Next

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: zoneminder on R6?
PostPosted: Sun Jul 12, 2009 9:47 pm 
Offline
Joined: Wed Jan 18, 2006 8:36 pm
Posts: 199
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?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 13, 2009 1:51 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
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 :)

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 21, 2009 9:59 pm 
Offline
Joined: Wed Jan 18, 2006 8:36 pm
Posts: 199
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


Last edited by bobmyth on Tue Dec 15, 2009 9:01 pm, edited 3 times in total.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 29, 2009 7:14 pm 
Offline
Joined: Wed Jan 18, 2006 8:36 pm
Posts: 199
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?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 11, 2009 2:16 am 
Offline
Joined: Wed Feb 07, 2007 11:28 pm
Posts: 19
Location: Phx, AZ
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.

_________________
R6.01.00
ASUS M3A78
AMD Athlon 64 X2 7750 Kuma 2.7GHz
2GB DDR2 1066
2 Seagate's (.75 & 1.5) 2.25Tb
GIGABYTE GV-NX84S512HP 8400GS 512MB
PVR-150,PVR-250, 2X HVR-1250
Silverstone GD01B-MXR with Imon


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 12, 2009 9:46 am 
Offline
Joined: Thu Sep 07, 2006 11:20 am
Posts: 389
Is the problem with zoneminder or mythzoneminder? The myth plugin was recently recompiled. So, you might want to update:

pacman -Sy mythzoneminder


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 12, 2009 11:10 am 
Offline
Joined: Wed Feb 07, 2007 11:28 pm
Posts: 19
Location: Phx, AZ
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)

_________________
R6.01.00
ASUS M3A78
AMD Athlon 64 X2 7750 Kuma 2.7GHz
2GB DDR2 1066
2 Seagate's (.75 & 1.5) 2.25Tb
GIGABYTE GV-NX84S512HP 8400GS 512MB
PVR-150,PVR-250, 2X HVR-1250
Silverstone GD01B-MXR with Imon


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 12, 2009 11:33 am 
Offline
Joined: Wed Feb 07, 2007 11:28 pm
Posts: 19
Location: Phx, AZ
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.

_________________
R6.01.00
ASUS M3A78
AMD Athlon 64 X2 7750 Kuma 2.7GHz
2GB DDR2 1066
2 Seagate's (.75 & 1.5) 2.25Tb
GIGABYTE GV-NX84S512HP 8400GS 512MB
PVR-150,PVR-250, 2X HVR-1250
Silverstone GD01B-MXR with Imon


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 12, 2009 1:20 pm 
Offline
Joined: Thu Sep 07, 2006 11:20 am
Posts: 389
Try a "pacman -Syu" and let me know if your problems go away.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 13, 2009 2:59 am 
Offline
Joined: Wed Feb 07, 2007 11:28 pm
Posts: 19
Location: Phx, AZ
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.

_________________
R6.01.00
ASUS M3A78
AMD Athlon 64 X2 7750 Kuma 2.7GHz
2GB DDR2 1066
2 Seagate's (.75 & 1.5) 2.25Tb
GIGABYTE GV-NX84S512HP 8400GS 512MB
PVR-150,PVR-250, 2X HVR-1250
Silverstone GD01B-MXR with Imon


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 14, 2009 12:16 am 
Offline
Joined: Wed Feb 07, 2007 11:28 pm
Posts: 19
Location: Phx, AZ
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.

_________________
R6.01.00
ASUS M3A78
AMD Athlon 64 X2 7750 Kuma 2.7GHz
2GB DDR2 1066
2 Seagate's (.75 & 1.5) 2.25Tb
GIGABYTE GV-NX84S512HP 8400GS 512MB
PVR-150,PVR-250, 2X HVR-1250
Silverstone GD01B-MXR with Imon


Last edited by azrambler on Fri Aug 14, 2009 2:12 am, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 14, 2009 12:40 am 
Offline
Site Admin
Joined: Fri Sep 19, 2003 6:37 pm
Posts: 2659
Location: Whittier, Ca
Code:
sudo pacman -Sy zoneminder


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 14, 2009 2:55 am 
Offline
Joined: Wed Feb 07, 2007 11:28 pm
Posts: 19
Location: Phx, AZ
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....

_________________
R6.01.00
ASUS M3A78
AMD Athlon 64 X2 7750 Kuma 2.7GHz
2GB DDR2 1066
2 Seagate's (.75 & 1.5) 2.25Tb
GIGABYTE GV-NX84S512HP 8400GS 512MB
PVR-150,PVR-250, 2X HVR-1250
Silverstone GD01B-MXR with Imon


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 15, 2009 10:52 pm 
Offline
Site Admin
Joined: Fri Sep 19, 2003 6:37 pm
Posts: 2659
Location: Whittier, Ca
:D


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 19, 2009 4:26 pm 
Offline
Joined: Wed Feb 07, 2007 11:28 pm
Posts: 19
Location: Phx, AZ
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.

_________________
R6.01.00
ASUS M3A78
AMD Athlon 64 X2 7750 Kuma 2.7GHz
2GB DDR2 1066
2 Seagate's (.75 & 1.5) 2.25Tb
GIGABYTE GV-NX84S512HP 8400GS 512MB
PVR-150,PVR-250, 2X HVR-1250
Silverstone GD01B-MXR with Imon


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 27 posts ] 
Go to page 1, 2  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 28 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu