zm not work ubuntu 12.10

Forum for questions and support relating to the 1.25.x releases only.
Locked
starwolf
Posts: 6
Joined: Sun Nov 04, 2012 4:44 am

zm not work ubuntu 12.10

Post by starwolf »

i can login but


The requested URL /zm/undefined was not found on this server.
Apache/2.2.22 (Ubuntu) Server at 127.0.0.1 Port 80

what is wrong??
Last edited by starwolf on Thu Nov 08, 2012 2:53 pm, edited 1 time in total.
Flasheart
Posts: 342
Joined: Thu Jul 06, 2006 2:27 pm

Re: zm not work

Post by Flasheart »

Zoneminder isn't installed correctly.

How to resolve depends a lot on your distribution, ZM version and how you installed it - from source or packages.
starwolf
Posts: 6
Joined: Sun Nov 04, 2012 4:44 am

Re: zm not work

Post by starwolf »

ubuntu 12.04
zoneminder 1.25.0-1 install from Synaptic
bb99
Posts: 943
Joined: Wed Apr 02, 2008 12:04 am

Re: zm not work

Post by bb99 »

Try reading this, maybe some clues. The sleep 15 is mandatory.

http://www.zoneminder.com/wiki/index.ph ... e_easy_way
starwolf
Posts: 6
Joined: Sun Nov 04, 2012 4:44 am

Re: zm not work

Post by starwolf »

zm start but no more.
no camera no options

only first page
starwolf
Posts: 6
Joined: Sun Nov 04, 2012 4:44 am

Re: zm not work

Post by starwolf »

bengt@K73BY:~$ /etc/init.d/zoneminder restart
Stopping ZoneMinder: [sudo] password for bengt:
Zoneminder already stopped

Starting ZoneMinder: failure

bengt@K73BY:~$

What must i do?

have ubuntu 12.10
starwolf
Posts: 6
Joined: Sun Nov 04, 2012 4:44 am

Re: zm not work ubuntu 12.10

Post by starwolf »

no zoneminder in ubuntu 12.10?????????????????????????????????????????????
vanbosco
Posts: 11
Joined: Fri Feb 02, 2007 8:02 pm
Location: Italy

Re: zm not work ubuntu 12.10

Post by vanbosco »

starwolf wrote:no zoneminder in ubuntu 12.10?????????????????????????????????????????????
You could give a try to this init.d script that wait mysql to start before starting zoneminder.

Code: Select all

#!/bin/sh
### BEGIN INIT INFO
# Provides:          zoneminder
# Required-Start:    $network $remote_fs $syslog
# Required-Stop:     $network $remote_fs $syslog
# Should-Start:      mysql
# Should-Stop:       mysql
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description:  Control ZoneMinder as a Service
### END INIT INFO
# description: Control ZoneMinder as a Service
# chkconfig: 2345 20 20

# Source function library.
#. /etc/rc.d/init.d/functions

prog=ZoneMinder
ZM_PATH_BIN="/usr/bin"
command="$ZM_PATH_BIN/zmpkg.pl"

start() {
	echo -n "Starting $prog: "
#wait for mysql to start
	while [ ! -e /run/mysqld/mysqld.sock ]
 		do
 		sleep 1
	done
    zmfix -a
	$command start
	RETVAL=$?
	[ $RETVAL = 0 ] && echo success
	[ $RETVAL != 0 ] && echo failure
	echo
	[ $RETVAL = 0 ] && touch /var/lock/zm
	return $RETVAL
}
stop() {
	echo -n "Stopping $prog: "
	#
	# Why is this status check being done?
	# as $command stop returns 1 if zoneminder 
	# is stopped, which will result in 
	# this returning 1, which will stuff 
	# dpkg when it tries to stop zoneminder before
	# uninstalling . . . 
	#
	result=`$command status`
	if [ ! "$result" = "running" ]; then
		echo "Zoneminder already stopped"
		echo
		RETVAL=0
	else
		$command stop
		RETVAL=$?
		[ $RETVAL = 0 ] && echo success
		[ $RETVAL != 0 ] && echo failure
		echo
		[ $RETVAL = 0 ] && rm -f /var/lock/zm
	fi
}
status() {
	result=`$command status`
	if [ "$result" = "running" ]; then
		echo "ZoneMinder is running"
		RETVAL=0
	else
		echo "ZoneMinder is stopped"
		RETVAL=1
	fi
}

case "$1" in
'start')
	start
	;;
'stop')
	stop
	;;
'restart' | 'force-reload')
	stop
	start
	;;
'status')
	status
	;;
*)
	echo "Usage: $0 { start | stop | restart | status }"
	RETVAL=1
	;;
esac
exit $RETVAL
In my ubuntu 12.10 zoneminder works with this script.
PatMcLJr
Posts: 28
Joined: Sun Sep 07, 2008 5:56 pm
Location: earth

Re: zm not work ubuntu 12.10

Post by PatMcLJr »

http://www.zoneminder.com/wiki/index.ph ... e_easy_way

I have had great luck with these instructions and by far the easiest method of installing zoneminder that I have found
my box is only 32 bit but the guide still works very well
----
evil doers beware, someone is watching you,
hopefully me!
Locked