Total data loss upgrading from 3.0 to 4.0-RC on MacOS X

I upgraded the couchbase server installation on my dev Mac from 3.0 to 4.0-RC and when I restarted found that while all the buckets were still there, they were all empty. No design documents, nothing…

This is only a development machine, so the loss of data is not catastrophic, but it doesn’t fill me with confidence for production use…

I don’t see anything in the logs indicating any issues other than this:

Unsuccessful goxdcr upgrade.
{exit,{noproc,{gen_server,call,[xdcr_doc_replicator,{pull_docs,[]},infinity]}},
[{gen_server,call,3,[{file,“gen_server.erl”},{line,188}]},
{goxdcr_upgrade,do_upgrade,2,
[{file,“src/goxdcr_upgrade.erl”},{line,62}]},
{goxdcr_upgrade,upgrade,2,[{file,“src/goxdcr_upgrade.erl”},{line,42}]},
{cluster_compat_mode,do_consider_switching_compat_mode,2,
[{file,“src/cluster_compat_mode.erl”},{line,180}]},
{ns_orchestrator,consider_switching_compat_mode,0,
[{file,“src/ns_orchestrator.erl”},{line,1127}]},
{ns_orchestrator,init,1,[{file,“src/ns_orchestrator.erl”},{line,325}]},
{gen_fsm,init_it,6,[{file,“gen_fsm.erl”},{line,361}]},
{proc_lib,init_p_do_apply,3,[{file,“proc_lib.erl”},{line,239}]}]}

but this is a single node with no xdcr configured.

Any ideas on what went wrong?

Hi,

Thank you for reporting this issue.

Can you please re-pro this scenario again, and collect logs using cbcollect_info?

Please provide a link to the logs after collection.

Thanks,
Don Pinto
Product Manager, Couchbase Server

I reproduced the problem, and have cbcollect_info zips from before and after the upgrade attempt.

At the moment I have no place to make them available to supply links to… I’ll have to discuss it with our dev-ops people on tuesday and see what I can arrange, unless you have an alternate means available to get you the dumps…

Appreciate your help to provide the logs.

Thanks,
Don Pinto
Product Manager, Couchbase Server

Hi,

Just wanted to touch-base and check if you got a chance to upload the logs somewhere for us to take a look at?

Thanks,
Don

My management weren’t comfortable with publishing them somewhere public, so they were passed on through another contact at couchbase to give to you…

Clearly that didn’t work as expected…

I will find out who they were sent via and see if we can get those to you…

Don, the logs were emailed to Will Conn, to pass on to you. You can see if he has them, or if that doesn’t work for you, I can email them directly to you… the before and after zips are 700K and 900K respectively…

Sounds good.

Can you please e-mail me the name of your company at don (at) couchbase (dot) com?

Thanks,
Don