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

cannot restore? error in Stream: pods "cassandra" not found #14

Open
c4po opened this issue Mar 5, 2019 · 2 comments
Open

cannot restore? error in Stream: pods "cassandra" not found #14

c4po opened this issue Mar 5, 2019 · 2 comments

Comments

@c4po
Copy link

c4po commented Mar 5, 2019

I can do backup but restore doesn't work

cain backup -n dev-cassandra -c dev-cassandra -l release=dev-cassandra -k hero --dst s3:/xxxx/cassandra
2019/03/05 19:13:21 Backup started!
2019/03/05 19:13:21 Getting clients
2019/03/05 19:13:22 Getting pods
2019/03/05 19:13:22 Testing existence of data dir
2019/03/05 19:13:22 Backing up schema
2019/03/05 19:13:24 Taking snapshots
2019/03/05 19:13:24 dev-cassandra-1 Taking snapshot of keyspace hero
...
...

cain restore --src s3://xxxxx/cassandra/dev-cassandra/cassandra/ -n dev-cassandra -k hero -l release=dev-cassandra --schema 48766c -t 20190305
2019/03/05 19:48:11 Restore started!
2019/03/05 19:48:11 Getting clients
2019/03/05 19:48:11 Getting pods
2019/03/05 19:48:11 Getting current schema
2019/03/05 19:48:12 Found schema: 48766c
2019/03/05 19:48:12 Calculating paths. This may take a while...
2019/03/05 19:48:15 error in Stream: pods "cassandra" not found
@c4po
Copy link
Author

c4po commented Mar 5, 2019

I figured out the issue. I have a trailing slash in the src s3 path..
wrong: cain restore --src s3://xxxxx/cassandra/dev-cassandra/cassandra/ ...
should be: cain restore --src s3://xxxxx/cassandra/dev-cassandra/cassandra ...

@c4po
Copy link
Author

c4po commented Mar 5, 2019

can we add a check here https://github.com/nuvo/cain/blob/master/pkg/cain/cain.go#L95
to remove the trailing slash. or add a check here https://github.com/nuvo/cain/blob/master/pkg/utils/path.go#L109

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

1 participant