john30 / ebusd

daemon for communication with eBUS heating systems
GNU General Public License v3.0
592 stars 136 forks source link

Ebusd container crash after start #1024

Open mefisto22 opened 1 year ago

mefisto22 commented 1 year ago

Description

Container crash after start. I readed github issueses tried all off solutions, but non working. IPv6 disabled on host's sysctl.conf file. This will not the same issue like #751

Actual behavior

container crash

Expected behavior

download config and start pushing mqtt messages to mqtt broker

ebusd version

current source from git

ebusd arguments

-e 'EBUSD_LOG=all:debug'

Operating system

Debian 12 (Bookworm) / Ubuntu 22-23 / Raspberry Pi OS 12 (including lite)

CPU architecture

x64

Dockerized

latest

Hardware interface

adapter 3.0 WiFi

Related integration

MQTT generic

Logs

sudo docker run --name=ebusd -v /etc/localtime:/etc/localtime:ro -p 8888 -e 'EBUSD_LOG=all:debug' john30/ebusd --scanconfig -d ens:192.168.11.2:9999 --mqttport=1883 --mqtthost=192.168.11.32 2023-09-24 19:30:01.435 [network debug] SSL state 0=before SSL initialization: type 0x10=start, val 1=? 2023-09-24 19:30:01.435 [network debug] SSL state 0=before SSL initialization: type 0x1001=loop,connect, val 1=? 2023-09-24 19:30:01.435 [network debug] SSL BIO state 2 res -1 2023-09-24 19:30:09.489 [network debug] SSL BIO state 3 res 1 2023-09-24 19:30:09.489 [network debug] SSL BIO state 4 res 3 2023-09-24 19:30:09.489 [network debug] SSL BIO state 6 res 0 2023-09-24 19:30:09.489 [network debug] SSL state 12=SSLv3/TLS write client hello: type 0x1002=exit,connect, val -1=? 2023-09-24 19:30:09.489 [network error] HTTP connect: timed out after 2 sec 2023-09-24 19:30:09.489 [network error] HTTP new_ssl_conn: 336462231=shutdown while in init 2023-09-24 19:30:09.489 [main error] invalid configPath URL (connect)

curl -vvv https://cfg.ebusd.eu

openssl s_client -connect cfg.ebusd.eu:443 CONNECTED(00000003) depth=2 C = US, O = Internet Security Research Group, CN = ISRG Root X1 verify return:1 depth=1 C = US, O = Let's Encrypt, CN = R3 verify return:1 depth=0 CN = cfg.ebusd.eu verify return:1

john30 commented 1 year ago

maybe just a timeout. check how long curl takes to get a response

mefisto22 commented 1 year ago

~$ curltime cfg.ebusd.eu time_namelookup: 0.002232s time_connect: 0.024950s time_appconnect: 0.000000s time_pretransfer: 0.025007s time_redirect: 0.000000s time_starttransfer: 0.049609s

      time_total:  0.049673s
john30 commented 1 year ago

then try on your container host with including the files in the image instead. if it then works, it is surely a matter of the volume/driver/bind

c-huetter commented 11 months ago

Moved to a separate issue.

john30 commented 11 months ago

@c-huetter clearly this is a completely different topic, so don't misuse an existing issue for such. anyway: you missed the environment settings of the container that influence this

c-huetter commented 11 months ago

Makes sense, I'll open a new issue including the environment setting.

mefisto22 commented 8 months ago

then try on your container host with including the files in the image instead. if it then works, it is surely a matter of the volume/driver/bind

when i download the files manually, container works

john30 commented 1 month ago

I still can't reproduce it. please check with the latest john30/ebusd:devel tag