Access denied for user 'root'@'127.0.0.1' (using password: NO)

Hello Community,
Inspired from Seafile with Podman, I’m working on an Ansible role to deploy Seafile in a rootless podman environment. I’m not allowed to include links in my post, so the error I got has to do it.

After deploying the pod with all necessary containers I see the following logs in the seafile container:

waiting for mysql server to be ready: %s (1045, "Access denied for user 'root'@'127.0.0.1' (using password: NO)")

I guess the seafile container is not sending a password to authenticate at the DB container, but I have no idea how to check. A password is specified in defaults/main.yml and used in tasks/main.yml.

Could someone help me on how to verify whether the seafile container gets configured with the correct password and uses it?

Best regards,
Tronde

1 Like

I have found the solution myself. I made a stupid typo.

It’s ˋDB_ROOT_PASSWDˋ and NOT ˋDB_ROOT_PASSWORDˋ.