When I restored data from EBS snapshots to an EC2 instance, the Couchbase UI can’t load the data from the disk. I can find all the bitbucket folders in ‘/opt/couchbase/var/lib/couchbase/data’. However, when I goto the ‘http://hostname:8091/index.html’, it asked me to config a new server (i.e. setup database path, indices path, hostname…).
If I click ‘Next’ with all the default settings, it returned an error:
Attention - Save request failed because of time out.
My default settings are:
Database Path: /mnt/ebs/db/var/lib/couchbase/data
Indices Path: /mnt/ebs/db/var/lib/couchbase/data
If I changed the two paths to ‘/opt/couchbase/var/lib/couchbase/data’, then it will removed all the data in that directory after I setup the server.
The steps I restored the instance:
- create a new ec2 instance
- stop this instance.
- detach all the volumes attached to it
- create volumes from the ebs snapshots
- attached the new volumes to the ec2 instance
- restart the ec2 instance
How to display the restored buckets in the Couchbase UI? Any suggestions? Thanks!