Bad cache load destroying instance #6227
Unanswered
AjaniBilby
asked this question in
Error / Bug Report
Replies: 2 comments 2 replies
-
I'm currently using SQL lite to try and manually remove any references to a cache to get my wiki back and running for my work Update: |
Beta Was this translation helpful? Give feedback.
2 replies
-
Here's a nice script to copy all of your pages out of the database in case of emergency: import sqlite3
import os
conn = sqlite3.connect('db.sqlite')
c = conn.cursor()
c.execute("SELECT path, render FROM Pages")
for row in c.fetchall():
path = "./export/"+os.path.dirname(row[0])
if path != "" and not os.path.exists(path):
os.makedirs(path)
with open("./export/"+row[0]+".html", 'w', encoding='utf-8') as f:
f.write(row[1])
conn.close() |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've reinstalled wikijs multiple times and confirmed every time I include my db.sqlite file I get the error
That file does not exist, and because of that I can't load a single page from the wiki. Why does failing to load a cache file brick an entire Wikijs instance? It should just drop the cache if it fails to load it and rebuild.
Beta Was this translation helpful? Give feedback.
All reactions