Shared memory problem after updating to Ubuntu-9.04

Support and queries relating to all previous versions of ZoneMinder
Locked
stoneybroke
Posts: 11
Joined: Sun Aug 24, 2008 11:23 am
Location: England

Shared memory problem after updating to Ubuntu-9.04

Post by stoneybroke »

Has anyone got the solution to this problem? I updated from Ubuntu-8.09 to 9.04 yesterday and since then the video streams have stopped working. The logs give the error ERR [Failed to open video device /dev/video0: Permission denied] and WAR [Shared memory not initialised by capture daemon, some query functions may not be available or produce invalid results]

Has anyone come across this problem, and can tell me what to do to fix it.

Many thanks,
Malcolm.
*** Microsoft Windows ***
A compete waste of perfectly good space on a hard drive.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

You can either set the suid bit on zmfix or you might try adding it to the video group I think it is. You likely need to redo some of the permissions bit in what ever guide you followed to install it before.
stoneybroke
Posts: 11
Joined: Sun Aug 24, 2008 11:23 am
Location: England

Fixed

Post by stoneybroke »

Sorry for not replying sooner. Thanks for the info Cordel all I had to do was follow the instructions in the documents when I first installed ZoneMinder these;

Link Apache
sudo ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf

Restart Apache
sudo apache2ctl restart

suid zmfix
sudo chmod 4755 /usr/bin/zmfix

Run zmfix
zmfix -a

Fix export problem
sudo chown www-data.www-data /usr/share/zoneminder/temp

And its all working again.

Thanks again,
Malcolm.
*** Microsoft Windows ***
A compete waste of perfectly good space on a hard drive.
Locked