tbarbugli / cassandra_snapshotter

A tool to backup cassandra nodes using snapshots and incremental backups on S3
Other
222 stars 122 forks source link

Restore keyspace fails #94

Open nikhilsgadre opened 8 years ago

nikhilsgadre commented 8 years ago

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 commented 8 years ago

how do you install the tool?

nikhilsgadre commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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

omeega commented 7 years ago

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 commented 7 years ago

@omeega you need to look at the improve_restore branch.

omeega commented 7 years ago

@kapilnayar thx the improve_restore branch works good.

jalvz commented 7 years ago

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 commented 7 years ago

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

omeega commented 7 years ago

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