Graph not shown in web management (webmgmt)
I am running web management service on knot resolver. But, there is a problem which is graph is not shown. Then, I inspected the element and got the problem. Here are the problem:
Screenshot of Error:
Error Log:
DevTools failed to load SourceMap: Could not load content for http://127.0.0.1:8053/dist/dygraph.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
dygraph.min.js:5 Can't plot empty data set
Q.parseArray_ @ dygraph.min.js:5
Q.start_ @ dygraph.min.js:5
Q.__init__ @ dygraph.min.js:4
Q @ dygraph.min.js:4
(anonymous) @ kresd.js:89
mightThrow @ jquery.js:2
process @ jquery.js:2
setTimeout (async)
(anonymous) @ jquery.js:2
fire @ jquery.js:2
fireWith @ jquery.js:2
fire @ jquery.js:2
fire @ jquery.js:2
fireWith @ jquery.js:2
ready @ jquery.js:2
completed @ jquery.js:2
jquery.js:2 jQuery.Deferred exception: chartElement is not defined ReferenceError: chartElement is not defined
at HTMLDocument.<anonymous> (http://127.0.0.1:8053/kresd.js:357:2)
at mightThrow (http://127.0.0.1:8053/jquery.js:2:15044)
at process (http://127.0.0.1:8053/jquery.js:2:15698) undefined
jQuery.Deferred.exceptionHook @ jquery.js:2
process @ jquery.js:2
setTimeout (async)
(anonymous) @ jquery.js:2
fire @ jquery.js:2
fireWith @ jquery.js:2
fire @ jquery.js:2
fire @ jquery.js:2
fireWith @ jquery.js:2
ready @ jquery.js:2
completed @ jquery.js:2
jquery.js:2 Uncaught ReferenceError: chartElement is not defined
at HTMLDocument.<anonymous> (kresd.js:357)
at mightThrow (jquery.js:2)
at process (jquery.js:2)
(anonymous) @ kresd.js:357
mightThrow @ jquery.js:2
process @ jquery.js:2
setTimeout (async)
jQuery.readyException @ jquery.js:2
(anonymous) @ jquery.js:2
mightThrow @ jquery.js:2
process @ jquery.js:2
setTimeout (async)
(anonymous) @ jquery.js:2
fire @ jquery.js:2
fireWith @ jquery.js:2
fire @ jquery.js:2
fire @ jquery.js:2
fireWith @ jquery.js:2
process @ jquery.js:2
setTimeout (async)
(anonymous) @ jquery.js:2
fire @ jquery.js:2
fireWith @ jquery.js:2
fire @ jquery.js:2
fire @ jquery.js:2
fireWith @ jquery.js:2
ready @ jquery.js:2
completed @ jquery.js:2
Knot Resolver Configuration:
-- Network interface configuration
net.listen('127.0.0.1', 53, { kind = 'dns' })
net.listen('127.0.0.1', 853, { kind = 'tls' })
net.listen('127.0.0.1', 8053, { kind = 'webmgmt' })
-- Load useful modules
modules = {
'policy',
'http'
}
-- Cache size
cache.size = 1 * GB
-- Forward to upstream servers (8.8.8.8 and 1.1.1.1) using DoT
policy.add(policy.all(policy.TLS_FORWARD({
{'8.8.8.8', hostname='dns.google'},
{'1.1.1.1', hostname='cloudflare-dns.com'}
})))
Knot Resolver Version:
root@engine:/etc/knot-resolver# apt-cache policy knot-resolver
knot-resolver:
Installed: 5.1.3-2
Candidate: 5.1.3-2
Version table:
*** 5.1.3-2 500
500 http://download.opensuse.org/repositories/home:/CZ-NIC:/knot-resolver-latest/xUbuntu_20.04 Packages
100 /var/lib/dpkg/status
3.2.1-3ubuntu2 500
500 http://kambing.ui.ac.id/ubuntu focal/universe amd64 Packages
Thank You.