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
Give explicit encoding for netbox database? #5760
Comments
My insatllation was a default Ubuntu 20.10 with Postgres installed as per the netbox instructions vis a vi |
20.04 is a much better choice anyway as it's a Long Term Support (LTS) release, supported until April 2025. 20.10 is only supported for 9 months from release; it will be end-of-life this July. |
I think all in all the best route is to start with the LTS, but I'll do a |
I just compared Ubuntu 20.04 vs 20.10, using lxd images, and they both work the same (giving me UTF8). But I have another theory: that Debian/Ubuntu set the template0 and template1 encoding from the default system locale. Testing this out:
Aha, there you have it. And I find them here too:
According to the comments, it's |
Change Type
[ ] Addition
[X] Correction
[ ] Deprecation
[ ] Cleanup (formatting, typos, etc.)
Area
[X] Installation instructions
[ ] Configuration parameters
[ ] Functionality/features
[ ] REST API
[ ] Administration/development
[ ] Other
Proposed Changes
Netbox relies on the postgres database having UTF8 encoding, but the installation instructions don't explicitly set this. For most users this is fine, if the template1 database has UTF8 encoding, but there may be issues if template1 uses SQL_ASCII or something else - see this thread.
Would it be better to change the instructions to give explicit create database settings?
The text was updated successfully, but these errors were encountered: