Comments (5)
@kuchynkap
Thanks for reporting, If your PV is based on K3s' Local Path Provisioner instead of hostPath as in my repository, a similar issue has been reported on ansible/awx-operator#483.
Try using the latest 0.13.0
of AWX Operator.
If it doesn't helps, we need more information to investigate. The following commands may help you find the cause of CrashLoopBackOff
.
# You can get detailed information in "Events" section
kubectl -n awx describe pod awx-postgres-0
# You can get the logs from PostgreSQL
kubectl -n awx logs awx-postgres-0
from awx-on-k3s.
@kurokobo
Thank you for your reply! I am using hostpath, but I am hitting the issue mentioned.
$ kubectl -n awx logs awx-postgres-0
mkdir: cannot create directory β/var/lib/postgresql/dataβ: Permission denied
from awx-on-k3s.
@kuchynkap
Okay, so you should focus on the permissions, as described in that error message.
Could you check the permission and owner/group of the actual directories you are using in hostPath?
# Replace `/data/postgres` with your directory path.
$ ls -ld /data/postgres /data/postgres/data
drwxr-xr-x. 2 root root 18 Aug 20 10:09 /data/postgres
drwxr-xr-x. 3 root root 20 Aug 20 10:09 /data/postgres/data
If your hostPath
is /data/postgres
, Kubernetes will create /data/postgres/data
as subPath
for awx-postgres-0
pod. The problem is the permissions of this subPath
directory.
In my environment, 755
and root:root (0:0)
works correctly. So you can try;
# Replace `/data/postgres` with your directory path.
sudo chmod 755 /data/postgres /data/postgres/data
sudo chown 0:0 /data/postgres /data/postgres/data
Or, you can also try 999:999
as owner/group for the directory.
sudo chmod 755 /data/postgres /data/postgres/data
sudo chown 999:999 /data/postgres /data/postgres/data
999
is the UID/GID of the postgres
user which used in the container.
from awx-on-k3s.
Hi @kurokobo,
thank you!
@kuchynkap
Okay, so you should focus on the permissions, as described in that error message.
Could you check the permission and owner/group of the actual directories you are using in hostPath?# Replace `/data/postgres` with your directory path. $ ls -ld /data/postgres /data/postgres/data drwxr-xr-x. 2 root root 18 Aug 20 10:09 /data/postgres drwxr-xr-x. 3 root root 20 Aug 20 10:09 /data/postgres/data
If your
hostPath
is/data/postgres
, Kubernetes will create/data/postgres/data
assubPath
forawx-postgres-0
pod. The problem is the permissions of thissubPath
directory.In my environment,
755
androot:root (0:0)
works correctly. So you can try;# Replace `/data/postgres` with your directory path. sudo chmod 755 /data/postgres /data/postgres/data sudo chown 0:0 /data/postgres /data/postgres/data
Or, you can also try
999:999
as owner/group for the directory.sudo chmod 755 /data/postgres /data/postgres/data sudo chown 999:999 /data/postgres /data/postgres/data
999
is the UID/GID of thepostgres
user which used in the container.
Hi,
thank you! chmodding /data/postgres /data/postgres/data solved the issue!
from awx-on-k3s.
good to hear that, have fun π
from awx-on-k3s.
Related Issues (20)
- 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
- TODO: Bump AWX Operator version to 2.17.0
- Frontend doesn't work HOT 6
- Yet another IPv6 question, dual stack k3s cluster, unable to route traffic to remote node HOT 5
- AWX tower URL redirection HOT 1
- Unable to send stdout from AWX to pod instance HOT 1
- TODO: Bump AWX Operator version to 2.18.0
- Authentication failed for Git repository - azure DevOps HOT 1
- How to use dynamic inventory from Netbox into AWX UI? HOT 10
- Possibility of execution instance(worker node) on another node/host/agent HOT 7
- TODO: Bump AWX Operator version to 2.19.0
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.