I'm still at a dead end. It is true that debug works, but I have domoticz on port 80 and if I run it without the -www parameter, I have no access to it from the outside and it does not show any login attempts from dataplicity (it connects through port 80 and domoticz starts on port 8080). When I run with "-www 80" it crashes after a while:
Code: Select all
pi@domoticz:~/domoticz $ ./domoticz -www 80 -loglevel debug -debuglevel webserver,received,auth
2023-04-03 09:48:00.194 Debug: CWebServer::StartServer() : settings : 'server_settings[is_secure_=false, www_root='/home/pi/domoticz/www', listening_address='::', listening_port='80', vhostname='', php_cgi_path='']'
2023-04-03 09:48:00.194 Debug: CWebServer::StartServer() : IAM settings : 'iam_settings[is_enabled_=true, auth_url='/oauth2/v1/authorize', token_url='/oauth2/v1/token', discovery_url='/.well-known/openid-configuration', code_expire_seconds='60', token_expire_seconds='3600', refresh_expire_seconds='86400']'
2023-04-03 09:48:00.199 Debug: CWebServer::StartServer() : settings : ssl_server_settings['server_settings[is_secure_=true, www_root='/home/pi/domoticz/www', listening_address='::', listening_port='443', vhostname='', php_cgi_path='']', ssl_method='tls', certificate_chain_file_path='./server_cert.pem', ca_cert_file_path='./server_cert.pem', cert_file_path=./server_cert.pem', private_key_file_path='./server_cert.pem', private_key_pass_phrase='', ssl_options='single_dh_use', tmp_dh_file_path='./server_cert.pem', verify_peer=false, verify_fail_if_no_peer_cert=false, verify_file_path='']
2023-04-03 09:48:00.199 Debug: CWebServer::StartServer() : IAM settings : 'iam_settings[is_enabled_=true, auth_url='/oauth2/v1/authorize', token_url='/oauth2/v1/token', discovery_url='/.well-known/openid-configuration', code_expire_seconds='60', token_expire_seconds='3600', refresh_expire_seconds='86400']'
2023-04-03 09:48:00.200 Debug: [web:443] Enabled ciphers (TLSv1.2) ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
2023-04-03 09:48:00.201 Debug: [web:443] 'BEGIN DH PARAMETERS' found in file ./server_cert.pem
2023-04-03 09:48:00.202 Debug: [web:443] Enabled ciphers (TLSv1.2) ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
2023-04-03 09:48:00.203 Debug: [web:443] 'BEGIN DH PARAMETERS' found in file ./server_cert.pem
2023-04-03 09:48:00.204 Debug: [web:443] Enabled ciphers (TLSv1.2) ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
2023-04-03 09:48:00.205 Debug: [web:443] 'BEGIN DH PARAMETERS' found in file ./server_cert.pem
terminate called without an active exception
Przerwane
Run with:
Code: Select all
./domoticz -loglevel debug -debuglevel webserver,received,auth
Code: Select all
pi@domoticz:~/domoticz $ ./domoticz -loglevel debug -debuglevel webserver,received,auth
2023-04-03 09:56:41.975 Debug: CWebServer::StartServer() : settings : 'server_settings[is_secure_=false, www_root='/home/pi/domoticz/www', listening_address='::', listening_port='8080', vhostname='', php_cgi_path='']'
2023-04-03 09:56:41.975 Debug: CWebServer::StartServer() : IAM settings : 'iam_settings[is_enabled_=true, auth_url='/oauth2/v1/authorize', token_url='/oauth2/v1/token', discovery_url='/.well-known/openid-configuration', code_expire_seconds='60', token_expire_seconds='3600', refresh_expire_seconds='86400']'
2023-04-03 09:56:41.976 Debug: [web:8080] Adding IPv4 network (10.1.1.*) to list of trusted networks.
2023-04-03 09:56:41.976 Debug: [web:8080] Adding IPv4 network (127.0.0.1) to list of trusted networks.
2023-04-03 09:56:41.977 Debug: [web:8080] Adding IPv4 network (172.27.***.**1) to list of trusted networks. [b]<- this is Zerotier[/b]
2023-04-03 09:56:41.977 Debug: [web:8080] Adding IPv4 network (172.27.***.**2) to list of trusted networks. [b]<- this is Zerotier[/b]
2023-04-03 09:56:41.977 Debug: [web:8080] Adding IPv4 network (172.27.***.**3) to list of trusted networks. [b]<- this is Zerotier[/b]
2023-04-03 09:56:41.980 Debug: CWebServer::StartServer() : settings : ssl_server_settings['server_settings[is_secure_=true, www_root='/home/pi/domoticz/www', listening_address='::', listening_port='443', vhostname='', php_cgi_path='']', ssl_method='tls', certificate_chain_file_path='./server_cert.pem', ca_cert_file_path='./server_cert.pem', cert_file_path=./server_cert.pem', private_key_file_path='./server_cert.pem', private_key_pass_phrase='', ssl_options='single_dh_use', tmp_dh_file_path='./server_cert.pem', verify_peer=false, verify_fail_if_no_peer_cert=false, verify_file_path='']
2023-04-03 09:56:41.980 Debug: CWebServer::StartServer() : IAM settings : 'iam_settings[is_enabled_=true, auth_url='/oauth2/v1/authorize', token_url='/oauth2/v1/token', discovery_url='/.well-known/openid-configuration', code_expire_seconds='60', token_expire_seconds='3600', refresh_expire_seconds='86400']'
2023-04-03 09:56:41.981 Debug: [web:443] Enabled ciphers (TLSv1.2) ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
2023-04-03 09:56:41.982 Debug: [web:443] 'BEGIN DH PARAMETERS' found in file ./server_cert.pem
2023-04-03 09:56:41.983 Debug: [web:443] Enabled ciphers (TLSv1.2) ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
2023-04-03 09:56:41.984 Debug: [web:443] 'BEGIN DH PARAMETERS' found in file ./server_cert.pem
2023-04-03 09:56:41.985 Debug: [web:443] Enabled ciphers (TLSv1.2) ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
2023-04-03 09:56:41.986 Debug: [web:443] 'BEGIN DH PARAMETERS' found in file ./server_cert.pem
2023-04-03 09:56:46.076 Debug: [web:8080] Host:10.1.1.100 Uri:/json
2023-04-03 09:56:46.077 Debug: [web:8080] Request Headers:
Host: 10.1.1.16:8080 [b]<- form chrome on PC and sent to 8080 port[/b]
Connection: Upgrade
Pragma: no-cache
Cache-Control: no-cache
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36 Edg/111.0.1661.62
Upgrade: websocket
Origin: http://10.1.1.16:8080
Sec-WebSocket-Version: 13
Accept-Encoding: gzip, deflate
Accept-Language: pl,en;q=0.9,en-GB;q=0.8,en-US;q=0.7
Cookie: securitytoken=7b32a35f408508e56edc13a45a335f51
Sec-WebSocket-Key: yklN6t3L+gscCSgCowyrwA==
Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits
Sec-WebSocket-Protocol: domoticz
2023-04-03 09:56:46.077 Debug: [web:8080] IP (10.1.1.100) is within Trusted network range!
2023-04-03 09:56:46.077 Debug: [web:8080] isPage 0 isAction 0 isUpgrade 1 needsAuthentication 1 isAuthenticated 1 (skom)
2023-04-03 09:56:46.077 Debug: Web ACLF: 10.1.1.100 - - [03/Apr/2023:09:56:46.076 +0200] "GET /json HTTP/1.1" 101 0 - "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36 Edg/111.0.1661.62"
2023-04-03 09:57:41.976 Debug: [web:8080] cleaning sessions...
2023-04-03 09:57:41.976 Debug: SessionStore : clean...