2023-08-12T11:11:04.902Z INFO service ipfs-cluster-service/daemon.go:50 Initializing. For verbose output run with “-l debug”. Please wait…
error obtaining execution lock: lock /data/ipfs-cluster/cluster.lock: someone else has the lock. If no other ipfs-cluster-service process is running, remove /data/ipfs-cluster/cluster.lock, or make sure that the config folder is writable for the user running ipfs-cluster-service.
when remove cluster.lock, and use ipfs-cluster-service daemon I got this:
2023-08-12T11:18:14.040Z INFO service ipfs-cluster-service/daemon.go:50 Initializing. For verbose output run with “-l debug”. Please wait…
error creating datastore: failed to open pebble database: resource temporarily unavailable
ipfs-cluster-service daemon
2023-08-12T11:33:23.054Z INFO service ipfs-cluster-service/daemon.go:50 Initializing. For verbose output run with “-l debug”. Please wait…
error creating datastore: failed to open pebble database: resource temporarily unavailable
/ #
:~$ docker-compose down
Removing network dockermaker_default
dockermaker@agti-node-0:~$ docker-compose up -d
Creating network "dockermaker_default" with the default driver
Creating ipfs0 ... done
Creating cluster0 ... done
dockermaker@agti-node-0:~$ docker compose ps
NAME COMMAND SERVICE STATUS PORTS
cluster0 "/sbin/tini -- /usr/…" cluster0 running 0.0.0.0:9094-9096->9094-9096/tcp, :::9094-9096->9094-9096/tcp
ipfs0 "/sbin/tini -- /usr/…" ipfs0 running (starting) 0.0.0.0:4001->4001/tcp, 0.0.0.0:5001->5001/tcp, 0.0.0.0:8081->8080/tcp, :::4001->4001/tcp, :::5001->5001/tcp, :::8081->8080/tcp
dockermaker@agti-node-0:~$ cd ipfs/
dockermaker@agti-node-0:~/ipfs$ ls
cluster0 ipfs0 swarm.key
dockermaker@agti-node-0:~/ipfs$ cd cluster0/
dockermaker@agti-node-0:~/ipfs/cluster0$ ls
cluster.lock identity.json pebble peerstore service.json swarm.key
dockermaker@agti-node-0:~/ipfs/cluster0$ docker exec -it cluster0 sh
/ # ipfs-cluster-service daemon
2023-08-12T12:35:20.948Z INFO service ipfs-cluster-service/daemon.go:50 Initializing. For verbose output run with "-l debug". Please wait...
error obtaining execution lock: lock /data/ipfs-cluster/cluster.lock: someone else has the lock. If no other ipfs-cluster-service process is running, remove /data/ipfs-cluster/cluster.lock, or make sure that the config folder is writable for the user running ipfs-cluster-service.
The docker container launched by compose is already running ipfs-cluster-service. When you exec sh and run ipfs-cluster-service daemon again, you get an error because it is already running.