StorageMiner repo directory does not exist

Problem

When running lotus-miner auth create-token --perm admin the following error occurs (could happen with any lotus-miner commands).

ERROR: could not get API info for StorageMiner: repo directory does not exist. Make sure your configuration is correct

Environment

  • Mainnet
  • Calibnet
  • Devnet

Resolution

The miner cannot find the .lotusminer path. The env variable LOTUS_MINER_PATH needs to be set in the active terminal.

Extras

Filecoin Slack