Ubuntu 7.04 FTP and Email

Support and queries relating to all previous versions of ZoneMinder
Locked
hvisser
Posts: 14
Joined: Thu Jan 17, 2008 8:32 pm

Ubuntu 7.04 FTP and Email

Post by hvisser »

Recently moved from: (Original Setup)
PIII 1 GHz, 1.5G Ram, 250G IDE, 4 Port Pico2000
Bluecherry LiveCD installed (Ubuntu 6.06.1 Desktop with XFCE)

To: (New Setup)
P4 2.8 GHz, 2G RAM, 250G IDE, 8 Port Kodicom 8800
Ubuntu 7.04 Server fresh install following the instructions from the Wiki Article

I had the original setup working perfectly with FTP Upload, Email with MPEG attachement.

Couldn't get the new setup to upload FTP or send email even though I copied the filters, etc exactly from the original setup.

Had a look at /tmp/zmfilter.log and saw a lot of these:

Code: Select all

root@cctv2:/tmp# tail zmdc.log
01/17/08 19:33:11.609446 zmdc[4482].ERR ['zmfilter.pl ' exited abnormally, exit status 9]
01/17/08 19:34:31.097168 zmdc[4482].INF [Starting pending process, zmfilter.pl]
01/17/08 19:34:31.127307 zmdc[4482].INF ['zmfilter.pl' starting at 08/01/17 19:34:31, pid = 4635]
01/17/08 19:34:31.645759 zmdc[4482].ERR ['zmfilter.pl ' exited abnormally, exit status 9]
01/17/08 19:37:11.039937 zmdc[4482].INF [Starting pending process, zmfilter.pl]
01/17/08 19:37:11.047799 zmdc[4482].INF ['zmfilter.pl' starting at 08/01/17 19:37:11, pid = 4636]
01/17/08 19:37:11.592443 zmdc[4482].ERR ['zmfilter.pl ' exited abnormally, exit status 9]
01/17/08 19:42:31.073323 zmdc[4482].INF [Starting pending process, zmfilter.pl]
01/17/08 19:42:31.079024 zmdc[4482].INF ['zmfilter.pl' starting at 08/01/17 19:42:31, pid = 4676]
01/17/08 19:42:31.623104 zmdc[4482].ERR ['zmfilter.pl ' exited abnormally, exit status 9]
I then realised that this problem went away when I restarted ZM and occurred again every time I rebooted the PC.

I took a shot in the dark and had a look at the startup order in /etc/rc2.d

I noticed ZM was quite early in the sequence (S20zoneminder). I changed this to (S99zoneminder) and it seems to have cured the issue.

The FTP upload and Email are both triggered by one rule which triggers when an event has more than 25 alarm frames. The FTP upload (zip file with event images) now works fine, but for some reason the email with .mpg doesn't send. I know that the email part works, because I have another filter which triggers for events with > 50 alarm frames that use the message option and attaches the highst scoring .jpg

I suspect it has something to do with the actual .mpg not being created, even though I see the following:

Code: Select all

root@cctv2:/tmp# tail zmvideo.log
01/17/08 20:50:35.023660 zmvideo[5335].INF [Creating video file Event-194-r1-s1.mpg for event 194]
01/17/08 20:50:35.026620 zmvideo[5335].INF [Finished Event-194-r1-s1.mpg]
01/17/08 20:51:56.222858 zmvideo[5468].INF [Creating video file Event-195-r1-s1.mpg for event 195]
01/17/08 20:51:56.247808 zmvideo[5468].INF [Finished Event-195-r1-s1.mpg]
01/17/08 20:51:56.528298 zmvideo[5473].INF [Creating video file Event-195-r1-s1.mpg for event 195]
01/17/08 20:51:56.531067 zmvideo[5473].INF [Finished Event-195-r1-s1.mpg]
01/17/08 21:07:24.879838 zmvideo[5680].INF [Creating video file Event-197-r1-s1.mpg for event 197]
01/17/08 21:07:24.882755 zmvideo[5680].INF [Finished Event-197-r1-s1.mpg]
01/17/08 21:07:25.188828 zmvideo[5683].INF [Creating video file Event-197-r1-s1.mpg for event 197]
01/17/08 21:07:25.191708 zmvideo[5683].INF [Finished Event-197-r1-s1.mpg]
When I done a

Code: Select all

find / -name *.mpg
it did not find any Event*.mpg

Done a

Code: Select all

find / -name ffmpeg
then realised ffmpeg was in /usr/bin/local/ffmpeg on the 6.06.1 and it was in /usr/bin/ffmpeg on the 7.04 install

All working OK now.

Thanks for all the help in this forum. I got all my answers by looking at previous posts in the forum and the wiki.

ZoneMinder rocks!!! I'm just sorry I did not find it before I paid GBP50 for the crappy Pico2000 software that doesn't even come close and which I couldn't reinstall when my old hard drive died, they wanted me to pay again!!!
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Great bit of troubleshooting :D
Good show and thanks for the post :D :D
PeterHoward
Posts: 319
Joined: Thu Jul 20, 2006 1:07 am
Location: Australia

Post by PeterHoward »

I was about to smugly put a plug in for the packaged version saying I'd fixed that . . . until I checked and realised that I hadn't (I'd fixed a different problem when I last played with the start/stop ordering). :oops: I'll add that to my list of things to do when I package 1.23.1
hvisser
Posts: 14
Joined: Thu Jan 17, 2008 8:32 pm

Post by hvisser »

Peter,

I used the latest DEB from your ftp site (I think ftp://www.northern-ridge.com.au/zonemin ... 0_i386.deb). Great work, saved a lot of hassle!

I'm not really sure why that fixed the problem, when I looked back at the old setup with 6.06.1 (from Bluecherry Live CD install) it has zm starting at S20zm.

All I know is that it solved my problem. Can't wait for 1.23.1. Keep up the good work!
Locked