Author Topic: yum nginx update failed  (Read 4701 times)

0 Members and 1 Guest are viewing this topic.

Offline
**
yum nginx update failed
« on: November 18, 2021, 12:23:45 PM »
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


Offline
**
Re: yum nginx update failed
« Reply #1 on: November 18, 2021, 12:26:27 PM »
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

Offline
*
Re: yum nginx update failed
« Reply #2 on: November 19, 2021, 02:16:21 PM »
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.

Offline
**
Re: yum nginx update failed
« Reply #3 on: November 19, 2021, 10:06:24 PM »
no, the above is the output of the update yum command in the terminal

Offline
***
Re: yum nginx update failed
« Reply #4 on: November 20, 2021, 07:39:27 PM »
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:
Code: [Select]
# 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
« Last Edit: November 20, 2021, 08:12:46 PM by Netino »

Offline
**
Re: yum nginx update failed
« Reply #5 on: November 21, 2021, 09:30:31 AM »
thanks i will try it out.