Installation & Deployment
This guide covers deploying the FCC Service as a single Docker container, started by Docker Compose.
It is the only supported production deployment method.
The service ships as a container image, hub.friendly-tech.com/ftacs/ft-fcc-service, built from the repository’s own Dockerfile.
No distribution package or manual JAR deployment exists.
Overview
The FCC Service runs broadband compliance diagnostics over a fleet of Customer Premises Equipment (CPE). It measures speed and latency through the Auto Configuration Server (ACS), then stores a pass or fail verdict for every measurement. The Federal Communications Commission (FCC) and the Universal Service Administrative Company (USAC) require these reports.
The image carries one manifest for linux/amd64 and linux/arm64.
A host of either architecture pulls the same tag.
The runtime image runs as user and group 1000, named ftfcc.
UI Backend -> FCC Service <-> Hazelcast queues <-> ACS FCC Service -> ftfcc (read-write), ftacs (read-only), ClickHouse (read-write), iotw (optional, read-only)
-
UI Backend calls every
/FCC/**endpoint. It authenticates the portal user and is the only trusted caller. See No authentication of its own. -
ACS runs the diagnostic on the devices and reports the raw measurements. The FCC Service and the ACS never call each other directly. All traffic between them goes through Hazelcast queues. See Why the ACS link is queues only.
-
Hazelcast carries five queues between the FCC Service and the ACS. It is the only channel between them.
-
ClickHouse stores two result tables in the shared database
ftacs_qoe_ui_data:fcc_result_speedandfcc_result_latency. -
The
ftfccschema is the service’s own schema, read and write. Liquibase migrates it on every start. -
The
ftacsschema is read-only. The service checks thirteen of its tables at startup. See Startup checks. -
The
iotwschema is optional and read-only, over two tables of the UI Backend schema.
|
Start the ACS once before the first start of the FCC Service.
The ACS creates four tables the FCC Service reads: |
|
Never publish container port 8080 outside the trusted network. The service has no authentication of its own. See No authentication of its own. An exposed port gives anyone full control over the campaigns of every domain. |
Prerequisites
Host Requirements
| Component | Minimum | Recommended | Notes |
|---|---|---|---|
Docker Engine |
20.10 |
Latest stable |
The only supported runtime. The service is delivered as a container image. |
Docker Compose |
2.0 |
Latest stable |
The shipped |
RAM available to the container |
1 GB |
2 GB |
The heap takes 65 percent of the container memory limit. The shipped Compose file sets no limit. See Docker Compose. |
Disk for the logs volume |
verify with platform owner |
verify with platform owner |
Spring Boot keeps 7 days of history at 10 MB per file. |
CPU architecture |
|
— |
The image publishes both architectures in one manifest. |
Required External Dependencies
These systems must be installed, running and reachable from this host before the FCC Service starts. None of them are deployed by this guide.
| Component | Minimum Version | Why It Is Needed | Port | Required |
|---|---|---|---|---|
Relational database (MySQL or Oracle) |
Same instance as the ACS |
Stores the |
3306 (MySQL) or 1521 (Oracle) |
Yes |
Auto Configuration Server (ACS) |
6.4.12 or later |
Creates four tables the FCC Service reads at startup. Start it once before the first start of the FCC Service, or the FCC Service stops on its own schema check. See The minimum ACS version. |
Checked through its database tables, not a network call |
Yes |
Hazelcast |
5.5.0 (client library) |
Carries the only channel to the ACS. The client connects asynchronously, so an unreachable cluster does not fail the container. Commands and results go nowhere until it connects. |
5701 (TCP) |
Yes |
ClickHouse |
26.2 |
Stores the two result tables |
8123 (HTTP) |
Yes |
UI Backend schema ( |
Same instance as the UI Backend |
Two read-only tables for the saved device conditions feature. Without this grant the service starts and refuses only one device source. |
Reached through the relational database |
No (optional) |
|
The service reaches ClickHouse over HTTP only.
|
Supported Operating Systems
| Deployment | Operating system |
|---|---|
Docker Compose |
Linux (recommended), macOS, or Windows with WSL2 |
Registry Access
Network access to the hub.friendly-tech.com Docker registry, or offline image archives.
See Offline Servers.
Access to the FTDISK folders listed in Download Deployment Files for the deployment files: the dedicated compose.ft-fcc-service.yaml, the shared .env, and the per-service ft-fcc-service/.env.
The only volume the container mounts is its logs/ directory.
Network Requirements
Outbound connections this container opens:
| Destination | Port | Protocol | Purpose |
|---|---|---|---|
Relational database |
3306 (MySQL) or 1521 (Oracle) |
TCP |
Liquibase migration of the |
Hazelcast |
5701 |
TCP |
The only channel to the ACS: commands, results and run events |
ClickHouse |
8123 |
HTTP |
Flyway migration and every read or write of the two result tables |
Inbound traffic to this service, the UI Backend and Prometheus scraping /actuator/prometheus, arrives on the published HTTP port.
See HTTP Endpoints.
|
For a quick connectivity check from any host:
|
Docker Networking
Other services on the same Docker network reach this one by the container hostname ft-fcc-service.
The UI Backend and the portals depend on exactly that resolution, and they run as separate Compose projects.
The shipped Compose file sets both an explicit container_name: ft-fcc-service and the shared external network ft-network, to make that hostname stable.
To resolve this hostname, any such service must join the same network.
It has to be external: true, created once per host:
docker network create ft-network
Declared as a plain driver: bridge network inside the project, it would become the project-scoped ft-fcc-service_ft-network.
Callers in other Compose projects could not reach it.
If a peer runs on the same host but outside Docker, use host.docker.internal rather than localhost.
Inside a container localhost is the container itself:
HZ_MEMBERS=host.docker.internal:5701
CLICKHOUSE_HOST=host.docker.internal
host.docker.internal resolves to the host’s gateway address.
On Docker Desktop, macOS and Windows, it works without extra configuration.
On Linux it exists only if the container maps it. The shipped Compose file maps it:
extra_hosts:
- "host.docker.internal:host-gateway"
The alternative is the host’s real LAN IP address.
Registry Authentication
The image is pulled from hub.friendly-tech.com, the same registry used by every FT service.
Authenticate once per host before the first docker compose up.
docker login hub.friendly-tech.com
Enter the read-only pull credentials when prompted:
| Field | Value |
|---|---|
Username |
|
Password |
|
|
The |
Alternatively, log in non-interactively:
echo "fokxuw-fymte1-taSxyc" | docker login hub.friendly-tech.com -u readonly --password-stdin
Verify authentication:
docker info | grep -A 5 Registry
Offline Servers
When the target host cannot reach hub.friendly-tech.com, pull the image on a machine with registry access. Export it to an archive, transfer it, and load it on the offline host.
|
An explicit |
-
On the offline host, find its architecture:
docker version --format '{{.Server.Arch}}'Map the result:
amd64orx86_64meanslinux/amd64;arm64oraarch64meanslinux/arm64. -
On a machine with registry access, log in and confirm the tag publishes that architecture:
docker login hub.friendly-tech.com docker buildx imagetools inspect hub.friendly-tech.com/ftacs/ft-fcc-service:<tag> -
Pull and export the image:
PLATFORM=linux/amd64 TAG=latest docker pull --platform "$PLATFORM" "hub.friendly-tech.com/ftacs/ft-fcc-service:$TAG" docker save "hub.friendly-tech.com/ftacs/ft-fcc-service:$TAG" | gzip > "ft-fcc-service-$TAG.tar.gz" -
Transfer the archive to the offline host, together with
compose.ft-fcc-service.yaml, the shared.env, andft-fcc-service/.env. -
On the offline host, load the archive and start the service:
TAG=latest gzip -dc "ft-fcc-service-$TAG.tar.gz" | docker load cd /usr/local/ft-system docker compose -f compose.ft-fcc-service.yaml up -d ft-fcc-service
Confirm the image is present before starting, so a missing or mismatched image fails here rather than mid-startup:
docker images hub.friendly-tech.com/ftacs/ft-fcc-service
Upgrades use the same flow.
Pull the new tag on the connected machine, transfer and load the archive, then run the same up -d command again.
|
This covers the FCC Service image only. The relational database, Hazelcast, the ACS and ClickHouse are separate images on their own hosts. For the offline procedure covering a whole stack, see Full System Deployment — Offline Servers. |
Preparation
Create the directory this service needs on the host, download the deployment files into it, and create the two database accounts before the first start.
Directory Structure
mkdir -p /usr/local/ft-system/ft-fcc-service/logs
cd /usr/local/ft-system
This follows the platform layout documented in Full System Deployment.
The shared platform root is /usr/local/ft-system, with this service’s ft-fcc-service/ runtime directory below it.
The Compose mount for this service is ${DATA_FOLDER:-.}/ft-fcc-service/logs:/app/logs.
Download Deployment Files
Download the deployment files from FTDISK and keep their file names.
Every Compose file refers to .env and ./ft-fcc-service/.env relative to its own location.
Place both next to the Compose file, never inside the service subdirectory.
-
FTDISK folder
ONE_IOT_UI/docker/ft-fcc-service: the dedicated Compose stack of the FCC Service.-
compose.ft-fcc-service.yaml→/usr/local/ft-system/compose.ft-fcc-service.yaml -
.env(per-service layer) →/usr/local/ft-system/ft-fcc-service/.env
-
-
FTDISK folder
ONE_IOT_UI/docker: the shared layer.-
.env(shared layer) →/usr/local/ft-system/.env -
compose.all-in-one.yaml→ only when every OneIoT UI service runs on this one host. It replaces the dedicated Compose files; the per-service files still come from each service’s own FTDISK folder.
-
Directory Layout
Sliced to this service, the platform layout on the host looks as follows.
This service mounts no configuration directory, so logs/ is the only volume.
/usr/local/ft-system/
├── compose.ft-fcc-service.yaml # FTDISK: ONE_IOT_UI/docker/ft-fcc-service/
├── .env # FTDISK: ONE_IOT_UI/docker/ (shared layer)
└── ft-fcc-service/
├── .env # FTDISK: ONE_IOT_UI/docker/ft-fcc-service/ (per-service layer)
└── logs/ # -> /app/logs
└── ft-fcc-service.log
|
Create the schema Start the ACS once before the first start of the FCC Service.
The ACS creates four of the tables this service reads.
On Oracle, run the Compose refuses to start the project when |
Environment Configuration
Environment configuration is split into two layers:
| File | Purpose |
|---|---|
|
Shared environment: the database host and port, Hazelcast, ClickHouse, the container timezone and the published host port ( |
|
Per-service environment: the two database accounts of this service, the log level, and the optional feature switches. The published host port is not here. |
Both files are listed in this service’s env_file.
See Docker Compose.
Shared .env variables
Read by this service from /usr/local/ft-system/.env:
| Variable | Description | Default | Required |
|---|---|---|---|
|
Selects the relational database dialect, |
|
Yes |
|
Host and port of the relational database. Compose maps them into the |
— |
Yes |
|
Oracle service name. Used only when |
|
Oracle only |
|
Comma- or space-separated Hazelcast member addresses. An entry without a port gets |
— |
Yes |
|
ClickHouse hostname or IP. |
— |
Yes |
|
ClickHouse HTTP port, used for both the datasource and Flyway. |
|
No |
|
ClickHouse database holding the two result tables. |
|
No |
|
ClickHouse user. Compose maps this value into |
|
Yes |
|
ClickHouse password. |
|
Yes |
|
Host port published for the container’s port 8080. Substituted into the |
|
No |
|
An extra Java flag, passed through |
empty |
No |
|
Container timezone. The image falls back to |
|
No |
|
Host path whose |
|
No |
|
The service reads |
Per-service .env variables
Read by this service from /usr/local/ft-system/ft-fcc-service/.env.
This file holds the two database accounts and nothing else.
| Variable | Description | Default | Required |
|---|---|---|---|
|
The read-write account. It owns the |
|
Yes (MySQL) |
|
The read-only account against the ACS schema. |
|
Yes (MySQL) |
|
The Oracle equivalent of the read-write account. On Oracle a schema is a user. |
|
Yes (Oracle) |
|
The Oracle equivalent of the read-only account. |
|
Yes (Oracle) |
|
Log level of the service’s own packages. |
|
No |
|
Turns the saved device conditions feature on. With it off, a campaign naming a saved condition is refused, and the message names the reason. |
|
No |
|
Checks the two |
|
No |
|
The UI Backend schema, needed only when |
|
No |
|
Checks the ACS schema at startup. Leave it on. It stops the service with the name of the missing column when the read-only grant is incomplete. |
|
No |
|
Bounds the total size of the rotated log files under |
|
No |
|
Turns on the import of legacy FCC results into ClickHouse. Turn it on only for a migration, then off again. |
|
No |
In the shared /usr/local/ft-system/.env downloaded from FTDISK, set the values this service reads.
The file also carries variables of the other OneIoT UI services; leave those as they are.
# /usr/local/ft-system/.env
DATA_FOLDER=/usr/local/ft-system
TZ=Europe/Kyiv
DB_PROFILE=mysql
DB_HOST=<db-host-ip> # <-- replace
DB_PORT=3306
HZ_MEMBERS=<hazelcast-host-ip>:5701 # <-- replace
CLICKHOUSE_HOST=<clickhouse-host-ip> # <-- replace
CLICKHOUSE_HTTP_PORT=8123
CLICKHOUSE_DATABASE=ftacs_qoe_ui_data
CLICKHOUSE_USERNAME=ftacs
CLICKHOUSE_PASSWORD=<your-ch-password> # <-- replace
FT_FCC_HTTP_PORT=8384
FT_FCC_JAVA_TOOL_OPTIONS=
The per-service ft-fcc-service/.env holds only the two database accounts and the feature switches:
# ft-fcc-service/.env
LOG_LEVEL_FCC=INFO
# --- own schema, READ-WRITE (MySQL) ---
MYSQL_USER_FTFCC=ftfcc
MYSQL_PASSWORD_FTFCC=<change-me>
MYSQL_SCHEMA_FTFCC=ftfcc
# --- the ACS schema, READ-ONLY (MySQL) ---
MYSQL_USER_FTACS=ftfcc_ro
MYSQL_PASSWORD_FTACS=<change-me>
MYSQL_SCHEMA_FTACS=ftacs
# --- saved device conditions: off until the iotw grant exists ---
IOTW_ENABLED=false
IOTW_SCHEMA_CHECK_ENABLED=false
# --- startup check: leave it on ---
FTACS_SCHEMA_CHECK_ENABLED=true
LOG_FILE_TOTAL_SIZE_CAP=200MB
FCC_LEGACY_IMPORT_ENABLED=false
Deployment
Startup Dependencies
The relational database and the ACS schema check block startup.
An unreachable database, a missing ftfcc grant, or a missing ACS table or column stops the container.
Hazelcast and ClickHouse do not block startup.
The Hazelcast client connects asynchronously, and ClickHouse is reported as degraded rather than down.
See Endpoint Checks.
# Wait for the relational database (adjust the port for Oracle)
until nc -z <db-host-ip> 3306; do sleep 2; done
# Then start the service
cd /usr/local/ft-system
docker compose -f compose.ft-fcc-service.yaml up -d ft-fcc-service
The container itself restarts cleanly at any time once the database is up.
restart: unless-stopped reconnects it after a host reboot.
Docker Compose
compose.ft-fcc-service.yaml is the dedicated Compose file from FTDISK.
Run it from /usr/local/ft-system with docker compose -f compose.ft-fcc-service.yaml.
Click to expand compose.ft-fcc-service.yaml
name: ft-fcc-service
services:
ft-fcc-service:
image: hub.friendly-tech.com/ftacs/ft-fcc-service:latest # <-- pin a released tag
container_name: ft-fcc-service
ports:
- "${FT_FCC_HTTP_PORT:-8384}:8080"
env_file:
- .env
- ./ft-fcc-service/.env
environment:
SPRING_PROFILES_ACTIVE: "${DB_PROFILE}"
MYSQL_HOST_FTFCC: "${DB_HOST}"
MYSQL_PORT_FTFCC: "${DB_PORT:-3306}"
MYSQL_HOST_FTACS: "${DB_HOST}"
MYSQL_PORT_FTACS: "${DB_PORT:-3306}"
ORACLE_HOST_FTFCC: "${DB_HOST}"
ORACLE_PORT_FTFCC: "${DB_PORT:-1521}"
ORACLE_SERVICE_FTFCC: "${DB_SERVICE:-XEPDB1}"
ORACLE_HOST_FTACS: "${DB_HOST}"
ORACLE_PORT_FTACS: "${DB_PORT:-1521}"
ORACLE_SERVICE_FTACS: "${DB_SERVICE:-XEPDB1}"
CLICKHOUSE_HOST: "${CLICKHOUSE_HOST}"
CLICKHOUSE_HTTP_PORT: "${CLICKHOUSE_HTTP_PORT:-8123}"
CLICKHOUSE_DATABASE: "${CLICKHOUSE_DATABASE}"
CLICKHOUSE_USER: "${CLICKHOUSE_USERNAME}"
CLICKHOUSE_PASSWORD: "${CLICKHOUSE_PASSWORD}"
HZ_MEMBERS: "${HZ_MEMBERS}"
LOG_FILE: "/app/logs/ft-fcc-service.log"
JAVA_TOOL_OPTIONS: "${FT_FCC_JAVA_TOOL_OPTIONS:-}"
volumes:
- ${DATA_FOLDER:-.}/ft-fcc-service/logs:/app/logs
extra_hosts:
- "host.docker.internal:host-gateway"
restart: unless-stopped
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/actuator/health/liveness" ]
interval: 30s
timeout: 5s
retries: 3
start_period: 40s
stop_grace_period: 45s
networks:
- ft-network
networks:
ft-network:
external: true
Both vendor blocks, MySQL and Oracle, are present on purpose.
DB_PROFILE selects the vendor the service reads. One file serves both vendors this way.
Only the vendor accounts matching DB_PROFILE need real values in ft-fcc-service/.env.
The healthcheck targets /actuator/health/liveness, not the aggregate /actuator/health.
The aggregate endpoint answers DEGRADED with HTTP 200 while ClickHouse is unreachable, and the service is designed to survive that state.
A healthcheck on the aggregate endpoint would report the container unhealthy exactly while it is working as intended.
stop_grace_period: 45s gives the service time to shut down in an orderly way on docker compose stop or docker compose down.
Docker sends SIGTERM first and SIGKILL only if the container has not stopped after 45 seconds.
|
The heap takes 65 percent of the container memory limit, fixed in the image’s entrypoint.
This image reads no To add a Java flag, set |
Start the Stack
|
Create the |
cd /usr/local/ft-system
docker login hub.friendly-tech.com
docker compose -f compose.ft-fcc-service.yaml up -d ft-fcc-service
docker compose -f compose.ft-fcc-service.yaml ps
docker compose -f compose.ft-fcc-service.yaml logs -f ft-fcc-service | grep -i started
curl -s http://localhost:8384/actuator/health/liveness
Verification
Startup Log
The healthcheck’s start_period is 40 seconds, but a cold start can take much longer.
| Phase | Worst normal cost |
|---|---|
JVM start, up to the first database connection |
45s |
First |
45s |
Lock wait, if another instance of this container briefly overlaps during a restart |
300s |
Liquibase cold run, about 50 changesets and 17 tables |
120s |
|
30s |
ClickHouse Flyway pass |
60s |
Rest of the context refresh and the port bind |
20s |
Total |
620s |
docker compose ps may show the container as starting, then briefly unhealthy, during a slow cold start.
That is expected and does not restart the container.
restart: unless-stopped restarts a container only after it exits.
Check the logs after start:
docker compose -f compose.ft-fcc-service.yaml logs ft-fcc-service | tail -50
A successful startup logs Liquibase applying the ftfcc changesets, the ACS schema check passing, and the Spring Boot ready marker:
INFO ... liquibase.changelog ... ChangeSet db.changelog/ftfcc/... ran successfully
INFO ... com.friendly.fcc.FtFccServiceApplication ... Started FtFccServiceApplication in <seconds> seconds
Endpoint Checks
Run the three checks below in order.
-
Confirm the application is up:
curl -s http://localhost:8384/actuator/health/livenessA healthy answer is
{"status":"UP"}. -
Check the data stores of the service:
curl -s http://localhost:8384/actuator/healthTwo traps on the health endpointA healthy answer is
{"status":"UP"}again.The answer
{"status":"DEGRADED"}with HTTP 200 means ClickHouse is unreachable, or its schema is behind. The service still serves campaigns in that state. It refuses every report, every activation and the legacy import, with HTTP 503 and FT code 9503. It repeats the ClickHouse migration every 60 seconds until the store answers, and the status then returns toUPon its own. Never readDEGRADEDas a failure of the container; it is the service surviving an outage it was designed for.A HTTP 503 answer during a
docker compose stopordocker compose downis a different event. The service refuses new traffic while it shuts down, inside the 45-secondstop_grace_period. That answer is deliberate, not a fault. -
Confirm the campaign list answers:
curl -s -X POST http://localhost:8384/FCC/items \ -H 'Content-Type: application/json' \ -H 'X-FT-Domain-Scope: ALL' \ -d '{"pageNumbers":[1],"pageSize":10}'A new installation answers an empty item list. The
X-FT-Domain-Scopeheader is mandatory. Without it the service answers HTTP 403. The service never assumes a domain scope. See Identity contract.
A failed start names its cause in the container log. Check the two database accounts first, then the read-only grant on the ACS schema, then the ACS version. See Troubleshooting.
Database Connectivity
Liquibase creates the ftfcc schema automatically on first start.
Confirm the tables exist:
USE ftfcc;
SHOW TABLES;
Confirm the four ACS-created tables exist in ftacs before the first FCC start.
A missing table means the ACS has never started:
USE ftacs;
SHOW TABLES LIKE 'ug_fcc%';
SHOW TABLES LIKE 'fcc_properties';
Confirm the two result tables exist in ClickHouse:
USE ftacs_qoe_ui_data;
SHOW TABLES LIKE 'fcc_result_%';
Expect fcc_result_speed and fcc_result_latency, plus the service’s own Flyway history table flyway_schema_history_fcc.
See The ClickHouse tables.
Port Reference
The service listens on one port inside the container, 8080. The REST API, the health endpoint and the Prometheus endpoint all share it. There is no separate management port.
Outbound Connections
| Destination | Port | Protocol | Purpose |
|---|---|---|---|
Relational database |
3306 (MySQL) or 1521 (Oracle) |
TCP |
|
Hazelcast |
5701 |
TCP |
The only channel to the ACS |
ClickHouse |
8123 |
HTTP |
Flyway migration and the two result tables |
HTTP Endpoints
Ports are written as published → container.
Across hosts you connect to the published port, FT_FCC_HTTP_PORT, default 8384.
Inside the Docker bridge you connect to the container port, 8080.
| Method | Path | Purpose | Auth |
|---|---|---|---|
GET, POST |
|
Campaign, run, device, report, administration, import and export endpoints. See REST API. |
None |
GET |
|
Aggregate health. Answers |
None |
GET |
|
Application state only. Used by the Compose healthcheck. |
None |
GET |
|
Application, database and ClickHouse state. No consumer in a Compose deployment. |
None |
GET |
|
Build information. |
None |
GET |
|
Prometheus scrape endpoint, on the same port as the REST API. |
None |
| The service ships no Spring Security configuration. Every endpoint above is unauthenticated. Restrict access at the network level. See Production Checklist. |
Stack Management
Logs
The application writes to ft-fcc-service/logs/ under DATA_FOLDER:
| Log file | Purpose |
|---|---|
|
Main application log. Spring Boot keeps 7 days of history at 10 MB per file; |
docker compose -f compose.ft-fcc-service.yaml logs -f ft-fcc-service
docker compose -f compose.ft-fcc-service.yaml logs --tail 100 ft-fcc-service
tail -f /usr/local/ft-system/ft-fcc-service/logs/ft-fcc-service.log
Start, Stop, Restart
cd /usr/local/ft-system
docker compose -f compose.ft-fcc-service.yaml ps
docker compose -f compose.ft-fcc-service.yaml stop ft-fcc-service
docker compose -f compose.ft-fcc-service.yaml start ft-fcc-service
docker compose -f compose.ft-fcc-service.yaml restart ft-fcc-service
docker compose -f compose.ft-fcc-service.yaml rm -f ft-fcc-service
Always pass -f compose.ft-fcc-service.yaml. Without it, Compose falls back to a compose.yml in the same directory, if one exists. A full-system stack uses that file name, and it is a different project. docker compose down would then stop its services instead.
|
Updating the FCC Service
cd /usr/local/ft-system
docker compose -f compose.ft-fcc-service.yaml pull ft-fcc-service
docker compose -f compose.ft-fcc-service.yaml up -d ft-fcc-service
Liquibase migrates the ftfcc schema automatically on the first start of a new version.
A new version may also raise the minimum ACS version.
See The minimum ACS version before every upgrade.
Production Checklist
-
Pin a released image tag. Never run
latestin production. -
Point at production infrastructure.
DB_HOST,HZ_MEMBERSandCLICKHOUSE_HOSTmust not be left at placeholder values. -
Create the
ftfccschema and both database accounts before the first start. See DB User Permissions. -
Start the ACS once, at version 6.4.12 or later, before the first start of the FCC Service.
-
Set real passwords for
ftfccandftfcc_ro. Do not keep the shipped placeholder values. -
Set a memory limit on the container. Without one, the 65 percent heap rule has no basis to size against.
-
Use
_JAVA_OPTIONS, notFT_FCC_JAVA_TOOL_OPTIONS, to replace a flag the image already sets. -
Firewall the published port (
8384) to the UI Backend and your monitoring system only. The service has no authentication of its own. -
Confirm the Hazelcast cluster name matches the ACS.
-
Grant the
iotwtables only if the saved device conditions feature is needed. -
Verify log rotation and disk sizing for
/app/logs. -
Enable auto-restart.
restart: unless-stoppedis already incompose.ft-fcc-service.yaml.
Troubleshooting
Container Fails to Start
Symptom: The ft-fcc-service container exits immediately after docker compose up.
Fix:
-
Read the error message from the logs:
docker compose -f compose.ft-fcc-service.yaml logs ft-fcc-service -
Confirm
ft-fcc-service/.envexists next to the Compose file. Compose refuses to start the project without it. -
Confirm the relational database is reachable before the container starts. See Startup Dependencies.
Database Connection or Migration Failure
Symptom: Startup fails with a connection error, or Liquibase reports a failed changeset.
Fix:
-
Confirm the schema
ftfccand the accountftfccexist, with full rights on that schema. -
Confirm the host and port in the shared
.envmatch the database:docker exec ft-fcc-service env | grep -E 'MYSQL_|ORACLE_' -
Check
DATABASECHANGELOGLOCKin theftfccschema if the migration appears stuck. A lock left by a killed process blocks every later start.
The ACS Schema Check Fails
Symptom: The container stops with ftacs schema check failed, naming a table or a column.
Fix:
-
Read the message. It names every table or column the account
ftfcc_rocannot read. -
If a whole table is missing, the ACS has never started. Start it once, then restart the FCC Service.
-
If only a column is missing, the ACS version is too old. The FCC Service requires 6.4.12 or later. See The minimum ACS version.
-
If the account exists but a grant is missing, apply the
GRANT SELECTstatements again. See DB User Permissions.
ClickHouse Degraded or Unreachable
Symptom: curl http://localhost:8384/actuator/health answers {"status":"DEGRADED"}.
Fix:
-
This is not a container failure. Campaign management keeps working. Only reports, activations and the legacy import are refused with FT code 9503.
-
Confirm the service targets the HTTP port,
8123, not the native port,9000. -
Verify ClickHouse answers from inside the container:
docker exec ft-fcc-service sh -c 'curl -s http://$CLICKHOUSE_HOST:8123/ping' -
The service retries the migration every 60 seconds and recovers on its own once ClickHouse answers.
Hazelcast Unreachable or Wrong Cluster
Symptom: The container stays healthy, but every command to the ACS goes nowhere.
Fix:
-
This does not fail the container. The Hazelcast client connects asynchronously.
-
Verify
HZ_MEMBERSin the shared.envpoints at addresses the container can reach. -
Confirm the ACS reads the same Hazelcast cluster. A mismatch produces two separate clusters. Neither one sees the other, and neither side reports an error.
HTTP 403 on Every /FCC Call
Symptom: Every call to /FCC/** answers HTTP 403, even with correct credentials at the UI Backend.
Fix: Add the X-FT-Domain-Scope header to the request. The service never assumes a domain scope, and a missing header is refused outright. See Identity contract.
Port Already in Use
Symptom: docker compose up fails with bind: address already in use.
Fix:
-
Find the process holding the port:
sudo lsof -i :8384 -
Either stop that process, or change
FT_FCC_HTTP_PORTin the shared/usr/local/ft-system/.envand rundocker compose -f compose.ft-fcc-service.yaml up -d ft-fcc-serviceagain.
Out of Memory
Symptom: The container is killed by the host’s out-of-memory handling.
Fix:
-
Set a memory limit on the container, for example
mem_limit: 1g, so the heap sizes against a known value rather than the host’s total memory. -
Raise the limit for a large device fleet. The heap is always 65 percent of it.
-
This image sets no heap-dump flag by default. Add
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/app/logs/heapdump.hprofthrough_JAVA_OPTIONSif you need one.
Permission Denied on the Logs Volume
Symptom: The container cannot write to /app/logs.
Fix:
sudo chown -R 1000:1000 /usr/local/ft-system/ft-fcc-service/logs
chmod -R 755 /usr/local/ft-system/ft-fcc-service/logs
The container runs as user and group 1000.
Getting Support
Collect the following before raising a support request, so the first reply is not a request for more data:
docker compose -f compose.ft-fcc-service.yaml logs --tail 500 ft-fcc-service > support-logs.txt
docker exec ft-fcc-service env | grep -E 'CLICKHOUSE_|HZ_MEMBERS|MYSQL_|ORACLE_' >> support-logs.txt
docker inspect ft-fcc-service --format '{{.Config.Image}} {{.State.Health.Status}}' >> support-logs.txt
Include the image tag in use, the ACS version, and whether the database, Hazelcast and ClickHouse were reachable at the time. Route the request to the FCC Service owner listed for your deployment.
Related Documentation
-
Operations: properties, health, startup checks and a troubleshooting table.
-
Startup checks: the exact tables and columns the read-only account must reach.