ASL wont update: Source WAF environment: update failed

Customer support forums for Atomic Protector (formerly Atomic Secured Linux). There is no such thing as a bad question here as long as it pertains to using Atomic Protector. Newbies feel free to get help getting started or asking questions that may be obvious. Regular users are asked to be gentle. :-)
noox
Forum User
Forum User
Posts: 11
Joined: Sat Jan 11, 2014 9:00 am
Location: Austria

ASL wont update: Source WAF environment: update failed

Unread post by noox »

ASL: 4.0.16-32
Centos 6.7
Cpanel 11.52.1

When I execute aum -u I get

Code: Select all

Source WAF environment: update failed                             [FAIL]
and the error message:

Code: Select all

L CODE SOURCE                        MESSAGE
- ---- ----------------------------- ------------------------------------------
2 9901 ASLCommon::cmd_system         ERROR: '/var/asl/data/templates/template-c
                                     panel-apache-hook cpanel > /var/asl/tmp/wa
                                     f_build.log 2>&1 (1)'
2 401  c_cpanel::_anarchy_waf_update CPanel WAF template update error: /var/asl
                                     /data/templates/template-cpanel-apache-hoo
                                     k cpanel
I did run

Code: Select all

/var/asl/data/templates/template-cpanel-apache-hook cpanel
I got this (at the end):

Code: Select all

/usr/bin/ld: /opt/lua/lib/liblua.a(lapi.o): relocation R_X86_64_32 against `luaO_nilobject_' can not be used when making a shared object; recompile with -fPIC
/opt/lua/lib/liblua.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [mod_security2.la] Error 1
make[2]: Leaving directory `/root/rpmbuild/BUILD/modsecurity-2.9.0/apache2'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/rpmbuild/BUILD/modsecurity-2.9.0/apache2'
make: *** [all-recursive] Error 1
I downloaded the newest lua (5.3.1) and recompiled with -fPIC. Like the error message and this post here suggested: http://penguinbliss.com/?p=488

But now I get this:

Code: Select all

msc_lua.c: In function 'lua_compile':
msc_lua.c:114: error: too few arguments to function 'lua_dump'
make[2]: *** [mod_security2_la-msc_lua.lo] Error 1
make[2]: Leaving directory `/root/rpmbuild/BUILD/modsecurity-2.9.0/apache2'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/rpmbuild/BUILD/modsecurity-2.9.0/apache2'
make: *** [all-recursive] Error 1
Should I try an older version of lua?
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: ASL wont update: Source WAF environment: update failed

Unread post by scott »

The root cause here is that cpanel has installed an older version of lua installed (cpanel says they are going to stop doing that kind of thing in EA4). Once simple solution is to remote the third party lua install from cpanel and just install the redhat build of lua & lua-devel.
Post Reply