Export Function Errors (failed to open dir)(SOLVED)

Support and queries relating to all previous versions of ZoneMinder
Locked
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Export Function Errors (failed to open dir)(SOLVED)

Post by kingofkya »

For some reason when i export on zoneminder i get a a page of errors yet nothing in the logs

Also the files do exist because i sshed in and alll then events are in there

When i create a zip i get the errors in a screen shot and when i create a tar i get an empty file

I am running Ubuntue 8.04 64bit
The only extra things installed is Firefox2, ffmepg+plugins, and htop
Currently have 4 cams running at 800x600 10 fps all axis network cams


Screen Shot Of error
http://www.box.net/shared/w0ue8gl8g8

Thanks in Advance
Last edited by kingofkya on Wed Jun 25, 2008 6:03 pm, edited 2 times in total.
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

Post by Lee Sharp »

Did you apply all the extra steps in the wiki? Specifically to the temp directory?
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

before posting i checked permissions www-data is group and owner

i assume you are reffering to this

and no i did not see it in docs at first

Fix export problem

sudo chown www-data.www-data /usr/share/zoneminder/temp

ran it anyway
and samething

any other ideas
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

Post by Lee Sharp »

How did you install Untangle? (From the repos or compiled?)
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

the repos
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

turned the debug on and found

Found once


06/22/08 17:06:01.890468 zma_m3[8971].ERR-zm_image.cpp/265 [Can't open events/2555SW-unit10-11/diag-4-1.jpg: No such file or directory]


06/22/08 17:04:47.281989 zmf_m3[8968].WAR-zmf.cpp/54 [Can't unlink '/tmp/zmf-3.sock': No such file or directory]
06/22/08 17:04:48.748546 zmf_m3[8968].INF-zmf.cpp/86 [Frame server socket open, awaiting images]


Found a few times

06/22/08 17:05:55.095953 zmf_m4[8960].DB1-zmf.cpp/202 [Select timed out]
06/22/08 17:05:55.861213 zmf_m4[8960].DB1-zmf.cpp/232 [Read frame header, expecting 155218 bytes of image]

Is this relevent or tell me where to look
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

any ideas

also after i delete manually(to make sure it goes away) apatche holds the old file i believe cuz i got an old file on second and third export

and also export always fails when i export a archived event



found more any event older than about a day fails i think it might be a data base problem do you agree


ideas
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

are all your paths setup right, and does the zm process have write access to the tmp directory?
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

yeha the file generates in the temp directory but for some weird reason it only works for events that happen on the same cam multiple events off different cams cause it to give the screen shoot above


checked permisions on images event temp all all say owned by www-data group www-data and read access to everyone

what else to check
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

Now its doing it randomly one time it works next time it dosent what libs are needed to zip a file what can i check/reinstall
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

zip needs perl-zip if i recall.
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

I guss its a random problem if i find out what is wrong i will post but might just end up with reinstalling it if i reinstall the deb will it erase the evemts and setting from mysql Running Ubuntu 64bit 8.04 Hardy
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

Post by Lee Sharp »

I just had this happen on a working system... Look in the events directory and see if you have a symbolic link to each cam. I was mossing many of them, and I don't know why. The commands I used to fix cleanly...

Code: Select all

sudo su www-data
ln -s 2 1st-North-Stair
ln -s 3 1st-South-Stair
You do this from the events directory, and you su to www-data to make file ownership clean. Use the camera names appropriate to your system, and only make the ones missing.
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

THat hit the nail on the head

i set up 4 cams at the same time but thre ones with numbers in the first digit are the ones missing the link

May have found bug

when you restart zoneminder with cams that have a number in the first digit it removes the symlink i had to rename mine "255m-front" to "Front-255m" then make link

and it stayed
Locked