add: provide more information on psql and redis connection errors

This commit is contained in:
trisua 2025-05-28 13:41:19 -04:00
parent 013bc0b45f
commit 22ae479bd7
4 changed files with 23 additions and 9 deletions

View file

@ -37,6 +37,16 @@ Tetratto is very simple once you get the hang of it! At the top of the page (or
All Tetratto instances support reports for communities and posts through the UI. You can just find the ellipsis icon on either and then press "Report" to file a report!
## Debugging
All panics should be reported as a bug report (or on tetratto.com). Panics which cannot be avoided will have an error tag attached to their error message, so you can easily search through your service logs to understand more. All error tags will begin with `ERROR_TETRATTO_`, and will have a more detailed tag suffix.
All current panic tags are listed below:
- `ERROR_TETRATTO_PSQL_CON` - errors in connection to the postgres database
- `ERROR_TETRATTO_REDIS_CON` - an error in creating the redis connection pool
- `ERROR_TETRATTO_REDIS_CON_ACQUIRE` - an error in acquiring a redis connection
# Updating
When bumping versions, you _might_ need to run a few SQL scripts in order to get your database up to what the next commit expects. It is recommended to only update from GitHub release, which will list the SQL scripts you need to run to migrate your database.