These are chat archives for CZ-NIC/knot-resolver

21st
Aug 2018
Robert Šefr
@robcza
Aug 21 2018 06:58 UTC
@pspacek is there anything I can do to help you reproduce the issue? I think I can share the docker image that would behave like this
Robert Šefr
@robcza
Aug 21 2018 07:13 UTC
And I would like to ask regarding dependencies. On Fedora 28 and kresd 2.4.1 I have a problem loading the http module. The error is attached below. I have the recommended dependencies installed: lua-sec-compat, lua-socket-compat.
error: /usr/local/lib/kdns_modules/http.lua:9: module 'http.server' not found:
        no field package.preload['http.server']
        no file '/usr/local/lib/kdns_modules/http/server.lua'
        no file '/usr/local/lib/kdns_modules/http/server/init.lua'
        no file './http/server.lua'
        no file '/usr/share/luajit-2.1.0-beta3/http/server.lua'
        no file '/usr/local/share/lua/5.1/http/server.lua'
        no file '/usr/local/share/lua/5.1/http/server/init.lua'
        no file '/usr/share/lua/5.1/http/server.lua'
        no file '/usr/share/lua/5.1/http/server/init.lua'
        no file '/usr/local/lib/kdns_modules/http/server.so'
        no file './http/server.so'
        no file '/usr/local/lib/lua/5.1/http/server.so'
        no file '/usr/lib64/lua/5.1/http/server.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
        no file '/usr/local/lib/kdns_modules/http.so'
        no file './http.so'
        no file '/usr/local/lib/lua/5.1/http.so'
        no file '/usr/lib64/lua/5.1/http.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
error: No such file or directory
Petr Špaček
@pspacek
Aug 21 2018 08:07 UTC
Oh, that's because Fedora does not have HTTP module packaged ... It should theoretically work if you pull in libraries from LuaRocks but I haven't tried that myself.
It depends on cqueues which is almost ready: https://bugzilla.redhat.com/show_bug.cgi?id=1585758
HTTP might be a next step but some packaging help would be appreciated.
Robert Šefr
@robcza
Aug 21 2018 08:18 UTC
@pspacek can I supply those packages via luarocks?
Petr Špaček
@pspacek
Aug 21 2018 08:45 UTC
Theoretically yes but I haven't tested that.