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

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

Open
blade1989 opened this issue Mar 27, 2024 · 1 comment
Open

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

blade1989 opened this issue Mar 27, 2024 · 1 comment
Labels

Comments

@blade1989
Copy link

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):

  • OS flavor: [e.g. Ubuntu, CentOS, Debian, Windows 10, MacOS etc] Ubuntu 20.04.6 LTS, Docker Engine - Community Version: 25.0.3
  • Image version [e.g. 1.1.5-7, 1.1.6-1, etc]
  • Custom volumes mounted [e.g. None, /opt/graphite/conf, /opt/graphite/storage etc]: volumes:
    • /var/run/docker.sock:/var/run/docker.sock
    • /data/graphite/configs:/opt/graphite/conf
    • /data/graphite/data:/opt/graphite/storage
    • /data/graphite/statsd:/opt/statsd

Additional context
Add any other context about the problem here.

@blade1989 blade1989 added the bug label Mar 27, 2024
@deniszh
Copy link
Member

deniszh commented Aug 25, 2024

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

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

No branches or pull requests

2 participants