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

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)

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
How to disable CJOC authorization in PSE
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)

Step 2

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

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.