[v1.23.3] Ubuntu 8.10 Intrepid Permission Issue

Support and queries relating to all previous versions of ZoneMinder
Locked
Nemesis02
Posts: 5
Joined: Tue Dec 16, 2008 10:32 pm

[v1.23.3] Ubuntu 8.10 Intrepid Permission Issue

Post by Nemesis02 »

Hello, let me start off by saying this is a great piece of software. Very useful overall, lots of features, and looks simple to use on the front end. Well, I'm having some problems installing the software. I loaded this via the synaptics package manager on ubuntu and had issues right out of the box and it is v1.23.3. I'm currently using the Logitech Quickcam Orbit and a cheap HP camera that uses the CIF Single Chip drivers (had problems overall with this seeing as its an older model camera). My camera does work on xawtv as well. I tested it and there was no problem on that end.

My log reads as follows:
== /tmp/zmpkg.log ==
12/16/2008 16:41:19.808510 zmpkg[28593].INF [Command: start]

== /tmp/zmdc.log ==
12/16/2008 16:41:23.420062 zmdc[28602].INF ['zmc -d /dev/video0' starting at 08/12/16 16:41:23, pid = 28624]
12/16/2008 16:41:23.622801 zmdc[28602].INF ['zmc -d /dev/video1' starting at 08/12/16 16:41:23, pid = 28626]
12/16/2008 16:41:23.767293 zmdc[28602].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
12/16/2008 16:41:23.767657 zmdc[28602].INF [Starting pending process, zmc -d /dev/video0]
12/16/2008 16:41:23.771756 zmdc[28602].INF ['zmc -d /dev/video0' starting at 08/12/16 16:41:23, pid = 28632]
12/16/2008 16:41:24.033189 zmdc[28602].INF ['zmfilter.pl' starting at 08/12/16 16:41:24, pid = 28645]
12/16/2008 16:41:24.258027 zmdc[28602].ERR ['zmc -d /dev/video1' exited abnormally, exit status 255]
12/16/2008 16:41:24.258379 zmdc[28602].INF [Starting pending process, zmc -d /dev/video1]
12/16/2008 16:41:24.269322 zmdc[28602].INF ['zmc -d /dev/video1' starting at 08/12/16 16:41:24, pid = 28648]
12/16/2008 16:41:24.336449 zmdc[28602].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
12/16/2008 16:41:24.632760 zmdc[28602].INF ['zmaudit.pl -c' starting at 08/12/16 16:41:24, pid = 28669]
12/16/2008 16:41:25.232579 zmdc[28602].INF ['zmwatch.pl' starting at 08/12/16 16:41:25, pid = 28674]
12/16/2008 16:41:25.454887 zmdc[28602].ERR ['zmc -d /dev/video1' exited abnormally, exit status 255]

== /tmp/zmfilter.log ==
12/16/2008 16:41:24.980088 zmfilter[28645].INF [Scanning for events]

==> /tmp/zmwatch.log <==
12/16/2008 16:41:25.792975 zmwatch[28674].INF [Watchdog starting]
12/16/2008 16:41:25.793580 zmwatch[28674].INF [Watchdog pausing for 30 seconds]

