graphite-project / docker-graphite-statsd

Official Docker image for Graphite
MIT License
477 stars 174 forks source link

[BUG]: Error: Cannot find module '/opt/statsd/stats.js' #229

Open blade1989 opened 5 months ago

blade1989 commented 5 months ago

Please open bug only for Docker component here, if you want to do so for Graphite, please use graphite-web repo

Describe the bug When executing docker compose up, graphite does not allow querying metrcs.

With docker compose logs the below error is displayed during startup:

 ✔ Container graphite  Started                                                                                                                                                                                                                                                        10.2s 
graphite  | Started runsvdir, PID is 46
graphite  | wait for processes to start....
graphite  | /usr/sbin/crond 4.5 dillon's cron daemon, started with loglevel notice
graphite  | node:internal/modules/cjs/loader:1031
graphite  |   throw err;
graphite  |   ^
graphite  | 
graphite  | Error: Cannot find module '/opt/statsd/stats.js'
graphite  |     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
graphite  |     at Function.Module._load (node:internal/modules/cjs/loader:873:27)
graphite  |     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
graphite  |     at node:internal/main/run_main_module:22:47 {
graphite  |   code: 'MODULE_NOT_FOUND',
graphite  |   requireStack: []
graphite  | }
graphite  | Starting carbon-cache (instance a)

To Reproduce docker compose pull the latest version, and then up -

Expected behavior

Make it so that Grafana can query the data.

Environment (please complete the following information):

Additional context Add any other context about the problem here.

deniszh commented 3 weeks ago

@blade1989 : you should mount /opt/statsd/config and not whole /opt/statsd