Unable to connect to /dns4/go-ipfs-ceramic-public

Hi,

I am trying to spin up my ceramic-node using docker, I am getting this error:

Ceramic daemon failed to start up:
ceramic-node  | FetchError: request to https://cas-clay.3boxlabs.com/api/v0/service-info/supported_chains failed, reason: connect ETIMEDOUT 13.225.195.93:443
ceramic-node  |     at ClientRequest.<anonymous> (/js-ceramic/node_modules/node-fetch/lib/index.js:1461:11)
ceramic-node  |     at ClientRequest.emit (node:events:513:28)
ceramic-node  |     at ClientRequest.emit (node:domain:489:12)
ceramic-node  |     at TLSSocket.socketErrorListener (node:_http_client:494:9)
ceramic-node  |     at TLSSocket.emit (node:events:513:28)
ceramic-node  |     at TLSSocket.emit (node:domain:489:12)
ceramic-node  |     at emitErrorNT (node:internal/streams/destroy:157:8)
ceramic-node  |     at emitErrorCloseNT (node:internal/streams/destroy:122:3)
ceramic-node  |     at processTicksAndRejections (node:internal/process/task_queues:83:21) {
ceramic-node  |   type: 'system',
ceramic-node  |   errno: 'ETIMEDOUT',
ceramic-node  |   code: 'ETIMEDOUT'
ceramic-node  | }

Here is the complete log output

ceramic-node  | (node:1) NOTE: We are formalizing our plans to enter AWS SDK for JavaScript (v2) into maintenance mode in 2023.
ceramic-node  | 
ceramic-node  | Please migrate your code to use AWS SDK for JavaScript (v3).
ceramic-node  | For more information, check the migration guide at https://a.co/7PzMCcy
ceramic-node  | (Use `node --trace-warnings ...` to show where the warning was created)
ceramic-node  | [2023-04-03T16:15:32.884Z] IMPORTANT: Starting Ceramic Daemon at version 2.29.0 with config: 
ceramic-node  | {
ceramic-node  |   "anchor": {},
ceramic-node  |   "http-api": {
ceramic-node  |     "cors-allowed-origins": [
ceramic-node  |       ".*"
ceramic-node  |     ],
ceramic-node  |     "admin-dids": [ ... ]
ceramic-node  |   },
ceramic-node  |   "ipfs": {
ceramic-node  |     "mode": "remote",
ceramic-node  |     "host": "http://go-ipfs:5001"
ceramic-node  |   },
ceramic-node  |   "logger": {
ceramic-node  |     "log-level": 2,
ceramic-node  |     "log-to-files": false
ceramic-node  |   },
ceramic-node  |   "metrics": {
ceramic-node  |     "metrics-exporter-enabled": false
ceramic-node  |   },
ceramic-node  |   "network": {
ceramic-node  |     "name": "testnet-clay"
ceramic-node  |   },
ceramic-node  |   "node": {},
ceramic-node  |   "state-store": {
ceramic-node  |     "mode": "fs",
ceramic-node  |     "local-directory": "/root/.ceramic/.ceramic/statestore/"
ceramic-node  |   },
ceramic-node  |   "indexing": {
ceramic-node  |     "db": "postgres://postgres:postgrespassword@postgres:5432/postgres",
ceramic-node  |     "allow-queries-before-historical-sync": true,
ceramic-node  |     "disable-composedb": false,
ceramic-node  |     "enable-historical-sync": false
ceramic-node  |   }
ceramic-node  | }
ceramic-node  | [2023-04-03T16:15:33.024Z] IMPORTANT: Connecting to IPFS node available as /ip4/127.0.0.1/tcp/4001/p2p/QmejMBH5AM81J7nzpcxzuzXNEcgMWxRVbut8TjGTYDVymo, /ip4/127.0.0.1/tcp/8081/ws/p2p/QmejMBH5AM81J7nzpcxzuzXNEcgMWxRVbut8TjGTYDVymo, /ip4/172.26.0.2/tcp/4001/p2p/QmejMBH5AM81J7nzpcxzuzXNEcgMWxRVbut8TjGTYDVymo, /ip4/172.26.0.2/tcp/8081/ws/p2p/QmejMBH5AM81J7nzpcxzuzXNEcgMWxRVbut8TjGTYDVymo
ceramic-node  | [2023-04-03T16:15:33.192Z] IMPORTANT: Initializing PostgreSQL connection
ceramic-node  | [2023-04-03T16:15:33.269Z] IMPORTANT: Connecting to ceramic network 'testnet-clay' using pubsub topic '/ceramic/testnet-clay'
ceramic-node  | [2023-04-03T16:16:33.699Z] WARNING: Can not connect to /dns4/go-ipfs-ceramic-public-clay-external.3boxlabs.com/tcp/4011/ws/p2p/QmWiY3CbNawZjWnHXx3p3DXsg21pZYTj4CRY1iwMkhP8r3
ceramic-node  | [2023-04-03T16:16:33.703Z] WARNING: TimeoutError: Request timed out
ceramic-node  | [2023-04-03T16:17:33.744Z] WARNING: Can not connect to /dns4/go-ipfs-ceramic-private-clay-external.3boxlabs.com/tcp/4011/ws/p2p/QmQotCKxiMWt935TyCBFTN23jaivxwrZ3uD58wNxeg5npi
ceramic-node  | [2023-04-03T16:17:33.749Z] WARNING: TimeoutError: Request timed out
ceramic-node  | [2023-04-03T16:18:33.826Z] WARNING: Can not connect to /dns4/go-ipfs-ceramic-private-cas-clay-external.3boxlabs.com/tcp/4011/ws/p2p/QmbeBTzSccH8xYottaYeyVX8QsKyox1ExfRx7T1iBqRyCd
ceramic-node  | [2023-04-03T16:18:33.828Z] WARNING: TimeoutError: Request timed out
ceramic-node  | [2023-04-03T16:18:48.627Z] WARNING: Did not receive any pubsub messages in more than 60000ms. IPFS did not provide any internal messages, please check your IPFS configuration.
ceramic-node  | [2023-04-03T16:20:02.948Z] WARNING: Did not receive any pubsub messages in more than 60000ms. IPFS did not provide any messages, please check your IPFS configuration and ensure your node is well connected to the rest of the Ceramic network.
ceramic-node  | [2023-04-03T16:20:47.001Z] IMPORTANT: Closing Ceramic instance
ceramic-node  | [2023-04-03T16:20:47.139Z] IMPORTANT: Ceramic instance closed successfully
ceramic-node  | Ceramic daemon failed to start up:
ceramic-node  | FetchError: request to https://cas-clay.3boxlabs.com/api/v0/service-info/supported_chains failed, reason: connect ETIMEDOUT 13.225.195.93:443
ceramic-node  |     at ClientRequest.<anonymous> (/js-ceramic/node_modules/node-fetch/lib/index.js:1461:11)
ceramic-node  |     at ClientRequest.emit (node:events:513:28)
ceramic-node  |     at ClientRequest.emit (node:domain:489:12)
ceramic-node  |     at TLSSocket.socketErrorListener (node:_http_client:494:9)
ceramic-node  |     at TLSSocket.emit (node:events:513:28)
ceramic-node  |     at TLSSocket.emit (node:domain:489:12)
ceramic-node  |     at emitErrorNT (node:internal/streams/destroy:157:8)
ceramic-node  |     at emitErrorCloseNT (node:internal/streams/destroy:122:3)
ceramic-node  |     at processTicksAndRejections (node:internal/process/task_queues:83:21) {
ceramic-node  |   type: 'system',
ceramic-node  |   errno: 'ETIMEDOUT',
ceramic-node  |   code: 'ETIMEDOUT'
ceramic-node  | }
ceramic-node exited with code 1

