Skip to content

ipfs init is not reporting failures #1130

@Luzifer

Description

@Luzifer

Given the $IPFS_PATH is not writable for ipfs init the command does show the output we're used to as if it worked fine. Instead it should show an fatal error because ipfs init is in fact not able to write into that directory and it is empty afterwards which causes strange errors:

# echo $IPFS_PATH
/data/ipfs

# ls -lhR /data
/data:
total 4.0K
drwxr-xr-x 2 root root 4.0K Apr 23 20:58 ipfs

/data/ipfs:
total 0

# ipfs version
ipfs version 0.3.2

# ipfs init
initializing ipfs node at /data/ipfs
generating 2048-bit RSA keypair...done
peer identity: QmfJZTJVaDcfDfxs6LpwEqiAtqxGa2rkCpTTqMPgoZwdMm

# ipfs daemon
Initializing daemon...
Error: no ipfs repo found. please run: ipfs init

Metadata

Metadata

Assignees

No one assigned

    Labels

    exp/noviceSomeone with a little familiarity can pick upkind/bugA bug in existing code (including security flaws)topic/commandsTopic commandstopic/daemon + init

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions