oracle / adb-free

Universal Permissive License v1.0
36 stars 3 forks source link

ADMIN_PASSWORD error #29

Open pguerin3 opened 2 weeks ago

pguerin3 commented 2 weeks ago

Should be easy to get started with Autonomous Database on an Oracle Linux 8 instance in the OCI.

[opc@oel8-4ocpus-8gb ~]$ podman run -d \
> -p 1521:1521 \
> -p 1522:1522 \
> -p 8443:8443 \
> -p 27017:27017 \
> -e WORKLOAD_TYPE=ATP \
> -e WALLET_PASSWORD='oragami1.' \
> -e ADMIN_PASSWORD='oragami1$$Admin123456789' \
> --cap-add SYS_ADMIN \
> --device /dev/fuse \
> --name adb-free \
> ghcr.io/oracle/adb-free:24.9.3.2
Trying to pull ghcr.io/oracle/adb-free:24.9.3.2...
Getting image source signatures
Copying blob 8d1d19f90368 skipped: already exists
Copying blob a157599cca7f skipped: already exists
Copying blob 8fa26a01ba2b skipped: already exists
Copying config 62f4f00a72 done   |
Writing manifest to image destination
9c80e5a241cea959d1eb48d055b32c7dbbab374b2e5200f3cabc2f19fff094f9

So far so good, but then the container fails with an error:

[opc@oel8-4ocpus-8gb ~]$ podman container logs --color adb-free
Archive:  /u01/POD1.zip
   creating: /u01/app/oracle/oradata/
   creating: /u01/app/oracle/oradata/POD1/
  inflating: /u01/app/oracle/oradata/POD1/redo01.log
  inflating: /u01/app/oracle/oradata/POD1/redo02.log
   creating: /u01/app/oracle/oradata/POD1/230A9C79D95D625CE06318CE5E644674/
   creating: /u01/app/oracle/oradata/POD1/230A9C79D95D625CE06318CE5E644674/datafile/
  inflating: /u01/app/oracle/oradata/POD1/230A9C79D95D625CE06318CE5E644674/datafile/o1_mf_temp_mjg0jdtm_.tmp
   creating: /u01/app/oracle/oradata/POD1/datafile/
  inflating: /u01/app/oracle/oradata/POD1/datafile/o1_mf_temp_mjg0jclg_.tmp
  inflating: /u01/app/oracle/oradata/POD1/datafile/o1_mf_system_mjg08rwt_.dbf
  inflating: /u01/app/oracle/oradata/POD1/datafile/o1_mf_undotbs1_mjg1ozdz_.dbf
  inflating: /u01/app/oracle/oradata/POD1/datafile/o1_mf_sysaux_mjg08rxt_.dbf
  inflating: /u01/app/oracle/oradata/POD1/datafile/o1_mf_data_mjg08rxy_.dbf
  inflating: /u01/app/oracle/oradata/POD1/datafile/o1_mf_temp_mjg1p0my_.tmp
   creating: /u01/app/oracle/oradata/POD1/2413E7238CB14573E0636402000A6FD8/
   creating: /u01/app/oracle/oradata/POD1/2413E7238CB14573E0636402000A6FD8/datafile/
   creating: /u01/app/oracle/oradata/POD1/onlinelog/
   creating: /u01/app/oracle/oradata/POD1/2413ECD8C88E48FDE0636402000A9C0C/
   creating: /u01/app/oracle/oradata/POD1/2413ECD8C88E48FDE0636402000A9C0C/datafile/
   creating: /u01/app/oracle/oradata/POD1/controlfile/
  inflating: /u01/app/oracle/oradata/POD1/controlfile/o1_mf_mjg0m58t_.ctl
   creating: /u01/app/oracle/oradata/POD1/230BC5406FD5EBABE06318CE5E64C591/
   creating: /u01/app/oracle/oradata/POD1/230BC5406FD5EBABE06318CE5E64C591/datafile/
  inflating: /u01/app/oracle/oradata/POD1/230BC5406FD5EBABE06318CE5E64C591/datafile/o1_mf_temp_mjg0jfx3_.tmp
   creating: /u01/app/oracle/oradata/POD1/2413EFCE7FB64985E0636402000AD466/
   creating: /u01/app/oracle/oradata/POD1/2413EFCE7FB64985E0636402000AD466/datafile/
TIME ELAPSED Unzipping /u01/POD1.zip: 0 minutes and 45 seconds elapsed
The ADMIN_PASSWORD must be between 12 and 30 characters long and must include at least one uppercase letter, one lowercase letter, and one numeric
RuntimeError: The ADMIN_PASSWORD must be between 12 and 30 characters long and must include at least one uppercase letter, one lowercase letter, and one numeric
[opc@oel8-4ocpus-8gb ~]$

I've tried various passwords of different lengths and uppercase/lowercase/numeric combinations, so wondering what happened?

Also tried getting the image from 'container-registry.oracle.com/database/adb-free:24.4.4.2-23ai'. Same result. Even tried omitting those 2 environment variables, but still get the same error.

aosingh commented 1 day ago

@pguerin3

oragami1$$Admin123456789 will not work because username in the password. Please try removing or replacing the "admin" from the password.

Also, you cannot omit the 2 variables. The password verifier will consider it empty and fail the container start. Please refer the documentation : https://github.com/oracle/adb-free?tab=readme-ov-file#on-first-startup-of-the-container