js-ceramic
js-ceramic copied to clipboard
Ceramic Daemon fails to start IPFS in Docker container
Describe the bug Ceramic Daemon fails to start IPFS in Docker container. This is a known issue: https://github.com/ipfs/kubo/pull/8704. This applies to docker environments like Google cloud run. You need to bump to ipfs daemon go-ipfs to version .13
To Reproduce Steps to reproduce the behavior: Try to start ceramic daemon on a docker container, IPFS will fail
Expected behavior ceramic daemon starts with no errors on Docker
Screenshots If applicable, add screenshots to help explain your problem.
Ceramic versions cli 2.4
Machine, OS, browser information (please complete the following information):
2022-07-29T02:52:32.327905Z stdout: 'Initializing daemon...\n' + Default 2022-07-29T02:52:32.327916Z 'go-ipfs version: 0.12.2\n' + Default 2022-07-29T02:52:32.327942Z 'Repo version: 12\n' + Default 2022-07-29T02:52:32.327952Z 'System version: amd64/linux\n' + Default 2022-07-29T02:52:32.327963Z 'Golang version: go1.16.15\n', Default 2022-07-29T02:52:32.327976Z stderr: '2022/07/29 02:52:32 [zeroconf] no suitable IPv4 interface: udp4: failed to join any of these interfaces: []\n' + Default 2022-07-29T02:52:32.327999Z '2022/07/29 02:52:32 [zeroconf] no suitable IPv6 interface: udp6: failed to join any of these interfaces: []\n' + Default 2022-07-29T02:52:32.328011Z '2022-07-29T02:52:32.272Z\tERROR\tcmd/ipfs\tipfs/daemon.go:430\terror from node construction: no supported interface\n' +
https://github.com/ceramicnetwork/js-ceramic/blob/develop/packages/ipfs-daemon/package.json go-ipfs dependency
@fhirfly, are you building the image yourself, or using one of our published Docker images?
I just ran ceramicnetwork/js-ceramic:latest
, docker exec
'd in, and saw IPFS running properly.
Can you elaborate the steps you used when you saw this issue?
docker run --rm --name ceramic -p 7007 ceramicnetwork/js-ceramic
Unable to find image 'ceramicnetwork/js-ceramic:latest' locally
latest: Pulling from ceramicnetwork/js-ceramic
982cba7e471c: Pull complete
b02d86f59850: Pull complete
8b047e8f2e47: Pull complete
478cfe935c2f: Pull complete
c9044b155d8e: Pull complete
0cce08b443e8: Pull complete
a8585e8f3992: Pull complete
087478856788: Pull complete
464a4d9c04f3: Pull complete
d870f14b6a8c: Pull complete
1c921900b28a: Pull complete
4eaa3bdad589: Pull complete
8543e8fbdb7b: Pull complete
b370ef0e93be: Pull complete
19217efe72a6: Pull complete
ceff4be0ed97: Pull complete
4c4adb331b92: Pull complete
Digest: sha256:24b4d99084272b10786ef0fc2f6c06afd98c4d5e193d3361817034134009b999
Status: Downloaded newer image for ceramicnetwork/js-ceramic:latest
[2022-08-02T18:11:26.088Z] IMPORTANT: Starting Ceramic Daemon at version 2.3.1 with config:
{
"anchor": {},
"http-api": {
"cors-allowed-origins": [
".*"
]
},
"ipfs": {
"mode": "bundled"
},
"logger": {
"log-level": 2,
"log-to-files": false
},
"metrics": {
"metrics-exporter-enabled": false,
"metrics-port": 9090
},
"network": {
"name": "testnet-clay"
},
"node": {},
"state-store": {
"mode": "fs",
"local-directory": "/root/.ceramic/statestore/"
},
"indexing": {
"db": "sqlite:///root/.ceramic/indexing.sqlite",
"models": []
}
}
[2022-08-02T18:11:26.127Z] IMPORTANT: Connecting to ceramic network 'testnet-clay' using pubsub topic '/ceramic/testnet-clay'
[2022-08-02T18:11:27.694Z] IMPORTANT: Connected to anchor service 'https://cas-clay.3boxlabs.com' with supported anchor chains ['eip155:3']
[2022-08-02T18:11:27.727Z] WARNING: No pinned streams detected. This is expected if this is the first time this node has been run, but may indicate a problem with the node's persistence setup if it should have pinned streams
[2022-08-02T18:11:27.740Z] IMPORTANT: Ceramic API running on 0.0.0.0:7007'
root@bb396e5ad44a:/js-ceramic# ps -eaf
UID PID PPID C STIME TTY TIME CMD
root 1 0 9 18:11 ? 00:00:11 node ./packages/cli/bin/ceramic.js daemon
root 79 1 99 18:11 ? 00:03:21 /js-ceramic/node_modules/go-ipfs/go-ipfs/ipfs daemon
root 101 0 4 18:13 pts/0 00:00:00 /bin/sh
root 107 101 1 18:13 pts/0 00:00:00 bash
root 108 107 0 18:13 pts/0 00:00:00 ps -eaf
root@bb396e5ad44a:/js-ceramic# /js-ceramic/node_modules/go-ipfs/go-ipfs/ipfs version
ipfs version 0.12.2
It looks like https://github.com/ceramicnetwork/js-ceramic/issues/2362 is a duplicate of this one, @smrz2001 I think that the issue is happening on mac m1
Thanks, @pradel.
The underlying IPFS issue appears to be the same but the fix for this issue (to update package.json
) will go in js-ceramic
, while the fix for #2362 (to use a newer IPFS base image) will go in go-ipfs-daemon
, so will leave both issues open for now.
Mine happens on Docker in Gcloud as well.
On Mon, Aug 8, 2022 at 11:42 AM Léo Pradel @.***> wrote:
It looks like #2362 https://github.com/ceramicnetwork/js-ceramic/issues/2362 is a duplicate of this one, @smrz2001 https://github.com/smrz2001 I think that the issue is happening on mac m1
— Reply to this email directly, view it on GitHub https://github.com/ceramicnetwork/js-ceramic/issues/2341#issuecomment-1208292848, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATDYKHVILZUQNWZ66U6IDP3VYETGNANCNFSM547JYBVQ . You are receiving this because you were mentioned.Message ID: @.***>
-- Richard Braman FHIRFLY v: 252-947-1035 Fly Health, LLC https://www.fhirfly.io/ipfs/QmSSyHvwbpry3QTMYCy86uQCMoKVNjRDykrUeogZo9cjAK/fhir/r4/Organization/did:ens:fhirly.eth https://fly.health
Mine happens on Docker in Gcloud as well.
Oh ok ☹️ Have you made sure to pull the latest image using docker pull
?
FYI, the Ceramic image now uses kubo v0. 15.0.