having trouble with zoneminder 1.24.2 on ubuntu 10.04 server

Forum for questions and support relating to the 1.24.x releases only.
dmb2002man
Posts: 28
Joined: Thu Nov 04, 2010 2:39 pm

Post by dmb2002man » Mon Nov 15, 2010 12:11 pm

Alan87i wrote:$ sudo adduser www-data video (did you do this ?)
Check if www-data is in the video group. cat /etc/group | more
already have added the user. see my results here.

video:x:44:www-data

root@ubuntu-test:~# sudo adduser www-data video
The user `www-data' is already a member of `video'.
root@ubuntu-test:~#

i also did a chmod 777 /dev/video0 and chmod 777 /dev/video1, so it cant be a permission issue. I need to finish this project for work and get the cameras to record and i need this up soon. Is there an alternative to zoneminder that is also freeware. Any programs for a windows xp box too.

also found this post with no solution.

http://www.zoneminder.com/forums/viewto ... 9628a17f72

Yamanipanuchi
Posts: 90
Joined: Wed May 19, 2010 2:53 am

Post by Yamanipanuchi » Mon Nov 15, 2010 2:32 pm

I upgraded to Ubuntu 10.10 this weekend and install Zoneminder from apt-get and im now having this same problem.

Its a shared memory problem.

I've increased the shared memory values in /etc/sysctl.conf

I've also verified that www-data is in the video group several times.

I seem to remember having this issues with a fedora install I did sometime back, The answer was hidden in a post almost completely unrelated. But I just cant find it.

Yamanipanuchi
Posts: 90
Joined: Wed May 19, 2010 2:53 am

Post by Yamanipanuchi » Mon Nov 15, 2010 6:49 pm

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 » Tue Nov 16, 2010 2:04 pm

Tried this but still doesn't work. I had a nice zoneminder 1.23 setup on Ubuntu 8.x but decided to upgrade, (that was a mistake). I feel like I'm close but cannot get video to work..
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?

dmb2002man
Posts: 28
Joined: Thu Nov 04, 2010 2:39 pm

Post by dmb2002man » Tue Nov 23, 2010 7:09 pm

i ran this command and still zoneminder shows red for me.

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

root@camera-pc:~# tail /var/log/messages
Nov 23 01:23:30 camera-pc zmdc[5666]: INF [Starting pending process, zmc -d /dev/video1]
Nov 23 01:23:30 camera-pc zmdc[5705]: INF ['zmc -d /dev/video1' started at 10/11/23 01:23:30]
Nov 23 01:23:30 camera-pc zmdc[5666]: INF ['zmc -d /dev/video1' starting at 10/11/23 01:23:30, pid = 5705]
Nov 23 01:23:30 camera-pc zmc_dvideo1[5705]: INF [Debug Level = 0, Debug Log = <none>]
Nov 23 01:23:30 camera-pc zmc_dvideo1[5705]: INF [New Debug Level = 5, New Debug Log = /tmp/zm_debug.log.05705]
Nov 23 01:23:31 camera-pc zmdc[5666]: INF [Starting pending process, zmc -d /dev/video0]
Nov 23 01:23:31 camera-pc zmdc[5706]: INF ['zmc -d /dev/video0' started at 10/11/23 01:23:31]
Nov 23 01:23:31 camera-pc zmdc[5666]: INF ['zmc -d /dev/video0' starting at 10/11/23 01:23:31, pid = 5706]
Nov 23 01:23:31 camera-pc zmc_dvideo0[5706]: INF [Debug Level = 0, Debug Log = <none>]
Nov 23 01:23:31 camera-pc zmc_dvideo0[5706]: INF [New Debug Level = 5, New Debug Log = /tmp/zm_debug.log.05706]


root@camera-pc:~# tail /tmp/zm_debug.log.05706
11/23/10 01:23:31.117387 zmc_dvideo0[5706].DB1-zm_local_camera.cpp/92 [Old D:0]
11/23/10 01:23:31.117405 zmc_dvideo0[5706].DB1-zm_local_camera.cpp/93 [Old B:32896]
11/23/10 01:23:31.117422 zmc_dvideo0[5706].DB1-zm_local_camera.cpp/94 [Old h:32896]
11/23/10 01:23:31.117440 zmc_dvideo0[5706].DB1-zm_local_camera.cpp/95 [Old Cl:33026]
11/23/10 01:23:31.117457 zmc_dvideo0[5706].DB1-zm_local_camera.cpp/96 [Old Cn:33026]
11/23/10 01:23:31.120014 zmc_dvideo0[5706].DB1-zm_local_camera.cpp/140 [Old X:0]
11/23/10 01:23:31.120032 zmc_dvideo0[5706].DB1-zm_local_camera.cpp/141 [Old Y:0]
11/23/10 01:23:31.120049 zmc_dvideo0[5706].DB1-zm_local_camera.cpp/142 [Old W:320]
11/23/10 01:23:31.120067 zmc_dvideo0[5706].DB1-zm_local_camera.cpp/143 [Old H:240]
11/23/10 01:23:31.120120 zmc_dvideo0[5706].ERR-zm_local_camera.cpp/162 [Failed to setup memory: Invalid argument]
root@camera-pc:~#

dmb2002man
Posts: 28
Joined: Thu Nov 04, 2010 2:39 pm

Post by dmb2002man » Tue Nov 30, 2010 2:36 pm


dmb2002man
Posts: 28
Joined: Thu Nov 04, 2010 2:39 pm

Post by dmb2002man » Tue Nov 30, 2010 2:37 pm

hello,

since i cannot get these cards to work, i need to find newer cards that will work. Either single pci cards or dvr pci cards. Im using 2 single cameras with bnc connectors. I also have the bnc to composite adapter. Any help would be appreciated.

thanks

theemed
Posts: 9
Joined: Sun Jan 25, 2009 1:17 pm

Re: having trouble with zoneminder 1.24.2 on ubuntu 10.04 se

Post by theemed » Thu Mar 31, 2011 10:04 am

zoneminer 1.24.2 off standard repos on ubuntu server 10.10 x64 with minimal gnome.
I was having the "operation not permitted" error for chmod on /dev/video*, so I did what Yamanipanuchi uggested, to no avail.
But in the end I also did:

sudo chown www-data.www-data -R /dev/video*

which I reckon is brutal, but worked for me.
Now I don't know if Yamanipanuchi's line is necessary or not, I just left it.

EDIT: rebooting juust brings back the same problem, as ownership of dev/video* goes back to root, so it's not a viable solution :(

EDIT2: just added www-data to video group, works now :|

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests