Issue
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..
Environment
-
CloudBees Jenkins Enterprise (CJE) - AWS/OpenStack/Anywhere
Resolution
Step 1
You have to enable access to CJOC in one of those two ways.
a) Disable CJOC security to be able to log in. See:
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 controller worker that runs CJOC (cje run list-applications
)