Error setting up CHT watchdog

Hi,
I am following tutorial on CHT Watchdog Setup but getting following error when I run docker compose up -d :
`

Error response from daemon: failed to mount local volume: mount ./grafana/data:/var/lib/docker/volumes/cht-watchdog_grafana-data/_data, flags: 0x1000: no such file or directory

`
I did look into similar issue here from @cliff . But still could not resolve the issue after editing .env file and deleting volumes and containers. Can someone please help?

Just to confirm, these are the steps (in order) that I think need to happen to resolve the error you posted:

  • Stop everything and delete any existing volumes: docker compose down -v
    • Make sure your volumes are gone: docker volume ls | grep grafana
  • Make sure that your ./grafana/data directory exists (confirm using the absolute path. E.g. ls /home/me/watchdog/grafana/data)
  • Update the GRAFANA_DATA envar in your .env file to be the absolute path to your Grafana data directory
  • Start Watchdog again

If you still get an error after all that, can you double-check what the actual error is and see if it is different from the one posted above?

1 Like

thanks @jkuester this resolved the issue.

1 Like