Comments (8)
Just F.Y.I., as of my past experience, there are several possibilities:
- DB issue
- Something has occured on DB side.
- Check the logs of PostgreSQL pod.
- Firewall issue
- Firewall might block communication between AWX and PSQL.
- Disable any kind of firewall on your K3s host, like
firewalld
orSuSEfirewall2
.
- K3s issue
- Very rarely, internal network in K3s might be broken and block something.
- Try uninstall and reinstall K3s.
from awx-on-k3s.
Thank you for your tips @kurokobo. It's super helpful. Turned out it's the K3S host firewall that's giving me grief. Once firewallD disabled, I do not get the Bad Gateway error anymore.
On a separate note, can I pick your brain a bit on the following error from the postgres pod logs?
2022-03-02 17:53:51.376 UTC [1356] ERROR: relation "conf_setting" does not exist at character 158
2022-03-02 17:53:51.376 UTC [1356] STATEMENT: SELECT "conf_setting"."id", "conf_setting"."created", "conf_setting"."modified", "conf_setting"."key", "conf_setting"."value", "conf_setting"."user_id" FROM "conf_setting" WHERE ("conf_setting"."key" = 'OAUTH2_PROVIDER' AND "conf_setting"."user_id" IS NULL) ORDER BY "conf_setting"."id" ASC LIMIT 1
It doesn't seem to be giving me any issue. My postgres pod has been up for 20+ hours with no restarts. I'm reading through the issue threads in the AWX repo but have not yet gotten to any conclusion yet. I promise will close this issue after this. Thanks a bunch!
from awx-on-k3s.
@nathanlin24
I've double checked that the same errors on my environment. I haven't digged into this error in details, but this seems can be safely ignored at this time if it works well.
from awx-on-k3s.
@nathanlin24
Seems the pod awx-b85cd74b6-l4zn4
restarts over 20 times. So please check the logs to get more information.
Refer my troubleshooting guide.
kubectl -n awx logs deployment/awx-operator-controller-manager -c manager
kubectl -n awx logs deployment/awx -c awx-web
kubectl -n awx logs deployment/awx -c awx-task
kubectl -n awx logs deployment/awx -c awx-ee
kubectl -n awx logs deployment/awx -c redis
kubectl -n awx logs statefulset/awx-postgres
from awx-on-k3s.
Thanks @kurokobo. It seems to be due to database migration. I will continue to look into this. Thanks.
awx-nathan:~ # kubectl -n awx logs deployments/awx -c awx-web -f
[wait-for-migrations] Waiting for database migrations...
[wait-for-migrations] Attempt 1 of 30
[wait-for-migrations] Waiting 0.5 seconds before next attempt
[wait-for-migrations] Attempt 2 of 30
[wait-for-migrations] Waiting 1 seconds before next attempt
[wait-for-migrations] Attempt 3 of 30
[wait-for-migrations] Waiting 2 seconds before next attempt
[wait-for-migrations] Attempt 4 of 30
[wait-for-migrations] Waiting 4 seconds before next attempt
[wait-for-migrations] Attempt 5 of 30
[wait-for-migrations] Waiting 8 seconds before next attempt
[wait-for-migrations] Attempt 6 of 30
[wait-for-migrations] Waiting 16 seconds before next attempt
[wait-for-migrations] Attempt 7 of 30
[wait-for-migrations] Waiting 30 seconds before next attempt
[wait-for-migrations] Attempt 8 of 30
[wait-for-migrations] Waiting 30 seconds before next attempt
[wait-for-migrations] Attempt 9 of 30
[wait-for-migrations] Waiting 30 seconds before next attempt
[wait-for-migrations] Attempt 10 of 30
[wait-for-migrations] Waiting 30 seconds before next attempt
[wait-for-migrations] Attempt 11 of 30
[wait-for-migrations] Waiting 30 seconds before next attempt
[wait-for-migrations] Attempt 12 of 30
[wait-for-migrations] Waiting 30 seconds before next attempt
[wait-for-migrations] Attempt 13 of 30
[wait-for-migrations] Waiting 30 seconds before next attempt
[wait-for-migrations] Attempt 14 of 30
[wait-for-migrations] Waiting 30 seconds before next attempt
[wait-for-migrations] Attempt 15 of 30
[wait-for-migrations] Waiting 30 seconds before next attempt
[wait-for-migrations] Attempt 16 of 30
[wait-for-migrations] Waiting 30 seconds before next attempt
[wait-for-migrations] Attempt 17 of 30
[wait-for-migrations] Waiting 30 seconds before next attempt
[wait-for-migrations] Attempt 18 of 30
[wait-for-migrations] Waiting 30 seconds before next attempt
[wait-for-migrations] Attempt 19 of 30
[wait-for-migrations] Waiting 30 seconds before next attempt
[wait-for-migrations] Attempt 20 of 30
[wait-for-migrations] Waiting 30 seconds before next attempt
[wait-for-migrations] Attempt 21 of 30
[wait-for-migrations] Waiting 30 seconds before next attempt
[wait-for-migrations] Attempt 22 of 30
[wait-for-migrations] Waiting 30 seconds before next attempt
[wait-for-migrations] Attempt 23 of 30
[wait-for-migrations] Waiting 30 seconds before next attempt
[wait-for-migrations] Attempt 24 of 30
[wait-for-migrations] Waiting 30 seconds before next attempt
[wait-for-migrations] Attempt 25 of 30
[wait-for-migrations] Waiting 30 seconds before next attempt
[wait-for-migrations] Attempt 26 of 30
[wait-for-migrations] Waiting 30 seconds before next attempt
[wait-for-migrations] Attempt 27 of 30
[wait-for-migrations] Waiting 30 seconds before next attempt
[wait-for-migrations] Attempt 28 of 30
[wait-for-migrations] Waiting 30 seconds before next attempt
[wait-for-migrations] Attempt 29 of 30
[wait-for-migrations] Waiting 30 seconds before next attempt
[wait-for-migrations] Attempt 30 of 30
[wait-for-migrations] ERROR: Database migrations not applied
from awx-on-k3s.
So you should check the logs of PostgreSQL too.
kubectl -n awx logs statefulset/awx-postgres
from awx-on-k3s.
Thank you for your tips @kurokobo. It's super helpful. Turned out it's the K3S host firewall that's giving me grief. Once firewallD disabled, I do not get the Bad Gateway error anymore.
On a separate note, can I pick your brain a bit on the following error from the postgres pod logs?
2022-03-02 17:53:51.376 UTC [1356] ERROR: relation "conf_setting" does not exist at character 158 2022-03-02 17:53:51.376 UTC [1356] STATEMENT: SELECT "conf_setting"."id", "conf_setting"."created", "conf_setting"."modified", "conf_setting"."key", "conf_setting"."value", "conf_setting"."user_id" FROM "conf_setting" WHERE ("conf_setting"."key" = 'OAUTH2_PROVIDER' AND "conf_setting"."user_id" IS NULL) ORDER BY "conf_setting"."id" ASC LIMIT 1
It doesn't seem to be giving me any issue. My postgres pod has been up for 20+ hours with no restarts. I'm reading through the issue threads in the AWX repo but have not yet gotten to any conclusion yet. I promise will close this issue after this. Thanks a bunch!
Faced the same issue, thanks for the advice!
from awx-on-k3s.
Thanks for your feedback @kurokobo!
from awx-on-k3s.
Related Issues (20)
- Not able to login with external DB setup HOT 9
- TODO: Bump AWX Operator version to 2.14.0
- Thank you! HOT 7
- Any guide on connecting this to existing or old tower instance for data migration? HOT 13
- TODO: Bump EDA Server Operator version to 1.0.2
- TODO: Bump Galaxy Operator version to 2024.4.3
- Publish an examlple playbook for deploying AWX on K3s HOT 12
- TODO: Bump AWX Operator version to 2.15.0
- can't take backup HOT 2
- POD AWX-postgres-15-0 going in Init:CrashLoopBackOff during installation HOT 10
- New UI Page Not Found HOT 4
- TODO: Bump AWX Operator version to 2.16.0 HOT 1
- Unable to manage deployment due to kubectl Unauthorized HOT 6
- TODO: Bump Galaxy Operator version to 2024.4.30
- TODO: Bump AWX Operator version to 2.16.1
- TODO: Bump Galaxy Operator version to 2024.5.1
- AWX process slow to start when running a template HOT 2
- TODO: Bump Galaxy Operator version to 2024.5.8
- awx-web pod going into CrashLoopBackoff with Operator 2.16.1 HOT 2
- how to enable ipv6? HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from awx-on-k3s.