Ubuntu 10.10 Server install problem

Forum for questions and support relating to the 1.24.x releases only.
Locked
Yamanipanuchi

Ubuntu 10.10 Server install problem

Post by Yamanipanuchi »

Im pretty sure this is just a rights problem. But I am unsure how to tackle it?

Im getting this error in /var/log/messages

Nov 14 15:49:45 server zmdc[1153]: WAR [Can't find process with command of 'zma -m 1']

ANd of course my camera's are showing up red which what prompted me to look in the logs.

Anyone run into this problem before?

All the camera's I use are IP based. I can only find information on a bttv card with this error.. Folling those posts I cant find anything the leads me to a solution?
Yamanipanuchi

Post by Yamanipanuchi »

Hmmm.. Seems that error above is no longer happening.. But now I am getting.

11/14/10 18:43:02.045672 zmdc[1035].INF ['zma -m 1' starting at 10/11/14 18:43:02, pid = 10139]
11/14/10 18:43:02.056845 zmdc[1035].ERR ['zmc -m 1' exited abnormally, exit status 255]
11/14/10 18:43:02.057074 zmdc[1035].ERR ['zma -m 1' exited abnormally, exit status 255]
11/14/10 18:45:42.019832 zmdc[1035].INF [Starting pending process, zmc -m 1]
11/14/10 18:45:42.020643 zmdc[1035].INF ['zmc -m 1' starting at 10/11/14 18:45:42, pid = 10270]
11/14/10 18:45:42.020991 zmdc[1035].INF [Starting pending process, zma -m 1]
11/14/10 18:45:42.021644 zmdc[1035].INF ['zma -m 1' starting at 10/11/14 18:45:42, pid = 10271]
11/14/10 18:45:42.033258 zmdc[1035].ERR ['zmc -m 1' exited abnormally, exit status 255]
11/14/10 18:45:42.033489 zmdc[1035].ERR ['zma -m 1' exited abnormally, exit status 255]
Yamanipanuchi

Post by Yamanipanuchi »

Ahhh here's the root of the problem. And I've had this problem on other servers and for the life of me I cannot remeber what fixed it..

zmwatch[11022].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]

I've upped the

kernel.shmall
kernel.shmmax
Yamanipanuchi

Post by Yamanipanuchi »

So I got my setup working finally.

Took some goofing off, but here's what I did.

I edited /etc/zm/zm.conf
Changed Zoneminder to run as root and group as root. Then I ran...

sudo chown root.root -R /var/cache/zoneminder/events

This didn't fix the problem so I reversed the process to set it back to what was default.

Edited /etc/zm/zm.conf
Changed Zoneminder to run as www-data and group as www-data. Then I ran...

sudo chown www-data.www-data -R /var/cache/zoneminder/events

After then it worked! Unfortunately I don't know exactly why or how, But I have all greens and everything working perfectly!

I suspect that I only needed to run 'sudo chown www-data.www-data -R /var/cache/zoneminder/events' and it probably would have fixed the problem.

Please let me know if this works for you?
scarrz
Posts: 23
Joined: Thu Aug 20, 2009 12:40 pm

Post by scarrz »

I'm getting the same error as you:
" WAR [Can't find process with command of 'zmtrack.pl -m 2']"

I tried what you mentioned and what is different with my install is that I added a new monitor and it appears to work b/c the monitor lights up orange in "monitor" mode but when I click on the camera it just brings up the window with no video just the controls (FF, REWIND, ETC). I'm stumped, the error above is all that I'm getting.
Yamanipanuchi wrote:So I got my setup working finally.

Took some goofing off, but here's what I did.

I edited /etc/zm/zm.conf
Changed Zoneminder to run as root and group as root. Then I ran...

sudo chown root.root -R /var/cache/zoneminder/events

This didn't fix the problem so I reversed the process to set it back to what was default.

Edited /etc/zm/zm.conf
Changed Zoneminder to run as www-data and group as www-data. Then I ran...

sudo chown www-data.www-data -R /var/cache/zoneminder/events

After then it worked! Unfortunately I don't know exactly why or how, But I have all greens and everything working perfectly!

I suspect that I only needed to run 'sudo chown www-data.www-data -R /var/cache/zoneminder/events' and it probably would have fixed the problem.

Please let me know if this works for you?
Yamanipanuchi

Post by Yamanipanuchi »

So I just did a new install on a Co-workers zoneminder and all I ran is the following command and it all worked. It would see the folder that holds the events is created with root rights, www-data cannot access that folder untill you give it rights.

sudo chown www-data.www-data -R /var/cache/zoneminder/events

It sounds like, scarrz, that when you added the new monitor it gave that devices event folder correct rights. The command above should work to give everything in the folder rights.

I would guess you problem is rights, But you might need to big into your a little further to see what the rights problem is coming up.
Locked