== /tmp/zmdc.log ==
12/16/2008 16:41:25.851687 zmdc[28602].INF ['zmupdate.pl -c' starting at 08/12/16 16:41:25, pid = 28688]
12/16/2008 16:41:29.063258 zmdc[28602].INF [Starting pending process, zmc -d /dev/video0]
12/16/2008 16:41:29.091307 zmdc[28602].INF ['zmc -d /dev/video0' starting at 08/12/16 16:41:29, pid = 28690]
12/16/2008 16:41:29.558230 zmdc[28602].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
12/16/2008 16:41:30.055970 zmdc[28602].INF [Starting pending process, zmc -d /dev/video1]
12/16/2008 16:41:30.077383 zmdc[28602].INF ['zmc -d /dev/video1' starting at 08/12/16 16:41:30, pid = 28691]
12/16/2008 16:41:30.649217 zmdc[28602].ERR ['zmc -d /dev/video1' exited abnormally, exit status 255]
12/16/2008 16:41:39.047257 zmdc[28602].INF [Starting pending process, zmc -d /dev/video0]
12/16/2008 16:41:39.073736 zmdc[28602].INF ['zmc -d /dev/video0' starting at 08/12/16 16:41:39, pid = 28716]
12/16/2008 16:41:39.538357 zmdc[28602].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
12/16/2008 16:41:40.035262 zmdc[28602].INF [Starting pending process, zmc -d /dev/video1]
12/16/2008 16:41:40.056084 zmdc[28602].INF ['zmc -d /dev/video1' starting at 08/12/16 16:41:40, pid = 28717]
12/16/2008 16:41:41.128153 zmdc[28602].ERR ['zmc -d /dev/video1' exited abnormally, exit status 255]
My permissions for zm in the /usr/bin directory are as follows:
roger@roger-desktop:~$ ls -l /usr/bin/zm*
-rwxr-xr-x 1 root root 304228 2008-09-24 03:40 /usr/bin/zma
-rwxr-xr-x 1 root root 13212 2008-09-24 03:40 /usr/bin/zmaudit.pl
-rwxr-xr-x 1 root root 304292 2008-09-24 03:40 /usr/bin/zmc
-rwxr-xr-x 1 root root 6971 2008-09-24 03:40 /usr/bin/zmcontrol.pl
-rwxr-xr-x 1 root root 17313 2008-09-24 03:40 /usr/bin/zmdc.pl
-rwxr-xr-x 1 root root 312420 2008-09-24 03:40 /usr/bin/zmf
-rwxr-xr-x 1 root root 36698 2008-09-24 03:40 /usr/bin/zmfilter.pl
-rwxr-xr-x 1 root root 42760 2008-09-24 03:40 /usr/bin/zmfix
-rwxr-xr-x 1 root root 9133 2008-09-24 03:40 /usr/bin/zmpkg.pl
-rwxr-xr-x 1 root root 5265 2008-09-24 03:40 /usr/bin/zmtrack.pl
-rwxr-xr-x 1 root root 12502 2008-09-24 03:40 /usr/bin/zmtrigger.pl
-rwxr-xr-x 1 root root 316932 2008-09-24 03:40 /usr/bin/zmu
-rwxr-xr-x 1 root root 29885 2008-09-24 03:40 /usr/bin/zmupdate.pl
-rwxr-xr-x 1 root root 9651 2008-09-24 03:40 /usr/bin/zmvideo.pl
-rwxr-xr-x 1 root root 4057 2008-09-24 03:40 /usr/bin/zmwatch.pl
-rwxr-xr-x 1 root root 17220 2008-09-24 03:40 /usr/bin/zmx10.pl

The permissions for the web cams are as follows:
roger@roger-desktop:~$ ls -l /dev/video*
crw-rw----+ 1 root video 81, 0 2008-12-16 17:46 /dev/video0
crw-rw----+ 1 root video 81, 1 2008-12-16 17:46 /dev/video1
While typing zmfix, it comes back saying aborted. Typing 'zmc -d /dev/video0' also says aborted. Typing 'zmu -d /dev/video0 -q -v' also says aborted, however typing 'sudo zmu -d /dev/video0 -q -v' brings up the following:
Video Capabilities
Name: Logitech QuickCam Orbit
Type: 1
Can capture
Video Channels: 1
Audio Channels: 1
Maximum Width: 640
Maximum Height: 480
Minimum Width: 160
Minimum Height: 120
Window Attributes
X Offset: 0
Y Offset: 0
Width: 320
Height: 240
Picture Attributes
Palette: 15 - YUV 4:2:0 Planar
Colour Depth: 24
Brightness: 32256
Hue: 65535
Colour :32768
Contrast: 32768
Whiteness: 32768
Channel 0 Attributes
Name: Webcam
Channel: 0
Flags: 0
Type: 2 - Camera
Format: 2055 - Unknown
Typing 'sudo zmfix' does absolutely nothing. Does not display anything at all.

Here's my shared memory limits:
roger@roger-desktop:~$ ipcs -l

------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 32768
max total shared memory (kbytes) = 8388608
min seg size (bytes) = 1

------ Semaphore Limits --------
max number of arrays = 128
max semaphores per array = 250
max semaphores system wide = 32000
max ops per semop call = 32
semaphore max value = 32767

