Incorrect registry configuration

This is a common error that is caused by incorrectly specifying subfolders when configuring a registry.

Symptom

You see the following error:

[INFO] Extracting certificate authority from ppa-ocp-reg.ppa.gov.sa:5000/apiconnect ...
/tmp/extractedCASELauncher119205926/ibm-apiconnect/inventory/apiconnectOperatorSetup/files/airgap.sh: line 2223: /root/.airgap/certs/ppa-ocp-reg.ppa.gov.sa:5000/apiconnect-ca.crt: No such file or directory
rm: cannot remove '/root/.airgap/certs/ppa-ocp-reg.ppa.gov.sa:5000/apiconnect-ca.crt': No such file or directory

[ERROR] Unable to retrieve certificates from ppa-ocp-reg.ppa.gov.sa:5000/apiconnect
error: Launch script failed due to: exit status 11

Cause

The registry is configured with subfolders in the format, host:port/path. This is incorrect as the correct format is host:port.

Solution

If a path or folder or namespace must be specified, it must be specified with the --nsPrefix argument as stated in Installing IBM Cloud Pak foundational services offline.