Questions on working installation
Questions on working installation
I'm having a few issues in a working installation and am hopeful for some input or advise as to what to search out on the forums here in order to find my answers.
1) the video recording appears to work as I have it set to motion detection and continual recording. The drive is filling up after about 2 weeks of recording and it appears that it is not purging the old events as I had told it to do. (which is problem #1) So it appears that it is keeping the old video events, as it only has events from the current day and then events from a few weeks ago, but then I cannot find the continual video for those either... So it appears that there are some sort of issues going on here.
2) the thumbnails are broken so I assume that is a function of something going on in item 1.
3) video exports seem to take a very, very, very long time and perhaps hang the system or at least ZoneMinder.
4) I cannot control play back by either the java plugin nor the javascript/Moo Tools method.
1) the video recording appears to work as I have it set to motion detection and continual recording. The drive is filling up after about 2 weeks of recording and it appears that it is not purging the old events as I had told it to do. (which is problem #1) So it appears that it is keeping the old video events, as it only has events from the current day and then events from a few weeks ago, but then I cannot find the continual video for those either... So it appears that there are some sort of issues going on here.
2) the thumbnails are broken so I assume that is a function of something going on in item 1.
3) video exports seem to take a very, very, very long time and perhaps hang the system or at least ZoneMinder.
4) I cannot control play back by either the java plugin nor the javascript/Moo Tools method.
Ad1. check purgewhenfull filter settings. there should be option like "order" it must be set up as date. if it is set up as ID it will remove the newest event's. i think it work in the way that it first remove jpg's but leaves entries in database. then after some time zm has script that chack if database events and events on disk are the same, and if something is missing (jpg's in this situation) he remove database entries. I think that is Ad 2
Ad 3. maybe computer is to slow?
Ad 3. maybe computer is to slow?
Interestingly symlinks are set in the /etc/zm/apache.conf, but I can't recall if this particular installation is pulling in the zm/apache.conf config or not. Trying to hunt that down. Also, in the error.log I'm not seeing too much in the way of events not being able to be followed, but I am seeing it for some thumbnails... Hmm.
Okay, I did actually copy the apache.conf from /etc/zm to /etc/apache2/config.d so it appears that its pulling it in as I can see the following in this conf:
#BEGIN APACHE CONF
Alias /zm /usr/share/zoneminder
<Directory /usr/share/zoneminder>
php_flag register_globals off
Options Indexes FollowSymLinks
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>
</Directory>
#END APACHE CONF
so that looks alright.
Then peeking into /usr/share/zoneminder, the events folder is -> /var/cache/zoneminder/events and /var/cache/zoneminder -> /mnt/video/zoneminder
Soooo.... It appears as though it's set alright there. Do you see anything or have any other ideas?
#BEGIN APACHE CONF
Alias /zm /usr/share/zoneminder
<Directory /usr/share/zoneminder>
php_flag register_globals off
Options Indexes FollowSymLinks
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>
</Directory>
#END APACHE CONF
so that looks alright.
Then peeking into /usr/share/zoneminder, the events folder is -> /var/cache/zoneminder/events and /var/cache/zoneminder -> /mnt/video/zoneminder
Soooo.... It appears as though it's set alright there. Do you see anything or have any other ideas?
What is you path for events in the console options under the paths tab?
It should still point to "events".
If it still is then maybe there is a limit to the number of symlinks that Apache can follow (I'll have to research that directive a bit more) or permissions in some other way is being denied to Apache.
BTW, It's probably a good idea to stop the ZM services while mucking with these settings till everything is working as expected. Otherwise ZM could start deleting things from the database in which case you end up losing your events.
It should still point to "events".
If it still is then maybe there is a limit to the number of symlinks that Apache can follow (I'll have to research that directive a bit more) or permissions in some other way is being denied to Apache.
BTW, It's probably a good idea to stop the ZM services while mucking with these settings till everything is working as expected. Otherwise ZM could start deleting things from the database in which case you end up losing your events.
Yes, events is still set to "events".
Unfortunately the system has been running like this for about a month w/ the accompanying issues as I've just not had time to get back over to address them and now it's obviously all coming to a head...
Certainly looking forward to hearing some more! I really appreciate your attention thus far!
Unfortunately the system has been running like this for about a month w/ the accompanying issues as I've just not had time to get back over to address them and now it's obviously all coming to a head...
Certainly looking forward to hearing some more! I really appreciate your attention thus far!
Certainly, here are the contents of /var/log/apache/error.log:
[Sun Aug 24 07:39:56 2008] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Sun Aug 24 07:39:56 2008] [notice] mod_python: using mutex_directory /tmp
[Sun Aug 24 07:39:56 2008] [notice] Apache/2.2.9 (Debian) PHP/5.2.6-2 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal operations
[Mon Aug 25 09:59:37 2008] [error] [client 192.168.0.204] File does not exist: /var/www/favicon.ico
jpegtopnm: Can't open events/5/87336/000-capture.jpg. Errno=No such file or directory(2).
pnmscalefixed: EOF / read error reading magic number
sh: images/87336-000-capture-8.jpg: No space left on device
[Tue Aug 26 15:35:04 2008] [error] [client 192.168.0.204] File does not exist: /usr/share/zoneminder/images/87336-000-capture-8.jpg, referer: http://zoneminder/zm/index.php?view=eve ... [2][val]=5
[Tue Aug 26 15:37:13 2008] [error] [client 192.168.0.204] Premature end of script headers: zms, referer: http://zoneminder/zm/index.php?view=eve ... c=1&page=1
sh: images/87336-000-capture-8.jpg: No space left on device
jpegtopnm: Can't open events/5/87336/000-capture.jpg. Errno=No such file or directory(2).
pnmscalefixed: EOF / read error reading magic number
jpegtopnm: Can't open events/5/87336/000-capture.jpg. Errno=No such file or directory(2).
pnmscalefixed: EOF / read error reading magic number
sh: images/87336-000-capture-8.jpg: No space left on device
[Tue Aug 26 15:37:53 2008] [error] [client 192.168.0.204] File does not exist: /usr/share/zoneminder/images/87336-000-capture-8.jpg, referer: http://zoneminder/zm/index.php?view=eve ... [2][val]=5
[Tue Aug 26 15:37:53 2008] [error] [client 192.168.0.204] File does not exist: /usr/share/zoneminder/images/87336-000-capture-8.jpg, referer: http://zoneminder/zm/index.php?view=eve ... [2][val]=5
[Wed Aug 27 17:04:55 2008] [error] [client 192.168.0.204] File does not exist: /var/www/favicon.ico
[Wed Aug 27 17:04:58 2008] [error] [client 192.168.0.204] File does not exist: /var/www/favicon.ico
[Wed Aug 27 22:27:01 2008] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico, referer: http://localhost:8181/zm/index.php?view=options
[Wed Aug 27 22:27:13 2008] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico, referer: http://localhost:8181/zm/index.php?view ... &tab=paths
[Sun Aug 24 07:39:56 2008] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Sun Aug 24 07:39:56 2008] [notice] mod_python: using mutex_directory /tmp
[Sun Aug 24 07:39:56 2008] [notice] Apache/2.2.9 (Debian) PHP/5.2.6-2 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal operations
[Mon Aug 25 09:59:37 2008] [error] [client 192.168.0.204] File does not exist: /var/www/favicon.ico
jpegtopnm: Can't open events/5/87336/000-capture.jpg. Errno=No such file or directory(2).
pnmscalefixed: EOF / read error reading magic number
sh: images/87336-000-capture-8.jpg: No space left on device
[Tue Aug 26 15:35:04 2008] [error] [client 192.168.0.204] File does not exist: /usr/share/zoneminder/images/87336-000-capture-8.jpg, referer: http://zoneminder/zm/index.php?view=eve ... [2][val]=5
[Tue Aug 26 15:37:13 2008] [error] [client 192.168.0.204] Premature end of script headers: zms, referer: http://zoneminder/zm/index.php?view=eve ... c=1&page=1
sh: images/87336-000-capture-8.jpg: No space left on device
jpegtopnm: Can't open events/5/87336/000-capture.jpg. Errno=No such file or directory(2).
pnmscalefixed: EOF / read error reading magic number
jpegtopnm: Can't open events/5/87336/000-capture.jpg. Errno=No such file or directory(2).
pnmscalefixed: EOF / read error reading magic number
sh: images/87336-000-capture-8.jpg: No space left on device
[Tue Aug 26 15:37:53 2008] [error] [client 192.168.0.204] File does not exist: /usr/share/zoneminder/images/87336-000-capture-8.jpg, referer: http://zoneminder/zm/index.php?view=eve ... [2][val]=5
[Tue Aug 26 15:37:53 2008] [error] [client 192.168.0.204] File does not exist: /usr/share/zoneminder/images/87336-000-capture-8.jpg, referer: http://zoneminder/zm/index.php?view=eve ... [2][val]=5
[Wed Aug 27 17:04:55 2008] [error] [client 192.168.0.204] File does not exist: /var/www/favicon.ico
[Wed Aug 27 17:04:58 2008] [error] [client 192.168.0.204] File does not exist: /var/www/favicon.ico
[Wed Aug 27 22:27:01 2008] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico, referer: http://localhost:8181/zm/index.php?view=options
[Wed Aug 27 22:27:13 2008] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico, referer: http://localhost:8181/zm/index.php?view ... &tab=paths
These suggest that both ZM and Apache are incorrectly configured, are you sure that you have the settings as above.socsuser wrote:Certainly, here are the contents of /var/log/apache/error.log:
[Sun Aug 24 07:39:56 2008] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Sun Aug 24 07:39:56 2008] [notice] mod_python: using mutex_directory /tmp
[Sun Aug 24 07:39:56 2008] [notice] Apache/2.2.9 (Debian) PHP/5.2.6-2 with Suhosin-Patch mod_python/3.3.1 Python/2.5.2 mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal operations
[Mon Aug 25 09:59:37 2008] [error] [client 192.168.0.204] File does not exist: /var/www/favicon.ico
jpegtopnm: Can't open events/5/87336/000-capture.jpg. Errno=No such file or directory(2).
pnmscalefixed: EOF / read error reading magic number
sh: images/87336-000-capture-8.jpg: No space left on device
[Tue Aug 26 15:35:04 2008] [error] [client 192.168.0.204] File does not exist: /usr/share/zoneminder/images/87336-000-capture-8.jpg, referer: http://zoneminder/zm/index.php?view=eve ... [2][val]=5
[Tue Aug 26 15:37:13 2008] [error] [client 192.168.0.204] Premature end of script headers: zms, referer: http://zoneminder/zm/index.php?view=eve ... c=1&page=1
sh: images/87336-000-capture-8.jpg: No space left on device
jpegtopnm: Can't open events/5/87336/000-capture.jpg. Errno=No such file or directory(2).
pnmscalefixed: EOF / read error reading magic number
jpegtopnm: Can't open events/5/87336/000-capture.jpg. Errno=No such file or directory(2).
pnmscalefixed: EOF / read error reading magic number
sh: images/87336-000-capture-8.jpg: No space left on device
[Tue Aug 26 15:37:53 2008] [error] [client 192.168.0.204] File does not exist: /usr/share/zoneminder/images/87336-000-capture-8.jpg, referer: http://zoneminder/zm/index.php?view=eve ... [2][val]=5
[Tue Aug 26 15:37:53 2008] [error] [client 192.168.0.204] File does not exist: /usr/share/zoneminder/images/87336-000-capture-8.jpg, referer: http://zoneminder/zm/index.php?view=eve ... [2][val]=5
[Wed Aug 27 17:04:55 2008] [error] [client 192.168.0.204] File does not exist: /var/www/favicon.ico
[Wed Aug 27 17:04:58 2008] [error] [client 192.168.0.204] File does not exist: /var/www/favicon.ico
[Wed Aug 27 22:27:01 2008] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico, referer: http://localhost:8181/zm/index.php?view=options
[Wed Aug 27 22:27:13 2008] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico, referer: http://localhost:8181/zm/index.php?view ... &tab=paths
Also the one of the errors highlighted says that there is no room left on that drive. What do you get from df -h?
So sorry I did not reply sooner! I did not see a note that you'd replied until today and I've been rather hectic with another project so I was derailed, but yes, let me get back to you on all this:
Hmm. I believe that it is config'd properly. The problem with running out of space is that it's consuming the 400GB volume rather quickly as there are 12 cameras running on it at always record atm and its not purging itself, so yes that appears to be correct, but obviously I have to figure out why its not purging itself.
Now, having said that, I now see that the drive is not full w/ a `df` as it was the other day:
zoneminder:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hdb1 9.4G 7.8G 1.2G 87% /
tmpfs 1015M 0 1015M 0% /lib/init/rw
udev 10M 96K 10M 1% /dev
tmpfs 1015M 0 1015M 0% /dev/shm
/dev/hdc1 394G 374G 0 100% /mnt/video
Also, had tried to set cron up to flip recording modes previously and it was not loading the change for some reason so I have to get to the bottom of that as well.
Hmm. I believe that it is config'd properly. The problem with running out of space is that it's consuming the 400GB volume rather quickly as there are 12 cameras running on it at always record atm and its not purging itself, so yes that appears to be correct, but obviously I have to figure out why its not purging itself.
Now, having said that, I now see that the drive is not full w/ a `df` as it was the other day:
zoneminder:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hdb1 9.4G 7.8G 1.2G 87% /
tmpfs 1015M 0 1015M 0% /lib/init/rw
udev 10M 96K 10M 1% /dev
tmpfs 1015M 0 1015M 0% /dev/shm
/dev/hdc1 394G 374G 0 100% /mnt/video
Also, had tried to set cron up to flip recording modes previously and it was not loading the change for some reason so I have to get to the bottom of that as well.
Isn't /mnt/video where you're storing your images? That appears to be 100% full to me. Your purgewhenfull doesn't seem to be working. Aside from fixing it, to temporarily get yourself some space and see if that's the issue, you could randomly delete a few large subdirectories of events, then run zmaudit.pl to clear them out of the database. Works faster if ZM is stopped. While we're on the topic, I'd think an 8 core machine (and 12 cameras) deserves more than a 400 gig drive, especially at prices these days. I'd suggest adding a few larger drives, and tossing all of them into an LVM.
socsuser wrote:
zoneminder:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hdb1 9.4G 7.8G 1.2G 87% /
tmpfs 1015M 0 1015M 0% /lib/init/rw
udev 10M 96K 10M 1% /dev
tmpfs 1015M 0 1015M 0% /dev/shm
/dev/hdc1 394G 374G 0 100% /mnt/video