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_speed and fcc_result_latency.

  • The ftfcc schema is the service’s own schema, read and write. Liquibase migrates it on every start.

  • The ftacs schema is read-only. The service checks thirteen of its tables at startup. See Startup checks.

  • The iotw schema 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: ug_fcc, ug_fcc_speed_result, ug_fcc_latency_result and fcc_properties. The FCC Service checks these tables at startup and stops when one is missing.

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 compose.ft-fcc-service.yaml uses Compose v2 syntax.

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. LOG_FILE_TOTAL_SIZE_CAP bounds the total at 200 MB by default.

CPU architecture

linux/amd64 or linux/arm64

 — 

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 ftfcc schema. Liquibase migrates it on every start, so an unreachable database fails the container. The schema and both accounts are not created automatically. Create them yourself before the first start. See Preparation.

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 fcc_result_speed and fcc_result_latency in the shared database ftacs_qoe_ui_data. An unreachable server does not fail the container. See Startup Dependencies.

8123 (HTTP)

Yes

UI Backend schema (iotw)

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. application.yaml builds the datasource and the Flyway URL from CLICKHOUSE_HTTP_PORT, default 8123. The native TCP port, 9000, is never used and does not need to be reachable.

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 ftfcc schema, and every query against ftfcc and the read-only ftacs schema

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:

# Replace with target host IP and port
nc -zv <target-ip> <port>

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

readonly

Password

fokxuw-fymte1-taSxyc

The readonly account provides pull-only access to the published images. It cannot push.

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 --platform matching the offline host’s architecture is required. Without it, docker pull selects the connected machine’s architecture. That architecture may not match the target. On an Apple Silicon (arm64) Mac, the resulting archive is arm64 and fails with a platform does not match warning on an amd64 server.

  1. On the offline host, find its architecture:

    docker version --format '{{.Server.Arch}}'

    Map the result: amd64 or x86_64 means linux/amd64; arm64 or aarch64 means linux/arm64.

  2. 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>
  3. 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"
  4. Transfer the archive to the offline host, together with compose.ft-fcc-service.yaml, the shared .env, and ft-fcc-service/.env.

  5. 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 ftfcc and both database accounts, ftfcc and ftfcc_ro, before the first start. See DB User Permissions — FCC Service accounts.

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 ftfcc_ro grant statements only after that first ACS start. The statements name each table, and a grant on a missing table fails.

Compose refuses to start the project when ft-fcc-service/.env is absent. That file holds the two database accounts, and nothing else.

Environment Configuration

Environment configuration is split into two layers:

File Purpose

/usr/local/ft-system/.env

Shared environment: the database host and port, Hazelcast, ClickHouse, the container timezone and the published host port (FT_FCC_HTTP_PORT). The same file serves the other OneIoT UI services.

/usr/local/ft-system/ft-fcc-service/.env

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

DB_PROFILE

Selects the relational database dialect, mysql or oracle. Compose substitutes it into SPRING_PROFILES_ACTIVE.

mysql

Yes

DB_HOST, DB_PORT

Host and port of the relational database. Compose maps them into the MYSQL_*FTFCC, MYSQL*FTACS, ORACLE*FTFCC and ORACLE*_FTACS variables the service reads.

 — 

Yes

DB_SERVICE

Oracle service name. Used only when DB_PROFILE is oracle.

XEPDB1

Oracle only

HZ_MEMBERS

Comma- or space-separated Hazelcast member addresses. An entry without a port gets :5701 appended.

 — 

Yes

CLICKHOUSE_HOST

ClickHouse hostname or IP.

 — 

Yes

CLICKHOUSE_HTTP_PORT

ClickHouse HTTP port, used for both the datasource and Flyway.

8123

No

CLICKHOUSE_DATABASE

ClickHouse database holding the two result tables.

ftacs_qoe_ui_data

No

CLICKHOUSE_USERNAME

ClickHouse user. Compose maps this value into CLICKHOUSE_USER, the name the service reads.

ftacs

Yes

CLICKHOUSE_PASSWORD

