cassandra_snapshotter icon indicating copy to clipboard operation
cassandra_snapshotter copied to clipboard

Restore keyspace fails

Open nikhilsgadre opened this issue 8 years ago • 10 comments

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

nikhilsgadre avatar Jun 15 '16 18:06 nikhilsgadre

how do you install the tool?

tbarbugli avatar Jun 16 '16 13:06 tbarbugli

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

nikhilsgadre avatar Jun 16 '16 13:06 nikhilsgadre

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?

mvdheijd avatar Aug 24 '16 11:08 mvdheijd

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

kapilnayar avatar Sep 06 '16 14:09 kapilnayar

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)

omeega avatar Sep 19 '16 15:09 omeega

@omeega you need to look at the improve_restore branch.

kapilnayar avatar Sep 19 '16 18:09 kapilnayar

@kapilnayar thx the improve_restore branch works good.

omeega avatar Sep 22 '16 08:09 omeega

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.

jalvz avatar Oct 21 '16 15:10 jalvz

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

siddhu07 avatar Apr 26 '17 10:04 siddhu07

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

omeega avatar May 02 '17 07:05 omeega