Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-8460

Uninstall followed by re-install may leave xdcr _replicator database intact causing badness

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0, 2.0.1, 2.1.0
    • Fix Version/s: 2.2.0
    • Component/s: installer, ns_server
    • Security Level: Public
    • Labels:
    • Flagged:
      Release Note
    • Sprint:
      12/Aug - 30/Aug

      Description

      It was found that in installations with custom data path uninstall doesn't clean up anything. And then it's possible as part of installation to choose same data path.

      All database files will be deleted in the process, but _replicator database will be left intact. Which will cause node to think it still have those old XDCR replications it had before uninstall. This will cause tons of internal crashes and UI confusion.

      For 2.1.0 we'll document workaround. If you're doing uninstall followed by reinstall, make sure to manually delete _replicator.couch.1 file from data directory before reinstalling.

        Issue Links

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

          Hide
          alkondratenko Aleksey Kondratenko (Inactive) added a comment -

          Added 2.1.0 to Fix Versions in order to get this into release notes

          Show
          alkondratenko Aleksey Kondratenko (Inactive) added a comment - Added 2.1.0 to Fix Versions in order to get this into release notes
          Hide
          alkondratenko Aleksey Kondratenko (Inactive) added a comment -

          Particularly, folks should either delete entire data directory manually, or just delete _replicator.couch.1 file in the root of this directory

          Show
          alkondratenko Aleksey Kondratenko (Inactive) added a comment - Particularly, folks should either delete entire data directory manually, or just delete _replicator.couch.1 file in the root of this directory
          Hide
          kzeller kzeller added a comment -

          Added to RN 2.1.0:

          <rnentry type="knownissue">

          <version ver="2.1.0a"/>

          <class id="install"/>

          <issue type="cb" ref="MB-8460"/>

          <rntext>

          <para>
          You may have a installation of Couchbase Server with a custom data path. If you perform a server uninstall and then install 2.1.0 with the same custom path,
          some older XDCR replication files may be left intact. This will result in server crashes and incorrect information in Web Console.
          The workaround for this case is to make sure you manually delete the <filename>_replicator.couch.1</filename> file from
          the server data directory before you install the new version of the server. Alternately you can delete the entire data directory before you install the new version
          of the server.
          </para>

          </rntext>

          </rnentry>

          Show
          kzeller kzeller added a comment - Added to RN 2.1.0: <rnentry type="knownissue"> <version ver="2.1.0a"/> <class id="install"/> <issue type="cb" ref=" MB-8460 "/> <rntext> <para> You may have a installation of Couchbase Server with a custom data path. If you perform a server uninstall and then install 2.1.0 with the same custom path, some older XDCR replication files may be left intact. This will result in server crashes and incorrect information in Web Console. The workaround for this case is to make sure you manually delete the <filename>_replicator.couch.1</filename> file from the server data directory before you install the new version of the server. Alternately you can delete the entire data directory before you install the new version of the server. </para> </rntext> </rnentry>
          Hide
          kzeller kzeller added a comment -

          Added to RN 2.1.0:

          <rnentry type="knownissue">

          <version ver="2.1.0a"/>

          <class id="install"/>

          <issue type="cb" ref="MB-8460"/>

          <rntext>

          <para>
          You may have a installation of Couchbase Server with a custom data path. If you perform a server uninstall and then install 2.1.0 with the same custom path,
          some older XDCR replication files may be left intact. This will result in server crashes and incorrect information in Web Console.
          The workaround for this case is to make sure you manually delete the <filename>_replicator.couch.1</filename> file from
          the server data directory before you install the new version of the server. Alternately you can delete the entire data directory before you install the new version
          of the server.
          </para>

          </rntext>

          </rnentry>

          Show
          kzeller kzeller added a comment - Added to RN 2.1.0: <rnentry type="knownissue"> <version ver="2.1.0a"/> <class id="install"/> <issue type="cb" ref=" MB-8460 "/> <rntext> <para> You may have a installation of Couchbase Server with a custom data path. If you perform a server uninstall and then install 2.1.0 with the same custom path, some older XDCR replication files may be left intact. This will result in server crashes and incorrect information in Web Console. The workaround for this case is to make sure you manually delete the <filename>_replicator.couch.1</filename> file from the server data directory before you install the new version of the server. Alternately you can delete the entire data directory before you install the new version of the server. </para> </rntext> </rnentry>
          Hide
          alkondratenko Aleksey Kondratenko (Inactive) added a comment -

          Actual bug is still not fixed and will be fixed in 2.1.1

          Show
          alkondratenko Aleksey Kondratenko (Inactive) added a comment - Actual bug is still not fixed and will be fixed in 2.1.1
          Hide
          kzeller kzeller added a comment -

          ok assigned back to you!

          Show
          kzeller kzeller added a comment - ok assigned back to you!
          Hide
          kzeller kzeller added a comment -

          Removing doc as component until needed for future release.....

          Show
          kzeller kzeller added a comment - Removing doc as component until needed for future release.....
          Hide
          artem Artem Stemkovski added a comment -
          Show
          artem Artem Stemkovski added a comment - fixed in 2.2.0 http://review.couchbase.org/28423
          Hide
          ketaki Ketaki Gangal added a comment -

          Verified in 2.2.0

          Show
          ketaki Ketaki Gangal added a comment - Verified in 2.2.0

            People

            • Assignee:
              ketaki Ketaki Gangal
              Reporter:
              alkondratenko Aleksey Kondratenko (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Agile

                  Gerrit Reviews

                  There are no open Gerrit changes