Control Web Panel

WebPanel => Updates => Topic started by: Painkiller88 on November 18, 2021, 12:23:45 PM

Title: yum nginx update failed
Post by: Painkiller88 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

Title: Re: yum nginx update failed
Post by: Painkiller88 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
Title: Re: yum nginx update failed
Post by: studio4host on November 19, 2021, 02:16:21 PM
yum update command doesn't work  ?
Title: Re: yum nginx update failed
Post by: Painkiller88 on November 19, 2021, 10:06:24 PM
no, the above is the output of the update yum command in the terminal
Title: Re: yum nginx update failed
Post by: Netino 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
Title: Re: yum nginx update failed
Post by: Painkiller88 on November 21, 2021, 09:30:31 AM
thanks i will try it out.