It now gets further and kind of appears to start but it keeps getting worker timeouts:
Recreating givtcp_GivTCP_1 … done
Attaching to givtcp_GivTCP_1
GivTCP_1 | 2022-09-27 09:51:13,244 - startup - [CRITICAL] - No config directory exists, so creating it…
GivTCP_1 | 2022-09-27 09:51:13,245 - startup - [CRITICAL] - Running Redis
GivTCP_1 | 2022-09-27 09:51:13,245 - startup - [CRITICAL] - Setting up invertor: 1 of 1
GivTCP_1 | 2022-09-27 09:51:13,248 - startup - [CRITICAL] - Recreating settings.py for invertor 1
GivTCP_1 | 2022-09-27 09:51:13,249 - startup - [CRITICAL] - Running RQ worker to queue and process givernergy-modbus calls
GivTCP_1 | 2022-09-27 09:51:13,249 - startup - [CRITICAL] - Running Invertor read loop every 5s
GivTCP_1 | 2022-09-27 09:51:13,249 - startup - [CRITICAL] - Starting Gunicorn on port 6345
GivTCP_1 | [2022-09-27 09:51:13 +0100] [13] [INFO] Starting gunicorn 20.1.0
GivTCP_1 | [2022-09-27 09:51:13 +0100] [13] [INFO] Listening at: http://0.0.0.0:6345 (13)
GivTCP_1 | [2022-09-27 09:51:13 +0100] [13] [INFO] Using worker: sync
GivTCP_1 | [2022-09-27 09:51:13 +0100] [14] [INFO] Booting worker with pid: 14
GivTCP_1 | [2022-09-27 09:51:13 +0100] [15] [INFO] Booting worker with pid: 15
GivTCP_1 | [2022-09-27 09:51:13 +0100] [17] [INFO] Booting worker with pid: 17
GivTCP_1 | 2022-09-27 09:51:18,053 - read - [CRITICAL] - First time running so saving AC Charge status
GivTCP_1 | [2022-09-27 09:52:13 +0100] [13] [CRITICAL] WORKER TIMEOUT (pid:14)
GivTCP_1 | [2022-09-27 09:52:13 +0100] [14] [INFO] Worker exiting (pid: 14)
GivTCP_1 | [2022-09-27 09:52:13 +0100] [22] [INFO] Booting worker with pid: 22
GivTCP_1 | [2022-09-27 09:52:43 +0100] [13] [CRITICAL] WORKER TIMEOUT (pid:15)
GivTCP_1 | [2022-09-27 09:52:43 +0100] [15] [INFO] Worker exiting (pid: 15)
GivTCP_1 | [2022-09-27 09:52:43 +0100] [24] [INFO] Booting worker with pid: 24
GivTCP_1 | [2022-09-27 09:53:11 +0100] [13] [CRITICAL] WORKER TIMEOUT (pid:17)
GivTCP_1 | [2022-09-27 09:53:11 +0100] [17] [INFO] Worker exiting (pid: 17)
GivTCP_1 | [2022-09-27 09:53:11 +0100] [26] [INFO] Booting worker with pid: 26
When I use the RunAll command to host:6345 I get unable to connect so although it’s cycling round (I see connects to the inverter if I run debug level, there doesn’t seem to be any data available.
2022-09-27 09:56:57,452 - startup - [CRITICAL] - No config directory exists, so creating it…
2022-09-27 09:56:57,453 - startup - [CRITICAL] - Running Redis
2022-09-27 09:56:57,453 - startup - [CRITICAL] - Setting up invertor: 1 of 1
2022-09-27 09:56:57,457 - startup - [CRITICAL] - Recreating settings.py for invertor 1
2022-09-27 09:56:57,458 - startup - [CRITICAL] - Running RQ worker to queue and process givernergy-modbus calls
2022-09-27 09:56:57,458 - startup - [CRITICAL] - Running Invertor read loop every 5s
2022-09-27 09:56:57,458 - startup - [CRITICAL] - Starting Gunicorn on port 6345
[2022-09-27 09:56:57 +0100] [13] [INFO] Starting gunicorn 20.1.0
[2022-09-27 09:56:57 +0100] [13] [INFO] Listening at: http://0.0.0.0:6345 (13)
[2022-09-27 09:56:57 +0100] [13] [INFO] Using worker: sync
[2022-09-27 09:56:57 +0100] [16] [INFO] Booting worker with pid: 16
[2022-09-27 09:56:57 +0100] [18] [INFO] Booting worker with pid: 18
2022-09-27 09:56:57,724 - read - [INFO] - ----------------------------Starting----------------------------
2022-09-27 09:56:57,725 - read - [INFO] - Getting All Registers
2022-09-27 09:56:57,725 - read - [INFO] - setting lock file
2022-09-27 09:56:57,725 - read - [INFO] - Connecting to: 192.168.100.159
2022-09-27 09:56:57,749 - sync - [DEBUG] - Connection to Modbus server established. Socket (‘172.19.0.2’, 44747)
2022-09-27 09:56:57,750 - transaction - [DEBUG] - Current transaction state - IDLE
2022-09-27 09:56:57,750 - transaction - [DEBUG] - Running transaction 1
2022-09-27 09:56:57,751 - sync - [DEBUG] - New Transaction state ‘SENDING’
[2022-09-27 09:56:57 +0100] [19] [INFO] Booting worker with pid: 19
2022-09-27 09:56:57,993 - transaction - [DEBUG] - Changing transaction state from ‘WAITING FOR REPLY’ to ‘PROCESSING REPLY’
2022-09-27 09:56:57,993 - payload - [DEBUG] - [b’\x00\x00’, b’\x00\x00’, b’\x00\x00’, b’\x00\x8a’]
2022-09-27 09:56:57,993 - transaction - [DEBUG] - Adding transaction 1
2022-09-27 09:56:57,993 - transaction - [DEBUG] - Changing transaction state from ‘PROCESSING REPLY’ to ‘TRANSACTION_COMPLETE’
2022-09-27 09:56:58,494 - transaction - [DEBUG] - Current transaction state - TRANSACTION_COMPLETE
2022-09-27 09:56:58,494 - transaction - [DEBUG] - Running transaction 2
2022-09-27 09:56:58,494 - sync - [DEBUG] - New Transaction state ‘SENDING’
2022-09-27 09:56:58,723 - transaction - [DEBUG] - Changing transaction state from ‘WAITING FOR REPLY’ to ‘PROCESSING REPLY’
2022-09-27 09:56:58,724 - payload - [DEBUG] - [b’\x00\x00’, b’\x00\x00’, b’\x00\x00’, b’\x00\x8a’]
2022-09-27 09:56:58,724 - transaction - [DEBUG] - Adding transaction 2
2022-09-27 09:56:58,724 - transaction - [DEBUG] - Changing transaction state from ‘PROCESSING REPLY’ to ‘TRANSACTION_COMPLETE’
2022-09-27 09:56:59,225 - transaction - [DEBUG] - Current transaction state - TRANSACTION_COMPLETE
2022-09-27 09:56:59,226 - transaction - [DEBUG] - Running transaction 3
2022-09-27 09:56:59,226 - sync - [DEBUG] - New Transaction state ‘SENDING’
2022-09-27 09:56:59,463 - transaction - [DEBUG] - Changing transaction state from ‘WAITING FOR REPLY’ to ‘PROCESSING REPLY’
2022-09-27 09:56:59,464 - payload - [DEBUG] - [b’\x00\x00’, b’\x00\x00’, b’\x00\x00’, b’\x00\x8a’]
2022-09-27 09:56:59,464 - transaction - [DEBUG] - Adding transaction 3
2022-09-27 09:56:59,464 - transaction - [DEBUG] - Changing transaction state from ‘PROCESSING REPLY’ to ‘TRANSACTION_COMPLETE’
2022-09-27 09:56:59,966 - transaction - [DEBUG] - Current transaction state - TRANSACTION_COMPLETE
2022-09-27 09:56:59,966 - transaction - [DEBUG] - Running transaction 4
2022-09-27 09:56:59,966 - sync - [DEBUG] - New Transaction state ‘SENDING’
2022-09-27 09:57:00,203 - transaction - [DEBUG] - Changing transaction state from ‘WAITING FOR REPLY’ to ‘PROCESSING REPLY’
2022-09-27 09:57:00,203 - payload - [DEBUG] - [b’\x00\x00’, b’\x00\x00’, b’\x00\x00’, b’\x00\x8a’]
2022-09-27 09:57:00,203 - transaction - [DEBUG] - Adding transaction 4
2022-09-27 09:57:00,204 - transaction - [DEBUG] - Changing transaction state from ‘PROCESSING REPLY’ to ‘TRANSACTION_COMPLETE’
2022-09-27 09:57:00,705 - transaction - [DEBUG] - Current transaction state - TRANSACTION_COMPLETE
2022-09-27 09:57:00,705 - transaction - [DEBUG] - Running transaction 5
2022-09-27 09:57:00,705 - sync - [DEBUG] - New Transaction state ‘SENDING’
2022-09-27 09:57:00,933 - transaction - [DEBUG] - Changing transaction state from ‘WAITING FOR REPLY’ to ‘PROCESSING REPLY’
2022-09-27 09:57:00,934 - payload - [DEBUG] - [b’\x00\x00’, b’\x00\x00’, b’\x00\x00’, b’\x00\x8a’]
2022-09-27 09:57:00,934 - transaction - [DEBUG] - Adding transaction 5
2022-09-27 09:57:00,934 - transaction - [DEBUG] - Changing transaction state from ‘PROCESSING REPLY’ to ‘TRANSACTION_COMPLETE’
2022-09-27 09:57:01,436 - transaction - [DEBUG] - Current transaction state - TRANSACTION_COMPLETE
2022-09-27 09:57:01,436 - transaction - [DEBUG] - Running transaction 6
2022-09-27 09:57:01,436 - sync - [DEBUG] - New Transaction state ‘SENDING’
2022-09-27 09:57:01,673 - transaction - [DEBUG] - Changing transaction state from ‘WAITING FOR REPLY’ to ‘PROCESSING REPLY’
2022-09-27 09:57:01,674 - payload - [DEBUG] - [b’\x00\x00’, b’\x00\x00’, b’\x00\x00’, b’\x00\x8a’]
2022-09-27 09:57:01,674 - transaction - [DEBUG] - Adding transaction 6
2022-09-27 09:57:01,674 - transaction - [DEBUG] - Changing transaction state from ‘PROCESSING REPLY’ to ‘TRANSACTION_COMPLETE’
2022-09-27 09:57:02,177 - read - [INFO] - Removing lock file
2022-09-27 09:57:02,178 - read - [INFO] - Invertor connection successful, registers retrieved
2022-09-27 09:57:02,178 - read - [INFO] - Getting Total Energy Data
2022-09-27 09:57:02,178 - read - [INFO] - Getting Today Energy Data
2022-09-27 09:57:02,178 - read - [INFO] - Getting PV Power
2022-09-27 09:57:02,178 - read - [INFO] - Getting Grid Power
2022-09-27 09:57:02,178 - read - [INFO] - Getting EPS Power
2022-09-27 09:57:02,178 - read - [INFO] - Getting PInv Power
2022-09-27 09:57:02,179 - read - [INFO] - Getting Load Power
2022-09-27 09:57:02,179 - read - [INFO] - Getting Self Consumption Power
2022-09-27 09:57:02,179 - read - [INFO] - Getting Solar to H/B/G Power Flows
2022-09-27 09:57:02,179 - read - [INFO] - Getting Grid to Battery/House Power Flow
2022-09-27 09:57:02,179 - read - [INFO] - Getting SOC
2022-09-27 09:57:02,179 - read - [INFO] - Getting Solar to H/B/G Power Flows
2022-09-27 09:57:02,179 - read - [INFO] - Getting Battery to House Power Flow
2022-09-27 09:57:02,180 - read - [INFO] - Getting Grid to Battery/House Power Flow
2022-09-27 09:57:02,180 - read - [INFO] - Getting Battery to Grid Power Flow
2022-09-27 09:57:02,180 - read - [INFO] - Getting mode control figures
2022-09-27 09:57:02,180 - read - [INFO] - Calculating Mode…
2022-09-27 09:57:02,180 - read - [INFO] - Mode is: Eco
2022-09-27 09:57:02,180 - read - [INFO] - Getting TimeSlot data
2022-09-27 09:57:02,180 - read - [INFO] - Getting Invertor Details
2022-09-27 09:57:02,180 - read - [INFO] - Getting Battery Details
2022-09-27 09:57:02,180 - read - [INFO] - Building battery output:
2022-09-27 09:57:02,182 - read - [INFO] - No Night Start Energy so setting it to: 607.8
2022-09-27 09:57:02,182 - read - [INFO] - No Day Start Energy so setting it to: 607.8
2022-09-27 09:57:02,182 - read - [CRITICAL] - First time running so saving AC Charge status
2022-09-27 09:57:02,285 - read - [INFO] - ----------------------------Starting----------------------------
2022-09-27 09:57:02,285 - read - [INFO] - Getting All Registers
2022-09-27 09:57:02,285 - read - [INFO] - setting lock file
2022-09-27 09:57:02,285 - read - [INFO] - Connecting to: 192.168.100.159
2022-09-27 09:57:02,307 - sync - [DEBUG] - Connection to Modbus server established. Socket (‘172.19.0.2’, 34539)
2022-09-27 09:57:02,307 - transaction - [DEBUG] - Current transaction state - IDLE
2022-09-27 09:57:02,307 - transaction - [DEBUG] - Running transaction 1
2022-09-27 09:57:02,307 - sync - [DEBUG] - New Transaction state ‘SENDING’
2022-09-27 09:57:02,543 - transaction - [DEBUG] - Changing transaction state from ‘WAITING FOR REPLY’ to ‘PROCESSING REPLY’
2022-09-27 09:57:02,543 - payload - [DEBUG] - [b’\x00\x00’, b’\x00\x00’, b’\x00\x00’, b’\x00\x8a’]
2022-09-27 09:57:02,544 - transaction - [DEBUG] - Adding transaction 1
2022-09-27 09:57:02,544 - transaction - [DEBUG] - Changing transaction state from ‘PROCESSING REPLY’ to ‘TRANSACTION_COMPLETE’
2022-09-27 09:57:03,045 - transaction - [DEBUG] - Current transaction state - TRANSACTION_COMPLETE
2022-09-27 09:57:03,045 - transaction - [DEBUG] - Running transaction 2
2022-09-27 09:57:03,046 - sync - [DEBUG] - New Transaction state ‘SENDING’
2022-09-27 09:57:03,276 - transaction - [DEBUG] - Changing transaction state from ‘WAITING FOR REPLY’ to ‘PROCESSING REPLY’
2022-09-27 09:57:03,276 - payload - [DEBUG] - [b’\x00\x00’, b’\x00\x00’, b’\x00\x00’, b’\x00\x8a’]
2022-09-27 09:57:03,277 - transaction - [DEBUG] - Adding transaction 2
and so on…
also I now see:
2022-09-27 11:03:51,855 - read - [INFO] - Battery_kWh has gone from: 3.6044799999999997 → 3.85024
GivTCP_1 | 2022-09-27 11:03:51,855 - read - [INFO] - Battery has been charged in the last 30mins so recalculating battery value and ppkwh:
GivTCP_1 | 2022-09-27 11:03:51,855 - GivLUT - [CRITICAL] - Consecutive failure count= 5
GivTCP_1 | 2022-09-27 11:03:51,855 - read - [ERROR] - Error processing registers: (<class ‘KeyError’>, KeyError(‘Current_Rate’), <traceback object at 0x7f98d4e8fa00>)
GivTCP_1 | 2022-09-27 11:03:51,856 - read - [ERROR] - Invertor Update failed so using last known good data from cache (2022-09-27T10:01:47.932169+00:00)
Apologies for the incessant trickle of updates but I now see that the worker timeout happens after that error message and then sits on a “Booting worker with PID…” line for almost 3 minutes OR until I send a RunAll request from the browser. The request hangs but I see an immediate iteration of the cycle in the logs.