cluster-init operation fails starting CJOC at /var/jenkins_home/secrets/initialAdminPassword: No such file or directory

Article ID:115003904747
1 minute readKnowledge base


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
[cjoc] Warning: Permanently added '' (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..



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)

Step 2

After you do one of these steps you can run prepare cluster-init and apply again