evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Influxdb "unauthorized access"

Open wierer-sigi2 opened this issue 1 year ago • 1 comments

Describe the bug

EVCC: v0.203.6 Proxmox LXC Container LINUX 12 InfluxDB v2.7.11

I have added the influx db to the cvcc.yaml:

influx:
  url: http://192.168.178.36:8086
  database: evcc
  token: 'API-TOKEN'
  org: WBH

generated in influxdb a bucket "evcc" and generated and "api-token" for evcc.

And always get the error message: [influx] ERROR 2025/05/19 14:29:56 unauthorized: unauthorized access [influx] ERROR 2025/05/19 14:29:57 unauthorized: unauthorized access [influx] ERROR 2025/05/19 14:30:26 unauthorized: unauthorized access

Compared multiple time the API-Token, deleted and try a new one, without any change.

With help of Gemini AI, we try to write test data, this worked on the first try successfully:

curl -i -XPOST 'http://192.168.178.36:8086/api/v2/write?org=WBH&bucket=evcc&precision=ns'
-H 'Authorization: 'Token API-TOKEN''
-H 'Content-Type: application/x-www-form-urlencoded'
--data-raw 'test_evcc,host=evcc value=1i'

Steps to reproduce

  1. always

...

Configuration details

influx:
  url: http://192.168.178.36:8086
  database: evcc
  token: 'API-TOKEN'
  org: WBH

Log details

[influx] ERROR 2025/05/19 14:29:56 unauthorized: unauthorized access
[influx] ERROR 2025/05/19 14:29:57 unauthorized: unauthorized access
[influx] ERROR 2025/05/19 14:30:26 unauthorized: unauthorized access

What type of operating system or environment does evcc run on?

Linux

External automation

  • [x] I have made sure that no external automation like HomeAssistant or Node-RED is active or accessing any of the mentioned devices when this issue occurs.

Nightly build

  • [x] I have verified that the issue is reproducible with the latest nightly build

Version

0.203.6

wierer-sigi2 avatar May 19 '25 12:05 wierer-sigi2

Works fine for me, no idea, sorry:

influx:
  url: http://influxdb2:8086
  database: evcc
  org: home
  token: Z-a9ns...==

andig avatar May 19 '25 18:05 andig