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

apt-get upgrade clobbers user modified service files

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Packaging
    • Labels:
    • Operating System:
      ALL
    • Sprint:
      Build 2018-10-22, Build 2020-03-23

      Description

      From the mongodb-user mailing list:

      Hello,

      We have a production cluster on 4.0 (one shard replicaset, one config replicaset, numbers of app servers/mongos nodes). Have just triggered the upgrade via apt-get. We noticed that in 4.0.0 to 4.0.1 our mongod.service files were getting clobbered, and losing the --replSet xxx in the ExecStart line. In preparation this time, we removed all write access (chmod a-w) from this file ahead of the upgrade, although the process still blew this away and back to default, causing our cluster not to come back up.

      Is there any way we can stop this in the future? Having to go back and reconfigure the start up services every time we do an update is an absolute pain. Any suggestions to avoid this very much appreciated.

      Cheers

        Attachments

          Activity

            People

            Assignee:
            backlog-server-build Backlog - Build Team
            Reporter:
            mathew.robinson Mathew Robinson (Inactive)
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: