New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Database cleanup #85
Comments
These somehow made it into your database. I would guess that free url mode is configured, and that the missing images were requested by a browser, creating an empty document in the process. That document has no title or headline, so we have nothing to create a filename from. So it's probably not directly caused by a crash. |
Ok. Is there a simple way for me to cleanup these strange documents. I think I would be able to connect into the postgres container and fire up some sql commands there. Any suggestions? Thanks in advance |
Today I tried it to fix it myself and it seemed it worked: identify container id of postgres container
start bash inside postgres container
connect to database
find Notes that are empty and have no title
delete above notes by id
verify by exporting user data From the CodiMD Web interface choose
should be gone! |
Hi,
I had problems uploading images but could fix it as described in Server crashes on upload to filesystem but what obviously happened was a server crash. I lost a document (only had a heading in it) and so it doesn't matter. But when I now Export user data I have some strange files in the archive like:
The above files have 0 bytes.
I assume this happened due to the crash. My question is, how can I clean them out? - Any ideas.
Thanks in advance
Peter
The text was updated successfully, but these errors were encountered: