Page 1 of 2

Does not record to hard drive

Posted: Fri Nov 13, 2009 4:40 pm
by Fitch
I have an Emachines E4026 computer with an Intel Pentium 2.9GHz with a measly 1GB memory

I've come a long way in the three weeks that I've been fooling around with Linux. I just have the one problem left...
-except for the Gconf problem when I'm in root - but that can wait.

I have pictures on the host computer, I even have them showing on the other computers - as long as I don't use Windows Internet Explorer.

What I don't have is any recordings, so when an event happens, there's nothing on the hard drives. It even says "Event Alarm", but doesn't do anything about it.
I've set sysctl.conf to:

kernel.shmall=134217728
kernel.shmax=134217728

but this is the output from zmwatch:

11/13/09 15:36:22.523775 zmwatch[2512].INF [Watchdog starting]
11/13/09 15:36:22.524236 zmwatch[2512].INF [Watchdog pausing for 30 seconds]
11/13/09 15:36:41.949862 zmwatch[2512].INF [Restarting capture daemon for Key_Rack, shared memory not valid]
11/13/09 15:36:42.127752 zmwatch[2512].INF ['zmc -d /dev/video0' stopping at 09/11/13 15:36:42]
11/13/09 15:36:42.128397 zmwatch[2512].INF [Restarting capture daemon for Car_Park, shared memory not valid]
11/13/09 15:36:42.330495 zmwatch[2512].INF [Can't find child with pid of '3147'] at /usr/bin/zmwatch.pl line 119
11/13/09 15:36:42.352204 zmwatch[2512].INF [Restarting capture daemon for Kitchen, shared memory not valid]
11/13/09 15:36:42.530628 zmwatch[2512].INF ['zmc -d /dev/video0' stopping at 09/11/13 15:36:42]
11/13/09 15:36:42.531276 zmwatch[2512].INF [Restarting capture daemon for Workshop, shared memory not valid]
11/13/09 15:36:42.733790 zmwatch[2512].INF [Can't find child with pid of '3150'] at /usr/bin/zmwatch.pl line 119
11/13/09 15:36:52.735300 zmwatch[2512].INF [Restarting capture daemon for Key_Rack, shared memory not valid]
11/13/09 15:36:52.912199 zmwatch[2512].INF ['zmc -d /dev/video0' stopping at 09/11/13 15:36:52]
11/13/09 15:36:52.912870 zmwatch[2512].INF [Restarting capture daemon for Car_Park, shared memory not valid]
11/13/09 15:36:53.115274 zmwatch[2512].INF [Can't find child with pid of '3155'] at /usr/bin/zmwatch.pl line 119
11/13/09 15:36:53.116316 zmwatch[2512].INF [Restarting capture daemon for Kitchen, shared memory not valid]
11/13/09 15:36:53.292986 zmwatch[2512].INF ['zmc -d /dev/video0' stopping at 09/11/13 15:36:53]
11/13/09 15:36:53.293636 zmwatch[2512].INF [Restarting capture daemon for Workshop, shared memory not valid]
11/13/09 15:36:53.497503 zmwatch[2512].INF [Can't find child with pid of '3158'] at /usr/bin/zmwatch.pl line 119
11/13/09 15:37:03.499145 zmwatch[2512].INF [Restarting capture daemon for Key_Rack, shared memory not valid]
11/13/09 15:37:03.685312 zmwatch[2512].INF ['zmc -d /dev/video0' stopping at 09/11/13 15:37:03]
11/13/09 15:37:03.685971 zmwatch[2512].INF [Restarting capture daemon for Car_Park, shared memory not valid]
11/13/09 15:37:03.903243 zmwatch[2512].INF [Can't find child with pid of '3224'] at /usr/bin/zmwatch.pl line 119
11/13/09 15:37:03.904292 zmwatch[2512].INF [Restarting capture daemon for Kitchen, shared memory not valid]
11/13/09 15:37:04.107428 zmwatch[2512].INF ['zmc -d /dev/video0' stopping at 09/11/13 15:37:04]
11/13/09 15:37:04.108085 zmwatch[2512].INF [Restarting capture daemon for Workshop, shared memory not valid]
11/13/09 15:37:04.332015 zmwatch[2512].INF [Can't find child with pid of '3242'] at /usr/bin/zmwatch.pl line 119
11/13/09 15:37:14.333699 zmwatch[2512].INF [Restarting capture daemon for Key_Rack, shared memory not valid]
11/13/09 15:37:14.804310 zmwatch[2512].INF ['zmc -d /dev/video0' stopping at 09/11/13 15:37:14]
11/13/09 15:37:14.804980 zmwatch[2512].INF [Restarting capture daemon for Car_Park, shared memory not valid]
11/13/09 15:37:15.436808 zmwatch[2512].INF [Can't find child with pid of '3408'] at /usr/bin/zmwatch.pl line 119
11/13/09 15:37:15.437851 zmwatch[2512].INF [Restarting capture daemon for Kitchen, shared memory not valid]
11/13/09 15:37:15.931656 zmwatch[2512].INF ['zmc -d /dev/video0' stopping at 09/11/13 15:37:15]
11/13/09 15:37:15.932306 zmwatch[2512].INF [Restarting capture daemon for Workshop, shared memory not valid]
11/13/09 15:37:16.528066 zmwatch[2512].INF [Can't find child with pid of '3418'] at /usr/bin/zmwatch.pl line 119
11/13/09 15:37:26.529537 zmwatch[2512].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
11/13/09 15:37:26.529791 zmwatch[2512].INF [Restarting capture daemon for Key_Rack, shared memory not valid]
11/13/09 15:37:27.123938 zmwatch[2512].INF ['zmc -d /dev/video0' stopping at 09/11/13 15:37:27]
11/13/09 15:37:27.124612 zmwatch[2512].INF [Restarting capture daemon for Car_Park, shared memory not valid]
11/13/09 15:37:27.584694 zmwatch[2512].INF [Can't find child with pid of '3477'] at /usr/bin/zmwatch.pl line 119
11/13/09 15:37:27.585733 zmwatch[2512].INF [Restarting capture daemon for Kitchen, shared memory not valid]
11/13/09 15:37:27.764122 zmwatch[2512].INF ['zmc -d /dev/video0' stopping at 09/11/13 15:37:27]
11/13/09 15:37:27.764787 zmwatch[2512].INF [Restarting capture daemon for Workshop, shared memory not valid]
11/13/09 15:37:28.011800 zmwatch[2512].INF [Can't find child with pid of '3482'] at /usr/bin/zmwatch.pl line 119
11/13/09 15:37:38.013351 zmwatch[2512].INF [Restarting capture daemon for Key_Rack, shared memory not valid]
11/13/09 15:37:38.189279 zmwatch[2512].INF ['zmc -d /dev/video0' stopping at 09/11/13 15:37:38]
11/13/09 15:37:38.189927 zmwatch[2512].INF [Restarting capture daemon for Car_Park, shared memory not valid]
11/13/09 15:37:38.392914 zmwatch[2512].INF [Can't find child with pid of '3537'] at /usr/bin/zmwatch.pl line 119
11/13/09 15:37:38.393957 zmwatch[2512].INF [Restarting capture daemon for Kitchen, shared memory not valid]
11/13/09 15:37:38.650831 zmwatch[2512].INF ['zmc -d /dev/video0' stopping at 09/11/13 15:37:38]
11/13/09 15:37:38.651473 zmwatch[2512].INF [Restarting capture daemon for Workshop, shared memory not valid]
11/13/09 15:37:38.984662 zmwatch[2512].INF [Can't find child with pid of '3544'] at /usr/bin/zmwatch.pl line 119
11/13/09 15:37:48.986109 zmwatch[2512].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
11/13/09 15:37:48.986355 zmwatch[2512].INF [Restarting capture daemon for Key_Rack, shared memory not valid]
11/13/09 15:37:49.163911 zmwatch[2512].INF ['zmc -d /dev/video0' stopping at 09/11/13 15:37:49]
11/13/09 15:37:49.164582 zmwatch[2512].INF [Restarting capture daemon for Car_Park, shared memory not valid]
11/13/09 15:37:49.410830 zmwatch[2512].INF [Can't find child with pid of '3595'] at /usr/bin/zmwatch.pl line 119
11/13/09 15:37:49.411870 zmwatch[2512].INF [Restarting capture daemon for Kitchen, shared memory not valid]
11/13/09 15:37:49.588101 zmwatch[2512].INF ['zmc -d /dev/video0' stopping at 09/11/13 15:37:49]
11/13/09 15:37:49.588772 zmwatch[2512].INF [Restarting capture daemon for Workshop, shared memory not valid]
11/13/09 15:37:49.789037 zmwatch[2512].INF [Can't find child with pid of '3598'] at /usr/bin/zmwatch.pl line 119
11/13/09 15:37:59.790451 zmwatch[2512].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
11/13/09 15:37:59.790699 zmwatch[2512].INF [Restarting capture daemon for Key_Rack, shared memory not valid]
11/13/09 15:37:59.985221 zmwatch[2512].INF ['zmc -d /dev/video0' stopping at 09/11/13 15:37:59]
11/13/09 15:37:59.985870 zmwatch[2512].INF [Restarting capture daemon for Car_Park, shared memory not valid]
11/13/09 15:38:00.190929 zmwatch[2512].INF [Can't find child with pid of '3644'] at /usr/bin/zmwatch.pl line 119
11/13/09 15:38:00.191969 zmwatch[2512].INF [Restarting capture daemon for Kitchen, shared memory not valid]
11/13/09 15:38:00.609014 zmwatch[2512].INF ['zmc -d /dev/video0' stopping at 09/11/13 15:38:00]
11/13/09 15:38:00.609674 zmwatch[2512].INF [Restarting capture daemon for Workshop, shared memory not valid]
11/13/09 15:38:01.404376 zmwatch[2512].INF [Can't find child with pid of '3660'] at /usr/bin/zmwatch.pl line 119
11/13/09 15:38:11.405815 zmwatch[2512].ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
11/13/09 15:38:11.406059 zmwatch[2512].INF [Restarting capture daemon for Key_Rack, shared memory not valid]
11/13/09 15:38:11.671998 zmwatch[2512].INF ['zmc -d /dev/video0' stopping at 09/11/13 15:38:11]
11/13/09 15:38:11.672664 zmwatch[2512].INF [Restarting capture daemon for Car_Park, shared memory not valid]
11/13/09 15:38:11.886818 zmwatch[2512].INF [Can't find child with pid of '3727'] at /usr/bin/zmwatch.pl line 119
11/13/09 15:38:11.887863 zmwatch[2512].INF [Restarting capture daemon for Kitchen, shared memory not valid]
11/13/09 15:38:12.113442 zmwatch[2512].INF ['zmc -d /dev/video0' stopping at 09/11/13 15:38:12]
11/13/09 15:38:12.114098 zmwatch[2512].INF [Restarting capture daemon for Workshop, shared memory not valid]
11/13/09 15:38:12.320446 zmwatch[2512].INF [Can't find child with pid of '3730'] at /usr/bin/zmwatch.pl line 119
11/13/09 15:38:22.322075 zmwatch[2512].INF [Restarting capture daemon for Key_Rack, shared memory not valid]
11/13/09 15:38:22.772466 zmwatch[2512].INF ['zmc -d /dev/video0' stopping at 09/11/13 15:38:22]
11/13/09 15:38:22.773118 zmwatch[2512].INF [Restarting capture daemon for Car_Park, shared memory not valid]
11/13/09 15:38:23.210410 zmwatch[2512].INF ['zmc -d /dev/video0' starting at 09/11/13 15:38:23, pid = 3787]
11/13/09 15:38:23.210954 zmwatch[2512].ERR [Can't get shared memory id '7a6d0003', 3: No such file or directory]
11/13/09 15:38:23.211088 zmwatch[2512].INF [Restarting capture daemon for Kitchen, shared memory not valid]
11/13/09 15:38:23.548110 zmwatch[2512].INF ['zmc -d /dev/video0' stopping at 09/11/13 15:38:23]
11/13/09 15:42:51.343929 zmwatch[5200].INF [Watchdog starting]
11/13/09 15:42:51.400580 zmwatch[5200].INF [Watchdog pausing for 30 seconds]
13/11/09 15:54:06.034985 zmwatch[9002].INF [Watchdog starting]
13/11/09 15:54:06.035620 zmwatch[9002].INF [Watchdog pausing for 30 seconds]

What do I do next?

Posted: Fri Nov 13, 2009 8:14 pm
by kingofkya
as har as the ie problem heres a hint http://www.charliemouse.com/code/cambozola/index.html

install that to you zm folder

Posted: Fri Nov 13, 2009 9:25 pm
by Fitch
As far as IE is concerned, (this is another computer by the way, I'm greedy, I have 4) I just installed Safari as my default browser..
If I ever get the hang of Ubuntu, I'll just replace Windows altogether on the other computers.

But the Zoneminder recording problem is something else..

Posted: Sat Nov 14, 2009 12:38 am
by Fitch
Managed to sort one problem (shmall was spelt wrongly in sysctl.conf).
They are both set to 134217728.

Now zmwatch gives the following:

11/14/09 00:04:34.789517 zmwatch[2513].INF [Watchdog starting]
11/14/09 00:04:34.801212 zmwatch[2513].INF [Watchdog pausing for 30 seconds]
11/14/09 00:10:22.771383 zmwatch[4631].INF [Watchdog starting]
11/14/09 00:10:22.771806 zmwatch[4631].INF [Watchdog pausing for 30 seconds]
Fine.
Still no recordings!

The debug log gives:

11/14/09 00:17:35.162616 zmu[5995].INF-zm_debug.c/305 [New Debug Level = 5, New Debug Log = /tmp/zm_debug.log.05995]
11/14/09 00:17:35.163012 zmu[5995].DB1-zm_monitor.cpp/1964 [Got 1 monitors]
11/14/09 00:17:35.164437 zmu[5995].DB1-zm_monitor.cpp/259 [monitor purpose=0]
11/14/09 00:17:35.164469 zmu[5995].DB1-zm_monitor.cpp/266 [shm.size=9217188]
11/14/09 00:17:35.164588 zmu[5995].DB1-zm_zone.cpp/50 [Initialised zone 0/All - 1 - 320x240 - Rgb:ff0000, CM:3, MnAT:15, MxAT:0, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0, OF: 0]
11/14/09 00:17:35.167576 zmu[5995].DB1-zm_monitor.cpp/348 [Monitor Key_Rack has function 3]
11/14/09 00:17:35.167589 zmu[5995].DB1-zm_monitor.cpp/349 [Monitor Key_Rack LBF = '%N - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
11/14/09 00:17:35.167600 zmu[5995].DB1-zm_monitor.cpp/350 [Monitor Key_Rack IBC = 40, WUC = 25, pEC = 10, PEC = 10, EAF = 1, FRI = 1000, RBP = 7, FM = 0]
11/14/09 00:17:35.167621 zmu[5995].DB1-zm_monitor.cpp/2109 [Loaded monitor 1(Key_Rack), 0 zones]
Looks reasonable enough...

However, viewing the key rack camera's footage on any event gives:

Warning: opendir(/home/brafferton/videos//1/09/11/14/00/11/28) [function.opendir]: failed to open dir: No such file or directory in /usr/share/zoneminder/zm_html_view_video.php on line 64

I've noticed that if I try to change the preset of any camera (I have 4) to e.g. "Best,medium sensitivity" it instantly goes back to "Choose preset" when I click any button including "Save".

I'm desperate for an answer here!
PLEASE!

Posted: Sat Nov 14, 2009 1:40 pm
by KeithB
This looks like an ownership problem, you probably need to chown -R apache.apache the video directory. I would probably first have a look at the ownership of some of those directories.

Posted: Sat Nov 14, 2009 4:05 pm
by Fitch
I did:

sudo chown -R apache.apache /usr/share/zoneminder/events

and got

chown: invalid user: 'apache.apache'

I did have a look in the following:

/usr/share/zoneminder/events/1/09/11/14/13/45/34 and saw images
/usr/share/zoneminder/events/1/09/11/14/14/11/13 and saw more
/usr/share/zoneminder/events/1/09/11/14/14/52/12/ etc.
The owner & group are both www-data

Is this how zoneminder keeps the images? or is something really screwed?

Posted: Sat Nov 14, 2009 5:37 pm
by whatboy
Did you add apache to sudoers???

Posted: Sat Nov 14, 2009 6:05 pm
by Fitch
Don't quite know what you mean there...

The /etc/apache2 directory is owned by root. Should I change it to www-data?

Posted: Sat Nov 14, 2009 6:20 pm
by whatboy
on terminal do

Code: Select all

su -
<enter root's password>
visudo
at the end of file add
apache ALL=(ALL) NOPASSWD:ALL
I have Fedora, and apache user is apache... change apache to what your apache user is... maybe www-data I don't know...

Posted: Sat Nov 14, 2009 7:39 pm
by Fitch
I edited sudo and tried both apache and apache2 as directed. Still no playback.
I can't do the chown bit as it always comes up invalid user no matter what I try.

I did manage to find this trawling the directories under /var/log/apache2/error.log, (quite big file since I started on the 8th Nov) the last bit is shown below..

Sat Nov 14 17:17:50 2009] [error] [client ::1] File does not exist: /usr/share/zoneminder/usr, referer: http://localhost/index.php?view=event&m ... c=0&page=1

Clicking on the http/blah gives me a load of empty squares where pictures should be.

Image

Posted: Sat Nov 14, 2009 9:34 pm
by whatboy
To do the chown or chmod you either have to be root or your user (You user I refer to what user you use when log in the gui...) must be in sudoers, if in sudoers you do "sudo chown"

Posted: Sat Nov 14, 2009 10:03 pm
by Fitch
All permutations come up invalid user whether I'm root or not, e.g:
root@Cameras:/home/brafferton# chown -R apache2.www-data /usr/share/zoneminder/events
chown: invalid user 'apache2.www-data'

Posted: Sat Nov 14, 2009 10:04 pm
by kingofkya
As far as IE is concerned, (this is another computer by the way, I'm greedy, I have 4
i have 7

anyways

does export work?(at the top of the event page)

just to check if its truly not saving events or if the interface is not working

Posted: Sat Nov 14, 2009 10:25 pm
by Fitch
Yes Export works, saves it compressed with all the directories (is that right? - see post 6) and in the bottom directory are all the jpegs (usually about 20 of them).

I've checked all the ...zoneminder/events directories and they all belong to www-data, and they are all in group www-data.

The Apache directory is owned by root, group root. So that shouldn't be a problem, should it?

But what about the error:
File does not exist: /usr/share/zoneminder/usr
as in post 10
where does that extra /usr at the end come from?

Posted: Sun Nov 15, 2009 2:46 am
by whatboy
what do you have on User and Group in the /etc/httpd/conf/httpd.conf file???