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

29th
Jun 2017
Mike Emigh
@nakame_maiku_twitter
Jun 29 2017 12:21
any ideas on why I get this when trying to run in a chroot?
PANIC: unprotected error in call to Lua API (error: can't open cache)
Ondřej Surý
@oerdnj
Jun 29 2017 12:23
Are all directories for the cache created and accessible inside the chroot?
Vladimír Čunát
@vcunat
Jun 29 2017 12:23
Most likely not enough permissions to create/open the cache file.
Mike Emigh
@nakame_maiku_twitter
Jun 29 2017 12:25
i dont think so, because its the same set of directories that it works on without the chroot. lock.mdb also gets created
Ondřej Surý
@oerdnj
Jun 29 2017 12:26
Does FreeBSD have something like strace on Linux to monitor syscalls?
Mike Emigh
@nakame_maiku_twitter
Jun 29 2017 12:27
yep, truss
Ondřej Surý
@oerdnj
Jun 29 2017 12:28
Could you use that to monitor what files does kresd want to open and fails?
Mike Emigh
@nakame_maiku_twitter
Jun 29 2017 12:28
ah hah, /tmp
creating /tmp fixed it, thanks
Ondřej Surý
@oerdnj
Jun 29 2017 12:29
You are welcome ;)
Perhaps setting TMPDIR to same directory as kresd work directory would work as well, but I don't know LuaJIT internals that well.