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

Docker Compose Instructions & example files don't work #22

Open
h4rryb opened this issue Oct 17, 2024 · 3 comments
Open

Docker Compose Instructions & example files don't work #22

h4rryb opened this issue Oct 17, 2024 · 3 comments

Comments

@h4rryb
Copy link

h4rryb commented Oct 17, 2024

Hello,

I've tried following your insttructions from the website, and from https://github.com/unpoller/unpoller/tree/master/init/docker, but utilising the provided files, and just adding in my UniFi controller credentials doesn't work. It's able to connect to the UniFi device, and Grafana is able to start, but the terminal continuously gets the following error message, and I'm not able to connect the InfluxDB to Grafana - any ideas?

influxdb2client E! Write error: 404 Not Found: database not found: "unpoller"

@rossdargan
Copy link

Yeah, the documentation is pretty poor. That is a guide for using influxdb 2 (which the documentation is saying don't use).
I had to switch to this:

  influxdb:
    restart: always
    image: influxdb:1.8
    ports:
      - 8086:8086
    volumes:
      - /docker/unifipoller/influxdb-storage:/var/lib/influxdb
    environment:
      - INFLUXDB_DB=${INFLUXDB_DB}
      - INFLUXDB_HTTP_AUTH_ENABLED=${INFLUXDB_HTTP_AUTH_ENABLED}
      - INFLUXDB_ADMIN_USER=${INFLUXDB_ADMIN_USER}
      - INFLUXDB_ADMIN_PASSWORD=${INFLUXDB_ADMIN_PASSWORD}   

I then had to follow the instructions to manually create the user and db. I also couldn't get the token working so I set http_auth_enabled to false.

After that I did get it all working. good luck!

@devinbaeten
Copy link

devinbaeten commented Dec 12, 2024

I was able to get it to work with the current template outlined in the docs for Docker Compose, but I had to make these changes:

  1. Change ENV var INFLUXDB_HTTP_AUTH_ENABLED to false

  2. [Post-deployment] Create the unpoller table in influx db via

    docker exec -it <container_name> influx
    CREATE DATABASE unpoller;

@platinummonkey platinummonkey transferred this issue from unpoller/unpoller Dec 31, 2024
@bondskin
Copy link

bondskin commented Jan 4, 2025

this made my day, I was searching for hours and your fix, @devinbaeten , was the final & needed solution.
Thank you!

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

4 participants