ok. I found the ip by logging into the dongle and that showed me the MAC. I then reconfigured the docker-compose and re-ran but it constantly fails to start cleanly. I am in no doubt I’m doing somthing(s) wrong but am stumped atm.
My environment is an intel core-i3 running Debian Bullseye and I’m using compose with this file
(host mode is off because I have the IP and it would not start MQTT in that mode):
version: “3.5”
services:
givtcp:
image: britkat/giv_tcp-ma
container_name: givtcp
ports:
- “6345:6345/tcp”
environment:
- INVERTOR_IP=192.168.100.159
- NUMBATTERIES=1
restart: “no”
Attempting to bring it up gives me:
Starting givtcp … done
Attaching to givtcp
givtcp | /app/settings.py exists.
givtcp | Starting Mosquitto on port 1883
givtcp | Running Invertor read loop every 20s…
givtcp | Starting Gunicorn on port 6345
givtcp | 1645439329: mosquitto version 2.0.11 starting
givtcp | 1645439329: Using default config.
givtcp | 1645439329: Starting in local only mode. Connections will only be possible from clients running on this machine.
givtcp | 1645439329: Create a configuration file which defines a listener to allow remote access.
givtcp | 1645439329: For more details see Authentication methods | Eclipse Mosquitto
givtcp | 1645439329: Opening ipv4 listen socket on port 1883.
givtcp | 1645439329: Opening ipv6 listen socket on port 1883.
givtcp | 1645439329: Error: Address not available
givtcp | 1645439329: mosquitto version 2.0.11 running
givtcp | Traceback (most recent call last):
givtcp | File “/app/sched.py”, line 6, in
givtcp | from read import runAll
givtcp | File “/app/read.py”, line 8, in
givtcp | from HA_Discovery import HAMQTT
givtcp | ModuleNotFoundError: No module named ‘HA_Discovery’
givtcp | [2022-02-21 10:28:49 +0000] [9] [INFO] Starting gunicorn 20.1.0
givtcp | [2022-02-21 10:28:49 +0000] [9] [INFO] Listening at: http://0.0.0.0:6345 (9)
givtcp | [2022-02-21 10:28:49 +0000] [9] [INFO] Using worker: sync
givtcp | [2022-02-21 10:28:49 +0000] [10] [INFO] Booting worker with pid: 10
givtcp | [2022-02-21 10:28:49 +0000] [11] [INFO] Booting worker with pid: 11
givtcp | [2022-02-21 10:28:49 +0000] [10] [ERROR] Exception in worker process
givtcp | Traceback (most recent call last):
givtcp | File “/usr/local/lib/python3.10/site-packages/gunicorn/arbiter.py”, line 589, in spawn_worker
givtcp | worker.init_process()
givtcp | File “/usr/local/lib/python3.10/site-packages/gunicorn/workers/base.py”, line 134, in init_process
givtcp | self.load_wsgi()
givtcp | File “/usr/local/lib/python3.10/site-packages/gunicorn/workers/base.py”, line 146, in load_wsgi
givtcp | self.wsgi = self.app.wsgi()
givtcp | File “/usr/local/lib/python3.10/site-packages/gunicorn/app/base.py”, line 67, in wsgi
givtcp | self.callable = self.load()
givtcp | File “/usr/local/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py”, line 58, in load
givtcp | return self.load_wsgiapp()
givtcp | File “/usr/local/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py”, line 48, in load_wsgiapp
givtcp | return util.import_app(self.app_uri)
givtcp | File “/usr/local/lib/python3.10/site-packages/gunicorn/util.py”, line 359, in import_app
givtcp | mod = importlib.import_module(module)
givtcp | File “/usr/local/lib/python3.10/importlib/init.py”, line 126, in import_module
givtcp | return _bootstrap._gcd_import(name[level:], package, level)
givtcp | File “”, line 1050, in _gcd_import
givtcp | File “”, line 1027, in _find_and_load
givtcp | File “”, line 1006, in _find_and_load_unlocked
givtcp | File “”, line 688, in _load_unlocked
givtcp | File “”, line 883, in exec_module
givtcp | File “”, line 241, in _call_with_frames_removed
givtcp | File “/app/REST.py”, line 5, in
givtcp | import read as rd #grab passthrough functions from main read file
givtcp | File “/app/read.py”, line 8, in
givtcp | from HA_Discovery import HAMQTT
givtcp | ModuleNotFoundError: No module named ‘HA_Discovery’
givtcp | [2022-02-21 10:28:49 +0000] [10] [INFO] Worker exiting (pid: 10)
givtcp | [2022-02-21 10:28:49 +0000] [12] [INFO] Booting worker with pid: 12
givtcp | [2022-02-21 10:28:49 +0000] [11] [ERROR] Exception in worker process
givtcp | Traceback (most recent call last):
givtcp | File “/usr/local/lib/python3.10/site-packages/gunicorn/arbiter.py”, line 589, in spawn_worker
It says it can’t open 1833 for listening (nothing else is using that port and I am running as root) but then also says mosquito is running…
Appreciate it if you have any suggestions?
Thanks
Mike