BAD REQUEST on console access when installing from source
Posted: Wednesday 05 March 2025 15:58
Installed Debian Linux on a RPI 4 today, followed by http s : //swizzin.ltd/. I then downloaded the latest devel packages and compiled the source which seemed to go okay. now when i try and access the console page at port 8080 i get "400 Bad Request". I dont believe anything was running on port 8080 already so im a bit confused.
Version : Domoticz V2025.1 (build 16490) (c)2012-2025 GizMoCuz
Platform : Debian GNU/Linux 12 (bookworm)
Hardware : RPI 4
Description :
root@bifrost-heimdallr:/home/domoticz# ./domoticz -www 8080 -sslwww 444 -log "/var/log/domoticz.log" -loglevel all -debuglevel normal,auth,hardware,received,webserver,eventsystem,python,thread_id
2025-03-05 14:53:16.816 [7fb2a17880] Status: Domoticz V2025.1 (build 16490) (c)2012-2025 GizMoCuz
2025-03-05 14:53:16.816 [7fb2a17880] Status: Build Hash: 2fbd969f1, Date: 2025-03-05 06:52:20
2025-03-05 14:53:16.816 [7fb2a17880] Status: Startup Path: /home/domoticz/
2025-03-05 14:53:16.830 [7fb2a17880] Error: Default admin password has NOT been changed! Change it asap!
2025-03-05 14:53:16.887 [7fb2a17880] Status: PluginSystem: Started, Python version '3.11.2', 1 plugin definitions loaded.
2025-03-05 14:53:16.892 [7fb2a17880] Active notification Subsystems: fcm, http (2/13)
2025-03-05 14:53:16.893 [7fb2a17880] Debug: CWebServer::StartServer() : settings : 'server_settings[is_secure_=false, www_root='/home/domoticz/www', listening_address='::', listening_port='8080', vhostname='', php_cgi_path='']'
2025-03-05 14:53:16.893 [7fb2a17880] 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']'
2025-03-05 14:53:16.893 [7fb2a17880] Status: WebServer(HTTP) started on address: :: with port 8080
2025-03-05 14:53:16.894 [7fb2a17880] Debug: WebServer(HTTP) started with 244 Registered Commands
2025-03-05 14:53:16.894 [7fb2a17880] Debug: cWebEm Registration: 10 pages, 9 actions, 4 whitelist urls, 11 whitelist commands
2025-03-05 14:53:16.895 [7fb2a17880] Debug: CWebServer::StartServer() : settings : ssl_server_settings['server_settings[is_secure_=true, www_root='/home/domoticz/www', listening_address='::', listening_port='444', 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='']
2025-03-05 14:53:16.895 [7fb2a17880] 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']'
2025-03-05 14:53:16.899 [7fb2a17880] Debug: [web:444] 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
2025-03-05 14:53:16.899 [7fb2a17880] Error: [web:444] missing SSL certificate chain file ./server_cert.pem!
2025-03-05 14:53:16.899 [7fb2a17880] Error: [web:444] missing SSL certificate file ./server_cert.pem!
2025-03-05 14:53:16.899 [7fb2a17880] Error: [web:444] missing SSL private key file ./server_cert.pem!
2025-03-05 14:53:16.899 [7fb2a17880] Error: [web:444] missing SSL DH parameters file ./server_cert.pem!
2025-03-05 14:53:16.900 [7fb2a17880] Status: WebServer(SSL) started on address: :: with port 444
2025-03-05 14:53:16.901 [7fb2a17880] Debug: WebServer(SSL) started with 244 Registered Commands
2025-03-05 14:53:16.901 [7fb2a17880] Debug: cWebEm Registration: 10 pages, 9 actions, 4 whitelist urls, 11 whitelist commands
2025-03-05 14:53:16.902 [7fb2a17880] Starting shared server on: :::6144
2025-03-05 14:53:16.902 [7fa77eef40] Status: TCPServer: shared server started...
2025-03-05 14:53:16.903 [7fa67cef40] Status: RxQueue: queue worker started...
2025-03-05 14:53:18.903 [7fa57aef40] Status: NotificationSystem: thread started...
2025-03-05 14:53:18.904 [7fa6fdef40] Status: EventSystem: reset all events...
2025-03-05 14:53:18.905 [7fa6fdef40] Debug: EventSystem: Events (re)loaded
2025-03-05 14:53:18.905 [7fa6fdef40] Status: EventSystem: reset all device statuses...
2025-03-05 14:53:18.952 [7fa6fdef40] Status: Python EventSystem: Initializing event module.
2025-03-05 14:53:18.952 [7fa4f9ef40] Status: EventSystem: Started
2025-03-05 14:53:18.952 [7f8bffef40] Status: EventSystem: Queue thread started...
2025-03-05 14:53:26.336 [7fade83f40] Debug: [web:8080] Host:192.168.0.5 Uri:/
2025-03-05 14:53:26.336 [7fade83f40] Debug: [web:8080] Request Headers:
Host: 192.168.0.146:8080
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:135.0) Gecko/20100101 Firefox/135.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-GB,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Cookie: JSESSIONID=5q26di1ucvu7
Upgrade-Insecure-Requests: 1
Sec-GPC: 1
Priority: u=0, i
2025-03-05 14:53:26.336 [7fade83f40] Debug: [web:8080] isPage 0 isAction 0 isUpgrade 0 needsAuthentication 1 isAuthenticated 0 ()
2025-03-05 14:53:26.336 [7fade83f40] Debug: [web:/] unable to determine extension for /home/domoticz/www/!
2025-03-05 14:53:26.336 [7fade83f40] Debug: Web ACLF: 192.168.0.5 - - [05/Mar/2025:14:53:26.336 +0000] "GET / HTTP/1.1" 400 89 - "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:135.0) Gecko/20100101 Firefox/135.0"
2025-03-05 14:54:16.893 [7fae693f40] Debug: [web:8080] cleaning sessions...
2025-03-05 14:54:16.894 [7fae693f40] Debug: SessionStore : clean...
2025-03-05 14:54:16.900 [7fad673f40] Debug: [web:444] cleaning sessions...
2025-03-05 14:54:16.900 [7fad673f40] Debug: SessionStore : clean...
could anyone assist in this matter?
thanks
dave
Version : Domoticz V2025.1 (build 16490) (c)2012-2025 GizMoCuz
Platform : Debian GNU/Linux 12 (bookworm)
Hardware : RPI 4
Description :
root@bifrost-heimdallr:/home/domoticz# ./domoticz -www 8080 -sslwww 444 -log "/var/log/domoticz.log" -loglevel all -debuglevel normal,auth,hardware,received,webserver,eventsystem,python,thread_id
2025-03-05 14:53:16.816 [7fb2a17880] Status: Domoticz V2025.1 (build 16490) (c)2012-2025 GizMoCuz
2025-03-05 14:53:16.816 [7fb2a17880] Status: Build Hash: 2fbd969f1, Date: 2025-03-05 06:52:20
2025-03-05 14:53:16.816 [7fb2a17880] Status: Startup Path: /home/domoticz/
2025-03-05 14:53:16.830 [7fb2a17880] Error: Default admin password has NOT been changed! Change it asap!
2025-03-05 14:53:16.887 [7fb2a17880] Status: PluginSystem: Started, Python version '3.11.2', 1 plugin definitions loaded.
2025-03-05 14:53:16.892 [7fb2a17880] Active notification Subsystems: fcm, http (2/13)
2025-03-05 14:53:16.893 [7fb2a17880] Debug: CWebServer::StartServer() : settings : 'server_settings[is_secure_=false, www_root='/home/domoticz/www', listening_address='::', listening_port='8080', vhostname='', php_cgi_path='']'
2025-03-05 14:53:16.893 [7fb2a17880] 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']'
2025-03-05 14:53:16.893 [7fb2a17880] Status: WebServer(HTTP) started on address: :: with port 8080
2025-03-05 14:53:16.894 [7fb2a17880] Debug: WebServer(HTTP) started with 244 Registered Commands
2025-03-05 14:53:16.894 [7fb2a17880] Debug: cWebEm Registration: 10 pages, 9 actions, 4 whitelist urls, 11 whitelist commands
2025-03-05 14:53:16.895 [7fb2a17880] Debug: CWebServer::StartServer() : settings : ssl_server_settings['server_settings[is_secure_=true, www_root='/home/domoticz/www', listening_address='::', listening_port='444', 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='']
2025-03-05 14:53:16.895 [7fb2a17880] 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']'
2025-03-05 14:53:16.899 [7fb2a17880] Debug: [web:444] 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
2025-03-05 14:53:16.899 [7fb2a17880] Error: [web:444] missing SSL certificate chain file ./server_cert.pem!
2025-03-05 14:53:16.899 [7fb2a17880] Error: [web:444] missing SSL certificate file ./server_cert.pem!
2025-03-05 14:53:16.899 [7fb2a17880] Error: [web:444] missing SSL private key file ./server_cert.pem!
2025-03-05 14:53:16.899 [7fb2a17880] Error: [web:444] missing SSL DH parameters file ./server_cert.pem!
2025-03-05 14:53:16.900 [7fb2a17880] Status: WebServer(SSL) started on address: :: with port 444
2025-03-05 14:53:16.901 [7fb2a17880] Debug: WebServer(SSL) started with 244 Registered Commands
2025-03-05 14:53:16.901 [7fb2a17880] Debug: cWebEm Registration: 10 pages, 9 actions, 4 whitelist urls, 11 whitelist commands
2025-03-05 14:53:16.902 [7fb2a17880] Starting shared server on: :::6144
2025-03-05 14:53:16.902 [7fa77eef40] Status: TCPServer: shared server started...
2025-03-05 14:53:16.903 [7fa67cef40] Status: RxQueue: queue worker started...
2025-03-05 14:53:18.903 [7fa57aef40] Status: NotificationSystem: thread started...
2025-03-05 14:53:18.904 [7fa6fdef40] Status: EventSystem: reset all events...
2025-03-05 14:53:18.905 [7fa6fdef40] Debug: EventSystem: Events (re)loaded
2025-03-05 14:53:18.905 [7fa6fdef40] Status: EventSystem: reset all device statuses...
2025-03-05 14:53:18.952 [7fa6fdef40] Status: Python EventSystem: Initializing event module.
2025-03-05 14:53:18.952 [7fa4f9ef40] Status: EventSystem: Started
2025-03-05 14:53:18.952 [7f8bffef40] Status: EventSystem: Queue thread started...
2025-03-05 14:53:26.336 [7fade83f40] Debug: [web:8080] Host:192.168.0.5 Uri:/
2025-03-05 14:53:26.336 [7fade83f40] Debug: [web:8080] Request Headers:
Host: 192.168.0.146:8080
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:135.0) Gecko/20100101 Firefox/135.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-GB,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Cookie: JSESSIONID=5q26di1ucvu7
Upgrade-Insecure-Requests: 1
Sec-GPC: 1
Priority: u=0, i
2025-03-05 14:53:26.336 [7fade83f40] Debug: [web:8080] isPage 0 isAction 0 isUpgrade 0 needsAuthentication 1 isAuthenticated 0 ()
2025-03-05 14:53:26.336 [7fade83f40] Debug: [web:/] unable to determine extension for /home/domoticz/www/!
2025-03-05 14:53:26.336 [7fade83f40] Debug: Web ACLF: 192.168.0.5 - - [05/Mar/2025:14:53:26.336 +0000] "GET / HTTP/1.1" 400 89 - "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:135.0) Gecko/20100101 Firefox/135.0"
2025-03-05 14:54:16.893 [7fae693f40] Debug: [web:8080] cleaning sessions...
2025-03-05 14:54:16.894 [7fae693f40] Debug: SessionStore : clean...
2025-03-05 14:54:16.900 [7fad673f40] Debug: [web:444] cleaning sessions...
2025-03-05 14:54:16.900 [7fad673f40] Debug: SessionStore : clean...
could anyone assist in this matter?
thanks
dave