Step 7. Check that it works

This page shows you how to check that an installation works. There are three checks. Health asks every server, live, what its containers are doing now. Diagnostics collects one file that you can read later or send to another team. Validate signs in to the portals, calls the APIs and connects one test device. See Validate: test the installation from the outside.

Before you start

This section lists what must be ready before you check.

  • The installation is deployed. See Step 6. Deploy.

  • Deployment Manager can reach the servers over SSH. Both checks open an SSH session.

For the product words on this page, see the glossary.

Steps to check an installation with Health

This section shows how to check an installation with Health.

  1. Open the Installations tab.

  2. Find the card of your installation. Press Health. The dialog Health · (installation name) opens.

  3. Read the verdict at the top. It says All healthy or Action needed. Badges under it count the containers that are not up and the servers that could not be reached or read.

  4. Read the list of servers. A broken server is listed first. Each server shows one badge: All up, No containers, Nothing planned, Unreachable, Could not be read, or the number of containers that are not up.

  5. Read each container row. Each row shows one word, such as Up or Unhealthy.

  6. Optional: under Entry points, press Check reachability. This asks each address if it answers. See Checking those addresses is its own action.

  7. To ask again, press ↻ Refresh. If the read failed, the button says ↻ Try again.

To collect a file for a ticket or another team, use Diagnostics:

  1. On the card, press Diagnostics. The button shows Collecting…​.

  2. Wait. The tool collects from every server and saves one file to your downloads. A message names the file.

Validate: test the installation from the outside

This section explains Validate. Health tells you that containers run. Validate tells you that the installation works for a user. It uses a test tool named QuickTest.

What Validate does

QuickTest does these things on the server that hosts the portals. If several servers of the installation host the portals, Validate runs on each of them. See Validate on several servers.

  • It signs in to the Support Portal and the Management Portal.

  • It calls the NBI, the Service API and the Provision API.

  • It registers one test device in the ACS of the customer.

  • It connects that device to the ACS, like a real router.

  • It removes the test device when it ends. This also happens after a failure or Ctrl-C.

The test device is a real device in the ACS of the customer. While Validate runs, this device counts against the licence. Tell the customer before you run Validate.

QuickTest itself does not verify certificates. For this reason, the addresses that carry the portal account prefer the own plain-http address of the portals server. They do not use the load balancer. The Grafana admin password goes to the self-signed https address of mon-nginx. For this reason, QoE and Grafana addresses on other servers are used only with an account that you give.

The certificate check

Before it sends the portal account, validate.sh checks the certificate of the NBI. It trusts the first of these that applies:

  1. The file in QT_NBI_CACERT=<ca file>, if you set it.

  2. The file portals/ssl/friendly.crt of the bundle, if it verifies.

  3. The system CA store of the server.

If the certificate is not trusted, the run stops before any test device is registered. The script prints: "The NBI at (address) presented a certificate this server does not trust — set QT_NBI_CACERT=<ca file>, or QT_NBI_INSECURE=1 to skip the check." The exit code is 2.

To skip the check, set QT_NBI_INSECURE=1. The script then prints a warning. It sends the portal account without verifying the server. Use this only when the site knowingly uses an untrusted certificate.

An installation with the customer’s certificate is checked another way: every port that uses the certificate is compared with .ft-tls/fullchain.crt, and QT_NBI_INSECURE=1 is refused. See Validate under the customer’s certificate.

Validate is optional. It is off by default. Its result never changes the result of the deploy. A deploy that worked stays "deployed" if Validate fails.

Validate after the install

Use this when you deploy.

  1. Start a deploy. See Step 6. Deploy.

  2. On the screen where you choose where the files go, tick Validate after install.

  3. Read the line under the box: "Registers one test device in this installation’s ACS, then removes it."

  4. Optional: open Portal accounts — admin / admin unless you change them. Type other accounts.

  5. Continue the deploy.

If no server of the installation hosts the portals, the box is off. The panel says "Not available — no server of this installation hosts the portals."

The deploy ends first. Then the same window shows "Validating with QuickTest on" (server name). If you close the window, the validation keeps running. The result appears on the installation card.

Validate later

Use this on an installation that is already deployed.

  1. Open the Installations tab.

  2. Find the card of the installation. Press Validate. The window Validate (installation name) opens.

  3. Optional: open Portal accounts and type the accounts, if they are not admin / admin.

  4. In the window, press Validate.

  5. Wait for the result.

If a deploy or another validation of this installation is running, the panel tells you who started it. Wait until it ends.

Optional checks: QoE and Grafana

Two more groups of checks run only when you give an account. There is no default account for them.

Group When it runs

QoE (sign in, one device’s data, device graphs)

Only with a QoE account. Type it in the field "QoE account (optional — QoE checks run only with one)", or at the validate.sh prompt "QoE user (Enter to skip the QoE checks):". If you press Enter, the group is skipped.

Grafana (7 read-only checks)

If Grafana runs on the portals server, validate.sh reads the admin account from mon-grafana/.env. If Grafana runs on another server, it runs only with an account that you give.

