New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

yum nginx update failed

Started by Painkiller88, November 18, 2021, 12:23:45 PM

Previous topic - Next topic

Painkiller88

CWPpro version: 0.9.8.1101

YUM is not able to update this package: nginx.x86_64    1:1.20.2-1.el7.ngx

the automatic updater just shows failed and cleared but it never works.

Any ideas how i get this to work or how i can see what exactly is the problem?

In the logs i haven't found any yum or update log.

thanks


Painkiller88

i tried to update it in the terminal and it was a bit more user friendly what's going on:

It is in german but it tells me unpacking was the problem

Running transaction
  Aktualisieren    : 1:nginx-1.20.2-1.el7.ngx.x86_64                        1/2
Error unpacking rpm package 1:nginx-1.20.2-1.el7.ngx.x86_64
Fehler: Entpacken des Archivs fehlgeschlagen bei Datei /etc/nginx/modules: cpio: rename
1:nginx-1.20.1-2.el7.x86_64 was supposed to be removed but is not!
  Überprüfung läuft: 1:nginx-1.20.1-2.el7.x86_64                            1/2
  Überprüfung läuft: 1:nginx-1.20.2-1.el7.ngx.x86_64                        2/2

Fehlgeschlagen:
  nginx.x86_64 1:1.20.1-2.el7          nginx.x86_64 1:1.20.2-1.el7.ngx

studio4host

yum update command doesn't work  ?
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Painkiller88

no, the above is the output of the update yum command in the terminal

Netino

#4
The problem probably you have two repositories for nginx binaries (possibly CentOS and nginx repositories).

I had the exact same problem, and was needed to remove and downgrade the nginx version to a working version:

# yum remove nginx
# yum install nginx-1.20.1-1.el7.ngx

May be needed remove other nginx packages too.

A *serious* problem:
Be careful and make sure you have the configuration file backed up ('/etc/nginx/nginx.conf'), because it will erase that file.
You will need to restore this file from backup, to keep the new downgraded binary nginx working.

Regards,
Netino

Painkiller88