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

[windows] Upgrade fails on cluster from 181 to 2.0 ( node referenced using hostnames) even after changing "ip" file

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: installer, tools
    • Security Level: Public
    • Environment:
      build 1967 on windows 64bit

      Description

      The upgrade from 181 to 2.0 doesn't work as expected on windows64 even after changing the C:\Program Files\Couchbase\Server\var\lib\couchbase\ip file. Tested with build 1967 with following steps:

      1. Install 1.8.1. Create default bucket.
      2. Change the hostname as per below steps:
      http://www.couchbase.com/docs/couchbase-manual-1.8/couchbase-bestpractice-cloud-ip.html
      3. Verify the hostname has been changed in the Servers section on UI.
      4. Edit the C:\Program Files\Couchbase\Server\var\lib\couchbase\ip file to reflect the latest hostname.
      5. Upgrade to build 1967.
      6. Existing buckets prior to upgrade are not available and Servers tab shows the IP address again. The hostname change is lost.

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

        Activity

        deepkaran.salooja Deepkaran Salooja created issue -
        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        using windows with host names is not a supported solution. deferring this to 2.1 to make this work by then!

        Show
        farshid Farshid Ghods (Inactive) added a comment - using windows with host names is not a supported solution. deferring this to 2.1 to make this work by then!
        farshid Farshid Ghods (Inactive) made changes -
        Field Original Value New Value
        Fix Version/s 2.1 [ 10414 ]
        Fix Version/s 2.0 [ 10114 ]
        Hide
        ketaki Ketaki Gangal added a comment -

        This should be supported?

        Show
        ketaki Ketaki Gangal added a comment - This should be supported?
        Hide
        bcui Bin Cui added a comment -

        After upgrade to build 1967, you should follow the step 2 again to change to hostnaem to ip address. We don't keep the hostname during upgrade. But we should keep the date upgraded. Can you try again?

        Show
        bcui Bin Cui added a comment - After upgrade to build 1967, you should follow the step 2 again to change to hostnaem to ip address. We don't keep the hostname during upgrade. But we should keep the date upgraded. Can you try again?
        Hide
        steve Steve Yen added a comment -

        Ketaki also pointed out to me that the instructions to upgrade ip->hostname do also cover both linux and windows.

        Show
        steve Steve Yen added a comment - Ketaki also pointed out to me that the instructions to upgrade ip->hostname do also cover both linux and windows.
        Hide
        ketaki Ketaki Gangal added a comment -
        Show
        ketaki Ketaki Gangal added a comment - http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-bestpractice-cloud-ip.html * updated the document link pointed above.
        Hide
        deepkaran.salooja Deepkaran Salooja added a comment -

        Tried again and followed step 2 again after the upgrade.

        Now the hostname is shown correctly. But the bucket(and the data) is lost after upgrade.
        After upgrade, setup screen is shown and old bucket/data is lost.

        Show
        deepkaran.salooja Deepkaran Salooja added a comment - Tried again and followed step 2 again after the upgrade. Now the hostname is shown correctly. But the bucket(and the data) is lost after upgrade. After upgrade, setup screen is shown and old bucket/data is lost.
        Hide
        bcui Bin Cui added a comment -

        http://review.couchbase.org/#/c/22964/

        Before upgrade:
        Make sure ip file that contains hostname exists under <installroot>\var\lib\couchbase. Without it, upgrade will fail if node referenced with hostname !!!

        After upgrade:
        1. net stop couchbaseserver
        2. copy <installroot>\var\lib\couchbase\config.dat <installroot>\var\lib\couchbase\config\config.dat
        3. following the http://www.couchbase.com/docs/couchbase-manual-1.8/couchbase-bestpractice-cloud-ip.html to modify the node reference back to hostname
        4. net start couchbaseserver

        The above second step is newly added. We need to modify document to reflect the change. Again, this step is essential. Without it, you won't see the upgraded data and original bucket settings!

        Show
        bcui Bin Cui added a comment - http://review.couchbase.org/#/c/22964/ Before upgrade: Make sure ip file that contains hostname exists under <installroot>\var\lib\couchbase. Without it, upgrade will fail if node referenced with hostname !!! After upgrade: 1. net stop couchbaseserver 2. copy <installroot>\var\lib\couchbase\config.dat <installroot>\var\lib\couchbase\config\config.dat 3. following the http://www.couchbase.com/docs/couchbase-manual-1.8/couchbase-bestpractice-cloud-ip.html to modify the node reference back to hostname 4. net start couchbaseserver The above second step is newly added. We need to modify document to reflect the change. Again, this step is essential. Without it, you won't see the upgraded data and original bucket settings!
        Hide
        bcui Bin Cui added a comment -

        My test image exists under 10.3.2.23\c:\tmp\couchbase-server.setup.exe.

        Show
        bcui Bin Cui added a comment - My test image exists under 10.3.2.23\c:\tmp\couchbase-server.setup.exe.
        Hide
        ketaki Ketaki Gangal added a comment -

        Verified this on a 1 node 181 to 2.0 upgrade. It works, all data recovered from 181

        Show
        ketaki Ketaki Gangal added a comment - Verified this on a 1 node 181 to 2.0 upgrade. It works, all data recovered from 181
        Hide
        steve Steve Yen added a comment -

        The change for review is based on a commit that's been -1'ed, so the change will need to be updated to be instead based on the last, submitted couchbase commit.

        Show
        steve Steve Yen added a comment - The change for review is based on a commit that's been -1'ed, so the change will need to be updated to be instead based on the last, submitted couchbase commit.
        Hide
        steve Steve Yen added a comment -

        up to blocker.

        Show
        steve Steve Yen added a comment - up to blocker.
        steve Steve Yen made changes -
        Priority Major [ 3 ] Blocker [ 1 ]
        steve Steve Yen made changes -
        Assignee Steve Yen [ steve ] Bin Cui [ bcui ]
        Hide
        bcui Bin Cui added a comment -

        Rebased commit is submitted.

        Show
        bcui Bin Cui added a comment - Rebased commit is submitted.
        Hide
        deepkaran.salooja Deepkaran Salooja added a comment -

        With build 1971(which has the fix), the hostname is shown and the original bucket is shown but the data is lost.

        Below are the detailed steps I followed:

        1. Install 1.8.1 on single node 64bit windows.
        2. Change the hostname as per below steps:
        http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-bestpractice-cloud-ip.html
        3. Setup the cluster on UI and verify the hostname is being used in the Servers section on UI.
        4. Create default bucket and load 500 items
        5. Edit the ip file under <installroot>\var\lib\couchbase to have the hostname.
        6. Upgrade to build 1971
        7. net stop couchbaseserver
        8. copy <installroot>\var\lib\couchbase\config.dat <installroot>\var\lib\couchbase\config\config.dat
        9. modify the node reference back to hostname
        http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-bestpractice-cloud-ip.html
        10. The UI shows the hostname and default bucket but there is no data in the bucket.

        Show
        deepkaran.salooja Deepkaran Salooja added a comment - With build 1971(which has the fix), the hostname is shown and the original bucket is shown but the data is lost. Below are the detailed steps I followed: 1. Install 1.8.1 on single node 64bit windows. 2. Change the hostname as per below steps: http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-bestpractice-cloud-ip.html 3. Setup the cluster on UI and verify the hostname is being used in the Servers section on UI. 4. Create default bucket and load 500 items 5. Edit the ip file under <installroot>\var\lib\couchbase to have the hostname. 6. Upgrade to build 1971 7. net stop couchbaseserver 8. copy <installroot>\var\lib\couchbase\config.dat <installroot>\var\lib\couchbase\config\config.dat 9. modify the node reference back to hostname http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-bestpractice-cloud-ip.html 10. The UI shows the hostname and default bucket but there is no data in the bucket.
        Hide
        bcui Bin Cui added a comment -

        Tested build 1971 on setup 10.3.2.23. And it works with all data upgraded correctly.

        Give me your ip address and and i will take a look. Also, please check directory <installdroot>\var\lib\couchbase\data. Do you see both default and default-data directories or just default-data directory? Make sure that ip file name will be just "ip" instead of "ip.txt". And can you show me the content of <installroot>\var\lib\couchbase\config\ip ?

        Show
        bcui Bin Cui added a comment - Tested build 1971 on setup 10.3.2.23. And it works with all data upgraded correctly. Give me your ip address and and i will take a look. Also, please check directory <installdroot>\var\lib\couchbase\data. Do you see both default and default-data directories or just default-data directory? Make sure that ip file name will be just "ip" instead of "ip.txt". And can you show me the content of <installroot>\var\lib\couchbase\config\ip ?
        farshid Farshid Ghods (Inactive) made changes -
        Fix Version/s 2.0 [ 10114 ]
        Fix Version/s 2.1 [ 10414 ]
        Hide
        ketaki Ketaki Gangal added a comment -

        Hi Deep,

        I tested w/ the steps outlined above. It works for
        -Multi Node, Multi Bucket[ sasl and default]upgrade from 181 to 2.0
        -single node, multi bucket [ sasl and default]

        -Ketaki

        Show
        ketaki Ketaki Gangal added a comment - Hi Deep, I tested w/ the steps outlined above. It works for -Multi Node, Multi Bucket[ sasl and default]upgrade from 181 to 2.0 -single node, multi bucket [ sasl and default] -Ketaki
        Hide
        steve Steve Yen added a comment -

        per bug-scrub, this needs docs.

        Show
        steve Steve Yen added a comment - per bug-scrub, this needs docs.
        steve Steve Yen made changes -
        Assignee Bin Cui [ bcui ] MC Brown [ mccouch ]
        Hide
        mccouch MC Brown (Inactive) added a comment -

        Sorry, I'm not following the exact information required in the docs.

        Is it that the ip file must match the configuration file before the upgrade takes place?

        And this only applies to machines on which you have re-configured the IP address/hostname?

        Show
        mccouch MC Brown (Inactive) added a comment - Sorry, I'm not following the exact information required in the docs. Is it that the ip file must match the configuration file before the upgrade takes place? And this only applies to machines on which you have re-configured the IP address/hostname?
        Hide
        kzeller kzeller added a comment -

        Added to RN with flag to get clarification from QA

        For the Microsoft Windows platform,
        the upgrade from 1.8.1 to 2.0 does not work as expected on windows64.
        This is after changing the C:\Program Files\Couchbase\Server\var\lib\couchbase\ip file.

        Show
        kzeller kzeller added a comment - Added to RN with flag to get clarification from QA For the Microsoft Windows platform, the upgrade from 1.8.1 to 2.0 does not work as expected on windows64. This is after changing the C:\Program Files\Couchbase\Server\var\lib\couchbase\ip file.
        kzeller kzeller made changes -
        Comment [ Added to RN with flag to get clarification from QA

        For the Microsoft Windows platform,
                the upgrade from 1.8.1 to 2.0 does not work as expected on windows64.
                This is after changing the C:\Program Files\Couchbase\Server\var\lib\couchbase\ip file. ]
        Hide
        kzeller kzeller added a comment -

        Added to

        http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-bestpractice-cloud-ip.html

        -Added to Release Note - cross reference to page and on page:

        You must also edit the IP address configuration file, C:\Program Files\Couchbase \Server\var\lib\couchbase\ip. This file contains the identified IP address of the node once it is part of a cluster. Open the file, and add a single line containing the hostname, as configured in the previous step.

        Show
        kzeller kzeller added a comment - Added to http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-bestpractice-cloud-ip.html -Added to Release Note - cross reference to page and on page: – You must also edit the IP address configuration file, C:\Program Files\Couchbase \Server\var\lib\couchbase\ip. This file contains the identified IP address of the node once it is part of a cluster. Open the file, and add a single line containing the hostname, as configured in the previous step.
        Show
        mccouch MC Brown (Inactive) added a comment - Added information on the upgrade process in the following places: http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-getting-started-upgrade-1-8-2-0.html#couchbase-getting-started-upgrade-1-8-2-0-windowsnotes http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-getting-started-upgrade-individual.html
        Hide
        mccouch MC Brown (Inactive) added a comment -

        Documentation updated; handing back

        Show
        mccouch MC Brown (Inactive) added a comment - Documentation updated; handing back
        mccouch MC Brown (Inactive) made changes -
        Assignee MC Brown [ mccouch ] Farshid Ghods [ farshid ]
        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        documented

        Show
        farshid Farshid Ghods (Inactive) added a comment - documented
        farshid Farshid Ghods (Inactive) made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        deepkaran.salooja Deepkaran Salooja added a comment -

        Verified. Per Ketaki's comment above.

        Show
        deepkaran.salooja Deepkaran Salooja added a comment - Verified. Per Ketaki's comment above.
        deepkaran.salooja Deepkaran Salooja made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            farshid Farshid Ghods (Inactive)
            Reporter:
            deepkaran.salooja Deepkaran Salooja
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes