Jump to content

ZoneMinder failed to work [solved]


boatman9
 Share

Recommended Posts

I am using Mandriva 2008.0. After following the instructions for installation of ZoneMinder (here), Zoneminder failed to run. The installation process seemed to complete successfully, but after opening my web browser to http://127.0.0.1/zm I got a 403 error. Can this be fixed or should I give up and try the ZoneMinder live CD?

 

Because the installation took several hours, I'm wondering if ZoneMinder will ever be added to the Mandriva repos? What is the package request procedure?

Link to comment
Share on other sites

Can you provide the output of:

 

netstat -tunlp

 

so that we can see if a port is listening to connect to via web browser. But make sure that mysqld, httpd and zm services are started as per that installation guide you posted. If so, the netstat command I gave above should tell me if it's there or not.

Link to comment
Share on other sites

According to the Control Center, mysqld, httpd and zm services are running and configured to start on boot. I know that httpd is working, it will serve other files in the www directory such as http://127.0.0.1/robots.txt and http://127.0.0.1/addon-modules/HOWTO_get_modules.html.

 

netstat -tunlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address			   Foreign Address			 State	   PID/Program name
tcp		0	  0 0.0.0.0:2273				0.0.0.0:*				   LISTEN	  6242/mysqlmanager
tcp		0	  0 0.0.0.0:6000				0.0.0.0:*				   LISTEN	  5733/X
tcp		0	  0 0.0.0.0:80				  0.0.0.0:*				   LISTEN	  5985/httpd
tcp		0	  0 0.0.0.0:631				 0.0.0.0:*				   LISTEN	  5910/cupsd
tcp		0	  0 :::6000					 :::*						LISTEN	  5733/X
tcp		0	  0 :::631					  :::*						LISTEN	  5910/cupsd
udp		0	  0 0.0.0.0:32768			   0.0.0.0:*							   5493/avahi-daemon:
udp		0	  0 0.0.0.0:68				  0.0.0.0:*							   5212/dhclient
udp		0	  0 0.0.0.0:69				  0.0.0.0:*							   5679/xinetd
udp		0	  0 0.0.0.0:5353				0.0.0.0:*							   5493/avahi-daemon:
udp		0	  0 192.168.100.11:123		  0.0.0.0:*							   6024/ntpd
udp		0	  0 127.0.0.1:123			   0.0.0.0:*							   6024/ntpd
udp		0	  0 0.0.0.0:123				 0.0.0.0:*							   6024/ntpd
udp		0	  0 fe80::208:2ff:fe93:e06e:123 :::*									6024/ntpd
udp		0	  0 ::1:123					 :::*									6024/ntpd
udp		0	  0 :::123					  :::*									6024/ntpd

Link to comment
Share on other sites

OK, can you confirm that a zm directory exists under your webroot directory, or that a config file exists that shows which particular directory is configured to provide the url that ZoneMinder requires?

Link to comment
Share on other sites

Yes, the zm directory is populated with ZoneMinder files.

 

[user@evo html]$ pwd
/var/www/html
[user@evo html]$ ls -al
total 28
drwxr-xr-x 4 root   root   4096 2008-11-10 20:51 ./
drwxr-xr-x 7 apache apache 4096 2008-11-10 20:51 ../
drwxr-xr-x 2 root   root   4096 2008-11-10 20:46 addon-modules/
-rw-r--r-- 1 root   root   3638 2007-09-07 13:47 favicon.ico
-rw-r--r-- 1 root   root	 44 2007-09-07 13:47 index.html
-rw-r--r-- 1 root   root	513 2007-09-07 13:47 robots.txt
drwxr-xr-x 7 root   root   4096 2008-11-10 21:31 zm/
[user@evo html]$

 

There is a file /var/www/html/zm/index.php, it's softlinked to zm.php in the same directory. I can load http://127.0.0.1/zm/index.php into a Firefox window, it displays as php code.

Edited by boatman9
Link to comment
Share on other sites

Would you know which piece of software is responsible for sending ZoneMinder's control packets to the network camera? I configured ZoneMinder for my Trendnet TV-IP100 network camera, but get no image from the camera because no ZoneMinder packets are reaching the camera or appearing on the LAN.

Link to comment
Share on other sites

How is the camera attached? USB? Network?

 

If USB, when you connect it to the machine, check dmesg for the correct port, possibly /dev/ttyUSB0 and ensure that ZoneMinder is configured to correctly use this. At least, this is what I'd check, I've never used Zone Minder as of yet :)

Link to comment
Share on other sites

The Trendnet TV-IP100 is an Ethernet IP camera. I suspect the problem is related to the following error messages which I see repeated in the zmwatch.log file.

 

11/13/08 19:33:05.312900 zmwatch[6794].ERR [Can't get shared memory id '7a6d0002', 2: No such file or directory]
11/13/08 19:33:05.313416 zmwatch[6794].INF [Restarting capture daemon for TV-IP100, shared memory not valid]
11/13/08 19:33:05.610392 zmwatch[6794].INF ['zmc -m 2' starting at 08/11/13 19:33:05, pid = 7607]

I wonder if ZoneMinder is in Mandriva's 2009.0 repo? I didn't find it in the 2008.0 repo, not sure how to look in the 2009.0 repo as I'm still using 2008.0. How do I make a package request to the Mandriva package makers?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...