exit status 255

Forum for questions and support relating to the 1.24.x releases only.
Locked
mascimax
Posts: 8
Joined: Tue May 26, 2009 7:34 pm

exit status 255

Post by mascimax »

i not see the fps and see black screen in zoneminder console but i see good in kopete software,i have kubuntu 9.04 please help me

May 26 21:35:37 ubuntu zmc_dvideo[10626]: ERR [Failed to open video device /dev/video: No such file or directory]
May 26 21:35:37 ubuntu zmdc[9927]: ERR ['zmc -d /dev/video' exited abnormally, exit status 255]
May 26 21:35:47 ubuntu zmwatch[9956]: ERR [Can't get shared memory id '7a6d000c', 12: Nessun file o directory]
May 26 21:35:47 ubuntu zmwatch[9956]: INF [Restarting capture daemon for New, shared memory not valid]
May 26 21:35:48 ubuntu zmdc[10628]: INF ['zmc -d /dev/video' started at 09/05/26 21:35:48]
May 26 21:35:48 ubuntu zmdc[9927]: INF ['zmc -d /dev/video' starting at 09/05/26 21:35:48, pid = 10628]
May 26 21:35:48 ubuntu zmwatch[9956]: INF ['zmc -d /dev/video' starting at 09/05/26 21:35:48, pid = 10628]
May 26 21:35:48 ubuntu zmc_dvideo[10628]: INF [Debug Level = 0, Debug Log = <none>]
May 26 21:35:48 ubuntu zmc_dvideo[10628]: ERR [Failed to open video device /dev/video: No such file or directory]
May 26 21:35:48 ubuntu zmdc[9927]: ERR ['zmc -d /dev/video' exited abnormally, exit status 255]
johnnytolengo
Posts: 184
Joined: Tue Oct 14, 2008 5:59 pm

try this

Post by johnnytolengo »

Hi , first try to do : chmod 777 /dev/video*


then let know.

J.
mascimax
Posts: 8
Joined: Tue May 26, 2009 7:34 pm

Post by mascimax »

tanks for your reply yes i just try,but i have same problem
mascimax
Posts: 8
Joined: Tue May 26, 2009 7:34 pm

Post by mascimax »

i try also this but no work help!!!! :( :cry:

£10 that it's rights.

1. Post the output from this command into this thread :
Quote:
cat /var/log/syslog | tail



2. Try :
Quote:
chmod 777 /dev/video0

Quote:
/etc/init.d/zoneminder restart



3. Or try this :
Quote:
adduder www-data video



4. And maybe this :
Quote:
zmfix



5. Could even be memory, shmget :
Quote:
echo 134217728 >/proc/sys/kernel/shmmax



btw, 2 and 5 won't survive a reboot.
mascimax
Posts: 8
Joined: Tue May 26, 2009 7:34 pm

Post by mascimax »

sorry i wrong to post i have zoneminder 1.23.3
belanger
Posts: 19
Joined: Wed Apr 15, 2009 10:09 am

Post by belanger »

mascimax wrote:sorry i wrong to post i have zoneminder 1.23.3
Your log shows "No such file or directory" , if you do ls -l /dev/vid* ... do you actually see a file named "/dev/video" and in another post you write you did "chmod 777 /dev/video0". Is it your configuration that isn't pointing to the right place? You probably need to include the number of the video device in your PATH.

Pierre B.
johnnytolengo
Posts: 184
Joined: Tue Oct 14, 2008 5:59 pm

Post by johnnytolengo »

Yezzz, i don't know why but i change the path to /tmp/myfile.txt and now works, first step ok! but i don't want to create a txt i want to do an action:

system("echo 'Hello I am testing the Alarm' | gnokii --sendsms 474548754");

In normal condition when i put this command in my console i receive an SMS.


But when i put it in /usr/bin/zmfilter.pl i don't receive SMS.

So interesting ...


J.
belanger
Posts: 19
Joined: Wed Apr 15, 2009 10:09 am

Post by belanger »

johnnytolengo wrote:Yezzz, i don't know why but i change the path to /tmp/myfile.txt and now works.
Any users can create files in /tmp that belongs to them, if you come from Windows world just remember you can't write and do anything you want anywhere unless you are "root" or have the rights to do it -- and by default, normal privileges don't allow you to do anything you would want.

I know nothing about gnokii but I would try to put the full path in zmfilter.pl (/usr/local/bin/...) perhaps that will help.
johnnytolengo
Posts: 184
Joined: Tue Oct 14, 2008 5:59 pm

Post by johnnytolengo »

I so....... ST....... yes thing was that my device USB for the phone had lower permisions :)

Just i fix it chmod 777 ttyUSB, now its working .

The last thing i am looking for is :

how can i detect if a camera has status ON? (in perl)

I want to create a SMS warming when some camera stops working.

thank you all for share your knowledges with me. :)

