zmpkg[8557].ERR [Unable to find valid 'su' syntax] ??? help

Support and queries relating to all previous versions of ZoneMinder
Locked
breizhbug
Posts: 61
Joined: Wed May 10, 2006 10:59 am
Location: France

zmpkg[8557].ERR [Unable to find valid 'su' syntax] ??? help

Post by breizhbug »

Hello, I need help to install zm service on ubuntu. Even if I have installed zm script shell with
update-rc.d zm defaults
When I connect zm web page, zm stay stopped. When I check services zm service doesn't appear on service's list.
Please help linux newbie :lol:
Last edited by breizhbug on Tue May 16, 2006 7:02 pm, edited 1 time in total.
breizhbug
Posts: 61
Joined: Wed May 10, 2006 10:59 am
Location: France

Post by breizhbug »

Hello Again,
Could someone help me or is my question not clear ?
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

have you tried starting it from the web page? if so what errors do you have
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
breizhbug
Posts: 61
Joined: Wed May 10, 2006 10:59 am
Location: France

Post by breizhbug »

jameswilson wrote:have you tried starting it from the web page? if so what errors do you have
Yes, When I click on Stopped word on web page, popup appear, I wrote start or started, Applying state changed please wait... popup close and nothing new...zm stay stopped.
I found in /tmp/zmpkg.log these errors:
05/16/06 16:11:41.096597 zmpkg[8557].INF [Command: start]
05/16/06 16:11:43.769081 zmpkg[8557].ERR [Unable to find valid 'su' syntax]
05/16/06 16:12:33.255712 zmpkg[8588].INF [Command: start]
05/16/06 16:12:35.176717 zmpkg[8588].ERR [Unable to find valid 'su' syntax]

It seems to be the issue. Why ? (remember, I'm newbie)
breizhbug
Posts: 61
Joined: Wed May 10, 2006 10:59 am
Location: France

Post by breizhbug »

Hello,
I try to manualy start zm using /etc/init.d/zm start
After correcting some directory locations, process stop at line 140 with error :
echo_success command not found.
Then error on Touch command directory /var/lock/subsys/zm doesn't exist

Even if Command /etc/init.d/zm status gave me
ZoneMinder is running then web page indicate ZM stopped.

Nobody install ZM on ubuntu ?
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

ah i dont know i have never used ubuntu. I know there are issues with some distros and su but im not sure what they are. I might be worth learning on one of the distros we know more about (well fc3 and mandrake) and then moving that to ububtu
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Several people has installed ZM on Ubuntu without problems. If you search you should find a couple of short install guides for it as well.
Phil
breizhbug
Posts: 61
Joined: Wed May 10, 2006 10:59 am
Location: France

Post by breizhbug »

Of course, I've seen and read lot of post regarding ubuntu and debian, but there is no complete tuto and none explain how to install correctly zm service or nobody who knows give me information.
I have also tried to install liveCD but there is errors during install so it seems to be so complicated.
Thanks to guy who explain and try to help newbies like me.
So, without help I will be obliged to stop here my linux conversion :?
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I have just added a Wiki to the site and will be trying to encourage people to contribute 'Howto' type guides to that, to make it easier for people like yourself to find.

Don't give up yet :)
Phil
breizhbug
Posts: 61
Joined: Wed May 10, 2006 10:59 am
Location: France

Post by breizhbug »

zoneminder wrote:I have just added a Wiki to the site and will be trying to encourage people to contribute 'Howto' type guides to that, to make it easier for people like yourself to find.

Don't give up yet :)
Thanks a lot Zoneminder for your help :D
KaZeR
Posts: 10
Joined: Fri Oct 21, 2005 9:20 am

Post by KaZeR »

I have something similar on my installation (gentoo). I found a quick and dirty trick for the moment : i gave the apache user a valid shell, then when i want to start or stop zm from console, i do a su - apache. I can then "zmpkg.pl whatever'.

Hope this help, waiting for better answer :)
mongrel
Posts: 1
Joined: Wed May 24, 2006 9:24 am

Post by mongrel »

KaZeR wrote:I have something similar on my installation (gentoo). I found a quick and dirty trick for the moment : i gave the apache user a valid shell, then when i want to start or stop zm from console, i do a su - apache. I can then "zmpkg.pl whatever'.

Hope this help, waiting for better answer :)
Try 'emerge sudo' (eg. install package 'sudo'), works for me... & don't forget change shell for user apache back to false:) hope it helps:)
KaZeR
Posts: 10
Joined: Fri Oct 21, 2005 9:20 am

Post by KaZeR »

:oops:

I should have figured this one myself..

Thanks anyhow, i've emerged sudo and set apache's shell back to /bin/false :)
Locked