ZoneMinder-1.24.2 wont start!

Forum for questions and support relating to the 1.24.x releases only.
Post Reply
SBSP
Posts: 5
Joined: Thu Dec 03, 2009 1:37 pm

ZoneMinder-1.24.2 wont start!

Post by SBSP » Wed Dec 09, 2009 8:30 am

Hi Everyone.
Hope someone can help.
I have probably spent 2 weeks now to get Zoneminder to work on slax.
and i would like to create a Zonminder.LZM package module for slax so that anyone can download it
without having so much trouble to get it working. and possibly create a Live Disk.

I finally got it to work, but i cant get it to start Zonminder from the Web console.
when i click the status at the top "Stopped" another window pops up then change the status to "Started" then click apply.
It looks like its about to start but when the popup goes away the main web console refreshes and the status stays as "Stopped"
All of the other functions in the web console is working with no PHP, Database or Permission errors.
This happens with ZoneMinder-1.24.1 as well.

this is how i managed to install it.
Boot Slax with the following modules which gets activated on boot-up

001-core.lzm
002-xorg.lzm
003-desktop.lzm
004-kdeapps.lzm
005-koffice.lzm
006-devel.lzm
007-firefox.lzm
codecs-essential-20071007.lzm
gnutls-2.8.4.lzm
gparted-0.3.6-i686-1.lzm
libmysqlclient16-5.1.37-2.lzm
libssl-0.9.8-i386.lzm
mysql-5.0.84.lzm
slaxfromhd.lzm
wxcam-0-9-8.lzm
xampp-1-7-1.lzm

Then in the 'rootcopy/install' folder i have the folllowing Tar's
/install
createuser.sql
Date-Manip-6.04.tar.gz
DBD-mysql-4.013.tar.gz
ffmpeg-0.5.tar.bz2
init.sh
libwww-perl-5.834.tar.gz
mjpg-streamer-r63.tar.gz
notes.txt
PHP-Serialization-0.33.tar.gz
phpMyAdmin-3.2.4-all-languages.tar.bz2
Sys-Mmap-0.13.tar.gz
YAML-Syck-1.07.tar.gz
ZoneMinder-1.22.0.tar.gz
ZoneMinder-1.24.1.tar.gz
ZoneMinder-1.24.2.tar.gz

When slax is booted it has a folder in /install with the above
tarballs (Which is everything you need to get ZM freshly compiled with the Latest FFMPEG support))

the init.sh is my own script which holds this...

Code: Select all

mkdir /opt/lampp/htdocs/zm
tar -xvf Sys-Mmap-0.13.tar.gz
tar -xvf PHP-Serialization-0.33.tar.gz
tar -xvf libwww-perl-5.834.tar.gz
tar -xvf YAML-Syck-1.07.tar.gz
tar -xvf Date-Manip-6.04.tar.gz
tar -xvf DBD-mysql-4.013.tar.gz
tar -xvf ZoneMinder-1.24.2.tar.gz
tar -xvf ffmpeg-0.5.tar.bz2

cd /install/ffmpeg-0.5
./configure  --enable-swscale --enable-gpl
make
make install
make clean

cd /install/Sys-Mmap-0.13
perl Makefile.PL
make
make install
make clean

cd /install/PHP-Serialization-0.33
perl Makefile.PL
make
make install
make clean

cd /install/libwww-perl-5.834
perl Makefile.PL
make
make install
make clean

cd /install/YAML-Syck-1.07
perl Makefile.PL
make
make install
make clean

cd /install/Date-Manip-6.04
perl Makefile.PL
make
make install
make clean

cd /install/DBD-mysql-4.013
perl Makefile.PL
make
make install
make clean

/opt/lampp/lampp start

cd /install/ZoneMinder-1.24.2
./configure --with-webdir=/opt/lampp/htdocs --with-cgidir=/opt/lampp/cgi-bin ZM_SSL_LIB=openssl 
make
make install
make clean

chmod 777 /usr/local/etc/zm.conf
cd /install
mysql mysql < createuser.sql

cd /install/ZoneMinder-1.24.2/db
mysql mysql < zm_create.sql
The createuser.sql file hold this.

Code: Select all

