Error running ceramic daemon

I am getting started with the protocol and I am facing an issue running the local ceramic daemon.
I was just following the getting started docs
And this is the error I get:

$ ceramic daemon
[2022-09-21T22:41:58.096Z] IMPORTANT: Starting Ceramic Daemon at version 2.7.0 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": "/C:/Users/facun/.ceramic/statestore/"
  },
  "indexing": {
    "db": "sqlite:///C:/Users/facun/.ceramic/indexing.sqlite",
    "allow-queries-before-historical-sync": true,
    "models": []
  }
}
Ceramic daemon failed to start up:
Error: ENOENT: no such file or directory, mkdir '\C:\Users\facun\.ceramic\statestore\testnet-clay'
    at Module.mkdirSync (node:fs:1334:3)
    at LevelStateStore.open (file:///C:/Users/facun/AppData/Roaming/npm/node_modules/@ceramicnetwork/cli/node_modules/@ceramicnetwork/core/lib/store/level-state-store.js:29:16)
    at PinStore.open (file:///C:/Users/facun/AppData/Roaming/npm/node_modules/@ceramicnetwork/cli/node_modules/@ceramicnetwork/core/lib/store/pin-store.js:13:25)
    at PinStoreFactory.createPinStore (file:///C:/Users/facun/AppData/Roaming/npm/node_modules/@ceramicnetwork/cli/node_modules/@ceramicnetwork/core/lib/store/pin-store-factory.js:42:18)
    at new Ceramic (file:///C:/Users/facun/AppData/Roaming/npm/node_modules/@ceramicnetwork/cli/node_modules/@ceramicnetwork/core/lib/ceramic.js:91:50)
    at Function.create (file:///C:/Users/facun/AppData/Roaming/npm/node_modules/@ceramicnetwork/cli/lib/ceramic-daemon.js:172:25)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Function.createDaemon (file:///C:/Users/facun/AppData/Roaming/npm/node_modules/@ceramicnetwork/cli/lib/ceramic-cli-utils.js:126:24)
    at async Command.<anonymous> (file:///C:/Users/facun/AppData/Roaming/npm/node_modules/@ceramicnetwork/cli/lib/bin/ceramic.js:28:5) {
  errno: -4058,
  syscall: 'mkdir',
  code: 'ENOENT',
  path: '\\C:\\Users\\facun\\.ceramic\\statestore\\testnet-clay'
}

I am running on Windows on an elevated powershell terminal.

For running Ceramic on Windows we recommend using WSL (Windows Subsystem for Linux). Can you give that a try?

2 Likes