jolson wrote:I should have clarified - when you run the following command:Be certain that 'nlsback' is replaced with the name of your repository (which could be something like 'NLS Backups').Code: Select all
curator snapshot --repository nlsback --older-than 1
e.g.Code: Select all
curator snapshot --repository 'NLS Backup Repo' --older-than 1
curator snapshot --repository NLS_BACKUP --older-than 1
2015-08-26 17:16:33,158 INFO Job starting...
2015-08-26 17:16:33,159 INFO Default timeout of 30 seconds is too low for command SNAPSHOT. Overriding to 21,600 seconds (6 hours).
2015-08-26 17:16:33,166 INFO Beginning SNAPSHOT operations...
2015-08-26 17:16:33,227 INFO Attempting to create snapshot for index logstash-2015.07.28.
2015-08-26 17:16:33,768 INFO Skipping: A snapshot with name 'logstash-2015.07.28' already exists.
2015-08-26 17:16:33,768 INFO Attempting to create snapshot for index logstash-2015.07.29.
2015-08-26 17:16:34,227 INFO Skipping: A snapshot with name 'logstash-2015.07.29' already exists.
2015-08-26 17:16:34,227 INFO Attempting to create snapshot for index logstash-2015.07.30.
2015-08-26 17:16:34,697 INFO Skipping: A snapshot with name 'logstash-2015.07.30' already exists.
2015-08-26 17:16:34,698 INFO Attempting to create snapshot for index logstash-2015.07.31.
2015-08-26 17:16:35,153 INFO Skipping: A snapshot with name 'logstash-2015.07.31' already exists.
2015-08-26 17:16:35,153 INFO Attempting to create snapshot for index logstash-2015.08.01.
2015-08-26 17:16:35,605 INFO Skipping: A snapshot with name 'logstash-2015.08.01' already exists.
2015-08-26 17:16:35,606 INFO Attempting to create snapshot for index logstash-2015.08.02.
2015-08-26 17:16:36,051 INFO Skipping: A snapshot with name 'logstash-2015.08.02' already exists.
2015-08-26 17:16:36,051 INFO Attempting to create snapshot for index logstash-2015.08.03.
2015-08-26 17:16:36,513 INFO Skipping: A snapshot with name 'logstash-2015.08.03' already exists.
2015-08-26 17:16:36,513 INFO Attempting to create snapshot for index logstash-2015.08.04.
2015-08-26 17:16:36,982 INFO Skipping: A snapshot with name 'logstash-2015.08.04' already exists.
2015-08-26 17:16:36,983 INFO Attempting to create snapshot for index logstash-2015.08.05.
2015-08-26 17:16:37,281 WARNING Previous snapshot was unsuccessful. Deleting snapshot logstash-2015.08.05 and trying again.
Traceback (most recent call last):
File "/usr/bin/curator", line 9, in <module>
load_entry_point('elasticsearch-curator==1.2.2', 'console_scripts', 'curator')()
File "/usr/lib/python2.6/site-packages/curator/curator.py", line 731, in main
arguments.func(client, **argdict)
File "/usr/lib/python2.6/site-packages/curator/curator.py", line 585, in command_loop
skipped = op(client, index_name, **kwargs)
File "/usr/lib/python2.6/site-packages/curator/curator.py", line 409, in _create_snapshot
client.snapshot.delete(repository=repository, snapshot=snap_name)
File "/usr/lib/python2.6/site-packages/elasticsearch/client/utils.py", line 68, in _wrapped
return func(*args, params=params, **kwargs)
File "/usr/lib/python2.6/site-packages/elasticsearch/client/snapshot.py", line 34, in delete
_make_path('_snapshot', repository, snapshot), params=params)
File "/usr/lib/python2.6/site-packages/elasticsearch/transport.py", line 284, in perform_request
status, headers, data = connection.perform_request(method, url, params, body, ignore=ignore, timeout=timeout)
File "/usr/lib/python2.6/site-packages/elasticsearch/connection/http_urllib3.py", line 55, in perform_request
self._raise_error(response.status, raw_data)
File "/usr/lib/python2.6/site-packages/elasticsearch/connection/base.py", line 97, in _raise_error
raise HTTP_EXCEPTIONS.get(status_code, TransportError)(status_code, error_message, additional_info)
elasticsearch.exceptions.TransportError: TransportError(503, u'RemoteTransportException[[78a3bc74-18f9-46c6-a763-267d4860c047][inet[/xx.xx.xx.246:9300]][cluster:admin/snapshot/delete]]; nested: ConcurrentSnapshotExecutionException[[NLS_BACKUP:logstash-2015.08.05] another snapshot is currently running cannot delete]; ')