Skip to main content

[EA-9540] Centos 8 edge version mod_brotli apache crash

Comments

16 comments

  • cPanelLauren
    Hi @vacancy Thank you for the information, the EasyApache team opened the following case for this issue: EA-9379 mod_security2.so undefined symbols /lib64/libbrotlidec.so.1 on CentOS 8 The case was just opened so not too much to report on it besides that it exists at this point. We'll update here when there is more information/any updates on the case.
    0
  • splaquet
    is there any update on this? i have the same issue. the only method of having httpd work is by uninstalling mod_security2, which obviously is not the most ideal method.
    0
  • splaquet
    actually... instead of removing mod_security2, i removed ea-apache24-mod_brotli. honestly... not sure why i hadn't thought about that the first time around o_O
    0
  • cPRex Jurassic Moderator
    I checked EA-9379 just now and this was marked as fixed on December 23. Are you seeing the same error at this time? If so, can you let me know the cPanel version you're using and what version of mod_brotli was installed?
    0
  • vacancy
    Yes, this problem has been fixed but it has not been updated here.
    0
  • cPRex Jurassic Moderator
    @vacancy - this was one of the last posts Lauren made, so there was a week or so when I wasn't keeping track of the cases and getting them updated on the forums. If anyone is still seeing this behavior with the latest edge build and updated packages please let me know!
    0
  • splaquet
    CLOUDLINUX 8.3 CPANEL v93.9999.114 [TEST BUILD] Available in EasyApache: mod_brotli 2.4.46-1.el8.cloudlinux when installed, this is what happens: # systemctl status httpd ? httpd.service - Apache web server managed by cPanel EasyApache Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled) Drop-In: /usr/lib/systemd/system/httpd.service.d ??alt-php80-fpm.conf Active: failed (Result: exit-code) since Wed 2021-01-20 23:34:25 EST; 12min ago Process: 596942 ExecStop=/usr/local/cpanel/scripts/restartsrv_httpd stop --no-verbose (code=exited, status=0/SUCCESS) Process: 597208 ExecStart=/usr/local/cpanel/scripts/restartsrv_httpd --no-verbose (code=exited, status=1/FAILURE) Main PID: 119186 (code=exited, status=0/SUCCESS) Jan 20 23:34:24 server.com systemd[1]: Starting Apache web server managed by cPanel EasyApache... Jan 20 23:34:25 server.com restartsrv_httpd[597208]: httpd: Syntax error on line 27 of /etc/apache2/conf/httpd.conf: Syntax error on line 14 of /etc/apache2/conf.modules.d/800-mod_security2.conf: Cannot load modules/mod_security2.so into ser> Jan 20 23:34:25 server.com systemd[1]: httpd.service: Control process exited, code=exited status=1 Jan 20 23:34:25 server.com systemd[1]: httpd.service: Failed with result 'exit-code'. Jan 20 23:34:25 server.com systemd[1]: Failed to start Apache web server managed by cPanel EasyApache.
    0
  • cPRex Jurassic Moderator
    Thanks! Let me do some testing with this and I'll get back to you soon.
    0
  • splaquet
    I just noticed something on my post. With CloudLinux and all, I hadn"t installed any PHP*-FPM mods. I"ll double check, but by default, I don"t believe that alt-php8-fpm is installed on CL machines.
    0
  • cPRex Jurassic Moderator
    I created a CloudLinux 8 server and installed cPanel on top of that. It came with the following packages by default: # rpm -qa | grep fpm ea-php56-php-fpm-5.6.40-15.el8.cloudlinux.6.x86_64 ea-php55-php-fpm-5.5.38-53.el8.cloudlinux.6.x86_64 ea-php70-php-fpm-7.0.33-16.el8.cloudlinux.6.x86_64
    I then installed PHP 8.0 and I see that did install the FPM package as part of that work: # rpm -qa | grep fpm ea-php56-php-fpm-5.6.40-15.el8.cloudlinux.6.x86_64 ea-php55-php-fpm-5.5.38-53.el8.cloudlinux.6.x86_64 ea-php80-php-fpm-8.0.0-2.el8.cloudlinux.x86_64 ea-php70-php-fpm-7.0.33-16.el8.cloudlinux.6.x86_64
    I also see the following brotli packages present on the machine: # rpm -qa | grep brotli brotli-1.0.6-2.el8.x86_64 ea-brotli-1.0.2-4.el8.cloudlinux.2.x86_64
    I then installed the mod_brotli package and confirmed Apache wasn't able to start. I removed the mod_security package from the system, and then Apache started normally, so it seems there has been a regression on this case. I've opened EA-9540 for our team to check this again, and I'll keep this page updated as I get more details! Thanks so much for pointing this out!
    0
  • cPRex Jurassic Moderator
    @splaquet - the plot thickens! It looks like this isn't a cPanel issue, but CloudLinux being slightly behind on their packages in relation to our Edge tier. I double-checked this on a CentOS 8 system and things are working well, so we've converted this to an upstream tracking case on our end. Once CloudLinux picks up the changes, I would expect this to work, but I'm going to re-mark this one as solved for now.
    0
  • cPRex Jurassic Moderator
    Another update! CloudLinux is aware and plans to release a fix on January 25.
    0
  • splaquet
    thank you kindly sir
    0
  • cPRex Jurassic Moderator
    You're welcome!!!
    0
  • splaquet
    i was on this page, checking to see if there was any more dialog. since it was after CL's proposed release date for working mod, i tried to install mod_brotli again. ea-apache24-mod_brotli.x86_64 1:2.4.46-1.el8.cloudlinux @cl-ea4-testing
    i installed it via easyapache... and here's the results. doesn't look like it's working yet # systemctl status httpd ? httpd.service - Apache web server managed by cPanel EasyApache Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled) Drop-In: /usr/lib/systemd/system/httpd.service.d ??alt-php80-fpm.conf Active: failed (Result: exit-code) since Sun 2021-02-07 10:03:28 EST; 6s ago Process: 1146102 ExecStop=/usr/local/cpanel/scripts/restartsrv_httpd stop --no-verbose (code=exited, status=0/SUCCESS) Process: 1147690 ExecStart=/usr/local/cpanel/scripts/restartsrv_httpd --no-verbose (code=exited, status=1/FAILURE) Main PID: 1830953 (code=exited, status=0/SUCCESS) Feb 07 10:03:27 systemd[1]: Starting Apache web server managed by cPanel EasyApache... Feb 07 10:03:28 restartsrv_httpd[1147690]: httpd: Syntax error on line 27 of /etc/apache2/conf/httpd.conf: Syntax error on line 14 of /etc/apache2/conf.modules.d/800-mod_security2.conf: Cannot l> Feb 07 10:03:28 systemd[1]: httpd.service: Control process exited, code=exited status=1 Feb 07 10:03:28 systemd[1]: httpd.service: Failed with result 'exit-code'. Feb 07 10:03:28 systemd[1]: Failed to start Apache web server managed by cPanel EasyApache.
    Feb 07 10:03:28 restartsrv_httpd[1147690]: httpd: Syntax error on line 27 of /etc/apache2/conf/httpd.conf: Syntax error on line 14 of /etc/apache2/conf.modules.d/800-mod_security2.conf: Cannot load modules/mod_security2.so into server: /lib64/libbrotlidec.so.1: undefined symbol: BrotliTransformDictionaryWord Feb 07 10:03:28 systemd[1]: httpd.service: Control process exited, code=exited status=1 Feb 07 10:03:28 systemd[1]: httpd.service: Failed with result 'exit-code'. Feb 07 10:03:28 systemd[1]: Failed to start Apache web server managed by cPanel EasyApache.
    0
  • vacancy
    Cloudlinux makes its own rpm. They are following the updates of cpanel a little behind. Have you tried to post a ticket to cloudlinux?
    0

Please sign in to leave a comment.