On checking for ipfs cluster peers, I am now getting this error:
:~$ *ipfs-cluster-ctl peers ls*
2024-04-30T05:07:25.294Z ERROR apiclient client/lbclient.go:106 reached maximum number of retries without success, retries: 1
An error occurred:
Code: 0
Message: Get "http://127.0.0.1:9094/peers": dial tcp 127.0.0.1:9094: connect: connection refused
**while restarting ipfs cluster to fix the issue:**
$ *sudo systemctl status ipfs-cluster*
● ipfs-cluster.service - IPFS-Cluster Daemon
Loaded: loaded (/etc/systemd/system/ipfs-cluster.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2024-04-30 05:06:44 UTC; 6s ago
Process: 2288650 ExecStart=/usr/local/bin/ipfs-cluster-service daemon (code=exited, status=1/FAILURE)
Main PID: 2288650 (code=exited, status=1/FAILURE)
Apr 30 05:06:44 systemd[1]: Started IPFS-Cluster Daemon.
Apr 30 05:06:44 ipfs-cluster-service[2288650]: 2024-04-30T05:06:44.737Z INFO >
Apr 30 05:06:44 ipfs-cluster-service[2288650]: 2024-04-30T05:06:44.739Z INFO >
Apr 30 05:06:44 ipfs-cluster-service[2288650]: 2024-04-30T05:06:44.745Z INFO >
Apr 30 05:06:44 ipfs-cluster-service[2288650]: error creating IPFS Proxy component: l>
Apr 30 05:06:44 systemd[1]: ipfs-cluster.service: Main process exited, code=exited, s>
Apr 30 05:06:44 systemd[1]: ipfs-cluster.service: Failed with result 'exit-code'.
**On checking connections in port 5001:**
*sudo lsof -i :5001*
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
ipfs 2287484 root 32u IPv4 34623586 0t0 TCP *:5001 (LISTEN)
I will show you where this issue started:
*sudo systemctl status ipfs-cluster*
● ipfs-cluster.service - IPFS-Cluster Daemon
Loaded: loaded (/etc/systemd/system/ipfs-cluster.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2024-04-30 04:45:47 UTC; 9min ago
Main PID: 2287496 (ipfs-cluster-se)
Tasks: 9 (limit: 19172)
Memory: 18.3M
CGroup: /system.slice/ipfs-cluster.service
└─2287496 /usr/local/bin/ipfs-cluster-service daemon
Apr 30 04:45:48 ipfs-cluster-service[2287496]: 2024-04-30T04:45:48.302Z INFO >
Apr 30 04:45:48 ipfs-cluster-service[2287496]: 2024-04-30T04:45:48.302Z INFO >
Apr 30 04:45:48 ipfs-cluster-service[2287496]: 2024-04-30T04:45:48.302Z INFO >
Apr 30 04:45:48 ipfs-cluster-service[2287496]: 2024-04-30T04:45:48.302Z INFO >
Apr 30 04:45:48 ipfs-cluster-service[2287496]: 2024-04-30T04:45:48.302Z INFO >
Apr 30 04:45:48 ipfs-cluster-service[2287496]: 2024-04-30T04:45:48.303Z INFO >
Apr 30 04:45:48 ipfs-cluster-service[2287496]: 2024-04-30T04:45:48.303Z INFO >
Apr 30 04:45:48 ipfs-cluster-service[2287496]: 2024-04-30T04:45:48.303Z INFO >
Apr 30 04:50:48 ipfs-cluster-service[2287496]: 2024-04-30T04:50:48.304Z INFO >
Apr 30 04:54:24 ipfs-cluster-service[2287496]: 2024-04-30T04:54:24.704Z INFO >
lines 1-19/19 (END)...skipping...
● ipfs-cluster.service - IPFS-Cluster Daemon
Loaded: loaded (/etc/systemd/system/ipfs-cluster.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2024-04-30 04:45:47 UTC; 9min ago
Main PID: 2287496 (ipfs-cluster-se)
Tasks: 9 (limit: 19172)
Memory: 18.3M
CGroup: /system.slice/ipfs-cluster.service
└─2287496 /usr/local/bin/ipfs-cluster-service daemon
Apr 30 04:45:48 ipfs-cluster-service[2287496]: 2024-04-30T04:45:48.302Z INFO crdt go-ds-crdt@v0.5.2/crdt.go:292 crdt Datastore>
Apr 30 04:45:48 ipfs-cluster-service[2287496]: 2024-04-30T04:45:48.302Z INFO crdt crdt/consensus.go:320 'trust all' mode enabl>
Apr 30 04:45:48 ipfs-cluster-service[2287496]: 2024-04-30T04:45:48.302Z INFO cluster ipfs-cluster@v1.0.8/cluster.go:735 Cluste>
Apr 30 04:45:48 pfs-cluster-service[2287496]: 2024-04-30T04:45:48.302Z INFO cluster ipfs-cluster@v1.0.8/cluster.go:737 - >
Apr 30 04:45:48 ipfs-cluster-service[2287496]: 2024-04-30T04:45:48.302Z INFO cluster ipfs-cluster@v1.0.8/cluster.go:747 Waitin>
Apr 30 04:45:48 ipfs-cluster-service[2287496]: 2024-04-30T04:45:48.303Z INFO crdt go-ds-crdt@v0.5.2/crdt.go:502 store is marke>
Apr 30 04:45:48 ipfs-cluster-service[2287496]: 2024-04-30T04:45:48.303Z INFO cluster ipfs-cluster@v1.0.8/cluster.go:756 IPFS I>
Apr 30 04:45:48 ipfs-cluster-service[2287496]: 2024-04-30T04:45:48.303Z INFO cluster ipfs-cluster@v1.0.8/cluster.go:764 ** IPF>
Apr 30 04:50:48 ipfs-cluster-service[2287496]: 2024-04-30T04:50:48.304Z INFO crdt go-ds-crdt@v0.5.2/crdt.go:559 Number of head>
Apr 30 04:54:24 ipfs-cluster-service[2287496]: 2024-04-30T04:54:24.704Z INFO ipfsproxylog ipfsproxy/ipfsproxy.go:106 127.0.0.1>
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
:~$ sudo lsof -i :9095
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
ipfs-clus 2287496 root 22u IPv4 34622664 0t0 TCP localhost:9095 (LISTEN)
:~$ sudo nano /root/.ipfs-cluster/service.json
:~$ sudo nano /root/.ipfs-cluster/service.json
:~$ sudo systemctl restart ipfs-cluster
:~$ curl http://127.0.0.1:9095/id
curl: (7) Failed to connect to 127.0.0.1 port 9095: Connection refused
~$
~$ sudo nano /root/.ipfs-cluster/service.json
:~$ sudo systemctl status ipfs-cluster
● ipfs-cluster.service - IPFS-Cluster Daemon
Loaded: loaded (/etc/systemd/system/ipfs-cluster.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2024-04-30 04:57:13 UTC; 1min 7s ago
Process: 2288092 ExecStart=/usr/local/bin/ipfs-cluster-service daemon (code=exited, status=1/FAILURE)
Main PID: 2288092 (code=exited, status=1/FAILURE)
Apr 30 04:57:13 systemd[1]: Started IPFS-Cluster Daemon.
Apr 30 04:57:13 ipfs-cluster-service[2288092]: 2024-04-30T04:57:13.707Z INFO >
Apr 30 04:57:13 ipfs-cluster-service[2288092]: 2024-04-30T04:57:13.709Z INFO >
Apr 30 04:57:13 ipfs-cluster-service[2288092]: 2024-04-30T04:57:13.714Z INFO >
Apr 30 04:57:13 ipfs-cluster-service[2288092]: error creating IPFS Proxy component: l>
Apr 30 04:57:13 systemd[1]: ipfs-cluster.service: Main process exited, code=exited, s>
Apr 30 04:57:13 systemd[1]: ipfs-cluster.service: Failed with result ‘exit-code’.
:~$ sudo nano /root/.ipfs-cluster/service.json
:~$ sudo lsof -i :5001
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
ipfs 2287484 root 32u IPv4 34623586 0t0 TCP *:5001 (LISTEN)
:~$ sudo lsof -i :5001
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
ipfs 2287484 root 32u IPv4 34623586 0t0 TCP *:5001 (LISTEN)
:~$ sudo nano /root/.ipfs-cluster/service.json
:~$ sudo nano /root/.ipfs-cluster/service.json
~$ sudo systemctl restart ipfs-cluster
~$ sudo systemctl status ipfs-cluster
● ipfs-cluster.service - IPFS-Cluster Daemon
Loaded: loaded (/etc/systemd/system/ipfs-cluster.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2024-04-30 05:04:27 UTC; 4s ago
Process: 2288608 ExecStart=/usr/local/bin/ipfs-cluster-service daemon (code=exited, status=1/FAILURE)
Main PID: 2288608 (code=exited, status=1/FAILURE)
Apr 30 05:04:27 systemd[1]: Started IPFS-Cluster Daemon.
Apr 30 05:04:27 ipfs-cluster-service[2288608]: 2024-04-30T05:04:27.450Z INFO >
Apr 30 05:04:27 ipfs-cluster-service[2288608]: 2024-04-30T05:04:27.452Z INFO >
Apr 30 05:04:27 ipfs-cluster-service[2288608]: 2024-04-30T05:04:27.457Z INFO >
Apr 30 05:04:27 ipfs-cluster-service[2288608]: error creating IPFS Proxy component: l>
Apr 30 05:04:27 systemd[1]: ipfs-cluster.service: Main process exited, code=exited, s>
Apr 30 05:04:27 systemd[1]: ipfs-cluster.service: Failed with result 'exit-code'.
And then I GET THIS ISSUE:
$ ipfs swarm peers
Error: this action must be run in online mode, try running 'ipfs daemon' first