The check "QoE — one device’s data" creates a monitoring through the Management Portal and then deletes it. On sites that use SAML or OIDC it needs two things. You must give the Management Portal account yourself. The script must reach the portal at the plain-http address of the portals server. If one is missing, the script prints "qoeSingleDevice not checked — needs the Management Portal account". The row "QoE — device graphs" is skipped for the same reason.

If QoE runs on another server, it is checked only with an account that you give. The same rule applies to Grafana on another server.

A group that is skipped shows a row "Not checked" with the reason. Examples: "QoE not checked — no QoE account given" and "Grafana not checked — mon-grafana is not part of this installation".

Validate on several servers

This section explains Validate when several servers of one installation host the portals. Validate runs on each of these servers. The panel shows a matrix with one column for each server. While it runs, the line says "Validating with QuickTest on (number) servers" and the progress. The last line names the worst result:

Last line Meaning

All (number) servers passed

Every server passed.

(number) of (number) servers failed: (names)

At least one server failed. The line can add "account not accepted on (names)" and "(number) not checked".

The portal did not accept the account on (names)

The portal refused the account on these servers.

Not every server was checked: (names)

A server did not run Validate. This is not a failure of the installation.

The panel shows at most two server names and then "+(number) more".

Portal accounts

QuickTest signs in with two accounts. The default for both is admin / admin.

Account Used for

Support Portal

The Support Portal checks. The NBI checks and the removal of the test device also use it.

Management Portal

The Management Portal check.

Deployment Manager does not store the passwords. It never shows them in the log.

For QoE and Grafana, give both the login and the password. If you type only one of them, the panel refuses and says: "Enter both the login and the password of the QoE account, or leave both empty." The same text with "Grafana" applies to the Grafana account.

The portals are tested whatever the SAML or OIDC settings say. Many portals keep their own sign-in form next to SAML or OIDC. Use the Support Portal and Management Portal accounts.

If a portal has no sign-in form of its own, run ./validate.sh --api-only on the server. It checks only the APIs. The Support Portal and Management Portal rows then show "Not checked" with the reason "only the APIs were asked for (--api-only)". The API checks still need a Support Portal account.

What each result means

Result Meaning What to do

Validated · 9 of 9 checks passed

Every check that ran passed. The number is the number of checks that ran.

Nothing. The card shows Validated.

Validation failed · 2 of 9 checks failed

QuickTest ran. Some checks failed. The table shows each check and the reason.

Press Download the run. Read the log and the screenshots. Fix the cause. Press Validate again.

The portal did not accept the account (name) - enter the account and validate again

The Support Portal refused the login. No test device was registered.

Type the right account in the fields that open. Press Validate again.

Validation did not run - (reason)

QuickTest could not start or finish. This is not a failure of the installation. The tone is neutral, not red.

Read the reason in the table below. Fix it. Press Validate again.

More about the Validate results

  • The table of a run has a heading such as 9 checks · 7 passed · 2 failed. It counts every kind that is not empty: passed, failed, skipped and not checked.

  • If a run could not start, the result shows its cause under the message.

  • The downloaded run archive contains the QuickTest report latest.html. Open it on your computer. Deployment Manager does not show this report in the browser, because it is third-party HTML.

Every check in the Validate result table

This section lists every check name that the Validate result table can show. A name that is not in this list is shown as the server sent it. Each row has a mark: passed, failed or skipped. A group that was not run shows "Not checked" with the reason.

Check name Group What it checks and what it needs

Support Portal - change a device setting

Support Portal

The Support Portal signs in and changes a setting of the test device. Needs the Support Portal account.

Support Portal - read the device parameters

Support Portal

The Support Portal reads the parameters of the test device. Needs the Support Portal account.

Management Portal - see the task the device received

Management Portal

The Management Portal shows the task that the test device received. Needs the Management Portal account.

NBI - device activity

NBI

The NBI answers a request for the activity of the test device.

NBI - device information

NBI

The NBI answers a request for the information of the test device.

Service API - device IP address

Service API

The Service API gives the IP address of the test device.

Service API - wireless settings from the ACS

Service API

The Service API gives the wireless settings of the test device from the ACS.

Provision API - account information

Provision API

The Provision API gives the account information.

Provision API - status

Provision API

The Provision API gives its status.

QoE - sign in

QoE

Signs in to QoE. Runs only with a QoE account.

QoE - one device’s data

QoE

Creates a monitoring through the Management Portal, reads the data of one device and deletes the monitoring. Needs a QoE account and a Management Portal account.

QoE - device graphs

QoE

Reads the graphs of a device. Skipped when "QoE - one device’s data" is skipped.

Grafana - health

Grafana

Grafana answers its health request.

Grafana - data sources

Grafana

Grafana lists its data sources.

Grafana - dashboards

Grafana

Grafana lists its dashboards.

Grafana - Prometheus targets

Grafana

Grafana shows the Prometheus targets.

Grafana - API metrics

Grafana

Grafana shows the metrics of the API.

Grafana - sign in

Grafana

Signs in to Grafana with the Grafana account.

Grafana - API metrics dashboard

