-
Notifications
You must be signed in to change notification settings - Fork 2
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
out: IOError: [Errno 2] No such file or directory: '/etc/cassandra/conf/cassandra.yaml' #2
Comments
Copied manually yaml file.But it isn't OK. After that ran once again. cassandra-snapshotter --s3-bucket-name=xxx --s3-bucket-region=us-east-1 --s3-base-path=mycluster backup --hosts=cassandra1 Fatal error: run() received nonzero return code 1 while executing! Requested: cassandra-snapshotter-agent --incremental_backups put --s3-bucket-name=xxx --s3-bucket-region=us-east-1 --s3-base-path=mycluster/20180430124647/cassandra1 --manifest=/tmp/backupmanifest --bufsize=64 --concurrency=4 Aborting. Fatal error: One or more hosts failed while executing task 'upload_node_backups' Aborting. |
Looks like a permission issue. It need write access to the data directory. If your Cassandra process is running under a different user switch to that and execute or if it's a |
i ran this command from user "user". On the node i have also user "user". /var/lib/cassandra/data right cassandra/cassandra. |
Try |
Thx. Will try. Also i had another problem after added second node. cassandra-snapshotter --s3-bucket-name=xxx --s3-bucket-region=us-east-1 --s3-base-path=mycluster backup --hosts=cassandra1,cassandra2 Fatal error: run() received nonzero return code 1 while executing! Requested: /usr/bin/nodetool snapshot -t 20180501083510 ================================================================================================= Standard output ================================================================================================= nodetool: Failed to connect to '127.0.0.1:7199' - ConnectException: 'Connection refused (Connection refused)'. =================================================================================================================================================================================================================== Aborting. Fatal error: One or more hosts failed while executing task 'node_start_backup' Aborting. Fatal error: run() received nonzero return code 1 while executing! Requested: /usr/bin/nodetool clearsnapshot -t "20180501083510" Aborting. Fatal error: One or more hosts failed while executing task 'clear_node_snapshot' |
Yes. This is an issue with the library wich the tool is built on. It needs ssh access without a password (ssh key) for executing backup operations even in if it's the same machine. http://www.linuxproblem.org/art_9.html |
Look likes problem with second node. I have configured second node with no password. Thank you for your time and help. |
Don't want to create another issue. And got this: Bulk load the sstables found in the directory <dir_path> to the configured You can provide cassandra.yaml file with -f command line option to set up |
Also if i change target hosts from cassandra1 to IP i have this one: Summary statistics: |
First issue the cassandra1 hostname not resolvable. See: cassandra_snap is using nodetool for restore operations. looks like this is generated from the nodetool becuase of low disk space. Try clearing old snapshots and use |
hmm. Maybe i didn't understand. |
I've started this command on node, where i need to restore. After that command downloaded files into /tmp/restore_cassandra/test3. And didn't move those files to cassandra dir, Can you tell me why and how I can find what i did wrong? There are all info from console: Summary statistics: |
cassandra-snapshotter --s3-bucket-name=xxxs --s3-bucket-region=us-east-1 --s3-base-path=mycluster backup --hosts=cassandra1
[cassandra1] Executing task 'node_start_backup'
[cassandra1] Executing task 'upload_node_backups'
[cassandra1] run: cassandra-snapshotter-agent create-upload-manifest --manifest_path=/tmp/backupmanifest --snapshot_name=20180430115314 --snapshot_keyspaces= --snapshot_table= --conf_path=/etc/cassandra/conf/ --exclude_tables=
[cassandra1] out: Traceback (most recent call last):
[cassandra1] out: File "/home/user/.local/bin/cassandra-snapshotter-agent", line 11, in
[cassandra1] out: sys.exit(main())
[cassandra1] out: File "/home/user/.local/lib/python2.7/site-packages/cassandra_snap/agent.py", line 314, in main
[cassandra1] out: args.incremental_backups
[cassandra1] out: File "/home/user/.local/lib/python2.7/site-packages/cassandra_snap/agent.py", line 210, in create_upload_manifest
[cassandra1] out: data_paths = get_data_path(conf_path)
[cassandra1] out: File "/home/user/.local/lib/python2.7/site-packages/cassandra_snap/agent.py", line 191, in get_data_path
[cassandra1] out: with open(config_file_path, 'r') as f:
[cassandra1] out: IOError: [Errno 2] No such file or directory: '/etc/cassandra/conf/cassandra.yaml'
[cassandra1] out:
Fatal error: run() received nonzero return code 1 while executing!
Requested: cassandra-snapshotter-agent create-upload-manifest --manifest_path=/tmp/backupmanifest --snapshot_name=20180430115314 --snapshot_keyspaces= --snapshot_table= --conf_path=/etc/cassandra/conf/ --exclude_tables=
Executed: /bin/bash -l -c "cassandra-snapshotter-agent create-upload-manifest --manifest_path=/tmp/backupmanifest --snapshot_name=20180430115314 --snapshot_keyspaces= --snapshot_table= --conf_path=/etc/cassandra/conf/ --exclude_tables="
Aborting.
Fatal error: One or more hosts failed while executing task 'upload_node_backups'
Aborting.
[cassandra1] Executing task 'clear_node_snapshot'
[cassandra1] run: /usr/bin/nodetool clearsnapshot -t "20180430115314"
[cassandra1] out: Requested clearing snapshot(s) for [all keyspaces] with snapshot name [20180430115314]
[cassandra1] out:
How can Fix that error?
My cassandra yaml in etc/cassandra by default
The text was updated successfully, but these errors were encountered: