During the installation, it is not possible to finish the cluster-init operation because CJOC start process does not finish correctly
[cjoc] stderr: Running docker-exec on 192.168.1.100: [cjoc] Warning: Permanently added '192.168.1.100' (ECDSA) to the list of known hosts. [cjoc] cat: /var/jenkins_home/secrets/initialAdminPassword: No such file or directory [cjoc] Script terminated with an error (1) [cjoc] There were one or more errors [cjoc] 02:00:00 Failure (255) Retrying in 5 seconds..
- CloudBees Jenkins Enterprise (CJE) - AWS/OpenStack/Anywhere
You have to enable access to CJOC in one of those two ways.
a) Disable CJOC security to be able to log in. See:
- How to disable CJOC authorization in CJE
- I changed the security realm and since then cje operations are failing
b) Stop CJOC and delete all its persistent data, probably easier if you don’t have anything that you want to keep
dna stop cjoc
If your project uses AWS then delete all EBS snapshots and volumes with tag cloudbees:pse:account=cjoc
If your project uses NFS then delete /mnt/cjoc/CONTAINER_ID/ folder on master worker that runs CJOC (
cje run list-applications)
After you do one of these steps you can run prepare cluster-init and apply again