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

apt-get upgrade clobbers user modified service files

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Packaging
    • Build
    • ALL
    • Build 2018-10-22, Build 2020-03-23

      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

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

              Created:
              Updated:
              Resolved: