Can't Open file Frames.MYI

Support and queries relating to all previous versions of ZoneMinder
Locked
james
Posts: 11
Joined: Fri Nov 25, 2005 10:33 am

Can't Open file Frames.MYI

Post by james »

FC 4 / ZM 1.22 / 8 Monitors MoDect

/tmp/zmdc.log

DBD::mysql::st execute failed: Can't open file: 'Frames.MYI' (ernno 145) at /usr/local/bin/zmaudit.pl line 280

Every 10 seconds in my logs

+ "Can't open file: 'Frames.MYI' (ernno 145) "
When I want to watch events

I already tried the alldatabse repair.

Thank You.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

It sounds like the table has become corrupted. If you google for 'mysql error 145' you will get lots of matches and hints. If mysqlcheck doesn't work then maybe myisamcheck will help?
Phil
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

james
Posts: 11
Joined: Fri Nov 25, 2005 10:33 am

Post by james »

Thank you,

Code: Select all

myisamchk --silent --force --fast --update-state -O key_buffer=64M \
-O sort_buffer=64M -O read_buffer=1M -O write_buffer=1M \
/var/lib/mysql/*/*.MYI 
did the trick.

Thank you again.

ps : I have lost all events since this error occured for the first time.
I had plenty of 0 sec events. I suppose the error blocked ZM to record new things in the DB.
Locked