ken
ken

Reputation: 9013

Documents visible but "doesn't exist"

I have been developing my application from a dev sandbox and want to push the reference data from "dev" to "prod". I thought I'd succeeded by executing the following commands:

On my OSX dev machine:

cbbackup http://127.0.0.1:8091 ~/couchbase-reference-data -b reference_data -u username -p password

Again on my OSX dev machine:

cbrestore ~/couchbase-reference-data http://prod.server.com:8091/ -u password -p password

Now when I go to the admin console on production I see this:

enter image description here

Looks good at this point. However, if I click any of the "Edit Document" button things go tragically wrong:

enter image description here

Any help would be GREATLY appreciated!

UPDATE:

I've noticed that now when I run the cbrestore command I get the following errors:

 2013-06-03 16:53:48,295: s0 error: CBSink.connect() for send: error: SASL auth exception: aws.internal-ip.com:11210, user: reference_data
 2013-06-03 16:53:48,295: s0 error: async operation: error: SASL auth exception: aws.internal-ip.com:11210, user: reference_data on sink:   http://prod.server.com:8091/([email protected]:8091)
error: SASL auth exception: aws.internal-ip.com:11210, user: reference_data

This reminds me that I think what I did was copy the ~/couchbase-reference-data directory to the production environment and then ran the cbrestore from there. I have just done that now and get the following confirmation:

  [####################] 100.0% (189/189 msgs)
bucket: reference_data, msgs transferred...
       :                total |       last |    per sec
 batch :                    1 |          1 |       16.1
 byte  :                36394 |      36394 |   585781.0
 msg   :                  189 |        189 |     3042.1
done

After this process, however, the problem still exists in the same manner as described before.

UPDATE 2

I decided to delete, re-create, and re-import the bucket on production. All steps completed and I still have the same error but I'm wondering if the LOG file has any interesting information in it:

enter image description here

The things that stand out as interesting to me are:

  1. The loading time was "0 seconds" ... as much as I'd like to believe that it may be a little too quick? It's not a ton of data but still.
  2. The "module code" is named 'ns_memecached001' ... is that an issue? Memcached? I did double check that I set this up as a couchbase bucket. It is.

Upvotes: 1

Views: 866

Answers (1)

user4297346
user4297346

Reputation: 21

It seems as if your destination server is not OS X, but e.g. Linux. Here you have to use the "rehash"-extra-option.

  1. Backup your data on your dev machine (using cbbackup)
  2. Copy the data to your prod machine
  3. Restore the data with the -x rehash=1 flag: (using cbrestore -x rehash=1)

Upvotes: 1

Related Questions