1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Nginx error on update to new module way.

Discussion in 'Nginx' started by sbagmeijer, Jun 30, 2016.

  1. sbagmeijer

    sbagmeijer Machine

    It has been brought to my attention that upgrading the old nginx versions with the modules compiled into nginx gives and error.

    so for example the old "ulyaoth-nginx-naxsi" if you update this it will try to upgrade to "ulyaoth-nginx" and ulyaoth-nginx-module-naxsi" however you get the following error:

    Error: Transaction check error:
      file /etc/nginx/modules from install of ulyaoth-nginx-1:1.10.1-1.fc23.ngx.x86_64 conflicts with file from package ulyaoth-nginx-naxsi-0.54-3.fc23.x86_64
    This is because nginx adds a symbolic link in called "modules" /etc/nginx/ and my old nginx versions created a directory in named "modules" there.

    to fix this error simply run:
    rm -rf /etc/nginx/modules
    and then run the yum update again and it will work fine.

    If anyone knows a better way how I can fix this in my spec file please feel free to provide a updated version and I will add a new version of the module rpm with your fix:

    This error should only be once due to the swap to a module system we apologise for the inconvenience.

Share This Page