Regards.

J.
belanger
Posts: 19
Joined: Wed Apr 15, 2009 10:09 am

Post by belanger »

johnnytolengo wrote: how can i detect if a camera has status ON? (in perl)

I want to create a SMS warming when some camera stops working.
Well if you unplug the camera I think the image will become all "blue" (or black?) , not sure if zoneminder will log this type or "error" but this could be useful to detect broken cameras and/or capture cards.

ps: so you have a phone connected on a USB port and you use the phone to send a SMS, correct? What type of phone are you using for this?
johnnytolengo
Posts: 184
Joined: Tue Oct 14, 2008 5:59 pm

Post by johnnytolengo »

i am using a nokia 6020 plus cable CA-42 (its usb), software i use simply gnokii you can download form gnokii.org.

but it just enoght to do apt-get install gnokii :)

then create a file in /etc/gnokii with this input

Code: Select all

[global]
port = /dev/ttyUSB0
model = 6020
initlength = default
connection = dku5
use_locking = yes
smsc_timeout = 10

to confirm you are working type:

gnokii --identify


and for send an SMS

Code: Select all

echo 'Criminals had arrive to home, we are enjoying here' | gnokii --sendsms 454741547


If you find how to check if a camera is OFF please let my know, i think it will be a new super feature for ZM.

J.
mascimax
Posts: 8
Joined: Tue May 26, 2009 7:34 pm

Post by mascimax »

belanger wrote:
mascimax wrote:sorry i wrong to post i have zoneminder 1.23.3
Your log shows "No such file or directory" , if you do ls -l /dev/vid* ... do you actually see a file named "/dev/video" and in another post you write you did "chmod 777 /dev/video0". Is it your configuration that isn't pointing to the right place? You probably need to include the number of the video device in your PATH.

Pierre B.
tanks for your reply,
1) in witch way i include the number of the video device in my PATH??
2) in witch way i see if my configuration that isn't pointing to the right place?

this ia are my ls -l /dev/vid*

root@ubuntu:~# ls -l /dev/video0
crw-rw---- 1 root video 81, 0 2009-05-27 21:33 /dev/video0
root@ubuntu:~# ls -l /dev/video1
crw-rw---- 1 root video 81, 2 2009-05-27 21:33 /dev/video1
root@ubuntu:~# ls -l /dev/video2
crw-rw---- 1 root video 81, 4 2009-05-27 21:33 /dev/video2
root@ubuntu:~# ls -l /dev/video3
crw-rw---- 1 root video 81, 6 2009-05-27 21:33 /dev/video3
root@ubuntu:~#

tanks
belanger
Posts: 19
Joined: Wed Apr 15, 2009 10:09 am

Post by belanger »

mascimax wrote: tanks for your reply,
1) in witch way i include the number of the video device in my PATH??
2) in witch way i see if my configuration that isn't pointing to the right place?
tanks
I strongly suggest you first read the documentation :

http://www.zoneminder.com/wiki/index.php/Documentation

Added or not the "number" of the video device is also described in the documentation. Changes are that you add it within the PATH to your device, for example /dev/video0 , /dev/video1 , etc and this might depend on the type of capture card you use. If you use a USB camera, I can't help you because I don't have experience with those.

Pierre B.
mascimax
Posts: 8
Joined: Tue May 26, 2009 7:34 pm

Post by mascimax »

i have pci capture card with 4 input

root@ubuntu:~# zmu -d /dev/video0 -q -v
Video Capabilities
Name: UNKNOWN/GENERIC
Type: 45
Can capture
Does teletext
Overlay onto frame buffer
Can clip
Video Channels: 1
Audio Channels: 0
Maximum Width: 720
Maximum Height: 578
Minimum Width: 48
Minimum Height: 32
Window Attributes
X Offset: 0
Y Offset: 0
Width: 0
Height: 0
Picture Attributes
Palette: 4 - 24bit RGB
Colour Depth: 24
Brightness: 32896
Hue: 32896
Colour :33026
Contrast: 35090
Whiteness: 0
Channel 0 Attributes
Name: default
Channel: 0
Flags: 0
Type: 2 - Camera
Format: 0 - PAL
root@ubuntu:~#


HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!
johnnytolengo
Posts: 184
Joined: Tue Oct 14, 2008 5:59 pm

Post by johnnytolengo »

I think that the error is around permissions, try to put to all system chmod 777 and you will see :D just a joke :)
Locked