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

Failed to initialise influx #25

Open
MarcoFaul opened this issue Nov 5, 2019 · 2 comments
Open

Failed to initialise influx #25

MarcoFaul opened this issue Nov 5, 2019 · 2 comments

Comments

@MarcoFaul
Copy link

Relevant code or config

 influxdb:
    image: "influxdb:latest"
    ports:
      - 8086:8086
    environment:
      - INFLUXDB_ADMIN_USER=<USER>
      - INFLUXDB_ADMIN_PASSWORD=<PASSWORD>
    volumes:
      - ./influxdb:/var/lib/influxdb

  garie-lighthouse:
    image: "garie/lighthouse"
    ports:
      - 3003:3000
    environment:
      - HOST=influxdb
    volumes:
      - ./garie-config.json:/usr/src/garie-lighthouse/config.json
      - ./plugins/garie-lighthouse/reports:/usr/src/garie-lighthouse/reports
      - ./plugins/garie-lighthouse/logs:/usr/src/garie-lighthouse/logs
    depends_on:
      - influxdb

  garie-browsertime:
    image: "garie/browsertime"
    ports:
      - 3001:3000
    environment:
      - HOST=influxdb
      - REPORT_DIR=./plugins/garie-browsertime
    volumes:
      - ./garie-config.json:/usr/src/garie-browsertime/config.json
      - ./plugins/garie-browsertime/reports:/usr/src/garie-browsertime/reports
      - ./plugins/garie-browsertime/logs:/usr/src/garie-browsertime/logs
      - /var/run/docker.sock:/run/docker.sock

    depends_on:
      - influxdb

What you did:

What happened:

`root@Grafana-1:~/grafana/docker# docker logs docker_garie-lighthouse_1

[email protected] start /usr/src/garie-lighthouse
node ./src/index.js

Application listening on port 3000
(node:27) UnhandledPromiseRejectionWarning: Failed to initialise influx
(node:27) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:27) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

[email protected] start /usr/src/garie-lighthouse
node ./src/index.js

Application listening on port 3000
(node:17) UnhandledPromiseRejectionWarning: Failed to initialise influx
(node:17) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:17) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
root@Grafana-1:~/grafana/docker#`

Reproduction repository:

Problem description:
I saw that the Grafana dashboard has no data since 30days…
The Connection from Grafana to the influx db is successful.
Would be awesome if someone can give me a hint

@dirsta4p
Copy link

I get the same error, did you find any solution?

@GerardSmit
Copy link

This is because the function is async and returns a promise. For more information see my comment in issue #24 (comment).

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

3 participants