Grafana

The dashboard of the API metrics opens.

Reports - database time through ClickHouse

Reports

The database, the JDBC bridge and ClickHouse agree on the time. See The Reports check.

If the installation has no address for the Service API or the Provision API, the row says "Not checked - this installation has no address for this API".

The Grafana group has seven read-only checks. Grafana on the portals server uses the admin account from mon-grafana/.env. Grafana on another server runs only with an account that you give.

The Certificate rows run only for an installation with the customer’s certificate. Each row compares the certificate that a port serves with the file .ft-tls/fullchain.crt of the server that runs Validate. The port is the value of the variable shown, or its default.

Check name Service and port Port variable and default

Certificate - portals

portals

FT_UI_HTTPS_PORT, 8843

Certificate - portals

superset-embed-proxy

SUPERSET_PROXY_PORT, 4443

Certificate - NBI

northbound-api

NBI_HTTPS_PORT, 9444

Certificate - Service API

service-api

SERVICE_API_HTTPS_PORT, 9445

Certificate - configs service

ft-configs-service

FT_CONFIGS_SERVICE_HTTPS_PORT, 8447

Certificate - configs service

ft-configs-ui

FT_CONFIGS_UI_HTTPS_PORT, 3443

Certificate - QoE

ft-qoe-web

QOE_WEB_HTTPS_PORT, 8448

Certificate - Grafana

mon-nginx

port 443

Certificate - Keycloak

keycloak

KEYCLOAK_HTTPS_PORT, 8500

Certificate - Provision Portal

provision-portal

PROV_PORTAL_HTTPS_PORT, 8893

Certificate - Superset admin

superset-nginx

SUPERSET_ADMIN_PORT, 8094

Certificate - device ports

ftacs

FTACS_HTTPS_PORT 8443, ACS_USP_WSS 4430, ACS_USP_STOMP_TLS 61618, ACS_USP_MQTT_TLS 18882, ACS_MQTT_TLS 8883. Only for a bundle with device TLS.

A Certificate row can show one of these reasons:

  • "port (n) gave no certificate — check that the service runs, then validate again"

  • "port (n) serves a different certificate than .ft-tls/fullchain.crt — run ./tls.sh apply, then validate again"

  • "the certificate in .ft-tls/fullchain.crt has expired — get a new one, then run ./tls.sh apply"

  • "the certificate does not name (host) — ask for one that does, then run ./tls.sh apply"

  • Not checked: "on another server, run validate there"

A target that fails its Certificate check gets no account. Validate sends no password to it.

The login check before the test

Before validate.sh registers a test device, it logs in to the NBI with the Support Portal account. The run goes on only if the NBI answers with success. Two answers have their own result:

  • The NBI refuses the login. The exit code is 3. See the table above.

  • The NBI gives no answer, times out, or answers with an error such as 500. The exit code is 2. The script prints: "The NBI at (address) did not answer the login check (curl exit (number): (reason)) — nothing was started." For an error answer it prints "The NBI at (address) answered (code) to the login check — nothing was started."

In both cases no test device is registered.

The groups and the failed tests

Validate shows the portal tests as two groups: Support Portal and Management Portal. The summary on the server uses the same two names. Each group shows one mark.

  • A group is marked failed when at least one of its tests failed.

  • Under a failed group, each failed test has its own line. The line gives the test name, what the test does and the error. The line is one line long and is cut when it is very long.

  • Passwords are never shown in these lines.

If a portal is not checked, the reason shows beside its tests.

The Reports check

The row Reports — database time through ClickHouse checks that three parts agree on the time. The parts are the database, the JDBC bridge and ClickHouse. The check runs before QuickTest. It is quick and it only reads.

Result What to do

Passed. The times are 60 seconds apart or less.

Nothing.

"ClickHouse or jdbc-bridge is not running here — start them (docker compose up -d clickhouse jdbc-bridge) and validate again"

Start ClickHouse and the JDBC bridge. Run Validate again.

"ClickHouse could not reach jdbc-bridge — check NO_PROXY / the proxy settings of the clickhouse container and that jdbc-bridge is healthy"

Check that the JDBC bridge is healthy. Check the proxy settings of the ClickHouse container.

"database and ClickHouse times differ by about (number) h — check the bridge datasource’s "timezone": "UTC" and ?serverTimezone=(zone)"

The two times differ by a whole number of half hours. This is a time-zone offset. Check the time zone of the JDBC bridge datasource.

"database and ClickHouse times differ by (number) s — check the clocks"

Check the clocks of the database server and the ClickHouse server.

"ClickHouse could not read the database time through jdbc-bridge: (reason)"

Read the reason. Check that the bridge can connect to the database.

Not checked: "ClickHouse and its JDBC bridge are not part of this installation"

Nothing. The installation has no Reports services.