ClickHouse password.

ftacs

Yes

FT_FCC_HTTP_PORT

Host port published for the container’s port 8080. Substituted into the ports: line of the Compose file, so it must be in this file.

8384

No

FT_FCC_JAVA_TOOL_OPTIONS

An extra Java flag, passed through JAVA_TOOL_OPTIONS. This image reads no JAVA_OPTS. See Docker Compose.

empty

No

TZ

Container timezone. The image falls back to UTC when the variable is absent. On Oracle, run the Java virtual machine (JVM) in UTC. Oracle rows written before this behavior read shifted by the JVM UTC offset otherwise.

Europe/Kyiv in the shipped file

No

DATA_FOLDER

Host path whose ft-fcc-service/logs subdirectory is mounted at /app/logs.

.

No

The service reads CLICKHOUSE_USER. The shared .env spells the value CLICKHOUSE_USERNAME. The Compose file maps one to the other, so set CLICKHOUSE_USERNAME in the shared file. A copy named CLICKHOUSE_USER there has no effect.

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

MYSQL_USER_FTFCC, MYSQL_PASSWORD_FTFCC, MYSQL_SCHEMA_FTFCC

The read-write account. It owns the ftfcc schema. Liquibase creates and alters its tables on every start.

ftfcc / — / ftfcc

Yes (MySQL)

MYSQL_USER_FTACS, MYSQL_PASSWORD_FTACS, MYSQL_SCHEMA_FTACS

The read-only account against the ACS schema. SELECT only. A startup check reads thirteen ACS tables and names any column it cannot read.

ftfcc_ro / — / ftacs

Yes (MySQL)

ORACLE_USER_FTFCC, ORACLE_PASSWORD_FTFCC, ORACLE_SCHEMA_FTFCC

The Oracle equivalent of the read-write account. On Oracle a schema is a user.

ftfcc / — / ftfcc

Yes (Oracle)

ORACLE_USER_FTACS, ORACLE_PASSWORD_FTACS, ORACLE_SCHEMA_FTACS

The Oracle equivalent of the read-only account.

ftfcc_ro / — / ftacs

Yes (Oracle)

LOG_LEVEL_FCC

Log level of the service’s own packages.

INFO

No

IOTW_ENABLED

Turns the saved device conditions feature on. With it off, a campaign naming a saved condition is refused, and the message names the reason.

false

No

IOTW_SCHEMA_CHECK_ENABLED

Checks the two iotw tables at startup. Unlike the ACS check, a missing grant here only warns.

false

No

MYSQL_SCHEMA_IOTW or ORACLE_SCHEMA_IOTW

The UI Backend schema, needed only when IOTW_ENABLED is true.

iotw

No

FTACS_SCHEMA_CHECK_ENABLED

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.

true

No

LOG_FILE_TOTAL_SIZE_CAP

Bounds the total size of the rotated log files under LOG_FILE.

200MB

No

FCC_LEGACY_IMPORT_ENABLED

Turns on the import of legacy FCC results into ClickHouse. Turn it on only for a migration, then off again.

false

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 JAVA_OPTS. The shipped Compose file sets no memory limit. Add one for predictable sizing, for example mem_limit: 1g under the service. That limit yields a heap of about 665 MiB.

To add a Java flag, set FT_FCC_JAVA_TOOL_OPTIONS in the shared .env; it reaches the JVM through JAVA_TOOL_OPTIONS. To replace a flag the image already sets, such as the heap percentage, add _JAVA_OPTIONS as an extra environment: entry instead. The JVM reads JAVA_TOOL_OPTIONS before the command line and _JAVA_OPTIONS after it, so only _JAVA_OPTIONS can override a flag the entrypoint already sets.

Start the Stack

Create the ftfcc schema and both database accounts, and start the ACS once, before the first start. See Preparation.

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 ftfcc connection on a loaded database

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

