Closed alex-phillips closed 3 years ago
What version? Docker or bare metal?
Edit:
This is a database field that has been removed in version 0.9.6, since it was not used anywhere. It's possible that you're using a database that has once been used with 0.9.6 and beyond on version 0.9.5 or prior, causing this error about missing database fields.
Would something like this be taken care of via a migration in the future? It's likely that I installed this back with an older version but have since upgraded the code. Running python3 manage.py migrate
shows everything up-to-date.
Also, is there somewhere in the UI or code that will tell me which version I'm currently running?
Version is shown in the bottom left corner:
This was added in 0.9.7. Version is also listed in the code, at src/paperless/version.py
.
Updating database schemas is already taken care of automatically when using docker. If running bare metal, the migrate script has to be invoked manually on updates.
Please check the version you're running. I suspect you're on an older version and used the migrate script with a newer version, thus removing the database field. Downgrades are possible, but you'd need to manually determine which database version to revert to. If you need info on that, I can provide that if necessary.
Yes, I was invoking the migration script manually before every startup. Will rebuild with latest code and see what I get. Thanks for the info.
Is this resolved?
Yes, thanks.
Software seems to run fine, able to consume documents placed into the consume directory, but when I came back 2 days later to view documents, no documents are returned with an error code of 500. Debug on displays the following for these requests:
Here is the text output from the error: