Skip to content

KeyError: 'data_file_directories' #134

@AntonAntonyuk

Description

@AntonAntonyuk

hi, when trying backup ,get error :
[10.130.102.129] Executing task 'upload_node_backups'
[10.130.102.129] run: cassandra-snapshotter-agent create-upload-manifest --manifest_path=/tmp/backupmanifest --snapshot_name=20191018162550 --snapshot_keyspaces=test --snapshot_table=recommendations --conf_path=/opt/cassandra/conf --exclude_tables=
Connected (version 2.0, client OpenSSH_7.2p2)
Authentication (publickey) successful!
[10.130.102.129] out: Traceback (most recent call last):
[10.130.102.129] out: File "/home/testbackup/.local/bin/cassandra-snapshotter-agent", line 9, in
[10.130.102.129] out: load_entry_point('cassandra-snapshotter==1.2.0', 'console_scripts', 'cassandra-snapshotter-agent')()
[10.130.102.129] out: File "/home/testbackup/.local/lib/python2.7/site-packages/cassandra_snapshotter/agent.py", line 306, in main
[10.130.102.129] out: args.incremental_backups
[10.130.102.129] out: File "/home/testbackup/.local/lib/python2.7/site-packages/cassandra_snapshotter/agent.py", line 202, in create_upload_manifest
[10.130.102.129] out: data_paths = get_data_path(conf_path)
[10.130.102.129] out: File "/home/testbackup/.local/lib/python2.7/site-packages/cassandra_snapshotter/agent.py", line 185, in get_data_path
[10.130.102.129] out: data_paths = cassandra_configs['data_file_directories']
[10.130.102.129] out: KeyError: 'data_file_directories'
[10.130.102.129] out:

Fatal error: run() received nonzero return code 1 while executing!

Requested: cassandra-snapshotter-agent create-upload-manifest --manifest_path=/tmp/backupmanifest --snapshot_name=20191018162550 --snapshot_keyspaces=test --snapshot_table=recommendations --conf_path=/opt/cassandra/conf --exclude_tables=
Executed: /bin/bash -l -c "cassandra-snapshotter-agent create-upload-manifest --manifest_path=/tmp/backupmanifest --snapshot_name=20191018162550 --snapshot_keyspaces=test --snapshot_table=recommendations --conf_path=/opt/cassandra/conf --exclude_tables="

Aborting.

Fatal error: One or more hosts failed while executing task 'upload_node_backups'

in cassandra.yaml , data_file_directories: not specified
i believe it because of this. is the way to specify it as parameter ? or maybe i do something wrong. any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions