Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore keyspace fails #94

Open
nikhilsgadre opened this issue Jun 15, 2016 · 10 comments
Open

Restore keyspace fails #94

nikhilsgadre opened this issue Jun 15, 2016 · 10 comments

Comments

@nikhilsgadre
Copy link

I am getting following error during restore. Any idea what is causing this failure?

Traceback (most recent call last):
File "/usr/local/bin/cassandra-snapshotter", line 9, in
load_entry_point('cassandra-snapshotter==1.0.0', 'console_scripts', 'cassandra-snapshotter')()
File "/usr/local/lib/python2.7/site-packages/cassandra_snapshotter/main.py", line 284, in main
restore_backup(args)
File "/usr/local/lib/python2.7/site-packages/cassandra_snapshotter/main.py", line 110, in restore_backup
args.s3_bucket_name
TypeError: init() takes exactly 6 arguments (5 given)

My restore command is as follows:
cassandra-snapshotter --s3-bucket-name=mybucket --s3-bucket-region=us-west-2 --s3-base-path=/backups --aws-access-key-id=accesskey --aws-secret-access-key=secretkey restore --snapshot-name=LATEST --keyspace=mykeyspace --hosts=host1 --target-hosts=host1

@tbarbugli
Copy link
Owner

how do you install the tool?

@nikhilsgadre
Copy link
Author

nikhilsgadre commented Jun 16, 2016

The same way as described in "how to install"
pip install cassandra_snapshotter
sudo yum install lzop

BTW I am able to take backup without any issues. However when I try to list I get blank list (although there are previous snapshots on s3).

@mvdheijd
Copy link

I can confirm that in the version installed via pip restoring a backup gives this error. Does the pull-request on improving restore solve this by any chance?

@kapilnayar
Copy link

any clues/ info on how to resolve this issue would be appreciated..

@omeega
Copy link

omeega commented Sep 19, 2016

I installed it on pip too and restore doesn't work for me too :
Traceback (most recent call last):
File "/usr/local/bin/cassandra-snapshotter", line 11, in
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/cassandra_snapshotter/main.py", line 284, in main
restore_backup(args)
File "/usr/local/lib/python2.7/dist-packages/cassandra_snapshotter/main.py", line 110, in restore_backup
args.s3_bucket_name
TypeError: init() takes exactly 6 arguments (5 given)

@kapilnayar
Copy link

@omeega you need to look at the improve_restore branch.

@omeega
Copy link

omeega commented Sep 22, 2016

@kapilnayar thx the improve_restore branch works good.

@jalvz
Copy link

jalvz commented Oct 21, 2016

this has been already fixed in master already, looks like. New version should be pushed to PYPI, because in the meantime installing it with pip is broken.

@siddhu07
Copy link

@omeega i too installed by pip and not working for me. Could you help me on how did you solved?

@omeega
Copy link

omeega commented May 2, 2017

@siddhu07, I used the improve_restore branch. (https://github.com/tbarbugli/cassandra_snapshotter/network)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants