Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.1.0
    • Component/s: tools
    • Security Level: Public
    • Labels:
      None
    • Environment:
      Centos
      2.0.2-761-rel

      Description

      root@plum-008:~# /opt/couchbase/bin/cbrecovery -U Administrator -P password http://10.3.3.72:8091 http://10.3.3.61:8091
      2013-04-09 16:30:23,865: MainThread Error:Specified bucket not found
      error: unable to access REST API: 10.3.3.61:8091/pools/default/buckets/default/startRecovery; please check source URL, username (-u) and password (-p); response: 404; reason: start_recovery
      root@plum-008:~# /opt/couchbase/bin/cbrecovery -U Administrator -P password -b default -B default http://10.3.3.72:8091 http://10.3.3.61:8091
      2013-04-09 16:30:40,945: MainThread Error:Specified bucket not found
      error: unable to access REST API: 10.3.3.61:8091/pools/default/buckets/default/startRecovery; please check source URL, username (-u) and password (-p); response: 404; reason: start_recovery
      root@plum-008:~# /opt/couchbase/bin/cbrecovery -U Administrator -P password http://10.3.3.72:8091 http://10.3.3.61:8091
      2013-04-09 16:31:01,317: MainThread Error:Specified bucket not found
      error: unable to access REST API: 10.3.3.61:8091/pools/default/buckets/default/startRecovery; please check source URL, username (-u) and password (-p); response: 404; reason: start_recovery
      root@plum-008:~# /opt/couchbase/bin/cbrecovery http://Administrator:password@10.3.3.72:8091 http://Administrator:password@10.3.3.61:8091
      2013-04-09 16:33:30,351: MainThread Error:Specified bucket not found
      error: unable to access REST API: 10.3.3.61:8091/pools/default/buckets/default/startRecovery; please check source URL, username (-u) and password (-p); response: 404; reason: start_recovery

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

        Activity

        Hide
        maria Maria McDuff (Inactive) added a comment -

        Bin, did you fix this? it's marked as resolved-fixed.... i don't see any other activity on this bug.
        pls confirm if this is fixed and ready for qe. thanks.

        Show
        maria Maria McDuff (Inactive) added a comment - Bin, did you fix this? it's marked as resolved-fixed.... i don't see any other activity on this bug. pls confirm if this is fixed and ready for qe. thanks.
        Hide
        shashank Shashank Gupta added a comment - - edited

        Used the below command:

        ./cbrecovery http://10.3.3.100 http://10.3.3.96 -u Administrator -p password -U Administrator -P password -b default -B default -n

        and got the following error:

        2013-04-30 00:46:15,461: MainThread Error:Specified bucket not found
        error: unable to access REST API: 10.3.3.96:8091/pools/default/buckets/default/controller/startRecovery; please check source URL, username (-u) and password (-p); response: 404; reason: start_recovery

        build used is 779

        Show
        shashank Shashank Gupta added a comment - - edited Used the below command: ./cbrecovery http://10.3.3.100 http://10.3.3.96 -u Administrator -p password -U Administrator -P password -b default -B default -n and got the following error: 2013-04-30 00:46:15,461: MainThread Error:Specified bucket not found error: unable to access REST API: 10.3.3.96:8091/pools/default/buckets/default/controller/startRecovery; please check source URL, username (-u) and password (-p); response: 404; reason: start_recovery build used is 779
        Hide
        maria Maria McDuff (Inactive) added a comment -

        upgrading to blocker.

        Show
        maria Maria McDuff (Inactive) added a comment - upgrading to blocker.
        Hide
        bcui Bin Cui added a comment -

        Which build is it reported? I am pretty much sure it should be fixed. Otherwise we won't have any functional test against cbrecovery tool. Let me verify it.

        Show
        bcui Bin Cui added a comment - Which build is it reported? I am pretty much sure it should be fixed. Otherwise we won't have any functional test against cbrecovery tool. Let me verify it.
        Hide
        bcui Bin Cui added a comment -

        Cannot reproduce it using build 781

        Show
        bcui Bin Cui added a comment - Cannot reproduce it using build 781
        Hide
        maria Maria McDuff (Inactive) added a comment -

        bin, i'm getting the same error: unable to access REST API. can you check below?
        here, you will see it says no recovery is needed but still errors out with unable to access the rest api. what could be causing this?

        environ:
        ----------
        centos 5.x
        [root@cen-1910 bin]# pwd
        /opt/couchbase/bin
        [root@cen-1910 bin]#

        [root@cen-1910 bin]# ./cbrecovery -b default -B default -U Administrator -P password -u Administrator -p couchbase http://10.1.3.106:8091 http://10.3.2.49:8091
        2013-05-06 17:01:51,037: MainThread Error:No recovery needed
        error: unable to access REST API: 10.3.2.49:8091/pools/default/buckets/default/controller/startRecovery; please check source URL, username (-u) and password (-p); response: 400; reason: start_recovery

        [root@cen-1910 bin]# cat /opt/couchbase/VERSION.txt
        2.0.2-786-rel
        [root@cen-1910 bin]#

        Show
        maria Maria McDuff (Inactive) added a comment - bin, i'm getting the same error: unable to access REST API. can you check below? here, you will see it says no recovery is needed but still errors out with unable to access the rest api. what could be causing this? environ: ---------- centos 5.x [root@cen-1910 bin] # pwd /opt/couchbase/bin [root@cen-1910 bin] # [root@cen-1910 bin] # ./cbrecovery -b default -B default -U Administrator -P password -u Administrator -p couchbase http://10.1.3.106:8091 http://10.3.2.49:8091 2013-05-06 17:01:51,037: MainThread Error:No recovery needed error: unable to access REST API: 10.3.2.49:8091/pools/default/buckets/default/controller/startRecovery; please check source URL, username (-u) and password (-p); response: 400; reason: start_recovery [root@cen-1910 bin] # cat /opt/couchbase/VERSION.txt 2.0.2-786-rel [root@cen-1910 bin] #
        Hide
        bcui Bin Cui added a comment -

        because REST treats this scenario as error with actual error code. If REST returns it no error code, client side will not display error

        Show
        bcui Bin Cui added a comment - because REST treats this scenario as error with actual error code. If REST returns it no error code, client side will not display error
        Hide
        shashank Shashank Gupta added a comment -

        I tried cbrecovery with the following command and its working fine.

        ./cbrecovery http://Administrator:password@10.3.2.57:8091 http://Administrator:password@10.3.3.98:8091 -b default -B default

        Build used - 2.0.2-781

        Show
        shashank Shashank Gupta added a comment - I tried cbrecovery with the following command and its working fine. ./cbrecovery http://Administrator:password@10.3.2.57:8091 http://Administrator:password@10.3.3.98:8091 -b default -B default Build used - 2.0.2-781
        Hide
        maria Maria McDuff (Inactive) added a comment -

        fixed.

        Show
        maria Maria McDuff (Inactive) added a comment - fixed.

          People

          • Assignee:
            bcui Bin Cui
            Reporter:
            abhinav Abhinav Dangeti
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes