> For the complete documentation index, see [llms.txt](https://services.validexis.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://services.validexis.com/celestia-infrastructure/fibre-server-setup-and-operations.md).

# 🧵 Fibre Server: Setup and Operations

Fibre is the data-availability service that validators run alongside `celestia-app` from app version 10. Clients upload blob shards to validator-operated Fibre servers and download them from there; each server's storage budget is derived from the validator's stake.

This guide describes how VALIDEXIS runs Fibre on a **dedicated server** next to the validator, for both Mainnet Beta and Mocha. It follows the official [Run a Fibre server](https://docs.celestia.org/operate/consensus-validators/fibre/) guide and adds the remote-host parts (mutual TLS, private network, firewall) that a separate Fibre server needs.

| Network      | Chain ID   | Release         | Notes                                                                |
| ------------ | ---------- | --------------- | -------------------------------------------------------------------- |
| Mainnet Beta | `celestia` | `v10.4.0`       | Start Fibre and register only after the chain reports app version 10 |
| Mocha        | `mocha-5`  | `v10.4.0-mocha` | App version 10 is active; Fibre runs today                           |

Always use the same release for `celestia-app` and Fibre.

### Layout

```
Fibre server ── privval gRPC, mTLS (26669) ──► Validator
Fibre server ── application gRPC, VLAN only (9090) ──► Validator
Validator ◄── TMKMS secret connection (26658) ── Signer
Clients ── TLS ──► Fibre server :7980
```

Fibre never connects to the signer. Payment-promise endorsements and the Fibre TLS identity are requested from the validator's privval gRPC endpoint; the validator forwards them to TMKMS as `SignRawBytes`. See [TMKMS for Celestia v10 and Fibre](https://services.validexis.com/validator-security-our-approach-and-protection-measures/tmkms-for-remote-signing/tmkms-for-celestia-v10-and-fibre).

### 1. Plan capacity

* **Separate disks.** Fibre shards live on their own NVMe, never on the celestia-app data disk. On a dedicated Fibre server the OS and the shard store are also separated.
* **Memory.** Memory is dominated by gRPC receive buffers. Each in-flight upload stream can buffer about 132 MiB:

  ```
  worst-case receive buffers ≈ max_connections × max_concurrent_streams × 132 MiB
  defaults: 16 × 13 × 132 MiB ≈ 27 GiB
  ```

  Size the server for that figure plus Fibre's other work and the OS.
* **Downloads need free slots.** One upload can use all 16 default connections. Raise `max_connections` above 16 to keep slots for downloads, and recompute the memory budget before you do.
* **Recalculate on every expansion.** Requirements change with voting power, blob sizes, retention and target throughput. Use the Foundation [capacity sheet](https://docs.google.com/spreadsheets/d/1P3k-KQrZxbRjRwIxWkJBNwgAFlFMJUdT7OupA_WoKa0/edit?gid=971673838#gid=971673838).

### 2. Install the binary

```bash
# Mainnet Beta: v10.4.0 · Mocha: v10.4.0-mocha
fibre_version=v10.4.0
curl -fLO "https://github.com/celestiaorg/celestia-app/releases/download/$fibre_version/fibre_Linux_x86_64.tar.gz"
curl -fLO "https://github.com/celestiaorg/celestia-app/releases/download/$fibre_version/checksums.txt"
sha256sum --ignore-missing --check checksums.txt
tar -xzf fibre_Linux_x86_64.tar.gz
sudo install -m 0755 fibre /usr/local/bin/fibre
fibre version
```

Linux archives require glibc 2.34 or later. To build from source instead, see the [official guide](https://docs.celestia.org/operate/consensus-validators/fibre/#build-from-source).

### 3. Prepare the validator

On the **validator server**, back up `config/` first, then edit existing keys instead of appending duplicate sections.

**Application gRPC** — `config/app.toml`. Listen on the validator's private VLAN address:

```toml
[grpc]
enable = true
address = "<validator_private_ip>:9090"
```

Set `enable = true` explicitly: once the chain switches to v10, the value in `app.toml` is what counts.

**Privval gRPC with mutual TLS** — `config/config.toml`, top-level keys before the first section:

```toml
priv_validator_grpc_laddr = "<validator_private_ip>:26669"
priv_validator_grpc_cert_file = "privval-tls/server.crt"
priv_validator_grpc_key_file = "privval-tls/server.key"
priv_validator_grpc_client_ca_file = "privval-tls/ca.crt"
```

All three TLS files must be set together. The node refuses to start with a non-loopback `priv_validator_grpc_laddr` unless mTLS is fully configured. Never use `priv_validator_grpc_allow_insecure` in production: anyone who can reach an unprotected endpoint can request signatures from the validator key.

Restart the node and confirm it resumes syncing and signing.

### 4. Issue the mTLS certificates

Use a dedicated CA for this endpoint only. Generate it on an admin workstation, not on a production server.

```bash
# CA
openssl req -x509 -newkey ec -pkeyopt ec_paramgen_curve:P-256 -nodes \
  -keyout ca.key -out ca.crt -days 3650 -subj "/CN=privval-ca"

# Server certificate for the validator — the SAN must match the address Fibre dials
openssl req -newkey ec -pkeyopt ec_paramgen_curve:P-256 -nodes \
  -keyout server.key -out server.csr -subj "/CN=privval-server"
openssl x509 -req -in server.csr -CA ca.crt -CAkey ca.key -CAcreateserial \
  -out server.crt -days 825 \
  -extfile <(printf "subjectAltName=IP:<validator_private_ip>\nextendedKeyUsage=serverAuth")

# Client certificate for Fibre
openssl req -newkey ec -pkeyopt ec_paramgen_curve:P-256 -nodes \
  -keyout client.key -out client.csr -subj "/CN=privval-client"
openssl x509 -req -in client.csr -CA ca.crt -CAkey ca.key -CAcreateserial \
  -out client.crt -days 825 \
  -extfile <(printf "extendedKeyUsage=clientAuth")
```

* Validator receives `ca.crt`, `server.crt`, `server.key`.
* Fibre server receives `ca.crt`, `client.crt`, `client.key`.
* `ca.key` stays offline; it is needed only to issue new certificates.
* Files are readable only by the service user (`chmod 600` on keys).
* Rotation: issue new certificates from the same CA and restart both services. Certificates are loaded at startup.

Source: [celestia-core privval gRPC TLS guide](https://github.com/celestiaorg/celestia-core/blob/main/docs/guides/privval-grpc-tls.md).

### 5. Configure Fibre

On first start Fibre creates `<fibre_home>/config/server_config.toml`. Our template:

```toml
app_grpc_address = "<validator_private_ip>:9090"
signer_grpc_address = "<validator_private_ip>:26669"
server_listen_address = "0.0.0.0:7980"

signer_grpc_ca_file = "/etc/fibre/tls/ca.crt"
signer_grpc_cert_file = "/etc/fibre/tls/client.crt"
signer_grpc_key_file = "/etc/fibre/tls/client.key"

max_connections = 16
max_concurrent_streams = 13
```

Addresses use `host:port` without `tcp://`. Fibre rejects unknown keys and tables; if startup reports an unknown field, fix it before restarting.

**systemd unit**

```ini
[Unit]
Description=Celestia Fibre server
After=network-online.target
Wants=network-online.target

[Service]
User=fibre
ExecStart=/usr/local/bin/fibre start --home /var/lib/fibre --otel-endpoint http://<otel_collector>:4318
Restart=on-failure
RestartSec=5
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target
```

`/var/lib/fibre` is mounted on the dedicated shard disk.

### 6. Firewall

| Server    | Allow                       | From                                          |
| --------- | --------------------------- | --------------------------------------------- |
| Fibre     | `7980/tcp`                  | Public (Fibre clients)                        |
| Validator | `26669/tcp` privval gRPC    | Fibre server only (VLAN)                      |
| Validator | `9090/tcp` application gRPC | Fibre server only (VLAN)                      |
| Validator | `26658/tcp` privval socket  | Signer only (VLAN)                            |
| All       | SSH                         | Admin addresses only, key-only authentication |

Default policy is deny inbound. mTLS authenticates peers only after a TCP connection is accepted, so the privval port is still restricted at the network level.

### 7. Start after activation

Check the **active** app version — the installed binary version does not tell you this:

```bash
curl -s http://127.0.0.1:26657/abci_info | jq -r .result.response.app_version
```

Start Fibre only when it reports `10` or later:

```bash
sudo systemctl enable --now fibre
journalctl -u fibre -f -o cat
```

Check the startup log for the chain ID, the connected application and signer addresses, and the effective storage backend.

### 8. Register the public host

Register only after the server is reachable from outside, so clients never discover an unavailable host:

```bash
# Mainnet Beta
celestia-appd tx valaddr set-host <public_host>:7980 --from <validator_account_key> --chain-id celestia
# Mocha
celestia-appd tx valaddr set-host <public_host>:7980 --from <validator_account_key> --chain-id mocha-5
```

Verify with the consensus address (`celestia-appd comet show-address`):

```bash
celestia-appd query valaddr provider <celestiavalcons_address>
```

`found` must be `true` and the host must match. Registration persists across restarts; re-run `set-host` only when the address changes. An entry is removed if the validator leaves staking or stays jailed and unbonded for more than 7 days.

### 9. Operate

* **Upgrades** — upgrade `celestia-app` and Fibre to the same release, run `celestia-appd config sync`, review the diff, restart, verify. Mocha first, Mainnet after.
* **Capacity** — watch shard-disk usage and network throughput against the alert thresholds in [Monitoring](https://services.validexis.com/monitoring/monitoring-celestia-validators-and-fibre). Vertical expansion: more NVMe and faster ports. Horizontal expansion: additional Fibre servers in the same site once multi-server deployment is supported; each server must independently meet the CPU/RAM requirements and pass the [CPU benchmark](https://github.com/celestiaorg/celestia-app/tree/main/tools/cpu_requirements).
* **Signing latency** — the 10 ms requirement is measured on celestia-app (`cometbft_privval_signing_latency_*`), not on Fibre. Fibre's own `fibre.server.sign.duration` measures payment-promise endorsements and is tracked separately.

### Troubleshooting

| Symptom                                                  | Check                                                                                                                                |
| -------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| `unknown service cosmos.base.tendermint.v1beta1.Service` | Fibre must target application gRPC; then check the active app version                                                                |
| Application connection refused                           | `[grpc] enable = true`, address on the VLAN IP, firewall allows the Fibre server                                                     |
| Signer connection failed / TLS handshake error           | Fibre's `signer_grpc_address` equals `priv_validator_grpc_laddr`; certificate SAN matches the dialled IP; both sides use the same CA |
| Node refuses to start after enabling privval gRPC        | Non-loopback address without all three TLS files set                                                                                 |
| `derived storage budget is 0`                            | Validator not bonded, or Fibre points at a node on another network                                                                   |
| Server runs but no uploads                               | `query valaddr provider` finds the host; the host is reachable from outside; the validator is bonded                                 |
| `payment promise verification failed`                    | Chain ID mismatch between Fibre's node and the client                                                                                |

### Sources

* [Run a Fibre server](https://docs.celestia.org/operate/consensus-validators/fibre/) · [Fibre monitoring](https://docs.celestia.org/operate/consensus-validators/fibre/metrics/)
* [celestia-app v10.4.0 release](https://github.com/celestiaorg/celestia-app/releases/tag/v10.4.0) · [v10.4.0-mocha release](https://github.com/celestiaorg/celestia-app/releases/tag/v10.4.0-mocha)
* [Privval gRPC mutual TLS](https://github.com/celestiaorg/celestia-core/blob/main/docs/guides/privval-grpc-tls.md)
* Configuration templates: [github.com/validexisinfra/Celestia/tree/main/fibre](https://github.com/validexisinfra/Celestia/tree/main/fibre)