ClickHouse takes its time zone from the TZ value of the installation. To change it, change the time zone in the box Shared by every service on the Variables step (see dm-variables.adoc#time-zone) and deploy again. Restarting the container does not apply a new value.

QuickTest and the internet

QuickTest does not call Google font hosts or Google map hosts. They are resolved on the server itself. A site whose firewall drops these hosts does not make a portal test wait for minutes.

A test device that could not be removed

If the removal fails, the result shows: "The test device (serial) could not be removed from the ACS. The next validation removes it, or delete it in the Management Portal."

Each installation has one constant serial, for example FTQT- and 8 hex characters. So at most one such device can remain.

The reasons for "Validation did not run":

Reason What to do

QuickTest could not be set up on (server)

Read the log above the message. Check that the server can reach the addresses of the installation.

The QuickTest images are not on (server), and it cannot pull them

Online: give the server a route to the registry. Offline: package the bundle again. The offline archive carries the images.

The connection to (server) was lost; the run may still finish there

Wait a few minutes. Press Validate again when the other run has ended.

Another run is in progress on (server)

Wait until the other run ends.

Deployment Manager could not open SSH to (server)

Check the SSH access. See When something goes wrong.

Deployment Manager is restarting

Wait for the restart. Press Validate again.

Deployment Manager could not read its result

Press Validate again. If it happens again, collect Diagnostics.

Validate without Deployment Manager (offline)

Use this on a site that Deployment Manager cannot reach. The bundle for the server that hosts the portals always has validate.sh and the two QuickTest images.

  1. On the portals server, go to the install directory.

  2. When deploy.sh ends, it asks: "Run post-install validation now? It registers one test device in this ACS and removes it afterwards. (Enter = yes, N = no)". Press Enter to run it. Type N to run the script later.

  3. To run it later, type ./validate.sh.

  4. At the prompt "Support Portal user (press Enter to use admin):", type the user. Press Enter to keep admin.

  5. At the prompt "Support Portal password (press Enter to use admin):", type the password. Press Enter to keep admin. The password is not shown.

  6. Do the same for the Management Portal.

To skip the prompts, use ./validate.sh --from-env. Set these variables first:

export QT_UI_LOGIN=admin
export QT_UI_PASSWORD=...
export QT_MP_LOGIN=admin
export QT_MP_PASSWORD=...
./validate.sh --from-env

To use other images for one run, set QT_IMAGE and QT_EMULATOR_IMAGE. The default images are pinned in validate/images.txt.

The script ends with one exit code:

Exit code Meaning

0

Passed.

1

Checks failed.

2

Setup error.

3

The portal did not accept the login.

4

The images are missing.

The options and variables of validate.sh

This section lists the options of ./validate.sh and the variables that it reads. The script gets the accounts from one of three sources: the prompt, --from-env or --creds-file.

Option What it does

--from-env

Reads the accounts from the variables in the next table. No prompt appears.

--creds-file (path)

Reads lines KEY=VALUE with the same variable names. The script deletes the file once it has read it.

--no-prompt

Never asks for an account, also at a terminal.

--api-only

Checks only the APIs. The portal rows show "Not checked".

--help

Prints the usage and exits with code 0.

An unknown option ends the script with exit code 2.

Variable Use

QT_UI_LOGIN, QT_UI_PASSWORD

The Support Portal account. The default is admin / admin.

QT_MP_LOGIN, QT_MP_PASSWORD

The Management Portal account. The default is admin / admin.

QT_QOE_LOGIN, QT_QOE_PASSWORD

The QoE account. Without it, the QoE group is not checked.

QT_GRAFANA_LOGIN, QT_GRAFANA_PASSWORD

The Grafana account. Without it, a Grafana on another server is not checked.

QT_NBI_CACERT, QT_NBI_INSECURE

The trust for the NBI certificate. See Validate: test the installation from the outside.

QT_DIAG_TIMEOUT

Seconds for each diagnosis call under a failed group. The default is 120.

QT_DIAG_TOTAL

Seconds for all diagnosis calls together. The default is 300.

NO_COLOR

If set, the script prints no colour.

A failed group gets a diagnosis under it. If the diagnosis fails or runs out of time, the script prints one line "could not diagnose: (reason)". This never changes the exit code.

The script stops the QuickTest run after 15 minutes when the server has the timeout command. It prints "QuickTest did not finish within 15 minutes" and exits with code 2.

Offline archive without the validation images

If the registry account cannot pull the validation images, Deployment Manager still builds the archive. The dialog then says: "This archive carries no validation images — the registry account cannot pull them." On the site, ./validate.sh then exits with code 4. Package the archive again with an account that can pull the images. See Step 4. Create the bundle.

Where the results are

  • Online: press Download the run on a failed result. Deployment Manager keeps each run for 14 days. It keeps at most 5 runs for each installation.

  • Offline: the folder validate-runs/ in the install directory. Each run is one .tar.gz file with the log and the screenshots. The script keeps the last 5.

Smoke check by hand: smoke.sh

This section explains ./smoke.sh. The script asks one question: does this installation work, or is it only up? Use it on a site that Deployment Manager cannot reach. The terminal output is the report. The script ships in the bundle. It does not need curl on the server. It sends its requests from inside the container of the service.

  1. Go to the install directory on the server. It holds compose.yml and mask-secrets.sh.

  2. Type ./smoke.sh.

  3. Read the verdict line: "(verdict) — (n) passed, (n) failed, (n) not checked".

  4. If the portal login is not admin / admin, type ./smoke.sh --user (name) --password (password).

The default scenario s0 needs no device. It sends one request for a token to the NBI. This one request proves that the service runs, that it read its settings, that it has a database connection, that the database schema and the account exist, and that the services agree on the JWT secret. It does not prove that a device can be reached. A green s0 does not show that the ACS can wake a device.

Option What it does

--user (name), --password (password)

The portal login for the request. The default is admin / admin. The user admin is created by ui-backend on its first start. The script never reads the password from a file.

--scenarios (list)

A list of scenarios, separated by commas. The default is s0. The scenarios s1 and s2 start an emulated device on this installation. Ask first on a production server.

--json (file)

Writes the result file to this path.

--keep (n)

Keeps the last (n) result files in smoke-runs/. The default is 2.

--merge (file) (file)

Give it as the first option. It sums the JSON files of several servers into one verdict. It needs no install directory.

--help

Prints the first lines of the script.

The script writes the result to smoke-runs/(installation)-(server)-(date).json. The part (server) is left out when the file server-id does not exist. A result has three outcomes: passed, failed, and "not checked". "Not checked" is not a failure. A server that runs none of the services that s0 asks (a database host or a monitoring host) gets one row that names what the server does run.

Exit code Meaning

0

No check failed.

1

At least one check failed. Also: there is no compose.yml here, or mask-secrets.sh is missing. With --merge: a server of smoke/servers.txt did not report, and the script prints "did NOT report: (servers) — this verdict does not cover them".

2

An unknown option, or --merge without a file.

What you see: Health

This section explains the Health check. Health opens an SSH session to every server bound to the installation, all at the same time. It asks Docker Compose for every container of the installation. Health is fast. It connects only when you press it. Nothing is kept between visits. If you close the dialog and open it again, it asks again.

It answers four questions, in this order:

  1. Is anything wrong? A verdict comes first, before any details. The verdict is All healthy or Action needed.

  2. Which machine? The broken server is listed first.

  3. Which container? Each row shows one state. You do not need to compare three columns.

  4. How long has it been that way? Every reading shows its time.

This is the order a person asks in after a customer reports a problem. The time matters. A container list shows a server at one moment. Without a time, it looks live for as long as the dialog is open.

Per-server reachability comes first. A server that could not be reached is a different result from a server that answered with an empty container list. A container listing that ran and failed is also its own state. It is not the same as "no containers here". The dialog keeps these apart. One unreachable server does not hide the results of the others.

What a green verdict does and does not mean. A container counts as good when it is running and one of two things is true. It declares no health check, or it reports healthy. So for a service with no health check, a green row proves only that its process has not stopped. More important: Health reports what is there, not what is missing. It lists the containers that exist. It does not compare them with the containers the topology places on that server. So "All healthy" can mean "the four containers that exist are healthy" when six were expected. When this matters, compare with the service list on the deploy panel. An installation with no containers is never reported as good.

Health looks for the installation in more than one directory. A bundle carried to the site by hand is not always in the directory a deploy from here would use. A server may clearly be running but show an empty Health result. This usually means the install is in a directory that was never recorded.

Per-container state uses these words:

Word Meaning

Up

Running. Healthy, or it has no health check.

Starting

Normal. Still starting.

Unhealthy

Running, but its health probe is failing.

Exited

The container stopped.

Not created

The container does not exist yet.

Restarting

Docker is restarting it. Other Docker states are shown the same way, with a capital letter.

Docker’s own status line can separate a stable service from one that keeps crashing. For example, Up 3 hours (healthy) compared with Restarting (1) 12 seconds ago. The dialog shows that line. It does not reduce both to running. The image tag is also shown. It answers a different question: is the version this tool thinks it deployed the one actually on the machine?

A healthy container is not the same as a service that is ready

This section explains a limit of the health check. Docker’s healthcheck may answer while the service behind it is still not ready for traffic. A health endpoint can start and answer well before the service can serve a customer. So anything that starts as soon as a dependency reports healthy can start too early. This is one reason to run the entry-point check below together with the container list, not instead of it. That check sends a real request to the address a customer would use.

Entry points: the addresses an installation is reached on

This section explains the entry points. You find them in the Health dialog. An entry point is an address a customer or a support engineer would put in a browser or a script. It is not a port that is reachable only inside the system.

They are calculated, not typed in. The address comes from four facts:

  • The topology says which service runs on which host.

  • The compose fragment says what that service publishes.

  • The installation’s own variable values give the port.

  • The service’s contract says which path answers a health check.

Nobody maintains the address by hand. Three rules keep a calculated address correct:

  • A container port that is not published to the host is not an entry point. Only what the compose file actually maps out can be reached.

  • A port that uses only UDP is not an entry point either. The check uses HTTP.

  • A service whose healthcheck is not HTTP gives no address. An example is a database checked with its own client tool. There is no URL to open for it.

Each address shows where it came from. In the future, an owning team may declare an entry directly. That entry will be marked and used before one this tool calculated. Today, everything shown is calculated.

Two kinds of row. This applies when an installation’s servers are behind the customer’s own load balancer. There is one row per address the balancer answers on. It names the group of servers behind the balancer. There is also one row per server behind it, as usual. The balancer row is listed first, because that is the address given to the customer. But it never replaces the per-server rows. The balancer can answer while a server behind it is down. Only the per-server rows show which server, if any, is down.

Checking those addresses is its own action

This section explains the address check. The tool builds the list for free when Health opens. Asking each address if it answers is a separate action. It runs only when you press Check reachability. The check runs from where Deployment Manager itself is hosted. About half of customer sites cannot be reached from there. So there are three answers, not two:

Answer Meaning

Reachable

The address answered with some HTTP response. See below for what "some" means.

No answer

One of these: the request timed out, the port refused the connection, the name did not resolve, or the TLS handshake failed. The panel says which one in a sentence. It never shows raw text from the connection library.

Not checked

The button has not been pressed for this address. This is the answer for a site that cannot be reached from here. It is a normal, expected result. It is not a fault.

Any HTTP status counts as reached, including a 401 or 403. Those get their own label, Needs sign-in. The port is published, the firewall allows it, and the service replied. Whether the service is healthy is a separate question. The container list above answers it. Deployment Manager never signs in to make this check pass. Signing in would mean one of two things. Either this tool stores a customer’s production credential. Or it guesses a credential against their production service and fills their logs with failed logins. This check does neither, even for a green row.

This check does not verify certificates. A customer’s self-signed certificate must not show as a service that is down.

Browser check in the Health dialog

This section explains the Browser check block of the Health dialog. The button Run browser check runs the configured Playwright specs against the portal and the APIs of the installation. It uses a real browser. It is slower than the other checks, and it never runs by itself. While it runs, the button says Running….

  • Who may run it: a person with the user role or higher. A viewer is refused with: "This needs the user role or higher. Ask a support admin to give it to you."

  • A practice installation is refused with: "This is your practice installation. It has no real servers, so there is nothing to check."

  • Result: a table with Pass or Fail for each spec.

  • If no specs are configured, the block says: "No browser specs are configured for this installation. Add them under playwrightSmokeSpecs in Settings."

  • If the tool is not installed on the Deployment Manager host, the block says "The browser check cannot run here." and shows the reason.

Diagnostics

This section explains Diagnostics. Diagnostics collects one file for the whole installation, with a section for each server. It uses the same kind of SSH session as Health. You can read it later. You can attach it to a ticket, or upload it back into Deployment Manager.

It collects, per server:

  • What every container is doing right now.

  • The last 300 log lines of each container.

  • The owner and permissions of every configuration file.

  • The docker versions in use.

  • Every setting in .env, with its value. A secret is shown as [MASKED], or as [EMPTY — no value was set] when it has no value.

Secrets are masked, not left out. Before the file is written, the value of every secret is replaced with [MASKED]. This includes a value a container printed into its own log by mistake. Whenever the tool can detect it, a password does not leave the customer’s site in this file.

When to use Diagnostics instead of Health: Health is fast. It answers "is it up right now" for a machine you can watch live. Collect Diagnostics when someone else needs to look. For example, you attach it to a ticket, give it to another team, or read it later. A live dialog cannot do any of these.

Run diagnostics by hand

This section explains how to run the diagnostics script on a server yourself. Use it when Deployment Manager cannot reach the server, or when support asks you to run diagnostics. The script collect-diagnostics.sh ships in the bundle. It needs bash 4.2 or newer, Docker with Compose, and read access to the Docker socket.

  1. Go to the install directory on the server. It holds compose.yml.

  2. Type ./collect-diagnostics.sh.

  3. Read the first lines on the terminal. They name the most likely cause: what, where, the line that shows it, why, and what to do.

  4. Find the last line of the output: wrote (path). The path is the file to attach to the ticket.

The file is named ft-diagnostics-(project)-(server)-(date).txt. The part (project) is the Docker Compose project name. The part (server) is the content of the file server-id. It is left out when the file server-id does not exist. The part (date) has the form YYYYMMDD-HHMMSS. The script masks every secret before it writes the file. If masking fails, the script prints "masking failed, so no file was written: an unmasked file must not leave this server." It leaves no file and exits with code 3.

Command What it does

./collect-diagnostics.sh

Prints the most likely cause, then writes the file.

./collect-diagnostics.sh --explain (service)

Prints only the cause and writes no file. You can name one or more services.

./collect-diagnostics.sh --check-url (URL)

Finds why an address fails: DNS, port, certificate or HTTP answer. It never sends a credential. A 401 or 403 answer means that the address asks for a login.

./collect-diagnostics.sh --check-url (URL) --cacert (file)

Trusts the file and the certificates of this server.

./collect-diagnostics.sh --check-url (URL) --trust (file)

Trusts the file alone.

./collect-diagnostics.sh --check-url (URL) --tls-any

Accepts any certificate, as a client that does not check it. This is reported and is never the cause. It cannot go with --cacert or --trust.

./collect-diagnostics.sh --check-url (URL) --resolve (host):(port):(address)

Dials the given address for that name, as the failed client did.

./collect-diagnostics.sh --no-fix

Used with another option. The script never offers to run the repair.

./collect-diagnostics.sh --undo-fix (backup file)

Puts back the owners that a repair saved in .ft-fix-backups. Run it as root.

Command Exit codes

./collect-diagnostics.sh

0 the file was written. 1 no compose.yml here. 2 unknown argument. 3 a condition is missing: bash older than 4.2, or masking failed.

--explain

0 nothing is failing. 1 a cause was printed. 2 unknown argument. 3 Docker cannot be read, or masking failed.

--check-url

0 the address answers. 1 a cause was printed. 2 unknown argument. 3 the address cannot be checked here.

--undo-fix

0 done. 3 you are not root. 10 to 18 the script refused and changed nothing, for example 12 two disks, 13 hard links not protected, 14 a file with two names, 16 the change stopped part way.

Good to know about the readiness checks and probes

This section explains two checks that run behind the scenes: the readiness checks before a deploy, and the probes after a failure.

The readiness checks, before any container starts

This section explains the readiness checks. Every deploy runs a set of checks on each server after the bundle is copied, but before any container starts or stops. This order is the key point. A readiness refusal means no running service on that machine was changed. So there is nothing to roll back. Fix what the check named and press Deploy again.

A refusal always names one of the checks in the table below. The summary line is FAIL preflight_failed and the name of the check. There is no other cause behind a general "readiness failed".

The warning about the customer’s other database servers is not one of the four checks. It never blocks the deploy. See the warning about the customer’s other database servers. On the customer’s database server, the tool does not test the file limits and offers no repair. See the readiness check on the customer’s database server.

Check What it proves What it does not prove

Open-file and process limits

A running container of this installation has a hard limit of open files and processes at or above the minimums that the installation needs. The check measures a container, not your login.

What a container that does not run yet will get. If no container of this installation runs, the check is skipped with a note, and it is not a refusal. There is no Fix it for it. Raise the container limits of Docker on the server, for example default-ulimits in /etc/docker/daemon.json, and restart Docker in a maintenance window. The restart stops every container on the server.

Name resolution

Every hostname the topology declares resolves on that server.

That it resolves inside a container. A container can resolve a name itself. The machine’s own hosts file is not the container’s. A fix made there can look correct and change nothing. A failure here usually explains the rest of the report too. The reachability check below uses the same names. Fix this first, then read the rest again.

Ports free

Nothing else is using a port this installation publishes.

Nothing more. The check tells apart three users of a port, and only one passes. A container of this installation passes, because a re-install replaces it. A container of another installation is refused, and the message names the container. A container with host networking that is not part of this installation is refused. A process outside Docker is refused. A repair is offered only when the process can be identified.

Dependencies reachable

A TCP connection to each declared dependency succeeded within a few seconds.

Anything about credentials, schemas, or whether the right service is answering. A green result here does not rule out an authentication failure at deploy time. That is a completely different failure.

Image storage

The disk where Docker keeps its images has room for the images that must be loaded or pulled. The check refuses if the server holds no image and no container yet and the room is too small. It also refuses after Docker ran out of room while it loaded or pulled images.

That the pull will not run out of room later. On a server that already holds images, a small free space is only a warning. If you can fix it, Fix it offers to move the Docker storage to a bigger disk. That stops every container on the server while it copies.

Build bases

Each image that a Dockerfile of this bundle builds FROM is on the server or packed with the bundle.

Anything for an online install. Online, a missing base is only a warning, because the build pulls it. Offline, a missing base is a refusal.

Container names

A bundle with Short container names does not need a container name that another container holds.

That a name is free for ever. The message names the container, and says if it belongs to this installation, to another installation, or to no installation. Turn off Short container names or rename the holder.

Port published twice

No host port is bound by two services of this installation.

Anything about other programs on the server. The Ports free check covers them. The fix is a value on the Variables step.

Docker Compose version

Docker Compose is version 2.24 or newer. A bundle with device TLS needs it.

Nothing else. Update Docker Compose on the server and deploy again.

The script preflight.sh in the server folder of the bundle ends with exit code 0 when the server is ready to deploy. It ends with a non-zero exit code when at least one check printed [FAIL]. In the check list that preflight.sh prints, the first six are numbered [1/6] to [6/6]: limits, name resolution, ports free, dependencies reachable, image storage and build bases. The other three have no number.

Three facts about how to read the result:

  • One line per refusing check, not per condition. A limits check can refuse on two different limits and still give one line. The number of lines is the number of failing checks.

  • A missing tool turns a check into a warning, not a failure. A minimal server image may lack the tools the port or reachability checks need. Then the check says so and the deploy does not stop. The summary counts warnings separately and asks you to read them.

  • On a multi-wave deploy the machine-level checks run once, at that server’s first visit. A later visit says the checks were done at the first one. This is normal. No check was skipped.

Fix it offers five repairs. Two come from the readiness check: a port that a process holds, and a full Docker image storage when a bigger disk exists. Three come from a diagnosis of a failed deploy: delete unused images, change a folder’s owner, and undo that change. If no repair button appears, no safe automatic repair exists. It is not a missing feature. Stopping somebody else’s service is not this tool’s job. When a repair runs, it first checks the server again. If anything changed since the screen was shown, it refuses and changes nothing. It asks a process to stop before it forces it to stop.

The five repairs behind Fix it

This section explains the five repairs of Fix it. The screen shows exactly what each repair would run before anything is written. If the repair refuses, see A repair under Fix it refused.

Repair Button text What it does Cost

Free a port

"Stop it and free port (n)"

Stops the one process that holds the port. First it checks that this process still holds the port. It asks the process to stop (TERM). After 10 seconds it forces it (KILL).

The process stays stopped. This tool did not install it and cannot start it again. You must accept first: "I have checked what this is and it may be stopped".

Move Docker’s storage

"Move Docker’s storage to (folder)"

Copies the images, containers and volumes of Docker to (folder)/docker-storage and points Docker there. It checks everything first. If a check fails, it changes nothing.

Stops every container on the server while it copies, also containers that this tool did not install. The old copy stays and keeps its space until you delete it by hand.

Delete unused images

"Delete the images nothing uses"

Runs docker image prune -f. It removes only images that have no name and that no container uses. It never removes a named image.

The images are deleted for good. Images of stopped services keep their name, so a redeploy does not download them again.

Change a folder’s owner

"Make user (n) the owner of (folder)"

Changes the owner of every file under the folder of a service to the numbered user that the service image runs as (group 0). Content is not changed.

Changing the owner clears setuid and setgid bits. Undo cannot restore them. The old owner is saved under a backup number.

Undo the owner change

"Put the owner of (folder) back to user (n), group (n)"

Puts the saved owner back, with the backup number. It runs the same checks as the change.

The service may no longer be able to write in the folder.

  • A port that can be freed. The port must be one that a service of this installation binds. The tool never frees port 22. It frees a port below 1024 only when a service always uses it.

  • Docker storage. The screen offers up to three target disks. The first one can be marked as recommended.

  • Folder owner. The repair changes nothing when a file in the folder has a second name, a setuid bit or a setgid bit. It also changes nothing when the files belong to more than one user, when another disk is mounted inside the folder, or when the server does not protect hard links (fs.protected_hardlinks is not 1). A folder of another service inside this folder is left as it is.

  • Undo. Undo works once for each backup number. It refuses when something under the folder belongs to a third user.

When a repair has more than one outcome, nothing is selected at first. This is on purpose. A default would hide the cost of the complete outcome. That outcome can restart every container on a server that may already serve customers. The apply button says "Choose how far to go" until you pick one. Then it names the outcome. If you press it before you pick, the panel says "Choose how far to go first." If there is one outcome, the button names it or says "Apply on the server".

The fold "Show the exact command" (or "Show the exact commands (n)") lists what runs. If the account that this tool uses is not root and cannot use sudo without a password, nothing is changed. Copy the commands and run them on the server yourself. When the tool found more than one problem, it says "This tool found (n) problems it can repair on (server) and fixes them one at a time."

Probes: the small set of questions the panel can ask a server

This section explains probes. When an install fails, the panel can ask the server a few specific questions. Nobody gets a shell. The set is fixed. There are six probes, and no option adds more.

Probe The question it answers Reads or writes

What came up on this server

Every container of this installation and what it is doing. The Health dialog uses the same reading, so the two screens cannot disagree.

Reads

Why one container is not up

What the container list cannot tell you: how many times it restarted, and whether it was killed for lack of memory. Also the container daemon’s own recorded error. A missing mount source is recorded there. The container’s log names only the file it could not write. And the last few health-probe results.

Reads

The last lines of one container’s log

The end of one container’s output.

Reads

Bring one container back up

Creates that one container again with the current configuration. Nothing else on the server changes.

Writes

Whether the APIs work, not only whether they are up

Asks the installation’s APIs a few questions. It changes nothing on the installation.

Reads

Disk space of the installation

Free space where this installation is stored.

Reads

  • A probe can only be aimed at a service of this installation. The list of services is read from the machine being probed. A name that is not on the list is refused. So a container of another customer in the same daemon cannot be reached this way.

  • Output is limited, and a cut is always reported. A request for a longer log tail than the limit is refused. It is not shortened without notice. So nobody thinks they read a full log when they did not.

  • The one probe that writes recreates the container, not restarts it. That is why a value corrected in the environment file actually takes effect. It is also why it does not touch anything that container depends on.

  • There is no probe that prints the resolved configuration, on purpose. That output contains the filled-in values.

  • A refusal is not a failure. The assistant can run a probe for an operator. Its permission lasts a short time and allows a limited number of calls. It is tied to one installation. A restart of the tool ends it. A second browser tab open on another customer cannot use it. The refusals it can return are a fixed set of sentences. One of them is "This tool only reads. A change has to be made by a person."

If a check shows a problem: where to look

This section says where to look when a check shows a problem.