Might it be possible to update the lua package in LEDE? There seems to
be an emerging problem with luasec and prosody and the current version
of lua. Luasec-0.6 requires lua-5.2 or lua-5.3, but LEDE and OpenWrt
provide only lua-5.1.
I have also suggested an upgrade to OpenWrt's lua package in their
Lede-dev mailing list