Standalone pod not starting with no usable messages apparent #573
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?
I have the following overrides to try and set up a single-pod system.
Unfortunately, I'm just getting the following events:
And I'm not sure how I can get any further debug information. Is there something I can do to get debug information?
If you have no other redis instance while disabling the redis-cluster, this is the issue. See #564 as reference.
I am working on a fix for that.
Thanks @justusbunsi - at the very least the readme needs to be updated! I am just getting started so have no idea what to suggest though, sorry!
@AntonOfTheWoods
I have to apologize for my initial response. I overlooked that you configured the cache for memory. As stated in the readme. This should work when running the first time.
There is a really nasty bug with updating the app.ini. If you have tried the default values first and then switched to the single-pod configuration, there is a high chance that some redis configuration is still in the app.ini.
Please check this and remove any redis related setting manually. Then try the sample from README again.
Actually I simply can't get it to work at all. If I put nothing for redis or
Then it creates (1 or 3) redis nodes but I still get the same error with no messages anywhere. I of course deleted the chart and all resources, including manually deleting all pvcs. It just doesn't work.
Thank you for your input. It shouldn't happen but obviously does. That's unfortunate. I'll take a closer look to check if I can reproduce that with your settings.
Meanwhile: redis-cluster requires at least 3 pods to successfully start. Setting it to 1 will cause it to stuck and consequently Gitea being not able to start. As you started without redis, this is most likely not the root cause and just an FYI. There was an internal discussion about standalone redis. More to come about this soon.
The pod status you posted shows a restart loop in the configure-gitea init container. Please have a closer look into the logs of that specific container. That will give more hints about what's wrong.
Ok, I am at least mainly to blame here. The problem was that I don't use the default
clusterDomain
, and I should have noticed the init container. Setting that and making sure a redis-cluster is properly installed seems to work. I'm not sure open registration with no email validation is the best default but that's another story!Thanks.
I've just tried again the single pod setup referenced in the README and it works (in a fresh namespace):
We don't claim that dependency settings are "top notch" or "good defaults". We rely on the defaults of the respective dependencies. Users are encouraged to review them and possibly adapt them to their needs.
WRT to fallbacks and their handling: the topic has already been discussed recently. As of now, the chart works with the provided defaults. Custom setups are referenced in the README. (IMO) Users shouldn't expect a working chart when they turn off required default dependencies without putting a valid alternative configuration in place. Gitea is able to run with so many different config settings that we could define five (magic) fallbacks in case X, Y or Z are turned off/not used. But I don't think this should be the goal but to also force users to think about their config and setup before the deployment.
What makes switching between setups hard is #356 as the config file is not properly reset. We are working on that.
Thanks for your contribution and question! If there's information missing anywhere or unclear, please let us know.