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

cbbackupmgr failed to run with ipv6 address

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 5.5.0
    • 5.5.0
    • tools
    • None
    • centos 7.4 64-bit
    • Untriaged
    • Centos 64-bit
    • Release Note
    • Yes

    Description

      Problem

      cbbackupmgr fails when the cluster is configured with IPv6. The following error is produced in the log file:

      2018-01-09T08:02:54.313-08:00 (Cmd) Error backing up cluster: invalid URL port "6F75:6368:20D3:AC3C:257E:9C5:6619:8091"
      

      The full log file output:

      [root@s10504-ip6 ~]# more /tmp/entbackup/logs/backup.log 
      2018-01-09T08:00:20.472-08:00 (Cmd) cbbackupmgr version 1.3.0
      2018-01-09T08:00:20.473-08:00 (Cmd) config -r backup -a /tmp/entbackup/ 
      2018-01-09T08:00:20.473-08:00 (Cmd) Backup repository `backup` created successfully in archive `/tmp/entbackup/`
      2018-01-09T08:00:45.368-08:00 (Cmd) cbbackupmgr version 1.3.0
      2018-01-09T08:00:45.368-08:00 (Cmd) backup --archive /tmp/entbackup --repo backup --cluster [fd63:6f75:6368:20d3:ac3c:257e:9c5:6619]:8091 --username Administrator --password ******** --no-progress-bar 
      2018-01-09T08:00:45.370-08:00 (Rest) GET http://[fd63:6f75:6368:20d3:ac3c:257e:9c5:6619]:8091/pools 200
      2018-01-09T08:00:45.377-08:00 (Rest) GET http://[fd63:6f75:6368:20d3:ac3c:257e:9c5:6619]:8091/pools/default/buckets 200
      2018-01-09T08:00:45.378-08:00 (Plan) Executing transfer plan
      2018-01-09T08:00:45.378-08:00 (Plan) Checking for data movement restrictions between default and default
      2018-01-09T08:00:45.383-08:00 (Rest) GET http://[fd63:6f75:6368:20d3:ac3c:257e:9c5:6619]:8091/pools/default/buckets 200
      2018-01-09T08:00:45.394-08:00 (Rest) GET http://[fd63:6f75:6368:20d3:ac3c:257e:9c5:6619]:8091/pools/default 200
      2018-01-09T08:00:45.394-08:00 Transfering from Couchbase Server 5.5.0
      2018-01-09T08:00:45.435-08:00 [INFO][FDB] Forestdb blockcache size 2147483648 initialized in 39696 us
       
      2018-01-09T08:00:45.435-08:00 [INFO][FDB] Forestdb opened database file /tmp/entbackup/backup/2018-01-09T08_00_45.378203919-08_00/default-fd590bddd716140061f227151d232a3a/data/shard_0.fdb
      2018-01-09T08:00:45.436-08:00 [INFO][FDB] Forestdb closed database file /tmp/entbackup/backup/2018-01-09T08_00_45.378203919-08_00/default-fd590bddd716140061f227151d232a3a/data/shard_0.fdb
      2018-01-09T08:00:45.437-08:00 (Plan) Transfering bucket configuration for default to default
      2018-01-09T08:00:45.448-08:00 (Rest) GET http://[fd63:6f75:6368:20d3:ac3c:257e:9c5:6619]:8091/pools/default/buckets 200
      2018-01-09T08:00:45.448-08:00 (Plan) Transfering views definitions for default to default
      2018-01-09T08:00:45.456-08:00 (Rest) GET http://[fd63:6f75:6368:20d3:ac3c:257e:9c5:6619]:8091/pools/default/buckets 200
      2018-01-09T08:00:45.460-08:00 (Rest) GET http://[fd63:6f75:6368:20d3:ac3c:257e:9c5:6619]:8091/pools/default/nodeServices 200
      2018-01-09T08:00:45.460-08:00 ERRO: invalid URL port "6F75:6368:20D3:AC3C:257E:9C5:6619:8091" -- plan.(*views).execute() at views.go:58
      2018-01-09T08:00:45.460-08:00 (Plan) Transfer plan failed due to error invalid URL port "6F75:6368:20D3:AC3C:257E:9C5:6619:8091"
      2018-01-09T08:00:45.460-08:00 (Cmd) Error backing up cluster: invalid URL port "6F75:6368:20D3:AC3C:257E:9C5:6619:8091"
      2018-01-09T08:02:47.849-08:00 (Cmd) cbbackupmgr version 1.3.0
      2018-01-09T08:02:47.849-08:00 (Cmd) backup --archive /tmp/entbackup --repo backup -c [fd63:6f75:6368:20d3:ac3c:257e:9c5:6619]:8091 --username Administrator --password ******** --no-progress-bar 
      2018-01-09T08:02:47.851-08:00 (Rest) GET http://[fd63:6f75:6368:20d3:ac3c:257e:9c5:6619]:8091/pools 200
      2018-01-09T08:02:47.851-08:00 (Cmd) Error backing up cluster: The most recent backup `2018-01-09T08_00_45.378203919-08_00` did not finish properly. You can either resume this backup from where it left off by 
      re-running the backup command and using the --resume flag. To delete the unfinished backup and start again use the --purge flag.
      2018-01-09T08:02:54.305-08:00 (Cmd) cbbackupmgr version 1.3.0
      2018-01-09T08:02:54.305-08:00 (Cmd) backup --archive /tmp/entbackup --repo backup -c [fd63:6f75:6368:20d3:ac3c:257e:9c5:6619]:8091 --username Administrator --password ******** --no-progress-bar --resume 
      2018-01-09T08:02:54.306-08:00 (Rest) GET http://[fd63:6f75:6368:20d3:ac3c:257e:9c5:6619]:8091/pools 200
      2018-01-09T08:02:54.307-08:00 (Plan) Executing transfer plan
      2018-01-09T08:02:54.307-08:00 (Plan) Transfering views definitions for default to default
      2018-01-09T08:02:54.311-08:00 (Rest) GET http://[fd63:6f75:6368:20d3:ac3c:257e:9c5:6619]:8091/pools/default/buckets 200
      2018-01-09T08:02:54.313-08:00 (Rest) GET http://[fd63:6f75:6368:20d3:ac3c:257e:9c5:6619]:8091/pools/default/nodeServices 200
      2018-01-09T08:02:54.313-08:00 ERRO: invalid URL port "6F75:6368:20D3:AC3C:257E:9C5:6619:8091" -- plan.(*views).execute() at views.go:58
      2018-01-09T08:02:54.313-08:00 (Plan) Transfer plan failed due to error invalid URL port "6F75:6368:20D3:AC3C:257E:9C5:6619:8091"
      2018-01-09T08:02:54.313-08:00 (Cmd) Error backing up cluster: invalid URL port "6F75:6368:20D3:AC3C:257E:9C5:6619:8091"
      [root@s10504-ip6 ~]# more /opt/couchbase/VERSION.txt 
      5.5.0-1632
      [root@s10504-ip6 ~]# 
      

      Steps to reproduce

      1. Install Couchbase server 5.5.0-1632 on 4 centos 7.4 vms with ipv6 enable.
      2. Create default bucket.
      3. Load 1K to bucket
      4. Config backup repo at /tmp/entbackup
      5. Run backup:

        /opt/couchbase/bin//cbbackupmgr backup --archive /tmp/entbackup --repo backup -c [fd63:6f75:6368:20d3:ac3c:257e:9c5:6619]:8091 --username Administrator  --password password  --no-progress-bar 
        

      Attachments

        Issue Links

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

          Activity

            People

              thuan Thuan Nguyen
              thuan Thuan Nguyen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty