This article will describe how to use the check_server.sh
script to check that your server names are configured correctly.
Solution
-
Download the attached file
check_server.sh
-
Open a terminal
-
Log in to CloudBees CD (CloudBees Flow) using ectool
-
`ectool login `
-
-
Run the following command
-
sudo bash /check_server.sh
-
-
Your server settings will output in the following format:
EF Server ========================================== Config: $efServer Settings: $ipAddress Apache ========================================== Config: $apacheServer Repo ========================================== Config: $repoServer URL: $repoUrl
Please, note:
-
Your
EF Server - Config
- andApache - Config
value should be the same. In case you are running your CloudBees CD in a clustered configuration, they should point to the CloudBees CD Server Load Balancer FQDN or IP. -
Your
EF Server - Setting
could be empty in a non clustered configuration, but in a clustered configuration it needs to point to the CloudBees CD Server Load Balancer FQDN or IP.
If any of these values are incorrect, you may change them with the following steps.
EF Server (Config)
-
Open your
commander.properties
file in a text editor.-
/conf/commander.properties
-
-
Find the line
-
COMMANDER_SERVER_NAME=
-
-
Change the ` `field to the correct server name.
-
Save the
commander.properties
file. -
Restart your CloudBees CD Server to apply the changes
EF Server (Settings — Using ectool)
-
Run the following command
ectool setProperty /server/settings/ipAddress
-
In order to apply these changes you need to ping again all the agents to refresh them the CloudBees CD Server IP / HostName
EF Server (Settings — Using Web UI)
-
Open the commander homepage
-
Navigate to Administration > Server > Settings
-
Change the field "Server IP address" to your server address
-
Click "OK" to save
-
In order to apply these changes you need to ping again all the agents to refresh them the CloudBees CD Server IP / HostName
Apache (Config)
-
Open your
httpd.conf
file in a text editor-
/apache/conf/httpd.conf
-
-
Find the line
-
SetEnv COMMANDER_SERVER ""
-
-
Change the
""
field to the correct server name. -
Save the
httpd.conf
file. -
Restart the Apache Service to apply the changes.
Repo (Config)
-
Open your
server.properties
file in a text editor-
/conf/repository/server.properties
-
-
Find the line
-
COMMANDER_HOST=
-
-
Change the field to the correct server name
-
Save the
server.properties
file -
Restart the Repositoty Server to apply the changes.