Hi Everyone,
I've got a new install of ZoneMinder. Apache serves up the initial php scripts normally and the console appears normal. My capture card usually appears intermittently green if I switch the device number between 0 and 1. When the capture card is green and the the system is in monitor/record mode, I can see stills refreshed about every 5 sec as per setup config. Selecting streaming gives me the broken picture symbol.
Examination of various logs reveals that I am badly broken. I'm over my head and would sure appreciate wiser heads taking a look. This app appears to have everything I need and I would love to see it work. Below are some of my logs:
zmwatch.log:
Can't execute: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) at /usr/local/bin/zmwatch.pl line 106.
Watchdog starting at 04/03/12 15:45:43
Watchdog pausing for 30 seconds
Watchdog starting at 04/03/12 15:52:00
Watchdog pausing for 30 seconds
zmpkg.log
Command: start
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmdc.pl check'
Removing shared memory
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmfix'
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmdc.pl status'
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmdc.pl start zmc -d 0'
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmdc.pl start zma -m 1'
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmdc.pl start zmfilter.pl -e -1'
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmdc.pl start zmaudit.pl -d 900 -y'
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmdc.pl start zmwatch.pl'
Executing: su apache --shell=/bin/sh --command='/usr/local/bin/zmdc.pl start zmupdate.pl -c'
zmdc.log
Server starting at 04/03/12 16:33:15
'zmc -d 0' starting at 04/03/12 16:33:18, pid = 2866
'zmc -d 0' started at 04/03/12 16:33:18
'zmc -d 0' crashed at 04/03/12 16:33:19, exit status 255
'zmc -d 0' starting at 04/03/12 16:33:19, pid = 2877
'zmc -d 0' started at 04/03/12 16:33:19
'zmc -d 0' crashed at 04/03/12 16:33:19, exit status 255
'zma -m 1' started at 04/03/12 16:33:19
'zma -m 1' starting at 04/03/12 16:33:19, pid = 2882
'zma -m 1' crashed at 04/03/12 16:33:19, exit status 255
'zma -m 1' starting at 04/03/12 16:33:19, pid = 2887
'zma -m 1' started at 04/03/12 16:33:19
'zma -m 1' crashed at 04/03/12 16:33:19, exit status 255
'zmfilter.pl -e -1' starting at 04/03/12 16:33:19, pid = 2918
'zmfilter.pl -e -1' started at 04/03/12 16:33:19
Can't locate MIME/Entity.pm in @INC (@INC contains: /usr/lib/perl5/5.8.1/i386-linux-thread-multi /usr/lib/perl5/5.8.1 /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl) at /usr/local/bin/zmfilter.pl line 87.
BEGIN failed--compilation aborted at /usr/local/bin/zmfilter.pl line 87.
'zmaudit.pl -d 900 -y' starting at 04/03/12 16:33:20, pid = 2937
'zmaudit.pl -d 900 -y' started at 04/03/12 16:33:20
'zmfilter.pl -e -1' crashed at 04/03/12 16:33:20, exit status 2
'zmfilter.pl -e -1' starting at 04/03/12 16:33:20, pid = 2941
'zmfilter.pl -e -1' started at 04/03/12 16:33:20
'zmwatch.pl' starting at 04/03/12 16:33:20, pid = 2947
'zmwatch.pl' started at 04/03/12 16:33:20
Can't locate MIME/Entity.pm in @INC (@INC contains: /usr/lib/perl5/5.8.1/i386-linux-thread-multi /usr/lib/perl5/5.8.1 /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl) at /usr/local/bin/zmfilter.pl line 87.
BEGIN failed--compilation aborted at /usr/local/bin/zmfilter.pl line 87.
'zmfilter.pl -e -1' crashed at 04/03/12 16:33:20, exit status 2
'zmupdate.pl -c' starting at 04/03/12 16:33:21, pid = 2954
'zmupdate.pl -c' started at 04/03/12 16:33:21
Starting pending process, zmc -d 0
'zmc -d 0' starting at 04/03/12 16:33:24, pid = 2993
Starting pending process, zma -m 1
'zma -m 1' starting at 04/03/12 16:33:24, pid = 2994
'zmc -d 0' started at 04/03/12 16:33:24
'zma -m 1' started at 04/03/12 16:33:24
'zma -m 1' crashed at 04/03/12 16:33:24, exit status 255
Starting pending process, zmfilter.pl -e -1
'zmfilter.pl -e -1' starting at 04/03/12 16:33:25, pid = 3001
'zmfilter.pl -e -1' started at 04/03/12 16:33:25
Can't locate MIME/Entity.pm in @INC (@INC contains: /usr/lib/perl5/5.8.1/i386-linux-thread-multi /usr/lib/perl5/5.8.1 /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl) at /usr/local/bin/zmfilter.pl line 87.
BEGIN failed--compilation aborted at /usr/local/bin/zmfilter.pl line 87.
'zmfilter.pl -e -1' crashed at 04/03/12 16:33:25, exit status 2
Starting pending process, zma -m 1
'zma -m 1' starting at 04/03/12 16:33:34, pid = 3051
'zma -m 1' started at 04/03/12 16:33:34
'zma -m 1' crashed at 04/03/12 16:33:34, exit status 255
Starting pending process, zmfilter.pl -e -1
'zmfilter.pl -e -1' starting at 04/03/12 16:33:35, pid = 3057
'zmfilter.pl -e -1' started at 04/03/12 16:33:35
Can't locate MIME/Entity.pm in @INC (@INC contains: /usr/lib/perl5/5.8.1/i386-linux-thread-multi /usr/lib/perl5/5.8.1 /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl) at /usr/local/bin/zmfilter.pl line 87.
BEGIN failed--compilation aborted at /usr/local/bin/zmfilter.pl line 87.
'zmfilter.pl -e -1' crashed at 04/03/12 16:33:36, exit status 2
'zmc -d 0' stopping at 04/03/12 16:33:52
Somewhat....kinda....lost
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: Somewhat....kinda....lost
Hi Jay,
The most important log is probably /var/log/messages but this one
Can't execute: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
leapt out. Do you (a) have mysql running and (b) have the above file? Sometimes you need to symlink the mysql.sock file from where it really is, to where it needs to be. The other main error
Can't locate MIME/Entity.pm in @INC
is only a filter error (ie. secondary) but can be fixed by installing the MIME::Entity perl module as per the README.
Phil,
The most important log is probably /var/log/messages but this one
Can't execute: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
leapt out. Do you (a) have mysql running and (b) have the above file? Sometimes you need to symlink the mysql.sock file from where it really is, to where it needs to be. The other main error
Can't locate MIME/Entity.pm in @INC
is only a filter error (ie. secondary) but can be fixed by installing the MIME::Entity perl module as per the README.
Phil,
Re: Somewhat....kinda....lost
Hi Phil,
It does appear that mysql is running and the mysql.sock is where it's supposed to be:
--------
dir /var/lib/mysql:
srwxrwxrwx 1 mysql mysql 0 Mar 12 16:33 mysql.sock=
(is the = sign ok?)
--------
ps ax:
2234 ? S 0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --us
2235 ? S 0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --us
2236 ? S 0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --us
--------
I'll get that perl module installed asap. Any thoughts?
It does appear that mysql is running and the mysql.sock is where it's supposed to be:
--------
dir /var/lib/mysql:
srwxrwxrwx 1 mysql mysql 0 Mar 12 16:33 mysql.sock=
(is the = sign ok?)
--------
ps ax:
2234 ? S 0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --us
2235 ? S 0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --us
2236 ? S 0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --us
--------
I'll get that perl module installed asap. Any thoughts?
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: Somewhat....kinda....lost
I'm not sure what a '=' on the end of the sock file means but it looks a bit odd. Can you just use mysql off the command line, do that work as per
mysql zm -u<username> -p<password>
Also what distro etc are you using?
Phil,
mysql zm -u<username> -p<password>
Also what distro etc are you using?
Phil,