ftacs startup schema check

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.

  1. Confirm the application is up:

    curl -s http://localhost:8384/actuator/health/liveness

    A healthy answer is {"status":"UP"}.

  2. Check the data stores of the service:

    curl -s http://localhost:8384/actuator/health
    Two traps on the health endpoint

    A 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 to UP on its own. Never read DEGRADED as a failure of the container; it is the service surviving an outage it was designed for.

    A HTTP 503 answer during a docker compose stop or docker compose down is a different event. The service refuses new traffic while it shuts down, inside the 45-second stop_grace_period. That answer is deliberate, not a fault.

  3. 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-Scope header 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

ftfcc migration and queries, ftacs reads

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

/FCC/**

Campaign, run, device, report, administration, import and export endpoints. See REST API.

None

GET

/actuator/health

Aggregate health. Answers DEGRADED with HTTP 200 while ClickHouse is unreachable. See Two traps on the health endpoint.

None

GET

/actuator/health/liveness

Application state only. Used by the Compose healthcheck.

None

GET

/actuator/health/readiness

Application, database and ClickHouse state. No consumer in a Compose deployment.

None

GET

/actuator/info

Build information.

None

GET

/actuator/prometheus

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

ft-fcc-service.log

Main application log. Spring Boot keeps 7 days of history at 10 MB per file; LOG_FILE_TOTAL_SIZE_CAP bounds the total.

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.

Shell Access

docker exec -it ft-fcc-service bash
docker exec ft-fcc-service ls -la /app/logs

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 latest in production.

  • Point at production infrastructure. DB_HOST, HZ_MEMBERS and CLICKHOUSE_HOST must not be left at placeholder values.

  • Create the ftfcc schema 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 ftfcc and ftfcc_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, not FT_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 iotw tables only if the saved device conditions feature is needed.

  • Verify log rotation and disk sizing for /app/logs.

  • Enable auto-restart. restart: unless-stopped is already in compose.ft-fcc-service.yaml.

Troubleshooting

Container Fails to Start

Symptom: The ft-fcc-service container exits immediately after docker compose up.

Fix:

  1. Read the error message from the logs:

    docker compose -f compose.ft-fcc-service.yaml logs ft-fcc-service
  2. Confirm ft-fcc-service/.env exists next to the Compose file. Compose refuses to start the project without it.

  3. 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:

  1. Confirm the schema ftfcc and the account ftfcc exist, with full rights on that schema.

  2. Confirm the host and port in the shared .env match the database:

    docker exec ft-fcc-service env | grep -E 'MYSQL_|ORACLE_'
  3. Check DATABASECHANGELOGLOCK in the ftfcc schema 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:

  1. Read the message. It names every table or column the account ftfcc_ro cannot read.

  2. If a whole table is missing, the ACS has never started. Start it once, then restart the FCC Service.

  3. 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.

  4. If the account exists but a grant is missing, apply the GRANT SELECT statements again. See DB User Permissions.

ClickHouse Degraded or Unreachable

Symptom: curl http://localhost:8384/actuator/health answers {"status":"DEGRADED"}.

Fix:

  1. This is not a container failure. Campaign management keeps working. Only reports, activations and the legacy import are refused with FT code 9503.

  2. Confirm the service targets the HTTP port, 8123, not the native port, 9000.

  3. Verify ClickHouse answers from inside the container:

    docker exec ft-fcc-service sh -c 'curl -s http://$CLICKHOUSE_HOST:8123/ping'
  4. 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:

  1. This does not fail the container. The Hazelcast client connects asynchronously.

  2. Verify HZ_MEMBERS in the shared .env points at addresses the container can reach.

  3. 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:

  1. Find the process holding the port:

    sudo lsof -i :8384
  2. Either stop that process, or change FT_FCC_HTTP_PORT in the shared /usr/local/ft-system/.env and run docker compose -f compose.ft-fcc-service.yaml up -d ft-fcc-service again.

Out of Memory

Symptom: The container is killed by the host’s out-of-memory handling.

Fix:

  1. 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.

  2. Raise the limit for a large device fleet. The heap is always 65 percent of it.

  3. This image sets no heap-dump flag by default. Add -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/app/logs/heapdump.hprof through _JAVA_OPTIONS if 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.