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

Amazon 2023 community packages fail to install

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.3.0-rc0, 7.0.6, 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Build
    • Fully Compatible
    • ALL
    • v7.0
    • 151

      With the following Dockerfile:

      FROM amazonlinux:2023
      RUN echo $'\n\
      [mongodb]\n\
      name=MongoDB Repository\n\
      baseurl=https://repo.mongodb.org/yum/amazon/2023/mongodb-org/7.0/x86_64/\n\
      gpgcheck=1\n\
      enabled=1\n\
      gpgkey=https://www.mongodb.org/static/pgp/server-7.0.asc' > /etc/yum.repos.d/mongodb.repo
      RUN yum install -y mongodb-org
      

      I get installation errors because groupadd appears to be missing, but is depended upon by our preinstall script.

      Running transaction
        Preparing        :                                                        1/1
        Installing       : systemd-libs-252.4-1161.amzn2023.0.4.x86_64           1/44
        Installing       : cyrus-sasl-lib-2.1.27-18.amzn2023.0.3.x86_64          2/44
        Installing       : openssl-1:3.0.8-1.amzn2023.0.3.x86_64                 3/44
        Installing       : mongodb-org-database-tools-extra-7.0.0-1.amzn2023.    4/44
        Installing       : util-linux-core-2.37.4-1.amzn2023.0.3.x86_64          5/44
        Running scriptlet: util-linux-core-2.37.4-1.amzn2023.0.3.x86_64          5/44
        Installing       : libfdisk-2.37.4-1.amzn2023.0.3.x86_64                 6/44
        Running scriptlet: mongodb-org-server-7.0.0-1.amzn2023.x86_64            7/44
      /var/tmp/rpm-tmp.JeCViQ: line 2: /usr/sbin/groupadd: No such file or directory
      error: %prein(mongodb-org-server-7.0.0-1.amzn2023.x86_64) scriptlet failed, exit status 127
      
      Error in PREIN scriptlet in rpm package mongodb-org-server
        Installing       : cyrus-sasl-plain-2.1.27-18.amzn2023.0.3.x86_64        8/44
      error: mongodb-org-server-7.0.0-1.amzn2023.x86_64: install failed
      

      I think we may need to declare a new dependency just for amazon 2023 packages to ensure this binary is available. I am also curious about environment differences between our setup and the packaging tests that could cause this error.

            Assignee:
            zack.winter@mongodb.com Zack Winter
            Reporter:
            dylan.richardson@mongodb.com Dylan Richardson
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: