Several rarely-used CloudBees CD/RO operations are not supported in clustered mode. For any these operations, you must restart the server in single-server mode:
-
Changing the database configuration This operation can be done in the web UI using Administration > Database Configuration or with
ectool
. After performing this operation, you must rerun ZKConfigTool to upload the changed configuration from the localdatabase.properties
file to ZooKeeper before switching back to clustered mode. -
Doing a full import using
ectool
-
Doing a full export using the safe mode with either of these options:
-
Restart
-
Shutdown
-
To run a CloudBees CD/RO machine in single-server mode:
-
Identify the machine you need to work on and shut down the other machines in the CloudBees CD/RO cluster.
-
Verify that the
database.properties
,keystore
,passkey
, andcommander.properties
configuration files on the machine you are working on are up to date and match those that were uploaded to ZooKeeper. -
Add:
wrapper.java.additional.261=-DCOMMANDER_IGNORE_SERVER_MISMATCH=1
to the
wrapper.conf
file of the machine that you are working on. Ensure that the number261
is unique within the file. If not, change the number to a unique ID. This line prevents server mismatch errors after the switch from multi-node cluster mode to single-node standalone mode. -
Switch the remaining CloudBees CD/RO machine to single-server mode by running the following command:
ecconfigure --serverEnableClusteredMode=0
The
commanderAgent
andcommanderServer
services restart. -
Complete your work on the CloudBees CD/RO machine.
-
If you changed the database configuration, use ZKConfigTool to upload the updated
database.properties
file to ZooKeeper.See Uploading Configuration Files to ZooKeeper for more information.
-
If you used the
eccert
tool (for added trusted agents, revoked certificates, and so on), use ZKConfigTool to upload the updated keystore file and/or theconf/security
folder to ZooKeeper. -
If you updated the
commander.properties
file, use ZKConfigTool to upload it to ZooKeeper. -
Switch the remaining CloudBees CD/RO machine back to clustered mode by entering:
ecconfigure --serverEnableClusteredMode=1
-
Restart the other nodes in the CloudBees CD/RO cluster.