Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-68470

Amazon Linux 4.2/4.4 RPMs fail to install due to missing shadow-utils

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 4.4.15, 4.2.21
    • 4.4.18
    • None
    • None
    • Fully Compatible
    • ALL
    • v4.2

    Description

      I am testing installing our server RPM in clean Amazon Linux 1 and 2 distros and ran into an issue:

      /var/tmp/rpm-tmp.VPEB9d: line 2: /usr/sbin/groupadd: No such file or directory
      error: %pre(mongodb-org-server-4.4.15-1.amzn2.x86_64) scriptlet failed, exit status 127
        Installing : qrencode-libs-3.4.1-3.amzn2.0.2.x86_64                    
      error: mongodb-org-server-4.4.15-1.amzn2.x86_64: install failed

      You can reproduce by trying to build this image with an OCI builder of your choice. It seems like shadow-utils is not detected as a dependency correctly? I found this ticket from ages ago which should have fixed this, but perhaps there’s something funny going on in Amazon Linux 2 and Amazon Linux 1? Note: This only impacts 4.2 and 4.4 for Amazon Linux 2 and 4.2 for Amazon Linux 1; 5.0+ seems OK.

      Attachments

        Issue Links

          Activity

            People

              alexander.neben@mongodb.com Xander Neben
              dylan.richardson@mongodb.com Dylan Richardson
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: