Maybe it will help some of you, but I just had an error updating 2.8.0 on my bare metal Paperless NGX instance. When trying to migrate the changes, the following error occured:
Conversion between UTF8 and SQL_ASCII is not supported
In fact, my Postgres database was set to SQL_ASCII instead of UTF-8, so it helped to rebuild the database. Make sure to backup/snapshot everything in case something goes wrong, I managed to kill my instance while fiddling around with this 😄
- Stop paperless services:
|
|
- Create an encoded dump of your existing data and push it into a newly created, UTF-8 encoded database:
|
|
(*) You might need to create a new database template according to this accepted solution on stack overflow in case you face the error “New encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII)” when trying to create the new database.
- Rename the old database and replace it with the new one:
|
|
- Now we can restart our services and continue updating:
|
|