use postgresql-ha login 500 or root user cannot be created #502
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
https://github.com/go-gitea/gitea/issues/26858
Same question as https://github.com/go-gitea/gitea/issues/26858#issuecomment-1702639940
Is Gitea trying to connect to a readonly instance of the db?
Also: You said it works well with non-ha postgres, right? Is the have you checked whether there are differences in values definition between postgres and postgres-ha chart?
Yes, gitea is randomly connected to postgresql instances
I used the default configuration
same here with chart 9.3.0
To add some context, I just tried to bootstrap in a fresh namespace and this is what the logs say
Besides the issue at hand, I wonder how we can test for something like this in the future. The deployment worked a few weeks ago so something must have changed in the bitnami chart presumably.
I guess I should look into the chart-testing action again.
What helped was scaling down
postgresql-ha
to 1 replica.There was a similar issue reported here: https://github.com/bitnami/charts/issues/15702
However when scaling up to
replicaCount: 3
again, the error occurs again.Unclear why atm. I would suggest to use the non-HA chart for the moment until we have gathered more information.
I've just tested the following again using postgresql-ha 11.9.2:
replicaCount: 1
-> worked finereplicaCount: 3
-> worked fineEKS 1.28.1
@ggbar @Delta1977 Is this still an issue for you?
Do you mean postgresql-ha 11.9.3 fixes this issue? None postgresql is currently used. I'll test it later
No, I tested with 11.9.2 and couldn't replicate the issue anymore (in contrast to my tries one month ago).
What do you mean by that?
a slip of the pen
postgresql-ha 11.9.3 -> postgresql-ha 11.9.2
postgresql - postgresql-ha
Maybe postgresql-ha 11.9.2 fixes this issue, I am using gitea helm version 9.2.1 postgresql-ha version 11.7.9
I'd say give it a try. I was under the impression you already used 11.9.2 as it was released with
07fe17caf4
- which was released just right before you opened the issue.We're importing downstream releases as they come in - there might always be small issues/fixes which we are not directly in control of.
I've just done a fresh install of 9.5.0 using pretty much the default Values (adding oauth, metrics, existing secret for admin) and gitea is failing to start because the
configure-gitea
init containers reporting:Fixed it by deleting the pgpool pod which, I presume, forced it to reconnect to the db and this time it picked the primary/active db pod.
The fix is not yet released. If you like, you can test the current master branch version. I'd be happy for feedback that this actually fixes your problem.
Apologies, with the issue being closed I thought it'd been released, I should used a little more attention on the issue history.
No worries. It was autoclosed with merging the referenced PR.