ikke-t / awx_pod

Ansible role to install Ansible AWX into pod using podman.
55 stars 19 forks source link

Postgresql complains to not run as root / redis reports no such file or directory #32

Open nazunalika opened 3 years ago

nazunalika commented 3 years ago

Running this role against a RHEL 8 system, postgresql will not stay up with a message in the logs:

initdb: cannot be run as root
Please log in (using, e.g., "su") as the (unprivileged) user that will
own the server process.

This occurs whether or not the container user and group is set to root or a non-root user. When I pull the container using podman pull and run it by hand as the non-root user, the database inits fine and runs. It's not entirely clear if I need to configure something on this machine.

The redis container just reports:

1:C 13 Jul 2021 00:44:55.684 # Fatal error, can't open config file '/usr/local/etc/redis/redis.conf': No such file or directory