evcc-io / evcc

Sonne tanken ☀️🚘
https://evcc.io
MIT License
3.32k stars 606 forks source link

EVCC Config test successfull - service start however fails: missing loadpoints #16195

Closed Saphirim closed 1 day ago

Saphirim commented 1 day ago

Describe the bug

I followed the debian install guide putting EVCC on a LXC debian container hosted on Proxmox.

I created a config file using the evcc cli.

I sucessfully tested the creatd config with evcc -c evcc.yaml

After moving the evcc.yaml file to /etc and starting the evcc service, the UI, Logs and systemctl status evcc show the following error:

[main ] FATAL 2024/09/18 07:58:02 failed configuring loadpoints: missing loadpoints
[main ] FATAL 2024/09/18 07:58:02 will attempt restart in: 15m0s

The used components are:

The config as created by the evcc configure command is attached below.

Log details

[main ] INFO 2024/09/18 07:58:00 evcc 0.130.11
[main ] INFO 2024/09/18 07:58:00 using config file: /evcc.yaml
[db ] INFO 2024/09/18 07:58:00 using sqlite database: /var/lib/evcc/evcc.db
[main ] INFO 2024/09/18 07:58:00 listening at :7070
[main ] FATAL 2024/09/18 07:58:02 failed configuring loadpoints: missing loadpoints
[main ] FATAL 2024/09/18 07:58:02 will attempt restart in: 15m0s

Config

# open evcc at http://evcc.local:7070
network:
  schema: http
  host: evcc.local # .local suffix announces the hostname on MDNS
  port: 7070

log: debug
levels:
  cache: error

# unique installation id
plant: 34f4821cc3eca0de0841c025e918bc427780bc3adc59058adcd1cdd06e55ab48

interval: 30s # control cycle interval

meters:
- type: template
  template: fronius-gen24 
  usage: grid  
  host: 192.168.1.XXX  
  port: 502  
  name: grid1
- type: template
  template: fronius-gen24 
  usage: pv  
  host: 192.168.1.XXX  
  port: 502  
  name: pv2
- type: template
  template: fronius-gen24 
  usage: battery  
  host: 192.168.1.XXX  
  port: 502  
  name: battery3

chargers:
- type: template
  template: fronius-wattpilot 
  host: 192.168.1.XXX  
  password: NotTheRealdPassword
  name: wallbox4

loadpoints:
- title: Einfahrt
  charger: wallbox4
  mode: pv

site:
  title: Ada18
  meters:
    grid: grid1
    pv:
    - pv2
    battery:
    - battery3

What type of operating system are you running?

Linux

Nightly build

Version

evcc version 0.130.11

VolkerK62 commented 1 day ago

das Log sagt dir, welche yaml benutzt wird. [main ] INFO 2024/09/18 07:58:00 using config file: /evcc.yaml

Saphirim commented 1 day ago

Danke für den Hinweis!

Ist das empfohlene Vorgehen, die gewünschte evcc.yaml unter / zu verschieben? Oder kann ich meine EVCC-Instanz so konfigurieren, dass aut /etc/evcc.yaml zugegriffen wird?

jennes commented 1 day ago

In / hat die evcc.yaml ganz sicher nichts verloren, es sei denn, Du arbeitest in einem Docker-Container oder so. Ich gehe davon aus, dass Du evcc per systemd oder so startest? Dann musst Du der systemd-Unit auch sagen: ExecStart = /pfad/zu/evcc -c /etc/evcc.yaml

Saphirim commented 1 day ago

In / hat die evcc.yaml ganz sicher nichts verloren,...

Geht mir genauso.

Solved the issue by editing the service definition file located under /usr/lib/systemd/system/evcc.service like so:

ExecStart=/usr/bin/evcc -c /etc/evcc.yaml

-> systemctl daemon-reload -> systemctl start evcc

Still wondering however why the default location was below /, seems like an odd out of the box setting.

jennes commented 1 day ago

Solved the issue by editing the service definition file located under /usr/lib/systemd/system/evcc.service like so:

ExecStart=/usr/bin/evcc -c /etc/evcc.yaml

-> systemctl daemon-reload -> systemctl start evcc

Still wondering however why the default location was below /, seems like an odd out of the box setting.

evcc sucht beim Start im aktuellen Verzeichnis. Beim Start aus systemd heraus ist das eben /, was aus verschiedenen Gründen beim Systemstart tatsächlich sinnvoll ist.