------ Messages: Limits --------
max queues system wide = 1743
max size of message (bytes) = 8192
default max size of queue (bytes) = 16384
Here's is my configuration as well for zm:
# ==========================================================================
#
# ZoneMinder Base Configuration, $Date: 2006-11-16 09:06:30 +0000 (Thu, 16 Nov 2006) $, $Revision: 2057 $
#
# ==========================================================================
#
# This file is generated by 'configure'. Care should be taken if manually
# editing this file as an changes may be overwritten by subsequent configuration
# or installations.
#

# Current version of ZoneMinder
ZM_VERSION=1.23.3

# Path to build directory, used mostly for finding DB upgrade scripts
ZM_PATH_BUILD=/build/buildd/zoneminder-1.23.3

# Build time, used to record when to trigger various checks
ZM_TIME_BUILD=1222245607

# Path to ZoneMinder binaries
ZM_PATH_BIN=/usr/bin

# Path to ZoneMinder libraries (none at present, for future use)
ZM_PATH_LIB=/usr/lib

# Path to ZoneMinder configuration (this file only at present)
ZM_PATH_CONF=/etc/zm

# Path to ZoneMinder web files
ZM_PATH_WEB=/usr/share/zoneminder

# Path to ZoneMinder cgi files
ZM_PATH_CGI=/usr/lib/cgi-bin

# Username and group that web daemon (httpd/apache) runs as
ZM_WEB_USER=www-data
ZM_WEB_GROUP=www-data

# ZoneMinder database hostname or ip address
ZM_DB_HOST=localhost

# ZoneMinder database name
ZM_DB_NAME=zm

# ZoneMinder database user
ZM_DB_USER=zmuser

# ZoneMinder database password
ZM_DB_PASS=zmpass
Any help would be appreciated.

Thanks.
Last edited by Nemesis02 on Wed Dec 17, 2008 12:05 am, edited 1 time in total.
Nemesis02
Posts: 5
Joined: Tue Dec 16, 2008 10:32 pm

Post by Nemesis02 »

When i try viewing one of the cameras on the control panel i get this in my system log:
Dec 16 17:56:46 roger-desktop zms[30378]: INF [Debug Level = 0, Debug Log = <none>]
Dec 16 17:56:46 roger-desktop zms[30378]: WAR [Shared memory not initialised by capture daemon, some query functions may not be available or produce invalid results]
Dec 16 17:56:46 roger-desktop zmwatch[29541]: INF [Restarting capture daemon for Quickcam, shared memory not valid]
Dec 16 17:56:47 roger-desktop zmdc[30382]: INF ['zmc -d /dev/video0' started at 08/12/16 17:56:47]
Dec 16 17:56:47 roger-desktop zmdc[29509]: INF ['zmc -d /dev/video0' starting at 08/12/16 17:56:47, pid = 30382]
Dec 16 17:56:47 roger-desktop zmwatch[29541]: INF ['zmc -d /dev/video0' starting at 08/12/16 17:56:47, pid = 30382]
Dec 16 17:56:47 roger-desktop zmwatch[29541]: INF [Restarting capture daemon for HP, time since last capture 9 seconds (1229471806-1229471797)]
Dec 16 17:56:47 roger-desktop zmc_dvideo0[30382]: INF [Debug Level = 0, Debug Log = <none>]
Dec 16 17:56:47 roger-desktop zmdc[30384]: INF ['zmc -d /dev/video1' started at 08/12/16 17:56:47]
Dec 16 17:56:47 roger-desktop zmc_dvideo1[30384]: INF [Debug Level = 0, Debug Log = <none>]
Dec 16 17:56:47 roger-desktop zmdc[29509]: INF ['zmc -d /dev/video1' starting at 08/12/16 17:56:47, pid = 30384]
Dec 16 17:56:47 roger-desktop zmwatch[29541]: INF ['zmc -d /dev/video1' starting at 08/12/16 17:56:47, pid = 30384]
Dec 16 17:56:47 roger-desktop zmc_dvideo1[30384]: INF [Starting Capture]
Dec 16 17:56:48 roger-desktop zmc_dvideo0[30382]: INF [Starting Capture]
I currently have my cameras turning on and off as needed, i suppose to capture the pictures.
Nemesis02
Posts: 5
Joined: Tue Dec 16, 2008 10:32 pm

Post by Nemesis02 »

