{"id":406,"date":"2018-01-08T09:04:03","date_gmt":"2018-01-08T09:04:03","guid":{"rendered":"https:\/\/mellowhost.com\/blog\/?p=406"},"modified":"2018-01-08T09:04:03","modified_gmt":"2018-01-08T09:04:03","slug":"troubleshooting-imunify360-database-is-corrupt-application-cannot-run-with-corrupt-database","status":"publish","type":"post","link":"https:\/\/mellowhost.com\/blog\/troubleshooting-imunify360-database-is-corrupt-application-cannot-run-with-corrupt-database.html","title":{"rendered":"Troubleshooting: Imunify360 database is corrupt. Application cannot run with corrupt database"},"content":{"rendered":"<h4><strong>Error Message:<\/strong><\/h4>\n<p><code># service imunify360 start<br \/>\nStarting imunify360: WARNING [+ 3743ms] defence360agent.utils.check_db|DatabaseError detected: database disk image is malformed<br \/>\nWARNING [+ 3766ms] defence360agent.cli.subparsers.common.server|Imunify360 database is corrupt. Application cannot run with corrupt database. Please, contact Imunify360 support team at https:\/\/cloudlinux.zendesk.com<\/code><\/p>\n<h4>Detail Information &amp; Explanation:<\/h4>\n<p>If you are using imunify360, an application firewall for linux servers by Cloudlinux team, you might incur an error where it says the database is corrupt. You might first see &#8216;Imunify360 is not started&#8217; error from the WHM panel and end up getting the above error message as stated. Imunify360 uses a SQL database, located under &#8216;\/var\/imunify360\/imunify360.db&#8217;. This image is checked everytime Imunfi360 tries to start, and if the database is malformed, it would not start. Fortunately, imunify360 comes with tools to handle this database and recover if corrupted.<\/p>\n<h4>How to Fix:<\/h4>\n<p>First, we start by running database integrity check. This can be done using the following:<\/p>\n<p><code>imunfiy360-agent checkdb<\/code><\/p>\n<p>(From Imunify360 Doc: checkdb\u00a0 &#8211; Check\u00a0database\u00a0integrity)<\/p>\n<p>Once done, you can now use &#8216;migratedb&#8217; to repair and restore if the database is corrupted.<\/p>\n<p><code>imunify360-agent migratedb<\/code><\/p>\n<p>(From Imunify360 Doc: migratedb &#8211;\u00a0Check\u00a0and\u00a0repair\u00a0database\u00a0if\u00a0it\u00a0is\u00a0corrupted.)<\/p>\n<p>If migratedb fails, the only way to recover this is to reinstall imunify360.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Error Message: # service imunify360 start Starting imunify360: WARNING [+ 3743ms] defence360agent.utils.check_db|DatabaseError detected: database disk image is malformed WARNING [+ 3766ms] defence360agent.cli.subparsers.common.server|Imunify360 database is corrupt. Application cannot run with corrupt database. Please, contact Imunify360 support team at https:\/\/cloudlinux.zendesk.com Detail Information &amp; Explanation: If you are using imunify360, an application firewall for linux servers by Cloudlinux &hellip; <a href=\"https:\/\/mellowhost.com\/blog\/troubleshooting-imunify360-database-is-corrupt-application-cannot-run-with-corrupt-database.html\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Troubleshooting: Imunify360 database is corrupt. Application cannot run with corrupt database&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[203,162,10,224,12,20,21,150,26],"tags":[156,226,43,227,225,228],"_links":{"self":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/406"}],"collection":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/comments?post=406"}],"version-history":[{"count":1,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/406\/revisions"}],"predecessor-version":[{"id":407,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/406\/revisions\/407"}],"wp:attachment":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/media?parent=406"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/categories?post=406"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/tags?post=406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}