filecoin-project / lotus

Reference implementation of the Filecoin protocol, written in Go
https://lotus.filecoin.io/
Other
2.83k stars 1.26k forks source link

lotus-miner backup file.cbor files with message "LOTUS_BACKUP_BASE_PATH env var not set" #8301

Closed allenwalker3 closed 2 years ago

allenwalker3 commented 2 years ago

Checklist

Lotus component

Lotus Version

Daemon:  1.14.4+calibnet+git.5b33555fd+api1.4.0
Local: lotus-miner version 1.14.4+calibnet+git.5b33555fd

Describe the Bug

When running and lotus-miner backup, gives error "LOTUS_BACKUP_BASE_PATH env var not set" when it is set.

Logging Information

lotus-miner log set-level debug

Repo Steps

  1. Run 'export LOTUS_BACKUP_BASE_PATH=/root/lotus-backups; lotus-miner backup backup.cbor'
  2. See error 'ERROR: LOTUS_BACKUP_BASE_PATH env var not set' ...
Reiers commented 2 years ago

Hi @orkowizard

Just tested it on my Storage Provider (miner) it works as expected here, so not an issue.

This environment should be set in the same terminal, that run the lotus-miner:

export LOTUS_BACKUP_BASE_PATH=/root/lotus-backups
lotus-miner run

then in other terminal: lotus-miner backup /root/lotus-backups/backup.cbor

From my testing:

lotus-miner backup /raid5/reiers/SP_Backup/11-3-22.cbor
Success

Miner log: 2022-03-11T21:55:52.583+0100 INFO backupds backupds/datastore.go:130 Datastore backup done

Lotus version:

Daemon:  1.14.4+mainnet+git.5b33555fd+api1.5.0
Local: lotus version 1.14.4+mainnet+git.5b33555fd