Skip to main content

Diagnostics and Cleanup

The snapshotter CLI includes diagnostics and cleanup commands for snapshotter lite deployments. It checks Docker availability, system resources, network connectivity, port availability, and existing snapshotter containers.

powerloom-snapshotter-cli diagnose

The following output may vary depending on whether you have run snapshotter node(s) before this setup or not.

powerloom-snapshotter-cli diagnose
๐Ÿ” Starting Powerloom Node Diagnostics...

๐Ÿ“ฆ Checking Docker installation...
โœ… Docker is installed and running

๐Ÿณ Checking docker-compose...
โœ… Docker Compose is available

๐Ÿ”Œ Checking default ports...
โš ๏ธ Port 8002 is in use
โœ… Next available Core API port: 8003
โš ๏ธ Port 50051 is in use
โœ… Next available Collector port: 50052

๐Ÿ” Checking existing Powerloom containers...
Found existing Powerloom containers:
snapshotter-lite-v2-xxx1-mainnet-BDS_MAINNET_UNISWAPV3-ETH
snapshotter-lite-local-collector-mainnet-BDS_MAINNET_UNISWAPV3-ETH
snapshotter-lite-v2-xxx2-mainnet-BDS_MAINNET_UNISWAPV3-ETH

If you want to cleanup the existing containers, follow along to the next section

Cleanup[optional]โ€‹

tip

This is particularly useful if you find your nodes are not running as expected and want a fresh start.

Stop and remove all powerloom containersโ€‹

To clean up existing deployments, run:

powerloom-snapshotter-cli diagnose --clean --force

The CLI stops and removes matching snapshotter lite containers and local collectors, then removes associated Docker networks where safe.

Stopping running containers... (timeout: 30s per container)
Attempting to stop container snapshotter-lite-v2-xxx1-mainnet-BDS_MAINNET_UNISWAPV3-ETH...
snapshotter-lite-v2-xxx1-mainnet-BDS_MAINNET_UNISWAPV3-ETH
Attempting to stop container snapshotter-lite-local-collector-mainnet-BDS_MAINNET_UNISWAPV3-ETH...
snapshotter-lite-local-collector-mainnet-BDS_MAINNET_UNISWAPV3-ETH

Removing containers...
Removing container snapshotter-lite-v2-xxx1-mainnet-BDS_MAINNET_UNISWAPV3-ETH...
Removing container snapshotter-lite-local-collector-mainnet-BDS_MAINNET_UNISWAPV3-ETH...

Removing networks...
โœ… Cleanup complete

Cleanup stale images and networks and cacheโ€‹

warning

This is a cleanup step that removes all stale images, networks and cache from Docker. Proceed only if all other attempts at running the node have failed after following our guides.

If cleanup still leaves stale Docker resources, use Docker's own prune commands after confirming no unrelated containers/images are needed:

docker network prune
docker system prune

Docker will ask for confirmation before removing unused resources.