cannot open file

Support and queries relating to all previous versions of ZoneMinder
Locked
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

cannot open file

Post by jameswilson »

Mar 12 23:19:38 localhost zma_m19[3672]: ERR [Can't open events/19/593497/028-capture.jpg: No such file or directory]
Mar 12 23:19:38 localhost zma_m24[3768]: ERR [Can't open events/24/593493/056-capture.jpg: No such file or directory]
Mar 12 23:19:38 localhost zma_m23[3749]: ERR [Can't open events/23/593494/049-capture.jpg: No such file or directory]
Mar 12 23:19:39 localhost zma_m22[3730]: ERR [Can't open events/22/593495/042-capture.jpg: No such file or directory]
Mar 12 23:19:39 localhost zma_m20[3691]: ERR [Can't open events/20/593496/035-capture.jpg: No such file or directory]
Mar 12 23:19:40 localhost zma_m19[3672]: ERR [Can't open events/19/593497/029-capture.jpg: No such file or directory]
Mar 12 23:19:40 localhost zma_m24[3768]: ERR [Can't open events/24/593493/057-capture.jpg: No such file or directory]
Mar 12 23:19:40 localhost zma_m23[3749]: ERR [Can't open events/23/593494/050-capture.jpg: No such file or directory]
Mar 12 23:19:41 localhost zma_m22[3730]: ERR [Can't open events/22/593495/043-capture.jpg: No such file or directory]
Mar 12 23:19:41 localhost zma_m20[3691]: ERR [Can't open events/20/593496/036-capture.jpg: No such file or directory]
Mar 12 23:19:41 localhost zma_m19[3672]: ERR [Can't open events/19/593497/030-capture.jpg: No such file or directory]
Mar 12 23:19:42 localhost zma_m24[3768]: ERR [Can't open events/24/593493/058-capture.jpg: No such file or directory]
Mar 12 23:19:42 localhost zma_m23[3749]: ERR [Can't open events/23/593494/051-capture.jpg: No such file or directory]
Mar 12 23:19:43 localhost zma_m22[3730]: ERR [Can't open events/22/593495/044-capture.jpg: No such file or directory]
Mar 12 23:19:43 localhost zma_m20[3691]: ERR [Can't open events/20/593496/037-capture.jpg: No such file or directory]
Mar 12 23:19:43 localhost zma_m19[3672]: ERR [Can't open events/19/593497/031-capture.jpg: No such file or directory]
Mar 12 23:19:43 localhost zma_m24[3768]: ERR [Can't open events/24/593493/059-capture.jpg: No such file or directory]
Mar 12 23:19:43 localhost zma_m23[3749]: ERR [Can't open events/23/593494/052-capture.jpg: No such file or directory]
Mar 12 23:19:44 localhost zma_m22[3730]: ERR [Can't open events/22/593495/045-capture.jpg: No such file or directory]
Mar 12 23:19:44 localhost zma_m20[3691]: ERR [Can't open events/20/593496/038-capture.jpg: No such file or directory]
I have this happening on a server with 16 composites cams and 7 ip cams. It also seems to be creating tonned of events some monitors have 900+ in the last hour.

I have changed all monitors to record to see if this stops but the above looks nasty to me.
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
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

i think this is getting worsr and im losing lots of events
Mar 13 14:38:23 localhost zma_m6[21382]: ERR [Can't open events/6/595597/275-capture.jpg: No such file or directory]
Mar 13 14:38:24 localhost zma_m6[21382]: ERR [Can't open events/6/595597/276-capture.jpg: No such file or directory]
Mar 13 14:38:24 localhost zma_m6[21382]: ERR [Can't open events/6/595597/277-capture.jpg: No such file or directory]
Mar 13 14:38:25 localhost zma_m6[21382]: ERR [Can't open events/6/595597/278-capture.jpg: No such file or directory]
Mar 13 14:38:25 localhost zma_m6[21382]: ERR [Can't open events/6/595597/279-capture.jpg: No such file or directory]
Mar 13 14:38:26 localhost zma_m6[21382]: ERR [Can't open events/6/595597/280-capture.jpg: No such file or directory]
Mar 13 14:38:26 localhost zma_m6[21382]: ERR [Can't open events/6/595597/281-capture.jpg: No such file or directory]
Mar 13 14:38:27 localhost zma_m6[21382]: ERR [Can't open events/6/595597/282-capture.jpg: No such file or directory]
Mar 13 14:38:27 localhost zma_m6[21382]: ERR [Can't open events/6/595597/283-capture.jpg: No such file or directory]
Mar 13 14:38:28 localhost zma_m6[21382]: ERR [Can't open events/6/595597/284-capture.jpg: No such file or directory]
Mar 13 14:38:28 localhost zma_m6[21382]: ERR [Can't open events/6/595597/285-capture.jpg: No such file or directory]
Mar 13 14:38:29 localhost zma_m6[21382]: ERR [Can't open events/6/595597/286-capture.jpg: No such file or directory]
Mar 13 14:38:29 localhost zma_m6[21382]: ERR [Can't open events/6/595597/287-capture.jpg: No such file or directory]
Mar 13 14:38:30 localhost zma_m6[21382]: ERR [Can't open events/6/595597/288-capture.jpg: No such file or directory]
Mar 13 14:38:30 localhost zma_m6[21382]: ERR [Can't open events/6/595597/289-capture.jpg: No such file or directory]
Mar 13 14:38:31 localhost zma_m6[21382]: ERR [Can't open events/6/595597/290-capture.jpg: No such file or directory]
Mar 13 14:38:31 localhost zma_m6[21382]: ERR [Can't open events/6/595597/291-capture.jpg: No such file or directory]
Mar 13 14:38:32 localhost zma_m6[21382]: ERR [Can't open events/6/595597/292-capture.jpg: No such file or directory]
Mar 13 14:38:32 localhost zma_m6[21382]: ERR [Can't open events/6/595597/293-capture.jpg: No such file or directory]
Mar 13 14:38:33 localhost zma_m6[21382]: ERR [Can't open events/6/595597/294-capture.jpg: No such file or directory]
Mar 13 14:38:33 localhost zma_m6[21382]: ERR [Can't open events/6/595597/295-capture.jpg: No such file or directory]
Mar 13 14:38:34 localhost zma_m6[21382]: ERR [Can't open events/6/595597/296-capture.jpg: No such file or directory]
Mar 13 14:38:34 localhost zma_m6[21382]: ERR [Can't open events/6/595597/297-capture.jpg: No such file or directory]
Mar 13 14:38:34 localhost zma_m6[21382]: ERR [Can't open events/6/595597/298-capture.jpg: No such file or directory]
Mar 13 14:38:35 localhost zma_m6[21382]: ERR [Can't open events/6/595597/299-capture.jpg: No such file or directory]
Mar 13 14:38:36 localhost zma_m6[21382]: ERR [Can't open events/6/595597/300-capture.jpg: No such file or directory]
Mar 13 14:38:36 localhost zma_m6[21382]: ERR [Can't open events/6/595597/301-capture.jpg: No such file or directory]
Mar 13 14:38:36 localhost zma_m6[21382]: ERR [Can't open events/6/595597/302-capture.jpg: No such file or directory]
Mar 13 14:38:37 localhost zma_m6[21382]: ERR [Can't open events/6/595597/303-capture.jpg: No such file or directory]
Mar 13 14:38:37 localhost zma_m6[21382]: ERR [Can't open events/6/595597/304-capture.jpg: No such file or directory]
Mar 13 14:38:38 localhost zma_m6[21382]: ERR [Can't open events/6/595597/305-capture.jpg: No such file or directory]
Mar 13 14:38:38 localhost zma_m6[21382]: ERR [Can't open events/6/595597/306-capture.jpg: No such file or directory]
Mar 13 14:38:39 localhost zma_m6[21382]: ERR [Can't open events/6/595597/307-capture.jpg: No such file or directory]
Mar 13 14:38:39 localhost zma_m6[21382]: ERR [Can't open events/6/595597/308-capture.jpg: No such file or directory]
Mar 13 14:38:40 localhost zma_m6[21382]: ERR [Can't open events/6/595597/309-capture.jpg: No such file or directory]
Mar 13 14:38:40 localhost zma_m6[21382]: ERR [Can't open events/6/595597/310-capture.jpg: No such file or directory]
Mar 13 14:38:41 localhost zma_m6[21382]: ERR [Can't open events/6/595597/311-capture.jpg: No such file or directory]
Mar 13 14:38:41 localhost zma_m6[21382]: ERR [Can't open events/6/595597/312-capture.jpg: No such file or directory]
Mar 13 14:38:42 localhost zma_m6[21382]: ERR [Can't open events/6/595597/313-capture.jpg: No such file or directory]
Mar 13 14:38:42 localhost zma_m6[21382]: ERR [Can't open events/6/595597/314-capture.jpg: No such file or directory]
Mar 13 14:38:43 localhost zma_m18[21561]: INF [Ended event]
Mar 13 14:38:43 localhost zma_m18[21561]: INF [Cam_17: 453 - Starting new event 595613]
Mar 13 14:38:43 localhost zma_m6[21382]: ERR [Can't open events/6/595597/315-capture.jpg: No such file or directory]
Mar 13 14:38:43 localhost zma_m6[21382]: ERR [Can't open events/6/595597/316-capture.jpg: No such file or directory]
Mar 13 14:38:44 localhost zma_m6[21382]: ERR [Can't open events/6/595597/317-capture.jpg: No such file or directory]
Mar 13 14:38:44 localhost zma_m6[21382]: ERR [Can't open events/6/595597/318-capture.jpg: No such file or directory]
Mar 13 14:38:45 localhost zma_m6[21382]: ERR [Can't open events/6/595597/319-capture.jpg: No such file or directory]
Mar 13 14:38:45 localhost zma_m6[21382]: ERR [Can't open events/6/595597/320-capture.jpg: No such file or directory]
Mar 13 14:38:45 localhost zma_m6[21382]: ERR [Can't open events/6/595597/321-capture.jpg: No such file or directory]
Mar 13 14:38:46 localhost zma_m6[21382]: ERR [Can't open events/6/595597/322-capture.jpg: No such file or directory]
Mar 13 14:38:46 localhost zma_m6[21382]: ERR [Can't open events/6/595597/323-capture.jpg: No such file or directory]
Mar 13 14:38:47 localhost zma_m18[21561]: INF [Ended event]
Mar 13 14:38:47 localhost zma_m18[21561]: INF [Cam_17: 465 - Starting new event 595614]
Mar 13 14:38:47 localhost zma_m6[21382]: ERR [Can't open events/6/595597/324-capture.jpg: No such file or directory]
Mar 13 14:38:47 localhost zma_m6[21382]: ERR [Can't open events/6/595597/325-capture.jpg: No such file or directory]
Mar 13 14:38:48 localhost zma_m6[21382]: ERR [Can't open events/6/595597/326-capture.jpg: No such file or directory]
Mar 13 14:38:48 localhost zma_m6[21382]: ERR [Can't open events/6/595597/327-capture.jpg: No such file or directory]
Mar 13 14:38:49 localhost zma_m6[21382]: ERR [Can't open events/6/595597/328-capture.jpg: No such file or directory]
Mar 13 14:38:49 localhost zma_m6[21382]: ERR [Can't open events/6/595597/329-capture.jpg: No such file or directory]
Mar 13 14:38:50 localhost zma_m6[21382]: ERR [Can't open events/6/595597/330-capture.jpg: No such file or 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
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Can you check you haven't hit the dreaded 32kb files per directory limit? Try creating a file or directory manually. Also it might be worth doing a file system check (fsck) in that partition just in case the filesystem has been corrupted.
Phil
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

right 2 things
1 as this is the system with tonnes of events yes i think it is as after i removed them it was fine

and 2 fsck
all i need to do is enter the command or is it a powerfull command
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
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

It is a command that has the power to destroy your whole filesystem :twisted: You will need to either unmount that filesystem and check it directly making sure that you use the correct disk partition device, or do the same in rescue or single user mode. The other thing that might work is (in ssh)

Code: Select all

touch /forcefsck
which creates a file indicating that the box should check the filesystem on reboot (which is were it will normally do it safely and automatically) as if it had detected an error.
I would recommend the latter initially.
Phil
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

well the /var dir is on a lvm accros 4 250gig drives.
The previous sytem that was in here was the same but different hardware on a raid 0, but i thought this might be the issue and Corey recommended LVM's. SO i will have to unmount the var partition. If i do this will i lose webmin as that is my only remote communication with this box
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
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I would hold of fsck then for now. If you think it's likely that the 32K limit has been hit then that's the first thing to check. If you have less than 32k but still get the errors, and/or can't manually create files or directories then look at the filesystem integrity.
Phil
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

ok will do
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
Locked