sudo problem, can't start zm

Support and queries relating to all previous versions of ZoneMinder
Locked
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

sudo problem, can't start zm

Post by rdmelin »

V. 1.22.1 on Mandriva 2006

With debug turned on in zmpkg.pl this is from zmpkg.log
04/28/2006 06:06:45.817011 zmpkg[15676].INF [Command: start]
04/28/2006 06:06:45.831301 zmpkg[15676].DBG [Testing valid shell syntax]
04/28/2006 06:06:45.831940 zmpkg[15676].DBG [Testing "sudo -u apache true"]
04/28/2006 06:06:45.872003 zmpkg[15676].DBG [Test ok, using format "sudo -u apache <command>"]
04/28/2006 06:06:45.872360 zmpkg[15676].DBG [Command: sudo -u apache /usr/lib/zm/bin/zmdc.pl check]
04/28/2006 06:06:46.252804 zmpkg[15676].DBG [Output: stopped]
04/28/2006 06:06:46.253113 zmpkg[15676].DBG [Removing shared memory]
04/28/2006 06:06:46.253236 zmpkg[15676].DBG [Checking for shared memory with 'ipcs -m | grep '^0x7a6d20'']
04/28/2006 06:06:46.279149 zmpkg[15676].DBG [Command: sudo -u apache /usr/lib/zm/bin/zmfix]
04/28/2006 06:06:46.428411 zmpkg[15676].ERR [Unable to run "sudo -u apache /usr/lib/zm/bin/zmfix", output is ""]
Best regards
Ross

edit: On second thought this may be a zmfix problem. I'll get back to this later. Out of time for now.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Yes. Try running the command directly as well to see if runs manually.
Phil
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Post by rdmelin »

It runs without returning an error, but does not seem to change the device perms
[/home/ross]# ls -l /dev/v4l/video0
crw-rw---- 1 ross video 81, 0 Apr 27 22:21 /dev/v4l/video0
[/home/ross]# /usr/lib/zm/bin/zmfix
[/home/ross]# echo $?
255
[/home/ross]# ls -l /dev/v4l/video0
crw-rw---- 1 ross video 81, 0 Apr 27 22:21 /dev/v4l/video0
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Post by rdmelin »

OK, nevermind.
Seems I had nonexistant mysql username and passwd in zm.conf

A little more attention to detail and all is well now. :)
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Good! This is the kind of followup I like :D
Phil
Locked