Open the pulse icon in the header (#/doctor). It reads the current monitor state without launching another scan and checks settings storage, snapshot freshness, host-listener trust, Docker access, Compose discovery completeness, and recent degraded events. Each warning includes a concrete setup direction.
The page can copy or download a diagnostic report for an issue. The report is built from an aggregate allowlist: it excludes machine and peer names, URLs, ports, bind addresses, paths, credentials, raw environment values, timestamps from degraded events, and degradation scopes. Unknown event sources or reasons are written as unknown / redacted. Review the report before sharing it.
The warning “Occupancy data is incomplete or stale; free ports cannot be confirmed” means that at least one enabled scanner failed, returned incomplete data, or did not refresh in time. Port-Light keeps known occupied ports visible but does not treat missing observations as proof that a port is free.
Hover over the information icon, or focus or click the warning, to see guidance based on the current scan. Press Escape to close the disclosure. Remote-machine warnings describe that machine; the hub's local settings do not modify a peer. The guidance does not include raw log messages, private paths, or environment values.
No configuration migration is required. Existing peers and saved settings are preserved. Settings now sends only changed fields, supports restoring an environment/default value, and reports settings and peer saves independently. Setup / Doctor is available from the pulse icon in the header.
If your enabled scanners already work, updating the image and recreating the container is enough. Change a pinned image tag to the current release, such as v0.8.5, before running these commands; pulling an older version tag does not upgrade it. Deployments using latest can retain that tag:
docker compose pull port-light
docker compose up -d port-lightExisting scanner selections and deployment permissions are not changed automatically.
If the warning remains, follow the relevant check below.
| Current failure | What to check |
|---|---|
| Docker | Daemon availability, socket mount or DOCKER_HOST, and socket permissions for the container user |
| Host listeners | The host /proc mount at /host/proc and its read permissions; for direct installation, ss or /proc availability |
| Compose directory | The /compose mount and directory read permissions; limit discovery to configuration directories |
| Incomplete Compose scan | Directory/file read permissions and scan scope; container logs for invalid YAML, missing required variables, or unresolved include/extends files |
| Compose file limit | Narrow discovery, exclude non-configuration folders, or increase the maximum file count |
| Stale snapshot | Wait for the next scan, then check logs for persistent scan failures or timeouts |
On the Docker host, obtain the socket group:
stat -c '%g' /var/run/docker.sockStore that numeric result as DOCKER_SOCKET_GID in the deployment's .env, then add this to the existing Port-Light service:
services:
port-light:
group_add:
- "${DOCKER_SOCKET_GID}"Use the GID from your host, not a copied example. Do not use chmod 666, privileged mode, or switch to root just to suppress the warning. A read-only socket mount does not bypass Unix permissions or make Docker API calls read-only; a socket proxy can restrict API access.
Apply changes to user, group_add, mounts, or environment variables with docker compose up -d port-light. A plain docker compose restart restarts the existing container with its old configuration.
In Settings → Machines & scanning, choose the local scanners, scan depth, excluded folder names, and maximum Compose file count. These settings are applied to subsequent scans without restarting the container. Set the mount source and COMPOSE_SCAN_DIR in the deployment configuration; the web UI cannot grant filesystem permissions or mount host directories.
For example, if each stack has its Compose file directly under a common parent and its database data below that, a scan depth of 1 reads the stack-level files without entering their children. Alternatively, exclude specific data-folder names using the settings page or COMPOSE_SCAN_EXCLUDE_DIRS=data,postgres-data. Exclusions apply to directory discovery; explicit Compose include and extends references are still followed and must remain readable.
Disable a scanner only if that source is intentionally outside your occupancy checks. Disabling Compose omits declarations for services that are not running. Disabling Docker omits information that only the Docker API supplies. A successful scan is complete only for the sources and discovery scope you selected.
Saved settings normally override environment defaults. If PORT_LIGHT_SETTINGS_SOURCE=env or SETTINGS_READONLY=1 is set, edit the deployment configuration instead; the settings page remains read-only. Upgrading the hub does not upgrade its peers.
An invalid or empty scanner selection blocks occupancy checks instead of silently enabling all sources. The settings page remains available: select at least one valid source and let the change save automatically, or correct PORT_LIGHT_SCANNERS in the deployment if settings are locked. Valid names are listen, docker, and compose.
Current scan warnings include a relative filename and concrete repair guidance.
A single range may contain 4096 ports; split a larger declaration. Each scan may
parse and emit at most 65536 mappings, shared across files and included projects;
repeated declarations and macvlan copies also consume budget. Reduce declarations
or narrow COMPOSE_SCAN_DIR when that overall budget is exceeded. Splitting
ranges alone does not reduce the total. An incomplete scan cannot certify that a
port is free, even when that port has no visible row.
authentication_misconfigured means AUTH_USER or AUTH_PASSWORD is missing or
blank while the other variable is configured. Set both to nonempty values, or
unset both to intentionally disable Basic Auth. Health remains public and reports
degraded; protected routes return 503.
After a reservation timeout, retry identical arguments or run port-light requests followed by port-light recover <ID> with the same URL and state
directory. Explicit recovery only reads server state and can recover active
claims beyond the seven-day automatic retry window. It never allocates new ports.
Upgrade CLI/MCP alongside the server if a legacy GET mutation returns 405.