Summary

Article ID:360033188751
2 minute readKnowledge base
On this page

This article will describe how to use the check_server.sh script to check that your server names are configured correctly.

Solution

  1. Download the attached file check_server.sh

  2. Open a terminal

  3. Log in to CloudBees CD (CloudBees Flow) using ectool

    • `ectool login `

  4. Run the following command

    • sudo bash /check_server.sh

  5. 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 - and Apache - 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)

  1. Open your commander.properties file in a text editor.

    • /conf/commander.properties

  2. Find the line

    • COMMANDER_SERVER_NAME=

  3. Change the ` `field to the correct server name.

  4. Save the commander.properties file.

  5. Restart your CloudBees CD Server to apply the changes

EF Server (Settings — Using ectool)

  1. Run the following command ectool setProperty /server/settings/ipAddress

  2. 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)

  1. Open the commander homepage

  2. Navigate to Administration > Server > Settings

  3. Change the field "Server IP address" to your server address

  4. Click "OK" to save

  5. 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)

  1. Open your httpd.conf file in a text editor

    • /apache/conf/httpd.conf

  2. Find the line

    • SetEnv COMMANDER_SERVER ""

  3. Change the "" field to the correct server name.

  4. Save the httpd.conf file.

  5. Restart the Apache Service to apply the changes.

Repo (Config)

  1. Open your server.properties file in a text editor

    • /conf/repository/server.properties

  2. Find the line

    • COMMANDER_HOST=

  3. Change the field to the correct server name

  4. Save the server.properties file

  5. Restart the Repositoty Server to apply the changes.

Repo (Settings — Using ectool)

  1. Run the following command

ectool setProperty /repositories/default/url

Repo (Settings — Using Web UI)

  1. Open the commander homepage

  2. Navigate to Artifacts > Repositories > Repository Name > default

  3. Change the field URL to the updated URL

  4. Click "OK" to save

You can view your updated server name settings by running check_server.sh.