Skip to main content

Nginx stoped working after last updates

Comments

50 comments

  • cPRex Jurassic Moderator
    Hey there! Can you let me know specifically how you performed the ModSecurity installation? It would seem that is where the issue lies.
    0
  • AlphaPrime
    Hey there! Can you let me know specifically how you performed the ModSecurity installation? It would seem that is where the issue lies.

    EasyApache 4 - Like all nginx modules - after removing it, nginx started to work again
    0
  • AlphaPrime
    Hey there! Can you let me know specifically how you performed the ModSecurity installation? It would seem that is where the issue lies.

    Error: [2022-04-28 03:57:43 +0300] info [restartsrv_nginx] systemd failed to start the service "nginx" (The "/usr/bin/systemctl restart nginx.service --no-ask-password" command (process 30655) reported error number 1 when it ended.): Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details. Waiting for "nginx" to start "failed. Cpanel::Exception::Services::StartError Service Status undefined status from Cpanel::ServiceManager::Services::Nginx Service Error (XID 4whau6) The "nginx" service failed to start. Startup Log Apr 28 03:57:43 hosting.crowds.ro systemd[1]: Starting nginx - high performance web server... Apr 28 03:57:43 hosting.crowds.ro nginx[30656]: nginx: [emerg] dlopen() "/etc/nginx/modules/ngx_http_modsecurity_module.so" failed (libmodsecurity.so.3: cannot open shared object file: No such file or directory) in /etc/nginx/conf.d/modules/ngx_http_modsecurity_module.conf:1 Apr 28 03:57:43 hosting.crowds.ro systemd[1]: nginx.service: control process exited, code=exited status=1 Apr 28 03:57:43 hosting.crowds.ro systemd[1]: Failed to start nginx - high performance web server. Apr 28 03:57:43 hosting.crowds.ro systemd[1]: Unit nginx.service entered failed state. Apr 28 03:57:43 hosting.crowds.ro systemd[1]: nginx.service failed. Log Messages Apr 28 03:57:43 hosting nginx: nginx: [emerg] dlopen() "/etc/nginx/modules/ngx_http_modsecurity_module.so" failed (libmodsecurity.so.3: cannot open shared object file: No such file or directory) in /etc/nginx/conf.d/modules/ngx_http_modsecurity_module.conf:1 nginx has failed. Contact your system administrator if the service does not automagically recover.
    0
  • cPRex Jurassic Moderator
    This may also be a good one to open a ticket for. With the odd behavior on this machine in general, it seems like there could be some underlying configuration issues keeping everything from working well.
    0
  • AlphaPrime
    This may also be a good one to open a ticket for. With the odd behavior on this machine in general, it seems like there could be some underlying configuration issues keeping everything from working well.

    There is already one tiket! I am witing for an answer!
    0
  • cPRex Jurassic Moderator
    Can you post the ticket number here so I can follow along with that?
    0
  • AlphaPrime
    Can you post the ticket number here so I can follow along with that?

    Ticket #94441087 One of my accounts stoped working, The rest are ok!
    0
  • cPRex Jurassic Moderator
    Thanks for that - I'm following along with that ticket on my end now.
    0
  • Spirogg
    Ticket #94441087 One of my accounts stoped working, The rest are ok!

    are you using Ubuntu ?
    0
  • AlphaPrime
    are you using Ubuntu ?

    CentOS, but in EasyApache 4 I have many moduls with cloudlinux... I don't understand why... this is from the last full update of WHM
    0
  • AlphaPrime
    From what I see I can't install http2 from EasyApache 4... It dosen't exist when I try to install with the terminal. And in EasyApache 4 is not showing in review for provisioning if I try to install... I don't know what the support has done because after them I have lost this http2! And no support is responding...
    0
  • AlphaPrime
    # sudo yum install httpd Loaded plugins: fastestmirror, universal-hooks, versionlock Loading mirror speeds from cached hostfile * EA4: 93.115.203.100 * cpanel-addons-production-feed: 93.115.203.100 * cpanel-plugins: 93.115.203.100 * base: ro-bucharest-repo.bigstepcloud.com * centos-sclo-rh: mirrors.m247.ro * centos-sclo-sclo: ro-bucharest-repo.bigstepcloud.com * epel: mirrors.nav.ro * extras: ro-bucharest-repo.bigstepcloud.com * remi: mirrors.neterra.net * remi-safe: mirrors.neterra.net * updates: ro-bucharest-repo.bigstepcloud.com varnish60lts/signature | 833 B 00:00:00 varnish60lts/signature | 1.8 kB 00:00:03 !!! No package httpd available. Error: Nothing to do
    0
  • Spirogg
    # sudo yum install httpd Loaded plugins: fastestmirror, universal-hooks, versionlock Loading mirror speeds from cached hostfile * EA4: 93.115.203.100 * cpanel-addons-production-feed: 93.115.203.100 * cpanel-plugins: 93.115.203.100 * base: ro-bucharest-repo.bigstepcloud.com * centos-sclo-rh: mirrors.m247.ro * centos-sclo-sclo: ro-bucharest-repo.bigstepcloud.com * epel: mirrors.nav.ro * extras: ro-bucharest-repo.bigstepcloud.com * remi: mirrors.neterra.net * remi-safe: mirrors.neterra.net * updates: ro-bucharest-repo.bigstepcloud.com varnish60lts/signature | 833 B 00:00:00 varnish60lts/signature | 1.8 kB 00:00:03 !!! No package httpd available. Error: Nothing to do

    what mpm are you using ? rpm -qa | grep mpm
    read this
    0
  • Spirogg
    you can test here for your site
    0
  • AlphaPrime
    what mpm are you using ? rpm -qa | grep mpm
    read this
    0
  • AlphaPrime
    what mpm are you using ? rpm -qa | grep mpm
    read this
    0
  • Spirogg
    Yum install httpd is not working!

    do you still have Nginx avail ? or no
    0
  • AlphaPrime
    do you still have Nginx avail ? or no

    Nginx now can be installed or removed... nothing happens... when is removed there is full eror on the websites... there is no server If there is nginx the all sites have a 503 Error
    0
  • Spirogg
    Yum install httpd is not working!

    I would send support to cloudlinux since you said you run cloudlinux. they respond pretty quick
    0
  • AlphaPrime
    do you still have Nginx avail ? or no

    It is more like no Apache on the server! And yum install httpd has no packge
    0
  • AlphaPrime
    I would send support to cloudlinux since you said you run cloudlinux. they respond pretty quick

    That is the problem... i don t have cloudlinux...
    0
  • AlphaPrime
    Don t know why all my easyapache 4 were cloudlinux... removing and instaling back made them cpanel again. Last time, i have updated all of them from easy apache and becomed cludlinux... why? Don t know...
    0
  • Spirogg
    That is the problem... i don t have cloudlinux...

    oh I'm sorry I thought you did.. this first: and show the output here /usr/local/cpanel/scripts/check_cpanel_pkgs --fix
    0
  • AlphaPrime
    oh I'm sorry I thought you did.. this first: and show the output here /usr/local/cpanel/scripts/check_cpanel_pkgs --fix

    [root@hosting ~]# /usr/local/cpanel/scripts/check_cpanel_pkgs --fix [root@hosting ~]# nothing
    0
  • AlphaPrime
    Content of the file> #!/bin/bash eval '/usr/local/cpanel/scripts/fix-cpanel-perl && exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"}' ## no critic qw(ProhibitStringyEval RequireUseStrict RequireUseWarnings) if 0; #!/usr/bin/perl # cpanel - scripts/check_cpanel_pkgs Copyright 2022 cPanel, L.L.C. # All rights reserved. # copyright@cpanel.net Hosting Platform of Choice # This code is subject to the cPanel license. Unauthorized copying is prohibited package scripts::check_cpanel_pkgs; # This script will handle repairing/listing broken RPMs # - # Q: What is a broken aka altered RPM? # A: Any files output by a rpm -V RPM_PACKAGE_NAME that are listed to have a different MD5 sum or permission change indicate a broken RPM. use strict; use warnings; use Cpanel::Usage (); use Cpanel::Update::Logger (); use Cpanel::RPM::Versions::File (); use Cpanel::TempFile (); use Cpanel::LoadModule (); exit __PACKAGE__->script(@ARGV) unless caller(); sub script { my ( $class, @argv ) = @_; local $| = 1; my $list_only = 0; my $long_list = 0; my $fix = 0; my $contact = 0; my $targets = 0; my $nodir = 0; my $skip_digest_check = 0; my $skip_broken_check = 0; my $download_only = 0; my %opts = ( 'long-list' => \$long_list, 'list-only' => \$list_only, 'fix' => \$fix, 'notify' => \$contact, 'targets' => \$targets, 'nodir' => \$nodir, 'no-digest' => \$skip_digest_check, 'no-broken' => \$skip_broken_check, 'download-only' => \$download_only, ); my $self = bless { 'notification_rpms' => [], }, $class; my $status = Cpanel::Usage::wrap_options( { strict => 1 }, \@argv, \&usage, \%opts ) || 0; usage(1) if $status > 2; usage(1) if ( $list_only && $fix ); my $logger = Cpanel::Update::Logger->new( { 'stdout' => 1, 'log_level' => 'info' } ); my $temp; my %directory_options = (); if ($nodir) { $temp = Cpanel::TempFile->new; my $tempdir = $temp->dir; $directory_options{'directory'} = $tempdir; }
    0
  • Spirogg
    Don t know why all my easyapache 4 were cloudlinux... removing and instaling back made them cpanel again.

    that is weird?
    [root@hosting ~]# /usr/local/cpanel/scripts/check_cpanel_pkgs --fix

    show nothing needs fixing ?
    0
  • Spirogg
    Content of the file> #!/bin/bash eval '/usr/local/cpanel/scripts/fix-cpanel-perl && exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"}' ## no critic qw(ProhibitStringyEval RequireUseStrict RequireUseWarnings) if 0; #!/usr/bin/perl # cpanel - scripts/check_cpanel_pkgs Copyright 2022 cPanel, L.L.C. # All rights reserved. # copyright@cpanel.net
    0
  • Spirogg
    [root@hosting ~]# /usr/local/cpanel/scripts/check_cpanel_pkgs --fix [root@hosting ~]# nothing

    have you tried /scripts/upcp --force forces updates
    0
  • AlphaPrime
    have you tried /scripts/upcp --force forces updates

    I will try now! to see
    0
  • AlphaPrime
    have you tried /scripts/upcp --force forces updates

    Not working... the problem is still there! I have not Apache (httpd)
    0

Please sign in to leave a comment.