Arch Linux CouchBase backup/restore problems
Tue, 06/26/2012 - 07:08
Hi,
After using couchbase without issues in a mandriva installation i tried using it on a ArchLinux installation via aur repository package name couchbase-server, version 1.8.0.
It installed in strange places but it ran well.
The problem arises when i try to make backups or restore.
For example I get this restore error:
sudo cbrestore -a ~/couchbase-dump-20120621T0900/default*
Traceback (most recent call last):
File "/usr/lib/python2.7/cbrestore", line 250, in <module>
main()
File "/usr/lib/python2.7/cbrestore", line 169, in main
versions = db_file_versions(sqlite, db_filenames)
File "/usr/lib/python2.7/cbrestore", line 129, in db_file_versions
rv[fn] = version(sqlite, fn)
File "/usr/lib/python2.7/cbrestore", line 133, in version
return int(run_sql(sqlite, fn, "PRAGMA user_version;").strip())
File "/usr/lib/python2.7/cbrestore", line 58, in run_sql
stderr=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 13] Permission deniedI have tried changing permissions in all combinations possible, running in root and other crazy stuff as deleting the files directly and copy them to the folder.
Is the Arch distro couchbase broken?
Thanks for the attention.
not sure how you got your backup files, but that error stack is not about to access the user_version PRAGMA. Can you manually see if you can access the user_version pragma, by using sqlite3 directly? For example...
$ sqlite3 ~/couchbase-dump-20120621T0900/default
> PRAGMA user_version;
It should be '2'.