Open Motophan opened 10 months ago
What is the content of your .env file? Are you using the default one? Is it located in the path specified in your docker-compose (.env)?
[gentoo@old ~]$ cat docker/.env
INFRA_CLEAR_RESTART=false
INFRA_IMPORT_SNAPSHOT=true
INFRA_LOTUS_DAEMON=true
INFRA_LOTUS_GATEWAY=true
INFRA_PERSISTNODEID=false
INFRA_SECRETVOLUME=false
INFRA_SYNC=true
SNAPSHOTURL=https://snapshots.mainnet.filops.net/minimal/latest.zst
INFRA_LOTUS_HOME=/home/lotus_user
[gentoo@old ~]$
Hello there! :)
So, the number of variables that's being printed at the beginning of your log doesn't match the number of variables in the .env file. I can assume that's a variable precedence issue where the variables specified in the environment section replace the variables from the env file altogether. And INFRA_LOTUS_HOME is a required variable, so without it being set our scripts simply exit.
I would advise to choose between setting variables via the env file OR the environment section to avoid variable precedence issues in the future.
[gentoo@old ~]$ docker logs lotus
Shouldnt this just work? I need to run a lotus node, a posgres db, a ipfs node, and