dappnode / DNP_IPFS

Dappnode package responsible for providing IPFS connectivity
GNU General Public License v3.0
4 stars 9 forks source link

entrypoint.sh may break due to ipfs migration #47

Closed pablomendezroyo closed 2 years ago

pablomendezroyo commented 2 years ago

Context

DAppNode is overwriting the original entrypoint.sh from the official IPFS docker image:

The error

The edited entrypoint uses the ipfs binary to edit the configuration at some point BEFORE the daemon ipfs daemon --migrate=true which executes a MIGRATION if necessary (in this release will be mandatory) resulting in an error:

ipfs repo needs migration

Solution

Execute ipfs daemon --migrate=true before applying any custom configuration with the binary ipfs which may result into an error

Consider

dapplion commented 2 years ago

CC: @eduadiez

pablomendezroyo commented 2 years ago

UPDATE

Fixed adding tool fs-repo-migration

https://github.com/dappnode/DNP_IPFS/blob/5159251935d4a701d3f1d5718006c8829d7bb5c7/build/dappnode_entrypoint.sh#L11 https://github.com/dappnode/DNP_IPFS/blob/5159251935d4a701d3f1d5718006c8829d7bb5c7/build/Dockerfile#L4

To research: