nextcloud icon indicating copy to clipboard operation
nextcloud copied to clipboard

Trouble with nginx step on Fedora 35

Open ebdavison opened this issue 2 years ago • 2 comments

I was able to fix a few issues along the way so far (like system installed python packages which crashed the prepare_system.sh so uninstalled the system version and then the script was able to continue).

But, I am stuck here and don't know exactly what needs to be done.

TASK [prep_nginx : install needed packages] ********************************************************************************************
Tuesday 29 March 2022  12:36:01 -0500 (0:00:00.295)       0:00:02.334 *********
fatal: [localhost]: FAILED! => changed=false
  failures: []
  msg: |-
    Depsolve Error occurred:
     Problem: cannot install the best update candidate for package nginx-1:1.20.2-1.fc35.x86_64
      - nothing provides libcrypto.so.10()(64bit) needed by nginx-1:1.21.6-1.el7.ngx.x86_64
      - nothing provides libcrypto.so.10(libcrypto.so.10)(64bit) needed by nginx-1:1.21.6-1.el7.ngx.x86_64
      - nothing provides libssl.so.10()(64bit) needed by nginx-1:1.21.6-1.el7.ngx.x86_64
      - nothing provides libssl.so.10(libssl.so.10)(64bit) needed by nginx-1:1.21.6-1.el7.ngx.x86_64
      - nothing provides libcrypto.so.10(OPENSSL_1.0.2)(64bit) needed by nginx-1:1.21.6-1.el7.ngx.x86_64
  rc: 1
  results: []

PLAY RECAP *****************************************************************************************************************************
localhost                  : ok=3    changed=0    unreachable=0    failed=1    skipped=7    rescued=0    ignored=0

If I check on the nginx package with dnf I get:

[root@valinor nextcloud]# dnf install nginx
Last metadata expiration check: 3:59:18 ago on Tue 29 Mar 2022 08:40:30 AM CDT.
Dependencies resolved.
========================================================================================================================================
 Package                              Architecture               Version                              Repository                   Size
========================================================================================================================================
Installing:
 nginx                                x86_64                     1:1.20.2-1.fc35                      updates                     595 k
Installing dependencies:
 gperftools-libs                      x86_64                     2.9.1-2.fc35                         fedora                      309 k
 nginx-filesystem                     noarch                     1:1.20.2-1.fc35                      updates                      10 k
 nginx-mimetypes                      noarch                     2.1.53-2.fc35                        fedora                       21 k
 openssl                              x86_64                     1:1.1.1n-1.fc35                      updates                     658 k

Transaction Summary
========================================================================================================================================
Install  5 Packages

Total download size: 1.6 M
Installed size: 4.3 M
Is this ok [y/N]: n
Operation aborted.

ebdavison avatar Mar 29 '22 17:03 ebdavison

The Fedora.yml task file is rather old. Sorry.

I guess right now nginx is include in "normal" fedora repos. Back in time I configured a CentOS 7 nginx repo as the source of the rpm packages of nginx.

see: https://github.com/ReinerNippes/nextcloud/blob/master/roles/prep_nginx/tasks/Fedora.yml#L9 baseurl: http://nginx.org/packages/mainline/centos/7/$basearch/

you could simply try to comment this line: https://github.com/ReinerNippes/nextcloud/blob/master/roles/prep_nginx/tasks/Fedora.yml#L26 which enables the centos repo during the installation task.

ReinerNippes avatar Mar 30 '22 10:03 ReinerNippes

I will give that a try. Thanks.

ebdavison avatar Mar 30 '22 10:03 ebdavison