thanks for your help!

Hey @Ryad. Are you running this on a cloud instance? If yes, I wonder if you have some networking restrictions set for your instance.

Hi @Justina ,

I am running this locally with docker.

Here are the relevant service in my docker compose:


  go-ipfs:
    container_name: go-ipfs
    platform: linux/amd64
    ports:
      - '5001:5001'
      - '8011:8011'
    volumes:
      - ipfs:/data/ipfs'
    image: ceramicnetwork/go-ipfs-daemon:latest
  serverless:
    restart: always
    env_file: .env.dev
    build:
      dockerfile: ./apps/serverless/Dockerfile
    container_name: api-platform
    volumes:
      - ./apps/serverless:/app/apps/serverless
      - /app/apps/serverless/node_modules
    ports:
      - 3000:3000
  ceramic-node:
    image: ceramicnetwork/js-ceramic:latest
    platform: linux/amd64
    container_name: ceramic-node
    environment:
      NODE_ENV: development
    command: "--ipfs-api http://go-ipfs:5001"
    ports:
      - "7007:7007"
    volumes:
      - './packages/ceramic-node/composedb.docker.local.config.json:/root/.ceramic/daemon.config.json'
      - 'ceramic:/root/.ceramic/logs'
      - 'ceramic:/root/.ceramic/statestore'

From the logs it looks like all of your network requests to external URLs are all timing out. This does seem to indicate some kind of error with your networking configuration. If you just run ping google.com in a terminal on that machine do you get a similar error?