Power failure, now Zoneminder wont run
Posted: Sat Apr 27, 2013 12:54 am
I have had a power failure and now ZoneMinder wont run. The camera is fine and the computer is fine. I am running Ubuntu 12.04. The problem is with the log (I believe). Where the log link is usually (top right hand corner) I get this error message:
Can't write log entry 'insert into Logs ( TimeKey, Component, Pid, Level, Code, Message, File, Line ) values ( 1367023463.755924, 'web_php', 1534, -3, 'FAT', 'SQL-ERR \'Table \'./zm/Logs\' is marked as crashed and last (automatic?) repair failed\', statement was \'select Level, count(Level) as LevelCount from Logs where Level < 0 and from_unixtime(TimeKey) + interval 900 second > now() group by Level order by Level asc\'', '/usr/share/zoneminder/includes/database.php', 78 )': Table './zm/Logs' is marked as crashed and last (automatic?) repair failed
I have tried un-installing and re-installing ZoneMinder but I still get the same error. I have tried stopping and restarting apache and mysql but nothing seems to work.
Can anyone help me?
Can't write log entry 'insert into Logs ( TimeKey, Component, Pid, Level, Code, Message, File, Line ) values ( 1367023463.755924, 'web_php', 1534, -3, 'FAT', 'SQL-ERR \'Table \'./zm/Logs\' is marked as crashed and last (automatic?) repair failed\', statement was \'select Level, count(Level) as LevelCount from Logs where Level < 0 and from_unixtime(TimeKey) + interval 900 second > now() group by Level order by Level asc\'', '/usr/share/zoneminder/includes/database.php', 78 )': Table './zm/Logs' is marked as crashed and last (automatic?) repair failed
I have tried un-installing and re-installing ZoneMinder but I still get the same error. I have tried stopping and restarting apache and mysql but nothing seems to work.
Can anyone help me?