This error is presented:
tcarpenter@sports-mb-test02:/opt/membase/22.214.171.124/data/ns_1]$ /tmp/python271/Python-2.7.1/python /opt/membase/126.96.36.199/bin/ep_engine/management/mbrestore -a default default-0.mb default-1.mb default-2.mb default-3.mb
Traceback (most recent call last):
File "/opt/membase/188.8.131.52/bin/ep_engine/management/mbrestore", line 147, in <module>
File "/opt/membase/184.108.40.206/bin/ep_engine/management/mbrestore", line 105, in main
db.executemany("attach ? as ?", zip(db_filenames, attached_dbs))
sqlite3.OperationalError: file is encrypted or is not a database
According to Dustin, this is because the mbrestore tool does not currently support WAL db files and the workaround is to run: /opt/membase/bin/ep_engine/management/sqlite3 <filename> 'pragma journal_mode=delete' on all the db files you are trying to restore.
Please add the above workaround to the mbrestore script itself.