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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.4.18, 4.2.24
    • Affects Version/s: 4.4.15, 4.2.21
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v4.2
    • 30

      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.

            Assignee:
            alex.neben@mongodb.com Alex Neben
            Reporter:
            dylan.richardson@mongodb.com Dylan Richardson
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: