Problem with post revisions after updating to 2.8.6 stable or 2.9.0.beta7

Ah, if you did ./launcher enter app, it’ll make you root. It seems like you’ll need to switch to the discourse user to get Database access. This should do it:

sudo -EH -u discourse bin/rake "revisions:debug_deserialization"

The kind of output we’re looking for is

Checking 5 PostRevision records in batches of 1000... this may take some time...

Done

---- Summary ----
Checked records: 5

---- Examples ----

(although obviously, if there are issues then the “Examples” section will not be empty)

2 Likes