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

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 4.4.0-rc2
    • Fix Version/s: 100.0.2
    • Component/s: None
    • Labels:
      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

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

              Dates

              Created:
              Updated:
              Resolved: