Ubuntu Bionic 18.04.04
Zoneminder 1.34.16
Desktop Windows 10.0.18363
WireGuard 0.1.1
zmNinja 1.4.007
Jun 19, 2020 08:09:56 PM INFO Login data not changed, not saving
Jun 19, 2020 08:09:52 PM INFO API login error {"data":"<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>404 Not Found</title>\n</head><body>\n<h1>Not Found</h1>\n<p>The requested URL was not found on this server.</p>\n<hr>\n<address>Apache/2.4.29 (Ubuntu) Server at 192.168.66.240 Port 80</address>\n</body></html>\n","status":404,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"url":"http://192.168.66.240/api/host/getVersion.json?","headers":{"Accept":"application/json, text/plain, */*","X-ZmNinja":"zmNinja_%APPVER%"},"withCredentials":true},"statusText":"Not Found"}
Jun 19, 2020 08:09:52 PM INFO Validating APIs at http://192.168.66.240/api/host/getVersion.json?
Jun 19, 2020 08:09:52 PM DEBUG zmAutoLogin: Inside auth-error broadcast
Jun 19, 2020 08:09:52 PM INFO zmAutologin Error {"data":"<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>404 Not Found</title>\n</head><body>\n<h1>Not Found</h1>\n<p>The requested URL was not found on this server.</p>\n<hr>\n<address>Apache/2.4.29 (Ubuntu) Server at 192.168.66.240 Port 80</address>\n</body></html>\n","status":404,"config":{"method":"POST","transformResponse":[null],"timeout":10000,"url":"http://192.168.66.240/index.php?view=console","skipIntercept":true,"headers":{"Content-Type":"application/x-www-form-urlencoded","Accept":"application/json","X-ZmNinja":"zmNinja_%APPVER%"},"data":{"username":"admin",<password removed>,"action":"login","view":"console"},"withCredentials":true},"statusText":"Not Found"} and status undefined
Jun 19, 2020 08:09:52 PM INFO Not intercepting as skipIntercept true
Jun 19, 2020 08:09:52 PM DEBUG Logging in using old web-scrape method
Jun 19, 2020 08:09:52 PM DEBUG obfuscate: original:5334 obfuscated:1361 scheme:lzs
Jun 19, 2020 08:09:52 PM INFO API based login not supported, need to use web scraping...
Jun 19, 2020 08:09:52 PM INFO Not intercepting as skipIntercept true
Jun 19, 2020 08:09:52 PM INFO ZM has recaptcha disabled - good
Jun 19, 2020 08:09:52 PM INFO Doing fresh login to ZM
Jun 19, 2020 08:09:52 PM INFO Token login not being used
Jun 19, 2020 08:09:52 PM DEBUG Resetting zmCookie...
Jun 19, 2020 08:09:52 PM INFO Checking if reCaptcha is enabled in ZM...
Jun 19, 2020 08:09:52 PM DEBUG Inside _doLogin()
Jun 19, 2020 08:09:52 PM DEBUG Saved isFirstUse ok
Jun 19, 2020 08:09:52 PM DEBUG Logging out using Web method
Jun 19, 2020 08:09:52 PM INFO http://192.168.66.240=>Logging out of any existing ZM sessions...
Jun 19, 2020 08:09:52 PM INFO No need to do a reachability test, as there are no fallbacks
Jun 19, 2020 08:09:52 PM INFO reached end of chain loop
Jun 19, 2020 08:09:52 PM INFO Fallback of 192.168.66.240 is
Jun 19, 2020 08:09:52 PM INFO Adding to chain stack: 192.168.66.240>http://192.168.66.240
Jun 19, 2020 08:09:52 PM DEBUG _doLogoutAndLogin: Clearing cookies
Jun 19, 2020 08:09:52 PM DEBUG obfuscate: original:5334 obfuscated:1361 scheme:lzs
Jun 19, 2020 08:09:52 PM DEBUG Setting multi-port to:false
Jun 19, 2020 08:09:52 PM DEBUG Setting server version to:
Jun 19, 2020 08:09:52 PM DEBUG obfuscate: original:5334 obfuscated:1361 scheme:lzs
Jun 19, 2020 08:09:52 PM DEBUG Setting isFirstUse to:false
Jun 19, 2020 08:09:52 PM DEBUG Inside save Items
Jun 19, 2020 08:09:52 PM DEBUG CACHE: Flushing all network API caches...
Jun 19, 2020 08:09:52 PM DEBUG obfuscate: original:5334 obfuscated:1361 scheme:lzs
Jun 19, 2020 08:09:52 PM DEBUG Clearing all unsupported flags
Jun 19, 2020 08:09:52 PM DEBUG Clearing Multiport...
Jun 19, 2020 08:09:52 PM DEBUG User tapped save, calling SaveItems
Jun 19, 2020 08:09:48 PM DEBUG Does login need to hear the wizard? false
Jun 19, 2020 08:09:48 PM DEBUG skipping image refresh, packery is still loading
Jun 19, 2020 08:09:48 PM DEBUG Setting up cycle interval of:10000
Jun 19, 2020 08:09:48 PM DEBUG bandwidth: highbw montage refresh set to: 2
Jun 19, 2020 08:09:48 PM DEBUG Multiport=0
Jun 19, 2020 08:09:48 PM INFO sending stored ZM_MIN_STREAMING_PORT 0
Jun 19, 2020 08:09:48 PM DEBUG Montage beforeEnter: copying monitors to montage monitors
Jun 19, 2020 08:09:48 PM DEBUG Montage beforeEnter: got 0 monitors
Jun 19, 2020 08:09:48 PM DEBUG Setting streamQuery timer to 10000
Jun 19, 2020 08:09:48 PM ERROR Monitor load failed {"data":"<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>404 Not Found</title>\n</head><body>\n<h1>Not Found</h1>\n<p>The requested URL was not found on this server.</p>\n<hr>\n<address>Apache/2.4.29 (Ubuntu) Server at 192.168.66.240 Port 80</address>\n</body></html>\n","status":404,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"url":"http://192.168.66.240/api/monitors/index/Type !=:WebSite.json?","headers":{"Accept":"application/json, text/plain, */*","X-ZmNinja":"zmNinja_%APPVER%"},"withCredentials":true},"statusText":"Not Found"}
Jun 19, 2020 08:09:48 PM INFO CACHE: error with http get {"data":"<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>404 Not Found</title>\n</head><body>\n<h1>Not Found</h1>\n<p>The requested URL was not found on this server.</p>\n<hr>\n<address>Apache/2.4.29 (Ubuntu) Server at 192.168.66.240 Port 80</address>\n</body></html>\n","status":404,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"url":"http://192.168.66.240/api/monitors/index/Type !=:WebSite.json?","headers":{"Accept":"application/json, text/plain, */*","X-ZmNinja":"zmNinja_%APPVER%"},"withCredentials":true},"statusText":"Not Found"}
Jun 19, 2020 08:09:48 PM DEBUG CACHE: NOT found for:cached_monitors reverting to HTTP
Jun 19, 2020 08:09:48 PM DEBUG Monitor URL to fetch is:http://192.168.66.240/api/monitors/index/Type !=:WebSite.json?
Jun 19, 2020 08:09:48 PM DEBUG ZMS Multiport reported: 0
Jun 19, 2020 08:09:48 PM DEBUG Setting multi-port to:false
Jun 19, 2020 08:09:48 PM INFO ZM_MIN_STREAMING_PORT not supported
Jun 19, 2020 08:09:48 PM INFO CACHE: error with http get {"data":"<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>404 Not Found</title>\n</head><body>\n<h1>Not Found</h1>\n<p>The requested URL was not found on this server.</p>\n<hr>\n<address>Apache/2.4.29 (Ubuntu) Server at 192.168.66.240 Port 80</address>\n</body></html>\n","status":404,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"url":"http://192.168.66.240/api/configs/viewByName/ZM_MIN_STREAMING_PORT.json?","headers":{"Accept":"application/json, text/plain, */*","X-ZmNinja":"zmNinja_%APPVER%"},"withCredentials":true},"statusText":"Not Found"}
Jun 19, 2020 08:09:48 PM DEBUG CACHE: NOT found for:cached_multi_port reverting to HTTP
Jun 19, 2020 08:09:48 PM INFO Checking value of ZM_MIN_STREAMING_PORT for the first time
Jun 19, 2020 08:09:48 PM INFO getMonitors:Loading all monitors
Jun 19, 2020 08:09:48 PM DEBUG NVR: Regenerating connkeys for all monitors at 1592590188594
Jun 19, 2020 08:09:48 PM INFO API not valid, not going to this state
Server
Client
The bug
zmNinja client won't authenticate over WireGuard connection while Web Console works fine.
Debug logs
Screenshots
