mod_lsapi build failed

SaulTarsus

New member
Joined
Nov 7, 2024
Messages
2
Hi,

CloudLinux9 with DA
building mod_lsapi failed today after yesterday update
after build failed httpd halted and cannot start

cp: '/usr/local/php83/bin/lsphp' and '/usr/local/bin/lsphp' are the same file
download_cached: using cached '/usr/local/directadmin/custombuild/cache/mod_lsapi-1.1-77.tar.gz' file
This system is receiving updates from CloudLinux Network server.
Last metadata expiration check: 2:15:49 ago on Thu Nov 7 06:41:55 2024.
Package yum-utils-4.3.0-13.el9.noarch is already installed.
Package file-5.39-16.el9.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
This system is receiving updates from CloudLinux Network server.
Last metadata expiration check: 2:15:52 ago on Thu Nov 7 06:41:55 2024.
Package criu-lve-3.13-6.el9.x86_64 is already installed.
Package criu-lve-devel-3.13-6.el9.x86_64 is already installed.
Package crit-lve-3.13-6.el9.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
This system is receiving updates from CloudLinux Network server.
Last metadata expiration check: 2:15:55 ago on Thu Nov 7 06:41:55 2024.
liblsapi-1.1-77.el9.cloudlinux.x86_64.rpm 107 kB/s | 53 kB 00:00
This system is receiving updates from CloudLinux Network server.
Last metadata expiration check: 2:15:59 ago on Thu Nov 7 06:41:55 2024.
liblsapi-devel-1.1-77.el9.cloudlinux.x86_64.rpm 36 kB/s | 17 kB 00:00
mod_lsapi.da_cb_install: CSF config found - exceptions for lsphp are added, lfd service restarted
CMake Deprecation Warning at CMakeLists.txt:13 (CMAKE_MINIMUM_REQUIRED):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.


-- The C compiler identification is GNU 11.4.1
-- The CXX compiler identification is GNU 11.4.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Version 2.4...
-- apache 2.4 detected...
-- Can't find Apache Portable Runtime
-- Can't find Apache Portable Runtime Utils
-- Found Apache Bin Directory: /usr/sbin, /usr/lib/apache
-- Found Apache2: /usr/include/apache
-- ****** DirectAdmin Apache 2.4 found
-- ****** DirectAdmin Apache HTTPD Include dir: /usr/include/apache
-- ****** DirectAdmin Apache APR Include dir: /usr/include/apache
-- ****** DirectAdmin Apache APRUTIL Include dir: /usr/include/apache
-- ****** DirectAdmin Apache HTTPD Modules dir: /usr/lib/apache
-- ****** DirectAdmin Apache HTTPD Libraries dir: APACHE_LIB_DIR-NOTFOUND
-- ****** DirectAdmin Apache HTTPD Bin dir: /usr/sbin
-- Configuring done (1.8s)
-- Generating done (0.0s)
-- Build files have been written to: /usr/local/directadmin/custombuild/tmp/tmp.s4mXZWEROK.mod_lsapi-1.1-77.tar.gz
[ 0%] Built target stat_support
[ 8%] Building C object CMakeFiles/mod_lsapi.dir/src/mod_lsapi/mod_lsapi.o
[ 16%] Building C object CMakeFiles/mod_lsapi.dir/src/liblscapi-util/config.o
[ 25%] Building C object CMakeFiles/mod_lsapi.dir/src/liblscapi-util/connect.o
[ 33%] Building C object CMakeFiles/mod_lsapi.dir/src/liblscapi-util/do.o
/usr/local/directadmin/custombuild/tmp/tmp.s4mXZWEROK.mod_lsapi-1.1-77.tar.gz/src/liblscapi-util/do.c: In function 'set_status_line':
/usr/local/directadmin/custombuild/tmp/tmp.s4mXZWEROK.mod_lsapi-1.1-77.tar.gz/src/liblscapi-util/do.c:317:36: warning: '%3d' directive output may be truncated writing between 3 and 10 bytes into a region of size 8 [-Wformat-truncation=]
317 | snprintf(buf, sizeof buf, "%3d ", r->status);
| ^~~
/usr/local/directadmin/custombuild/tmp/tmp.s4mXZWEROK.mod_lsapi-1.1-77.tar.gz/src/liblscapi-util/do.c:317:35: note: directive argument in the range [100, 2147483647]
317 | snprintf(buf, sizeof buf, "%3d ", r->status);
| ^~~~~~
/usr/local/directadmin/custombuild/tmp/tmp.s4mXZWEROK.mod_lsapi-1.1-77.tar.gz/src/liblscapi-util/do.c:317:9: note: 'snprintf' output between 5 and 12 bytes into a destination of size 8
317 | snprintf(buf, sizeof buf, "%3d ", r->status);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 41%] Building C object CMakeFiles/mod_lsapi.dir/src/liblscapi-util/parsevars.o
[ 50%] Building C object CMakeFiles/mod_lsapi.dir/src/liblscapi-util/httpreq.o
[ 58%] Building C object CMakeFiles/mod_lsapi.dir/src/liblscapi-util/mutex.o
[ 66%] Building C object CMakeFiles/mod_lsapi.dir/src/liblscapi-util/pool.o
[ 75%] Building C object CMakeFiles/mod_lsapi.dir/src/liblscapi-util/starter.o
[ 83%] Building C object CMakeFiles/mod_lsapi.dir/src/liblscapi-util/sulsphp.o
[ 91%] Building C object CMakeFiles/mod_lsapi.dir/src/liblscapi-util/sentry.o
[100%] Linking C shared module build/lib/mod_lsapi.so
[100%] Built target mod_lsapi
Install the project...
-- Install configuration: ""
-- Installing: /usr/lib/apache/mod_lsapi.so
Job for httpd.service failed because the control process exited with error code.
See "systemctl status httpd.service" and "journalctl -xeu httpd.service" for details.

***********************************************
OUTPUT OF
journalctl -xeu httpd.service

Nov 07 08:41:31 hostname httpd[303008]: httpd: Syntax error on line 161 of /etc/httpd/conf/httpd.conf: Syntax error on line 3 of /etc/httpd/conf/extra/httpd-includes.conf: Syntax error on line 1 of /etc/httpd/conf/extra/mod_lsapi.conf: Cannot load /usr/lib/apache/mod_lsapi.so into server: /usr/lib/apache/mod_lsapi.so: undefined symbol: lscapi_set_criu_socket_path
Nov 07 08:41:31 hostname systemd[1]: httpd.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://wiki.almalinux.org/Help-and-Support
░░
░░ An ExecStart= process belonging to unit httpd.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
 
So to resolve it and close, I got the answer from the support, and it worked thx:

If you use "liblsapi-1:1.1-77" version then it seems there is bug with that package form CloudLinux

So, for now, we recommend to revert to previous version of "liblsapi", but creating such file (if it does not exist:)

/usr/local/directadmin/custombuild/custom_versions.txt

and add there such record:

mod_lsapi:1.1-73:

After that you need to reinstall "lsapi" using this command:

da build mod_lsapi

Apache up and running
 
The default mod_lsapi version installed by DirectAdmin is reverted back from 1.1-77 to the 1.1-73 version to avoid this problem. CloudLinux confirmed the issue will be fixed in next mod_lsapi release.
 
Back
Top