sahib / brig

File synchronization on top of ipfs with git like interface & web based UI
https://brig.readthedocs.io
GNU Affero General Public License v3.0
567 stars 33 forks source link

brig init fails to init ipfs #114

Open tennox opened 2 years ago

tennox commented 2 years ago

What did you do?

  1. Install brig (via your script)
  2. brig init foo@bar.org -w "pass brig/foo"

What did you see?

-- Guessed folder for init: /home/manu/.brig
-- Guessed IPFS repository as /home/manu/.ipfs
-- There is no »ipfs« command available.
-- Trying to figure out what IPFS version to install...
-- Last stable IPFS version is: v0.11.0
-- Downloading... 28 MB
-- Unpacking to: /tmp/ipfs-tmp-download-418194681
-- Copy binary to: /home/manu/ipfs
-- Creating new IPFS repository.
20.01.2022/00:34:37 ⚡ cmd/parser.go:543: does the IPFS repository exist? full error: open /home/manu/.ipfs/config: no such file or directory

reproduction

in docker run --rm -it ubuntu run this:

curl -s https://raw.githubusercontent.com/sahib/brig/master/scripts/install.sh | bash
apt update
apt install curl
bash <(curl -s https://raw.githubusercontent.com/sahib/brig/master/scripts/install.sh)
cp ./brig /usr/local/bin
brig init text -w 'echo test'

Do you still see this issue with a development binary?

tried - but neither compile instructions work (no makefile, no mage.go)

Did you check if a similar bug report was already opened?

yes

System details:

go version: uname -s -v -m: ``Linux #67-Ubuntu SMP Tue Jan 5 18:31:36 UTC 2021 x86_64`` IPFS config:

brig client version: v0.4.1+68f8766 [build: 2019-03-31T00:10:39+01:00]

tennox commented 2 years ago

Workaround: sudo mv ./ipfs /usr/local/bin/ && ipfs init