I am unable to upload my file into IPFS using ipfs-cluster-ctl
. What may be the reason for this error? How could I solve it?
$ ipfs-cluster-ctl peers ls
An error occurred:
Code: 0
Message: Get "http://127.0.0.1:9094/peers": dial tcp 127.0.0.1:9094: connect: connection refused
$ ipfs-cluster-ctl add file.txt
An error occurred:
Code: 0
Message: Post "http://127.0.0.1:9094/add?chunker=size-262144&cid-version=0&hash=sha2-256&hidden=false&layout=&local=false&mode=recursive&name=&nocopy=false&progress=false&raw-leaves=false&recursive=false&replication-max=0&replication-min=0&shard=false&shard-size=104857600&stream-channels=true&user-allocations=&wrap-with-directory=false": dial tcp 127.0.0.1:9094: connect: connection refused
I am using the defautl setup:
$ ipfs config Addresses
{
"API": "/ip4/127.0.0.1/tcp/5001",
"Announce": [],
"Gateway": "/ip4/127.0.0.1/tcp/8080",
"NoAnnounce": [],
"Swarm": [
"/ip4/0.0.0.0/tcp/4001",
"/ip6/::/tcp/4001"
]
}
$ nohup ipfs daemon &
Initializing daemon...
go-ipfs version: 0.5.1-dev-b34769561-dirty
Repo version: 7
System version: amd64/linux
Golang version: go1.13.1
Swarm listening on /ip4/127.0.0.1/tcp/4001
Swarm listening on /ip4/193.140.196.159/tcp/4001
Swarm listening on /ip6/::1/tcp/4001
Swarm listening on /p2p-circuit
Swarm announcing /ip4/127.0.0.1/tcp/4001
Swarm announcing /ip4/193.140.196.159/tcp/4001
Swarm announcing /ip6/::1/tcp/4001
API server listening on /ip4/127.0.0.1/tcp/5001
WebUI: http://127.0.0.1:5001/webui
Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8080
Daemon is ready
$ ipfs swarm peers
// returns a long list...