Hello Tomas,
thank you for a quick response,
I upgrade the HTTP module in /usr/lib64/knot-resolver/kres_modules/ from
Github source
https://github.com/CZ-NIC/knot-resolver
(
https://github.com/CZ-NIC/knot-resolver)
then I assume, that should be the latest one, unfortunately the output is
the same
Oct 08 11:29:31 dns_lab kresd[607]: error: /usr/lib64/knot-resolver/kres_
modules/http.lua:35: attempt to call global 'moduledir' (a nil value)
Oct 08 11:29:31 dns_lab kresd[607]: [system] failed to load module 'http'
Oct 08 11:29:31 dns_lab kresd[607]: error occured here (config filename:
lineno is at the bottom, if config is involved):
Oct 08 11:29:31 dns_lab kresd[607]: stack traceback:
Oct 08 11:29:31 dns_lab kresd[607]: [C]: in function 'load'
Oct 08 11:29:31 dns_lab kresd[607]: /etc/knot-resolver/kresd.conf:14: in
main chunk
Oct 08 11:29:31 dns_lab kresd[607]: ERROR: No such file or directory
Oct 08 11:29:31 dns_lab systemd[1]: kresd(a)1.service: main process exited,
code=exited, status=1/FAILURE
Oct 08 11:29:31 dns_lab systemd[1]: Failed to start Knot Resolver daemon.
Oct 08 11:29:31 dns_lab systemd[1]: Unit kresd(a)1.service entered failed
state.
Oct 08 11:29:31 dns_lab systemd[1]: kresd(a)1.service failed.
I left the kresd.conf as
-- interfaces
...
net.listen('10.0.0.1', 8453, { kind = 'webmgmt' })
-- load HTTP module with defaults (self-signed TLS cert)
modules.load('http')
http.config()
-- Load Useful modules
modules = {
'policy', -- Block queries to local zones/bad sites
'view', -- Handle requests by source IP
'stats', -- Track internal statistics
'hints', -- Add static records to resolver
}
Regards,
--
Smil Milan Jeskyňka Kazatel
---------- Původní e-mail ----------
Od: Tomas Krizek <tomas.krizek(a)nic.cz>
Komu: Knot Resolver Users List <knot-resolver-users(a)lists.nic.cz>cz>, Milan
Jeskynka Kazatel <KazatelM(a)seznam.cz>
Datum: 8. 10. 2019 10:42:50
Předmět: Re: [knot-resolver-users] HTTP module after upgrade from Knot DNS
Resolver, version 2.3.0 to Knot Resolver, version 4.2.0
"On 08/10/2019 09.59, Milan Jeskynka Kazatel wrote:
Unfortunately after upgrade to version 4.2.0 I'm
not able to correctly
start
the module even if I follow the migration hints on
documentation websites.
I
still receive a startup fail message
Oct 04 11:32:09 dns systemd[1]: Starting Knot Resolver daemon...
Oct 04 11:32:54 dns kresd[9540]: error: /usr/lib64/knot-resolver/kres_
modules/http.lua:35: attempt to call global 'moduledir' (a nil value)
Hi.
This looks very odd - it seems like an old version of the http module.
Could you please check the version of knot-resover-module-http package
and upgrade it if possible?
--
Tomas Krizek
PGP: 4A8B A48C 2AED 933B D495 C509 A1FB A5F7 EF8C 4869
"