Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ceramic Daemon fails to start IPFS in Docker container #2341

Open
fhirfly opened this issue Jul 29, 2022 · 7 comments
Open

Ceramic Daemon fails to start IPFS in Docker container #2341

fhirfly opened this issue Jul 29, 2022 · 7 comments
Assignees

Comments

@fhirfly
Copy link

fhirfly commented Jul 29, 2022

Describe the bug
Ceramic Daemon fails to start IPFS in Docker container. This is a known issue: ipfs/kubo#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' +

@fhirfly
Copy link
Author

fhirfly commented Jul 29, 2022

@smrz2001 smrz2001 self-assigned this Aug 2, 2022
@smrz2001
Copy link
Contributor

smrz2001 commented Aug 2, 2022

@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

@pradel
Copy link
Contributor

pradel commented Aug 8, 2022

It looks like #2362 is a duplicate of this one, @smrz2001 I think that the issue is happening on mac m1

@smrz2001
Copy link
Contributor

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.

@fhirfly
Copy link
Author

fhirfly commented Oct 11, 2022 via email

@smrz2001
Copy link
Contributor

smrz2001 commented Oct 11, 2022

Mine happens on Docker in Gcloud as well.

Oh ok ☹️ Have you made sure to pull the latest image using docker pull?

@smrz2001
Copy link
Contributor

FYI, the Ceramic image now uses kubo v0. 15.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants