Connection to Domoticz refused since last Domoticz update
Posted: Tuesday 04 April 2023 16:06
Hi,
Since the last update of Domoticz a few days ago connection from DZGA to Domoticz gives "Connection to Domoticz refused! Check configuration".
What could be wrong?
This is in de DZGA log:
2023-04-02 13:56:59 - INFO - Connecting to Domoticz on http://192.168.1.55:8084
2023-04-02 13:56:59 - DEBUG - Starting new HTTP connection (1): 192.168.1.55:8084
2023-04-02 13:56:59 - DEBUG - http://192.168.1.55:8084 "GET /json.htm?type=command¶m=addlogmessage&message=Connected%20to%20Google%20Assistant%20with%20DZGA%20v1.23.2 HTTP/1.1" 401 91
2023-04-02 13:56:59 - ERROR - Connection to Domoticz refused with error: 401 Client Error: Unauthorized for url: http://192.168.1.55:8084/json.htm?type= ... %20v1.23.2
2023-04-02 13:56:59 - DEBUG - Popen(['git', 'version'], cwd=/, universal_newlines=False, shell=None, istream=None)
2023-04-02 13:56:59 - DEBUG - Popen(['git', 'version'], cwd=/, universal_newlines=False, shell=None, istream=None)
2023-04-02 13:56:59 - ERROR - Service account key is not found. Report state will be unavailable
2023-04-02 13:56:59 - DEBUG - Starting new HTTPS connection (1): raw.githubusercontent.com:443
2023-04-02 13:56:59 - DEBUG - https://raw.githubusercontent.com:443 "GET /DewGew/Domoticz-Google-Assistant/beta/const.py HTTP/1.1" 200 1983
2023-04-02 13:56:59 - DEBUG - <pid.posix.PidFile object at 0x3ff7ea7f948> entering setup
2023-04-02 13:56:59 - DEBUG - <pid.posix.PidFile object at 0x3ff7ea7f948> create pidfile: /run/user/0/dzga.pid
2023-04-02 13:56:59 - DEBUG - <pid.posix.PidFile object at 0x3ff7ea7f948> check pidfile: /run/user/0/dzga.pid
2023-04-02 13:56:59 - INFO - Using SSL connection
2023-04-02 13:56:59 - INFO - ========
2023-04-02 13:56:59 - INFO - Started DZGA v1.23.2 server at port 3030
2023-04-02 13:56:59 - INFO -
2023-04-02 13:56:59 - INFO - Visit https://localhost:3030/settings to access the user interface
2023-04-02 13:56:59 - INFO -
2023-04-02 13:56:59 - INFO - =========
2023-04-02 13:56:59 - INFO - Visit the Actions on Google console at http://console.actions.google.com
2023-04-02 13:56:59 - INFO - Under Develop section, replace the fulfillment URL in Actions with:
2023-04-02 13:56:59 - INFO - https://[your public url]/smarthome
2023-04-02 13:56:59 - INFO -
2023-04-02 13:56:59 - INFO - In Account linking, set the Authorization URL to:
2023-04-02 13:56:59 - INFO - https://[your public url]/oauth
2023-04-02 13:56:59 - INFO -
2023-04-02 13:56:59 - INFO - Then set the Token URL to:
2023-04-02 13:56:59 - INFO - https://[your public url]/token
2023-04-02 13:56:59 - INFO -
2023-04-02 13:56:59 - INFO - Finally press 'SAVE' and then 'TEST' button
2023-04-02 13:56:59 - INFO - =======
2023-04-02 13:56:59 - DEBUG - Starting new HTTP connection (1): 192.168.1.55:8084
2023-04-02 13:56:59 - DEBUG - http://192.168.1.55:8084 "GET /json.htm?type=devices&plan=0&filter=all&used=true HTTP/1.1" 401 91
2023-04-02 13:56:59 - DEBUG - Starting new HTTP connection (1): 192.168.1.55:8084
2023-04-02 13:56:59 - DEBUG - http://192.168.1.55:8084 "GET /json.htm?type=settings HTTP/1.1" 401 91
2023-04-02 13:56:59 - DEBUG - Starting new HTTP connection (1): 192.168.1.55:8084
2023-04-02 13:56:59 - DEBUG - http://192.168.1.55:8084 "GET /json.htm?type=command¶m=getversion HTTP/1.1" 200 216
2023-04-02 13:56:59 - DEBUG - {
"dzversion": "2023.1 (build 15178)"
}
2023-04-02 13:57:09 - DEBUG - Starting new HTTPS connection (1): raw.githubusercontent.com:443
2023-04-02 13:57:09 - DEBUG - https://raw.githubusercontent.com:443 "GET /DewGew/Domoticz-Google-Assistant/beta/const.py HTTP/1.1" 200 1983
Since the last update of Domoticz a few days ago connection from DZGA to Domoticz gives "Connection to Domoticz refused! Check configuration".
What could be wrong?
This is in de DZGA log:
2023-04-02 13:56:59 - INFO - Connecting to Domoticz on http://192.168.1.55:8084
2023-04-02 13:56:59 - DEBUG - Starting new HTTP connection (1): 192.168.1.55:8084
2023-04-02 13:56:59 - DEBUG - http://192.168.1.55:8084 "GET /json.htm?type=command¶m=addlogmessage&message=Connected%20to%20Google%20Assistant%20with%20DZGA%20v1.23.2 HTTP/1.1" 401 91
2023-04-02 13:56:59 - ERROR - Connection to Domoticz refused with error: 401 Client Error: Unauthorized for url: http://192.168.1.55:8084/json.htm?type= ... %20v1.23.2
2023-04-02 13:56:59 - DEBUG - Popen(['git', 'version'], cwd=/, universal_newlines=False, shell=None, istream=None)
2023-04-02 13:56:59 - DEBUG - Popen(['git', 'version'], cwd=/, universal_newlines=False, shell=None, istream=None)
2023-04-02 13:56:59 - ERROR - Service account key is not found. Report state will be unavailable
2023-04-02 13:56:59 - DEBUG - Starting new HTTPS connection (1): raw.githubusercontent.com:443
2023-04-02 13:56:59 - DEBUG - https://raw.githubusercontent.com:443 "GET /DewGew/Domoticz-Google-Assistant/beta/const.py HTTP/1.1" 200 1983
2023-04-02 13:56:59 - DEBUG - <pid.posix.PidFile object at 0x3ff7ea7f948> entering setup
2023-04-02 13:56:59 - DEBUG - <pid.posix.PidFile object at 0x3ff7ea7f948> create pidfile: /run/user/0/dzga.pid
2023-04-02 13:56:59 - DEBUG - <pid.posix.PidFile object at 0x3ff7ea7f948> check pidfile: /run/user/0/dzga.pid
2023-04-02 13:56:59 - INFO - Using SSL connection
2023-04-02 13:56:59 - INFO - ========
2023-04-02 13:56:59 - INFO - Started DZGA v1.23.2 server at port 3030
2023-04-02 13:56:59 - INFO -
2023-04-02 13:56:59 - INFO - Visit https://localhost:3030/settings to access the user interface
2023-04-02 13:56:59 - INFO -
2023-04-02 13:56:59 - INFO - =========
2023-04-02 13:56:59 - INFO - Visit the Actions on Google console at http://console.actions.google.com
2023-04-02 13:56:59 - INFO - Under Develop section, replace the fulfillment URL in Actions with:
2023-04-02 13:56:59 - INFO - https://[your public url]/smarthome
2023-04-02 13:56:59 - INFO -
2023-04-02 13:56:59 - INFO - In Account linking, set the Authorization URL to:
2023-04-02 13:56:59 - INFO - https://[your public url]/oauth
2023-04-02 13:56:59 - INFO -
2023-04-02 13:56:59 - INFO - Then set the Token URL to:
2023-04-02 13:56:59 - INFO - https://[your public url]/token
2023-04-02 13:56:59 - INFO -
2023-04-02 13:56:59 - INFO - Finally press 'SAVE' and then 'TEST' button
2023-04-02 13:56:59 - INFO - =======
2023-04-02 13:56:59 - DEBUG - Starting new HTTP connection (1): 192.168.1.55:8084
2023-04-02 13:56:59 - DEBUG - http://192.168.1.55:8084 "GET /json.htm?type=devices&plan=0&filter=all&used=true HTTP/1.1" 401 91
2023-04-02 13:56:59 - DEBUG - Starting new HTTP connection (1): 192.168.1.55:8084
2023-04-02 13:56:59 - DEBUG - http://192.168.1.55:8084 "GET /json.htm?type=settings HTTP/1.1" 401 91
2023-04-02 13:56:59 - DEBUG - Starting new HTTP connection (1): 192.168.1.55:8084
2023-04-02 13:56:59 - DEBUG - http://192.168.1.55:8084 "GET /json.htm?type=command¶m=getversion HTTP/1.1" 200 216
2023-04-02 13:56:59 - DEBUG - {
"dzversion": "2023.1 (build 15178)"
}
2023-04-02 13:57:09 - DEBUG - Starting new HTTPS connection (1): raw.githubusercontent.com:443
2023-04-02 13:57:09 - DEBUG - https://raw.githubusercontent.com:443 "GET /DewGew/Domoticz-Google-Assistant/beta/const.py HTTP/1.1" 200 1983