Skip to content

Commit 7c31c72

Browse files
authored
Merge pull request #165 from annkots/master
TCR-787: Doc Update: Correct steps for 'peewee.DatabaseError: databas…
2 parents 7883b3e + 886fdf2 commit 7c31c72

File tree

1 file changed

+4
-66
lines changed

1 file changed

+4
-66
lines changed

docs/faq_and_known_issues/README.md

Lines changed: 4 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -88,63 +88,8 @@ If not, [register](/installation/#registering) the agent.
8888

8989
### 7. I have an error peewee.DatabaseError: database disk image is malformed. What should I do?
9090

91-
Imunify360 uses SQLite database to store its data. Although this database has proved its reliability, database files become corrupted in rare cases. To restore data try to perform the following steps:
91+
Imunify360 uses SQLite database to store its data. Although this database has proved its reliability, database files become corrupted in rare cases. To restore data try to perform the steps from the section [**23. "Imunify agent is not running" troubleshooting**](/faq_and_known_issues/#_23-imunify-agent-is-not-running-troubleshooting)
9292

93-
Stop the agent.
94-
95-
If you have sqlite3 application installed on your machine, try to make dump of Imunify360 database:
96-
97-
<div class="notranslate">
98-
99-
```
100-
#sqlite3 /var/imunify360/imunify360.db
101-
.mode insert
102-
.output dump_all.sql
103-
.dump
104-
.exit
105-
```
106-
107-
</div>
108-
109-
You should see new file <span class="notranslate">`dump_all.sql`</span> in the directory <span class="notranslate">`/var/imunify/`</span>
110-
111-
Create a new database from this dump file:
112-
113-
<div class="notranslate">
114-
115-
```
116-
#sqlite3 imunify360.db.new < dump_all.sql
117-
```
118-
119-
</div>
120-
121-
Replace old database with the new one:
122-
123-
<div class="notranslate">
124-
125-
```
126-
#cd /var/imunify/
127-
#mv imunify360.db imunify360.db.corrupt && mv imunify360.db.new imunify360.db
128-
```
129-
130-
</div>
131-
132-
Start the Imunify360 agent.
133-
134-
If these steps have not solved the problem or no sqlite3 package is installed, then you should create a completely new database:
135-
136-
Stop the agent.
137-
138-
<div class="notranslate">
139-
140-
```
141-
#rm /var/imunify/imunify360.db
142-
#imunify360-agent migratedb
143-
```
144-
145-
</div>
146-
147-
Start the agent
14893

14994
### 8. Why does my cPanel with LiteSpeed and OWASP ModSecurity rule set trigger 500 error on all web pages after installing Imunify360?
15095

@@ -837,16 +782,9 @@ Another similar workaround may be handy in case you locate some database-related
837782
<div class="notranslate">
838783

839784
```
840-
"Imunify360 database is corrupt. Application cannot run with corrupt database."
841-
```
842-
</div>
843-
844-
or some lines with
845-
846-
<div class="notranslate">
847-
848-
```
849-
"sqlite3.DatabaseError".
785+
"Imunify360 database is corrupt. Application cannot run with corrupt database."
786+
"sqlite3.DatabaseError"
787+
"peewee.DatabaseError"
850788
```
851789
</div>
852790

0 commit comments

Comments
 (0)