[SOLVED] haproxy-auth-request luasocket support?
-
Hi All,
I am trying to install https://github.com/TimWolla/haproxy-auth-request.
I have imported the .lua script using the pfsense web ui, but when I apply changes the below error pops up.From what can tell I need to install
luasocket-53
and its dependencies, but it is not in the pfsense repo.How can I go about getting this package installed, or into the repo?
Thanks.
Errors found while starting haproxy [ALERT] 115/152743 (34825) : parsing [/var/etc/haproxy_test/haproxy.cfg:15] : Lua runtime error: /var/etc/haproxy_test/luascript_auth-request:23: module 'socket.http' not found: no field package.preload['socket.http'] no file '/usr/local/share/lua/5.3/socket/http.lua' no file '/usr/local/share/lua/5.3/socket/http/init.lua' no file '/usr/local/lib/lua/5.3/socket/http.lua' no file '/usr/local/lib/lua/5.3/socket/http/init.lua' no file './socket/http.lua' no file './socket/http/init.lua' no file '/usr/local/lib/lua/5.3/socket/http.so' no file '/usr/local/lib/lua/5.3/loadall.so' no file './socket/http.so' no file '/usr/local/lib/lua/5.3/socket.so' no file '/usr/local/lib/lua/5.3/loadall.so' no file './socket.so' [ALERT] 115/152743 (34825) : Error(s) found in configuration file : /var/etc/haproxy_test/haproxy.cfg [ALERT] 115/152743 (34825) : Fatal errors found in configuration.
-
I managed to install luasocket by following the install-free-bsd-packages guide.
For future reference the package I installed was:
https://pkg.freebsd.org/freebsd:11:x86:64/latest/All/lua53-luasocket-3.0.r1_5,1.txz -
@benjamesfleming said in [SOLVED] haproxy-auth-request luasocket support?:
https://pkg.freebsd.org/freebsd:11:x86:64/latest/All/lua53-luasocket-3.0.r1_5,1.txz
Reply
Hello,
I am having the same issue on PFSense Plus 23.09.1-RELEASE and HAProxy-devel 2.9.d2.
This package no longer seems to be available for download and I cannot seem to find equivalent for FreeBSD 14. I tried browsing to the FreeBSD package URL's and get an NGINX forbidden when I attempt to browse to find what the latest package URL's are.Any guidance on how download the latest version of lua53-luasocket?
Thanks