5. Troubleshooting
Run hexcore doctor first: it spots most Docker, chain and permission problems and suggests fixes.
5.1 Installing the CLI
node-gyp, Python 3, EACCES, better-sqlite3 errors: §1.6. NODE_MODULE_VERSION errors after changing Node.js: §1.7.
5.2 Hexcore and Docker
| Symptom | Fix |
|---|---|
DOCKER_UNAVAILABLE, banner "Docker is unreachable." | sudo systemctl start docker; sudo usermod -aG docker $USER then log in again. macOS: open Docker Desktop |
sudo: hexcore: command not found | sudo cannot see nvm's Node.js. Run hexcore without sudo; when root is needed, Hexcore prints the exact command |
port 4000 on … is already in use | hexcore status to see whether another Hexcore runs; change the port with hexcore start --port 4100 or the PORT variable. Do not kill a process before knowing what it is |
| Lost the first-time setup link; forgot admin password | Run hexcore again (reprints the link, same token; under a service use hexcore logs) or hexcore init. Password: hexcore password or hexcore password --generate |
hexcore --version still shows the old version after hexcore update | Update installs into ~/.hexcore/versions/; the hexcore on PATH is the npm install. Check the running version with hexcore status; sync the CLI: npm i -g @vtechcom/hexcore@<version> (#37) |
| Service fails after changing Node.js | The systemd unit hard-codes the old node path: npm i -g @vtechcom/hexcore with the new Node.js, then hexcore service install again |
| Config change has no effect | A higher layer is winning (environment variable, .env in the current directory, ~/.hexcore/config.json, defaults): see hexcore config or Settings → Where each value comes from. PORT and STATE_DIR are read only at startup: restart |
hexcore update silent for ~1 minute | The new version is in its 60-second probation: wait. If it is unstable, Hexcore rolls back |
5.3 Head
| Symptom | Fix |
|---|---|
| Start blocked: "… has no funds yet." | Get test ADA via Open faucet, wait for the transaction to confirm |
| Node never ready, start times out | Usually no funds or the wrong chain backend. Check the Container log tab and the boot screen; logs can arrive late, so do not conclude from an empty log |
| Blockfrost returns 403 | Key is for another network (a preprod… key works only on preprod) |
| "Node is out of sync" | cardano-node: check it is synced (cardano-cli query tip) and the clock is right. Blockfrost: wait, it lags the tip by 50–80 seconds |
| Blockfrost head restarts in a loop | hydra#2923 (token with an empty asset name): use the cardano-node backend |
| Cannot pull the hydra-node image | docker pull ghcr.io/cardano-scaling/hydra-node:2.4.2 on the server; allow outbound access to ghcr.io |
| Port already in use when starting a head | Change PORT_BASE (default 14000, each node takes 10 consecutive ports) |
Reset/delete reports EACCES | Before 2.0.0-beta.6, root-owned files written by hydra-node could not be removed: update; on an old version sudo rm -rf the head's directory |
| Settings warns the node API is reachable from other machines | Remove NODE_PORT_BIND (not 127.0.0.1). Old containers change only when the head restarts: pick the moment yourself, since restarting an open head has on-chain consequences |
5.4 Multi-machine heads and reverse proxy
| Symptom | Fix |
|---|---|
| Creating a multi-machine head asks for a Public URL | Settings → Public URL → Use this page's address (§3.9) |
| Start says a container cannot reach the relay listener | The host firewall (ufw by default) blocks Docker-to-host traffic: run the exact ufw/iptables rule Hexcore prints, then start again |
| Party "left", head does not progress; party "unknown" | "Left": their node stopped, lost network, or their Hexcore is unreachable: ask them to check curl https://<their-public-url>/health. "Unknown" is not an error (no connection seen since Hexcore began watching); for certainty check the node log |
Warning "Parties call a node by different addresses", NetworkClusterIDMismatch | One node is called by two host:port strings: every party must spell the Public URL (relay) or P2P advertise host (direct) identically |
| Tunnel error right on connect, auth errors in the log | The two servers' clocks differ by more than 60 seconds: enable NTP (timedatectl) |
| Works through the domain but the console cannot connect, or console/tunnel drops after ~60 seconds | nginx needs proxy_http_version 1.1 and the Upgrade/Connection headers (§3.8), plus proxy_read_timeout 1h; proxy_send_timeout 1h; |
502 Bad Gateway | hexcore status; curl http://127.0.0.1:4000/health on the server; RHEL family: sudo setsebool -P httpd_can_network_connect 1 |
| Caddy cannot get a certificate | dig +short <domain>; open ports 80/443 in the firewall and cloud security group; see journalctl -u caddy |
5.5 Trust Center
How Trust Center works and what its terms mean: Trust Center documentation.
| Message in Hexcore | Fix |
|---|---|
| The enrollment code is not valid | Code is wrong, used, expired (72 hours) or revoked: ask the admin for a new one |
| Trust Center did not answer in time / code may have been used | Retry. Still failing: ask the admin for a connector id and paste it into Connector id from admin under Configuration → Register by hand |
| Trust Center could not verify this Hexcore's key | Enter the API URL exactly as the admin sent it, no /v1, no trailing / |
| Clock off by more than 5 minutes | Enable NTP |
| An admin revoked this connector | hexcore trust-center rotate-key, get a new code, enroll again |
| Claim rejected: vkey not in datum | The head on L1 lacks that node: check the head id (the head may have been Init-ed again) |
| Claim rejected: unsupported version / wrong network | Only hydra-node 2.4.2 heads can report; the test Trust Center accepts only preprod |
| Claim rejected: node already belongs to another key holder | Contact the Trust Center admin |
| Too many heads waiting | Wait for heads in "Waiting for the head to open", or turn off some reporting |
| Hexcore sends but Trust Center shows Offline | Make sure no two machines share one ~/.hexcore (same connector key); or wait a minute |
| Domain not verified | Public URL must be public, HTTPS on port 443; from outside check https://<domain>/.well-known/hexcore/trust-center.json returns the public key |
| Trust Center switch in Settings is locked | Remove TRUST_CENTER_ENABLED from the environment or .env, restart |
5.6 Sending a bug report
Include the output of:
bash
hexcore status
hexcore doctor
hexcore config # secrets show only "(set)" / "(not set)", never the value
hexcore logs # the log around the time of the error
Plus the operating system and CPU (uname -a), node -v, docker version, the hydra-node version, chain backend and reproduction steps. Do not send ~/.hexcore/heads/*/keys/, ~/.hexcore/trust-center/ or secrets.json: they are keys and secrets.