CREATE USER 'zmuser'@'localhost' IDENTIFIED BY 'zmpass';
GRANT ALL ON *.* TO 'zmuser'@'localhost';
and
zm_create.sql is the sql script that comes with zoneminder to initialize its own database.


This installs ZM Perfectly fine with no hasles and no errors, (It takes a while though to compile everything)
The above is done in a VM (Sun' Virtual Box) if you are reading this to get Zoneminder working to as far as i got
remmber to se the VM's memory to more than 700MB otherwise Slax will freeze.

Now as i explained i cant start Zoneminder, where can i start troubleshooting as i'm not getting any errors?

after this is working i will get mjpg_streamer and motion to work with this.

I hope someone can help cus i'm about to give up this attempt.
If i can get this working , I will upload a live Cd of this for everyone to download.

I have tried the Blue Cherry ver and i'm not impressed as it using the Xface GUI which is very unstable.

Cheers!

kwire
Posts: 48
Joined: Mon Jan 05, 2009 12:56 am
Location: Ada, Ohio, USA

Post by kwire » Wed Dec 09, 2009 1:28 pm

Hi,

I don't know the first thing about slax, but you might try starting ZM in a terminal window and see if there are any errors...

As SU run this...

Code: Select all

zmpkg.pl start
Keith

SBSP
Posts: 5
Joined: Thu Dec 03, 2009 1:37 pm

Post by SBSP » Thu Dec 10, 2009 8:59 am

Hey.

thnaks for the reply.

I will try this just now since i'm using a VM and live disk i'm currently compiling again :evil:

if i run zm from the console it just tellsme zm command does not exist.
I also searched for zm and cant find anything on my system.

But i can find a zm script in the extracted Zoneminder tar archive
ZoneminderXXX/scripts/zm and zm.in.
If i run ./zm start it complains about the 'zmuser' which does not have permission. So when i give the MySql root user in zm.conf it gives the same error and then the webinterface also complains about the user.

when i run ./zm.in start it actually starts but according to the webconsole it still stays stopped.

it seems like the zm or zm.in script did not install during the 'make install' when installing Zoneminder

does anyone know what command the webbrowser send to the system when you start zm from the web interface ?

SBSP
Posts: 5
Joined: Thu Dec 03, 2009 1:37 pm

Post by SBSP » Thu Dec 10, 2009 9:17 am

Ok i get this. when running zmpkg.pl start.
DBI Connect('database=zm;host=localhost','zmuser',...) failed: Cant connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2) at /usr/libperl5/site_perl/5.10.0/Zoneminder/config.pm line 91


What the hell is this all about ?

the zmuser and password is the default 'zmuser' and 'zmpass'
and the zmuser has all privileges.

whatboy
Posts: 304
Joined: Mon Aug 31, 2009 10:31 pm

Post by whatboy » Thu Dec 10, 2009 6:01 pm

I din't use the zmuser, I used root...

timcraig
Posts: 195
Joined: Mon Dec 10, 2007 5:53 pm
Location: San Jose, CA
Contact:

Post by timcraig » Thu Dec 10, 2009 7:03 pm

It looks like the Perl library for mysql is unable to access the mysql server socket. It could be a permission issue or it might a configuration problem in the Perl library (can verifiy this by writing or finding a little Perl script that connects to a mysql database) or a configuration problem in the installation of Zoneminder.

SBSP
Posts: 5
Joined: Thu Dec 03, 2009 1:37 pm

Post by SBSP » Fri Dec 11, 2009 9:48 am

timcraig wrote:It looks like the Perl library for mysql is unable to access the mysql server socket. It could be a permission issue or it might a configuration problem in the Perl library (can verifiy this by writing or finding a little Perl script that connects to a mysql database) or a configuration problem in the installation of Zoneminder.
Correct!!!
I'm not using a default Apache installation, instead i'm using
Lampp which is a compination installation of PHP MY SQL and Apached
which is similair to WAMP for windows.

The socket @
/var/run/mysql/mysql.sock'
is the standard path for the my MySQL but my Lampp installation has the socket in
/opt/lampp/var/mySQL/mysql.sock

So i created a sym link to the standard path.
No Zoneminder can start perfectly and i can confirm its running if i
run ./zm status it returns the PID.

But still The Web console still says its "Stopped" its very weird!!

[/quote]

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests