Giter VIP home page Giter VIP logo

Comments (4)

charlie-haley avatar charlie-haley commented on August 22, 2024 1

It looks like there were some breaking changes to the API in 5.0.30, I just upgraded my controller and can replicate the issue you mention. I'll work on adding support for >=5.0.30

from omada_exporter.

charlie-haley avatar charlie-haley commented on August 22, 2024

Hey, thanks for raising this issue! The image is currently built for arm64, amd64 and armv7, I'm having no issues running the image on a RPI4 on my end (albeit on kubernetes)

Could you maybe send over some more details on how you're running the container to help me recreate it on my end (docker run, docker-compose etc.)? Thanks!

from omada_exporter.

codersaur avatar codersaur commented on August 22, 2024

ok, weird, I swear dockerhub was only showing amd64 tags yesterday. So the arch is probably not the issue here after all...

I have played around with the environment variables and have managed to get rid of the panic. It seems that if the protocol is omitted from OMADA_HOST or if an IP address is used, or if an incorrect port is used, then it causes the panic and signal SIGSEGV (possibly some better input handling wouldn't go amiss). With better formatting of the environment variables, I now get the following errors repeating in the log:

time="2022-01-27T23:49:17Z" level=info msg="Not logged in, logging in with user: prometheus..."
time="2022-01-27T23:49:17Z" level=error msg="Failed to login: %!s()"
time="2022-01-27T23:49:17Z" level=error msg="Failed to login: %!s()"

So this would appear to be a completely different issue now.

I'm using the following docker-compose config:

version: "2.4"

services:
...
omada-exporter:
container_name: omada-exporter
image: chhaley/omada_exporter:latest
restart: unless-stopped
depends_on:
- "omada-controller"
#ports:
# # Port mapping not needed as only used by influxdb/telegraf.
# - "9202:9202"
env_file:
- .omada-exporter.env

The .omada-exporter.env file contains:

OMADA_HOST=https://omada-controller:8043
OMADA_USER=prometheus
OMADA_PASS=x
OMADA_SITE=Default
OMADA_EXPORTER_PORT=9202
OMADA_INSECURE=true

Username and password double-checked. I've also checked from other containers that they can gets a response from https://omada-controller:8043/api/v2/loginStatus

I'm running "mbentley/omada-controller:latest" on the same docker network and it's reporting version "5.0.30" in the web GUI.

The logs on the omada controller don't record the failed logins from the omada-exporter container, whereas they do record a manually-generated failed login. So I'm wondering if the omada-exporter login request is not compatible with the latest version of the controller...?

Any ideas?

from omada_exporter.

codersaur avatar codersaur commented on August 22, 2024

Confirmed resolved, I'm now able to get metrics. Thanks. Although I needed to update the docker image to 'chhaley/omada-exporter' instead of 'chhaley/omada_exporter'.

from omada_exporter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.