Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-2559

Error on uninstalling database-tools 99.0.1-1 RPM

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 4.4.0-rc2
    • 100.0.2
    • None
    • None

    Description

      When uninstalling the 99.0.1-1 mongodb-database-tools package (as part of the dependency stack from removing MDB 4.4.0rc2), users receive the following error:

      rm: cannot remove '/usr/doc/mongodb-database-tools': No such file or directory
      

      The error is non-fatal, and packages and support files are otherwise removed as expected.

      • rm step is here:

      https://github.com/mongodb/mongo-tools/blob/9408503f0dd17ff98baa2967c2438e97b3a4fdb2/installer/rpm/mongodb-database-tools.spec#L96

      • Seems like this step just needs some conditional checking similar to this test in the postinstall:

      https://github.com/mongodb/mongo-tools/blob/9408503f0dd17ff98baa2967c2438e97b3a4fdb2/installer/rpm/mongodb-database-tools.spec#L78

      My CentOS 8 install does not have a /usr/share directory, so line 78 skips the symlink creation. The uninstall likely just needs to similarly skip removing it if not present.

      Hope this helps!

      Attachments

        Activity

          People

            evgeni.dobranov@mongodb.com Evgeni Dobranov
            andrew.feierabend@mongodb.com Andrew Feierabend (Inactive)
            Patrick Meredith
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: