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

Possible incorrect documentation for STATSD config #10

Open
jdeisenberg opened this issue Apr 30, 2020 · 0 comments
Open

Possible incorrect documentation for STATSD config #10

jdeisenberg opened this issue Apr 30, 2020 · 0 comments

Comments

@jdeisenberg
Copy link

The README.md file does not say that STATSD_HOST and STATSD_PORT are required, but f I leave them out of my environment variables in this script:

#!/bin/bash
export ECOSYSTEM_KEY="astringthatisactually32byteslong"
export ECOSYSTEM_SECRET="astringthatisactually32byteslong"
export STATSD_HOST="127.0.0.1"
export STATSD_PORT=8125
export NODE_ENV="production"
export PORT=3000
npm start

I get this error:

> [email protected] start /var/canvas-rce
> node app.js

/var/canvas-rce/app/env.js:22
        throw EnvRequiredException.forVar(name);
        ^

EnvRequiredException: Environment variable "STATSD_HOST" is required
    at Function.forVar (/var/canvas-rce/app/exceptions/EnvRequiredException.js:7:12)
    at Object.require (/var/canvas-rce/app/env.js:22:36)
    at Object.module.exports.env [as stats] (/var/canvas-rce/config/stats.js:4:13)
    at Object.keys.forEach.key (/var/canvas-rce/app/config.js:14:65)
    at Array.forEach (<anonymous>)
    at Object.init (/var/canvas-rce/app/config.js:14:24)
    at make (/var/canvas-rce/node_modules/inja/index.js:19:32)
    at /var/canvas-rce/node_modules/inja/index.js:16:18
    at Array.map (<anonymous>)
    at make (/var/canvas-rce/node_modules/inja/index.js:15:41)
    at /var/canvas-rce/node_modules/inja/index.js:16:18
    at Array.map (<anonymous>)
    at make (/var/canvas-rce/node_modules/inja/index.js:15:41)
    at /var/canvas-rce/node_modules/inja/index.js:16:18
    at Array.map (<anonymous>)
    at make (/var/canvas-rce/node_modules/inja/index.js:15:41)
    at /var/canvas-rce/node_modules/inja/index.js:16:18
    at Array.map (<anonymous>)
    at make (/var/canvas-rce/node_modules/inja/index.js:15:41)
    at /var/canvas-rce/node_modules/inja/index.js:16:18
    at Array.map (<anonymous>)
    at Object.make (/var/canvas-rce/node_modules/inja/index.js:15:41)
    at Object.<anonymous> (/var/canvas-rce/app.js:8:28)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)

I am not running statsd, so what information should I put in here to make rce-api happy but not actually require the use of statsd?

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

No branches or pull requests

1 participant