Nginx stoped working after last updates

AlphaPrime

Active Member
Aug 23, 2021
41
6
8
Romania
cPanel Access Level
Root Administrator
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...
 

Spirogg

Well-Known Member
Feb 21, 2018
695
151
43
chicago
cPanel Access Level
Root Administrator
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
 

AlphaPrime

Active Member
Aug 23, 2021
41
6
8
Romania
cPanel Access Level
Root Administrator
Content of the file>


#!/bin/bash
eval '/usr/local/cpanel/scripts/fix-cpanel-perl && exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"[email protected]"}' ## 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.
# [email protected] 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;
}
 

Spirogg

Well-Known Member
Feb 21, 2018
695
151
43
chicago
cPanel Access Level
Root Administrator

Spirogg

Well-Known Member
Feb 21, 2018
695
151
43
chicago
cPanel Access Level
Root Administrator
Content of the file>


#!/bin/bash
eval '/usr/local/cpanel/scripts/fix-cpanel-perl && exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"[email protected]"}' ## 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.
# [email protected] 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;
}
 

Spirogg

Well-Known Member
Feb 21, 2018
695
151
43
chicago
cPanel Access Level
Root Administrator

Spirogg

Well-Known Member
Feb 21, 2018
695
151
43
chicago
cPanel Access Level
Root Administrator

Spirogg

Well-Known Member
Feb 21, 2018
695
151
43
chicago
cPanel Access Level
Root Administrator
Not working... the problem is still there!
I have not Apache (httpd)
have you tried yum update
and also can you see if it shows in this list
yum list installed
 

Spirogg

Well-Known Member
Feb 21, 2018
695
151
43
chicago
cPanel Access Level
Root Administrator
Not working... the problem is still there!
I have not Apache (httpd)
Code:
[[email protected] ~]# cd /etc/yum.repos.d
[[email protected] yum.repos.d]# dir
almalinux-ha.repo          almalinux-resilientstorage.repo  epel-modular.repo          kernelcare.repo
almalinux-plus.repo        cPAddons.repo                    epel.repo                  kernelcare.repo.rpmnew
almalinux-powertools.repo  cpanel-plugins.repo              epel-testing-modular.repo  Mysql80.repo
almalinux.repo             EA4.repo                         epel-testing.repo
[[email protected] yum.repos.d]#
not sure what OS your using
I have Almalinux 8.5 and cpanel 102.0.13 installed on this server and this is the list of repos I have do you have similar?
 

Spirogg

Well-Known Member
Feb 21, 2018
695
151
43
chicago
cPanel Access Level
Root Administrator
what is the output of:

cat /etc/yum.repos.d/EA4.repo
cat /etc/redhat-release



this is my EA4.repo
Code:
[[email protected] yum.repos.d]# cat EA4.repo
[EA4]
name=EA4 ( EasyApache 4 )
mirrorlist=http://httpupdate.cpanel.net/ea4-c$releasever-$basearch-mirrorlist
gpgcheck=1
gpgkey=https://securedownloads.cpanel.net/cPanelPublicPkgKey.asc
enabled=1
cost=50
[[email protected] yum.repos.d]# cat /etc/redhat-release
AlmaLinux release 8.5 (Arctic Sphynx)
 

Spirogg

Well-Known Member
Feb 21, 2018
695
151
43
chicago
cPanel Access Level
Root Administrator
@AlphaPrime

you can try this as well clean up all repo metacache in yum
then will update all
yum clean all

Code:
[[email protected] ~]# yum clean all
94 files removed



yum makecache

[[email protected] ~]# yum makecache
EA4 ( EasyApache 4 )                                                                     62 kB/s | 2.9 MB     00:48
cPanel Addons Production Feed                                                           7.2 kB/s | 8.9 kB     00:01
cPanel Plugins project                                                                   47 kB/s | 423 kB     00:08
MySQL Connectors Community                                                              1.9 MB/s |  74 kB     00:00
MySQL Tools Community                                                                    21 MB/s | 459 kB     00:00
MySQL 8.0 Community Server                                                               54 MB/s | 2.3 MB     00:00
AlmaLinux 8 - BaseOS                                                                    1.5 MB/s | 8.0 MB     00:05
AlmaLinux 8 - AppStream                                                                  19 MB/s |  10 MB     00:00
AlmaLinux 8 - Extras                                                                     25 kB/s |  12 kB     00:00
AlmaLinux 8 - PowerTools                                                                 11 MB/s | 2.7 MB     00:00
Extra Packages for Enterprise Linux 8 - x86_64                                           18 MB/s |  11 MB     00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64                                  4.0 MB/s | 1.0 MB     00:00
kernelcare                                                                               59 kB/s |  24 kB     00:00
Metadata cache created.
now yum update
 

Spirogg

Well-Known Member
Feb 21, 2018
695
151
43
chicago
cPanel Access Level
Root Administrator

AlphaPrime

Active Member
Aug 23, 2021
41
6
8
Romania
cPanel Access Level
Root Administrator
Code:
[[email protected] ~]# cd /etc/yum.repos.d
[[email protected] yum.repos.d]# dir
almalinux-ha.repo          almalinux-resilientstorage.repo  epel-modular.repo          kernelcare.repo
almalinux-plus.repo        cPAddons.repo                    epel.repo                  kernelcare.repo.rpmnew
almalinux-powertools.repo  cpanel-plugins.repo              epel-testing-modular.repo  Mysql80.repo
almalinux.repo             EA4.repo                         epel-testing.repo
[[email protected] yum.repos.d]#
not sure what OS your using
I have Almalinux 8.5 and cpanel 102.0.13 installed on this server and this is the list of repos I have do you have similar?
I have centos with last update of whm! I have a the repos!
 

Spirogg

Well-Known Member
Feb 21, 2018
695
151
43
chicago
cPanel Access Level
Root Administrator

Spirogg

Well-Known Member
Feb 21, 2018
695
151
43
chicago
cPanel Access Level
Root Administrator
I have centos with last update of whm! I have a the repos!
just for fun can you run this command and see if this is avail version number
/usr/local/apache/bin/apachectl -v

seems weird you have no apache