无法使用cbrestore还原couchbase存储桶

无法使用cbrestore还原couchbase存储桶,couchbase,database-restore,Couchbase,Database Restore,我正在使用Couchbase服务器版本4.5.0,并尝试将保存的备份版本还原到本地CB服务器上。我正在使用macOS Sierra Xcode开发工具是最新的 Python v2.7.10 我首先使用这个命令创建了一个备份 sudo ./cbbackup HOST:PORT ~/Documents/ -u ‘username’ -p ‘password‘ -b BUCKET_NAME 在此之后,我尝试使用以下命令将此备份恢复到本地Couchbase服务器 sudo ./cbrestore

我正在使用Couchbase服务器版本4.5.0,并尝试将保存的备份版本还原到本地CB服务器上。我正在使用macOS Sierra Xcode开发工具是最新的 Python v2.7.10

我首先使用这个命令创建了一个备份

sudo ./cbbackup HOST:PORT ~/Documents/ -u ‘username’ -p ‘password‘ -b BUCKET_NAME
在此之后,我尝试使用以下命令将此备份恢复到本地Couchbase服务器

  sudo ./cbrestore /path/to/backup/2017-01-24T121528Z/2017-01-24T121528Z-full/ http://localhost:8091 -u ‘USERNAME’ -p ‘PASSWORD’ --bucket-source=SOURCE_BUCKET_NAME --bucket-destination=DESTINATION_BUCKET_NAME
但我得到以下错误

Exception in thread s0:
Traceback (most recent call last):

File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()

File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)

File "/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/lib/python/pump_mc.py", line 91, in run
rv, batch, need_backoff = self.scatter_gather(mconns, batch)

File "/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/lib/python/pump_cb.py", line 72, in scatter_gather
rv, conn = self.find_conn(mconns, vbucket_id, msgs)

File "/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/lib/python/pump_cb.py", line 316, in find_conn
host_port = serverList[vBucketMap[vbucket_id][0]]

IndexError: list index out of range

如果您在Couchbase的非osx版本上进行备份,并恢复到osx版本,则需要将“-x rehash=1”与cbrestore一起使用。原因是osx版本的Couchbase仅用于开发,其vbuckets少于标准(非osx)Couchbase版本。rehash标志告诉cbrestore处理不同数量的vbucket。

尝试过。立即获取不同的错误s0错误:异步操作:错误:映射缺少vbucket\u id:19456;也许您的源代码没有vbuckets;如果是这样,请尝试使用moxi(主机:11211)作为接收器上的目标:错误:映射缺少vbucket_id:19456;也许您的源代码没有vbuckets;如果是这样,请尝试使用moxi(主机:11211)作为目标