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

Crash after changing region #30

Open
ricariel opened this issue Oct 31, 2023 · 5 comments
Open

Crash after changing region #30

ricariel opened this issue Oct 31, 2023 · 5 comments

Comments

@ricariel
Copy link
Contributor

Got connection errors when running in online mode:
log

After a while the container is unhealthy.

The Solarflow is visible in the zendure app and is working correct. Region is EU.
Environment Variables:

TRAEFIK_RULE=Host(`domain`)
ZEN_USER=user@email
ZEN_PASSWD=password
MQTT_HOST=ipofmqtt
ZEN_MQTT=mqtteu.zen-iot.com
COMMAND= --online
SF_DEVICE_ID=deviceid
SMARTMETER_TOPIC=/tele/

Snippet of compose file:

version: '3.8'
services:
solarflow-dashboard:
image: rbrandstaedter/solarflow-statuspage:latest
command: ${COMMAND:-" --offline"}
restart: unless-stopped
environment:
- ZEN_USER=${ZEN_USER}
- ZEN_PASSWD=${ZEN_PASSWD}
- ZEN_MQTT=${ZEN_MQTT:-'mq.zen-iot.com'}
- MQTT_HOST=${MQTT_HOST}
- MQTT_USER=${MQTT_USER:-"none"}
- MQTT_PWD=${MQTT_PWD:-"none"}
- MQTT_PORT=${MQTT_PORT:-1883}
volumes:
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
networks:
- default
- docker_gwbridge
labels:
- traefik.enable=true
- traefik.http.routers.solarflow.entrypoints=websecure
- traefik.http.routers.solarflow.rule=${TRAEFIK_RULE}
- traefik.http.routers.solarflow.middlewares=localnet@file
- traefik.http.routers.solarflow.tls=true
- traefik.http.routers.solarflow.tls.certresolver=myresolver
- traefik.http.services.solarflow.loadbalancer.server.port=5000
- traefik.docker.network=docker_gwbridge

networks:
- default:
driver: bridge
driver_opts:
com.docker.network.driver.mtu: 1400
docker_gwbridge:
external: true
@reinhard-brandstaedter
Copy link
Owner

Try specifying the correct ZenAPI URL for EU.
Zendure decided to also separate the logins completely from the global endpoint:
See example config: https://github.com/reinhard-brandstaedter/solarflow-statuspage/blob/master/src/config.ini

@ricariel
Copy link
Contributor Author

Sorry. In test environment this was set. Here is the log with ZEN_API set

log

@TheRedChris
Copy link

TheRedChris commented Nov 25, 2023

Hey, is there already a solution for this?
My log file looks like @ricariel last one, but i got no device list so the brackets are empty.<
Thx for your help!

@tuxianerDE
Copy link

Problem appears to be that the URL handling of Zendure is inconsistent. the base URL of Zendures MQTT ends with /v2 however the EU servers ends with /eu There is a discussion in another issue that appears to be related. When the connection was swichted back to the defualt server that values started to appear again.

@tuxianerDE
Copy link

Hey is still issue still existing?

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