==> /tmp/zmdc.log <==
12/16/2008 18:01:31.734847 zmdc[30812].WAR [Can't find process with command of 'zma -m']
12/16/2008 18:01:31.916636 zmdc[30812].WAR [Can't find process with command of 'zmc -m']
12/16/2008 18:02:23.559170 zmdc[30812].INF [Command 'zmc -d /dev/video0' removed from pending list at 08/12/16 18:02:23]
12/16/2008 18:02:23.749907 zmdc[30812].INF ['zmc -d /dev/video0' starting at 08/12/16 18:02:23, pid = 31233]
12/16/2008 18:02:23.975287 zmdc[30812].WAR [Can't find process with command of 'zma -m 3']
12/16/2008 18:02:24.331573 zmdc[30812].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
12/16/2008 18:02:24.331939 zmdc[30812].INF [Starting pending process, zmc -d /dev/video0]
12/16/2008 18:02:24.336943 zmdc[30812].INF ['zmc -d /dev/video0' starting at 08/12/16 18:02:24, pid = 31238]
12/16/2008 18:02:24.728619 zmdc[30812].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
12/16/2008 18:02:24.739651 zmdc[30812].WAR [Can't find process with command of 'zma -m']
12/16/2008 18:02:25.028821 zmdc[30812].WAR [Can't find process with command of 'zmc -m']
12/16/2008 18:02:29.099278 zmdc[30812].INF [Starting pending process, zmc -d /dev/video0]
12/16/2008 18:02:29.120157 zmdc[30812].INF ['zmc -d /dev/video0' starting at 08/12/16 18:02:29, pid = 31251]
12/16/2008 18:02:29.612557 zmdc[30812].ERR ['zmc -d /dev/video0' exited abnormally, exit status 255]
Nemesis02
Posts: 5
Joined: Tue Dec 16, 2008 10:32 pm

Post by Nemesis02 »

In the kernel log i keep seeing this error msg popping up:
Dec 16 18:41:05 roger-desktop kernel: [12866.456546] pwc: Failed to set video mode SIF@10 fps; return code = -62
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

Post by Lee Sharp »

Did you do all the changes mentioned in the readme.deb or on the wiki?
Nemesis02
Posts: 5
Joined: Tue Dec 16, 2008 10:32 pm

Post by Nemesis02 »

Lee Sharp wrote:Did you do all the changes mentioned in the readme.deb or on the wiki?
I've extended my shared memory like it said bout the shmget i believe it is. I have one of the cameras working, but now i have a Pixart w/ the PAC207 palette but i don't see it on the list and its telling me
Dec 16 20:10:27 roger-desktop zmc_dvideo1[7396]: ERR [Sync failure for frame 1 buffer 2(1): Invalid argument]
Dec 16 20:10:27 roger-desktop zmdc[5431]: ERR ['zmc -d /dev/video1' exited abnormally, exit status 255]
You can see on here the webcam i have:
http://mxhaard.free.fr/spca5xx.html

The ID from lsusb is saying its the "Qtec 170 0x093a 0x2460 Qtec Webcam100" from http://www.walmart.com/catalog/product. ... id=4183855

However xawtv reads it as:
roger@roger-laptop:~$ xawtv -hwscan
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.27-9-generic)
looking for available devices
/dev/video0: OK [ -device /dev/video0 ]
type : v4l2
name : CIF Single Chip
flags: capture
roger@roger-laptop:~$ lsusb
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 093a:2460 Pixart Imaging, Inc. Q-TEC WEBCAM 100
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 045e:0039 Microsoft Corp. IntelliMouse Optical
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

Post by Lee Sharp »

Nemesis02 wrote: However xawtv reads it as:
roger@roger-laptop:~$ xawtv -hwscan
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.27-9-generic)
looking for available devices
/dev/video0: OK [ -device /dev/video0 ]
type : v4l2
name : CIF Single Chip
flags: capture
Zoneminder is v4l, not v4l2. They are porting it, but it is not yet ported.
Sully
Posts: 9
Joined: Sat Feb 17, 2007 12:41 am

Ubuntu 8.10

Post by Sully »

On Ubuntu 8.10, I used Synaptic Package Manager to install Zoneminder. Then I followed along here http://www.zoneminder.com/wiki/index.php/Ubuntu_7.04 and did this.
type this to link the apache.conf file to zoneminder.conf per the readme.deb :-

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

Then type this to reload the apache config

sudo /etc/init.d/apache2 reload
ZM came right up at http://localhost/zm

Will config my Axis IP servers next.

Sully
Locked