A couple of issues I’m facing:
My nas that I’m using for storj unfortunately gets killed occasionally due to power fluctuations in the local area. It reboots automatically but the storagenode/watchtower containers regularly fail to restart despite both being started with the following options:
docker run -d --restart unless-stopped …
As a result, both containers have been offline for a while. So the question here is what can I do to make this more resilient.
The storagenode currently won’t start, it’s erroring with:
Error: piecestore monitor: error verifying location and/or readability of storage directory: open config/storage/storage-dir-verification: no such file or directory.
I’m passing in the following mount option:
And the directory contains the following:
ls /var/storj/storage/ config.yaml kademlia orders revocations.db storage trust-cache.json
So the question here is how can I fix that?
Here’s the full command I’m using to start the storagenode:
#!/bin/bash docker run -d --restart unless-stopped \ -p 28967:28967 \ -p 14002:14002 \ -e WALLET="xxx" \ -e EMAIL="xxxx" \ -e ADDRESS="storj.example.com:28967" \ -e BANDWIDTH="2.0TB" \ -e STORAGE="2.5TB" \ --mount type=bind,source="/var/storj/identify/storagenode",destination=/app/identity \ --mount type=bind,source="/var/storj/storage",destination=/app/config \ --name storagenode storjlabs/storagenode:latest