09:36 <freelock> ERROR: permission denied for relation defaults
09:37 <freelock> CONTEXT: SQL statement "SELECT value FROM defaults
09:37 <freelock> WHERE setting_key = in_key
09:37 <freelock> FOR UPDATE"
09:37 <freelock> PL/pgSQL function "setting_increment" line 6 at SQL statement</freelock></freelock></freelock></freelock></freelock>
Will probably eliminate a significant number of bugs as duplicate. Most of these access denied issues seem to be related to base_user not being granted. I will review this logic and see what can be done about it.
Interestingly there are no duplicate bugs relating here. But base_user being missing is the problem.
6676