Documentation Index
Fetch the complete documentation index at: https://mintlify.com/deuxfleurs-org/garage/llms.txt
Use this file to discover all available pages before exploring further.
Description
Thegarage node command provides operations for managing individual nodes in your Garage cluster, including viewing node identities and connecting isolated nodes.
Usage
Subcommands
node id
Print the full node ID (public key) and publicly reachable address of the current Garage node.Do not print usage instructions to stderr.When this flag is set, only the node ID and address are printed to stdout, making it suitable for use in scripts.
Output Format
Without--quiet:
--quiet:
node connect
Connect to a Garage node that is currently isolated from the cluster. This is useful when adding a new node to an existing cluster or reconnecting a node that has become isolated.Full node ID (public key) and connection address in the format:
<full-node-id>@<ip-or-hostname>:<port>You can retrieve this information on the target node using garage node id.Examples
Get Node ID and Address
Get Node ID for Scripting
Connect to Another Node
On the node you want to add to the cluster:Adding a New Node to a Cluster
Complete workflow:Understanding Node IDs
A Garage node ID consists of:- Public Key (64 hex characters): The node’s cryptographic identity
- IP Address or Hostname: Where the node can be reached
- Port: The RPC port (typically 3901)
<public-key>@<address>:<port>
Example:
Node Connection Requirements
For nodes to successfully connect:- Network connectivity: Nodes must be able to reach each other on the RPC port
- RPC secret: All nodes must share the same RPC secret
- Reachability: The address in
rpc_public_addrmust be reachable from other nodes
Using Short Node IDs
In most Garage commands, you can use a prefix of the node ID instead of the full 64-character public key:Verifying Node Connectivity
After connecting nodes, verify they can communicate:Troubleshooting
Connection Fails
Ifgarage node connect fails:
-
Verify network connectivity:
-
Check RPC secret matches:
Ensure all nodes have the same
rpc_secretin their configuration. -
Verify the node is running:
- Check firewall rules: Ensure port 3901 (RPC port) is open between nodes.
Node Not Appearing in Status
If a node connects but doesn’t appear ingarage status:
- Wait a few seconds for gossip protocol to propagate
-
Check logs for errors:
- Verify RPC secret: Look for authentication errors in logs
Using rpc_public_addr
If nodes are behind NAT or have multiple network interfaces, configurerpc_public_addr in the config file: