Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 1.8.x

Arch Linux CouchBase backup/restore problems

2 replies [Last post]
  • Login or register to post comments
Tue, 06/26/2012 - 07:08
Mpinto
Offline
Joined: 05/17/2012
Groups: None

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 denied

I 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.

Top
  • Login or register to post comments
Tue, 06/26/2012 - 11:05
steve
Offline
Joined: 03/15/2010
Groups: None

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'.

Top
  • Login or register to post comments
Tue, 06/26/2012 - 11:21
Mpinto
Offline
Joined: 05/17/2012
Groups: None

Hi,

My buddy asked around the arch forum, and it came up as a bug on the package that was calling the sqlite3 wrong.

They told me it should be fixed by later today.

Thanks for your responce.It has nothing to do with couchbase itself.

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker