Nextcloud with Docker - password authentication failed for user

@etnguyen03 using your password in my playbook fails:

TASK [nextcloud_config : first setup nextcloud] *****************************************************************************************************************************************
Tuesday 27 April 2021  08:17:31 +0000 (0:00:00.035)       0:02:02.308 ********* 
fatal: [localhost]: FAILED! => changed=true 
  cmd: |-
    docker exec --user www-data nextcloud php occ  maintenance:install  --database pgsql --database-host nextcloud-db --database-name nextcloud  --database-user nextcloud --database-pass gq48CHM2QVQ9VV8YrMMLDrehpHKx5U39jwFrVmYMxczXhA9PPeApVqySPDMQE9k2aqCAKhnbRFWezZBnarG99jzpJHPhaRvJy5A7  --admin-user admin --admin-pass C3dL3uaksJexM3YHt0RItuzkPnWvCVlY --data-dir /var/nc-data
  delta: '0:00:00.528918'
  end: '2021-04-27 08:17:32.419815'
  msg: non-zero return code
  rc: 1
  start: '2021-04-27 08:17:31.890897'
  stderr: ''
  stderr_lines: <omitted>
  stdout: |-
    PostgreSQL username and/or password not valid
     -> You need to enter details of an existing account.

reducing the length of your password to gq48CHM2QVQ9VV8YrMMLDrehpHKx5U39jwFrVmYMxczXhA the task works fine:

TASK [nextcloud_config : first setup nextcloud] *****************************************************************************************************************************************
Tuesday 27 April 2021  09:54:51 +0000 (0:00:00.030)       0:01:00.088 ********* 
changed: [localhost]

and I got a running nextcloud instance.

1 Like