@hector Thanks for the prompt response
I was able to bootstrap it after tweaking the compose file, replacing the container name with the ip of my VPS, like so
if [ ! -d /data/ipfs-cluster/raft ]; then
while ! ipfs-cluster-ctl --host /dns4/<ip-of-my-vps>/tcp/9094 id; do
sleep 1
done
pid=`ipfs-cluster-ctl --host /dns4/<ip-of-my-vps>/tcp/9094 id | grep -o -E "^(\w+)"`
sleep 10
cmd="daemon --bootstrap /dns4/<ip-of-my-vps>/tcp/9096/ipfs/$$pid"
fi
When I log the peers on my VPS now, I can see the extra peer.
From my local machine, however, I get
QmNQjufbKRiGDtiHLiFcScYQZxEpC6vtj8f6Qxj8UM2jwj | ERROR: dial backoff
and I’m still unable to share content.
This here is the response body from my local Docker ipfs client, not sure if it’s useful.
Response body:[
{
"id":"QmNQjufbKRiGDtiHLiFcScYQZxEpC6vtj8f6Qxj8UM2jwj",
"addresses":null,
"cluster_peers":null,
"cluster_peers_addresses":null,
"version":"",
"commit":"",
"rpc_protocol_version":"",
"error":"dial backoff",
"peername":""
},
{
"id":"QmZUydUPq5TdfsAkMFwgRjx9LAeE7whegg1i89azTqRChm",
"addresses":[
"/ip4/127.0.0.1/tcp/9096/ipfs/QmZUydUPq5TdfsAkMFwgRjx9LAeE7whegg1i89azTqRChm",
"/ip4/172.27.0.4/tcp/9096/ipfs/QmZUydUPq5TdfsAkMFwgRjx9LAeE7whegg1i89azTqRChm"
],
"cluster_peers":[
"QmNQjufbKRiGDtiHLiFcScYQZxEpC6vtj8f6Qxj8UM2jwj",
"QmZUydUPq5TdfsAkMFwgRjx9LAeE7whegg1i89azTqRChm",
"QmfJqKUTGUjMNNKFVwVQPF8SXCr2TqrDxPi51bMiY4wRgp"
],
"cluster_peers_addresses":[
"/ip4/127.0.0.1/tcp/9096/ipfs/QmNQjufbKRiGDtiHLiFcScYQZxEpC6vtj8f6Qxj8UM2jwj",
"/ip4/172.27.0.5/tcp/9096/ipfs/QmNQjufbKRiGDtiHLiFcScYQZxEpC6vtj8f6Qxj8UM2jwj",
"/ip4/127.0.0.1/tcp/9096/ipfs/QmfJqKUTGUjMNNKFVwVQPF8SXCr2TqrDxPi51bMiY4wRgp",
"/ip4/172.20.0.5/tcp/9096/ipfs/QmfJqKUTGUjMNNKFVwVQPF8SXCr2TqrDxPi51bMiY4wRgp"
],
"version":"0.10.1+git543656aa832d6399e72f87f20e840d16abe93c11",
"commit":"",
"rpc_protocol_version":"/ipfscluster/0.10/rpc",
"error":"",
"ipfs":{
"id":"Qmb16i3yy3sD4p8BMM8DkcUisdLF9UTFRjZzLShR47RXdK",
"addresses":[
"/ip4/127.0.0.1/tcp/4001/ipfs/Qmb16i3yy3sD4p8BMM8DkcUisdLF9UTFRjZzLShR47RXdK",
"/ip4/172.27.0.2/tcp/4001/ipfs/Qmb16i3yy3sD4p8BMM8DkcUisdLF9UTFRjZzLShR47RXdK",
"/ip4/<ip-of-my-vps>/tcp/1085/ipfs/Qmb16i3yy3sD4p8BMM8DkcUisdLF9UTFRjZzLShR47RXdK"
],
"error":""
},
"peername":"8fa38cf90383"
},
{
"id":"QmfJqKUTGUjMNNKFVwVQPF8SXCr2TqrDxPi51bMiY4wRgp",
"addresses":[
"/ip4/127.0.0.1/tcp/9096/ipfs/QmfJqKUTGUjMNNKFVwVQPF8SXCr2TqrDxPi51bMiY4wRgp",
"/ip4/172.20.0.5/tcp/9096/ipfs/QmfJqKUTGUjMNNKFVwVQPF8SXCr2TqrDxPi51bMiY4wRgp"
],
"cluster_peers":[
"QmNQjufbKRiGDtiHLiFcScYQZxEpC6vtj8f6Qxj8UM2jwj",
"QmZUydUPq5TdfsAkMFwgRjx9LAeE7whegg1i89azTqRChm",
"QmfJqKUTGUjMNNKFVwVQPF8SXCr2TqrDxPi51bMiY4wRgp"
],
"cluster_peers_addresses":[
"/ip4/127.0.0.1/tcp/9096/ipfs/QmNQjufbKRiGDtiHLiFcScYQZxEpC6vtj8f6Qxj8UM2jwj",
"/ip4/172.27.0.5/tcp/9096/ipfs/QmNQjufbKRiGDtiHLiFcScYQZxEpC6vtj8f6Qxj8UM2jwj",
"/dns4/<ip-of-my-vps>/tcp/9096/ipfs/QmZUydUPq5TdfsAkMFwgRjx9LAeE7whegg1i89azTqRChm"
],
"version":"0.10.1+git543656aa832d6399e72f87f20e840d16abe93c11",
"commit":"",
"rpc_protocol_version":"/ipfscluster/0.10/rpc",
"error":"",
"ipfs":{
"id":"QmcbgkvYStCNjyJaGW47YJAaw57Qhw7k5EiHQ466EDXDZ5",
"addresses":[
"/ip4/127.0.0.1/tcp/4001/ipfs/QmcbgkvYStCNjyJaGW47YJAaw57Qhw7k5EiHQ466EDXDZ5",
"/ip4/172.20.0.2/tcp/4001/ipfs/QmcbgkvYStCNjyJaGW47YJAaw57Qhw7k5EiHQ466EDXDZ5"
],
"error":""
},
"peername":"c680e18055d7"
}
]