File /etc/init.d/nginx from install of sw-nginx conflicts with file from package nginx

Refers to:

  • Plesk 11.5 for Linux

Created:

2016-11-16 13:09:36 UTC

Modified:

2016-12-21 20:05:05 UTC

0

Was this article helpful?


Have more questions?

Submit a request

File /etc/init.d/nginx from install of sw-nginx conflicts with file from package nginx

Symptoms

Plesk 11.5 installation fails if the server has already installed nginx-1.0 package. It causes yum conflict.

Case 1 (applying nginx template to container)

Nginx conflict occurs during the installation Plesk nginx application into container.

[root@hw_node]# vzpkg install 4100 pp11.5-nginx --os centos-5-x86_64

Transaction Check Error:
file /etc/init.d/nginx from install of sw-nginx-1.5.0-1.13060711.centos5.x86_64 conflicts with file from package nginx-1.0.0-1.el5.art.x86_64
........................
file /usr/sbin/nginx from install of sw-nginx-1.5.0-1.13060711.centos5.x86_64 conflicts with file from package nginx-1.0.0-1.el5.art.x86_64

Case 2 (upgrading Plesk using Plesk autoinstaller inside of Virtuozzo container)

[root@vps]# less /tmp/autoinstaller3.log

Fatal error during packages installation: Test Transaction Errors:   file /etc/nginx from install of plesk-web-hosting-11.5.30-cos5.build115130819.13.i386 conflicts with file from package nginx-1.0.8-0.i386
Traceback (most recent call last):
File "/usr/local/psa/bin/yum_install", line 224, in ?
main()
File "/usr/local/psa/bin/yum_install", line 219, in main
installer.perform(to_install, opts.remove, opts.tries)
File "/usr/local/psa/bin/yum_install", line 160, in perform
self._perform(to_install, to_remove, pt_callback)
File "/usr/local/psa/bin/yum_install", line 177, in _perform
self.processTransaction(callback = pt_callback, rpmDisplay = QuietCallback())
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 3639, in processTransaction
self._doTestTransaction(callback,display=rpmTestDisplay)
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 3729, in _doTestTransaction
raise Errors.YumTestTransactionError, errstring
YumTestTransactionError: Test Transaction Errors: file /etc/nginx from install of plesk-web-hosting-11.5.30-cos5.build115130819.13.i386 conflicts with file from package nginx-1.0.8-0.i386

Cause

You have already installed nginx package before instead of sw-nginx package.

# rpm -qa | grep nginx
nginx-1.0.0-1.el5.art

Existing nginx files cause the conflicts when the system tries to place the files from sw-nginx package.

Resolution

Remove the nginx-1.0.0 and retry the template installation (or Plesk upgrade) again:

[root@vps]# rpm -e --justdb --nodeps --noscripts --notriggers nginx

[root@hw_node]# vzpkg install 4100 pp11.5-nginx --os centos-5-x86_64
Have more questions? Submit a request
Please sign in to leave a comment.