Re: Backups failing | OutOfMemoryError[Java heap space]
Posted: Mon Nov 30, 2015 7:55 pm
We are on version 1.3
python /usr/lib/python2.7/site-packages/curator/curator.py show --show-snapshots --repository 'backup'
This out puts the following:
python /usr/lib/python2.7/site-packages/curator/curator.py snapshot --older-than 1 --repository 'backup'
This outputs the following:
python /usr/lib/python2.7/site-packages/curator/curator.py close --older-than 100
This outputs the following:
Also to add to this I can delete snapshots for 2015.10.22 from the backup repository then run the backup and it creates indices folder and metadata, snapshot files but errors out after awhile.
python /usr/lib/python2.7/site-packages/curator/curator.py show --show-snapshots --repository 'backup'
This out puts the following:
Code: Select all
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/curator/curator.py", line 736, in <module>
main()
File "/usr/lib/python2.7/site-packages/curator/curator.py", line 731, in main
arguments.func(client, **argdict)
File "/usr/lib/python2.7/site-packages/curator/curator.py", line 184, in show
for snapshot in get_snaplist(client, kwargs['repository'], prefix=kwargs['prefix']):
File "/usr/lib/python2.7/site-packages/curator/curator.py", line 234, in get_snaplist
allsnaps = client.snapshot.get(repository=repo_name, snapshot="_all")['snapshots']
File "/usr/lib/python2.7/site-packages/elasticsearch/client/utils.py", line 69, in _wrapped
return func(*args, params=params, **kwargs)
File "/usr/lib/python2.7/site-packages/elasticsearch/client/snapshot.py", line 58, in get
repository, snapshot), params=params)
File "/usr/lib/python2.7/site-packages/elasticsearch/transport.py", line 307, in perform_request
status, headers, data = connection.perform_request(method, url, params, body, ignore=ignore, timeout=timeout)
File "/usr/lib/python2.7/site-packages/elasticsearch/connection/http_urllib3.py", line 93, in perform_request
self._raise_error(response.status, raw_data)
File "/usr/lib/python2.7/site-packages/elasticsearch/connection/base.py", line 105, in _raise_error
raise HTTP_EXCEPTIONS.get(status_code, TransportError)(status_code, error_message, additional_info)
elasticsearch.exceptions.TransportError: TransportError(500, u'OutOfMemoryError[Java heap space]')
This outputs the following:
Code: Select all
2015-12-01 13:52:11,430 INFO Job starting...
2015-12-01 13:52:11,430 INFO Default timeout of 30 seconds is too low for command SNAPSHOT. Overriding to 21,600 seconds (6 hours).
2015-12-01 13:52:11,435 INFO Beginning SNAPSHOT operations...
2015-12-01 13:52:11,441 INFO Attempting to create snapshot for index logstash-2015.10.22.
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/curator/curator.py", line 736, in <module>
main()
File "/usr/lib/python2.7/site-packages/curator/curator.py", line 731, in main
arguments.func(client, **argdict)
File "/usr/lib/python2.7/site-packages/curator/curator.py", line 585, in command_loop
skipped = op(client, index_name, **kwargs)
File "/usr/lib/python2.7/site-packages/curator/curator.py", line 401, in _create_snapshot
successes = get_snapped_indices(client, repository, prefix=prefix)
File "/usr/lib/python2.7/site-packages/curator/curator.py", line 245, in get_snapped_indices
allsnaps = client.snapshot.get(repository=repo_name, snapshot="_all")['snapshots']
File "/usr/lib/python2.7/site-packages/elasticsearch/client/utils.py", line 69, in _wrapped
return func(*args, params=params, **kwargs)
File "/usr/lib/python2.7/site-packages/elasticsearch/client/snapshot.py", line 58, in get
repository, snapshot), params=params)
File "/usr/lib/python2.7/site-packages/elasticsearch/transport.py", line 307, in perform_request
status, headers, data = connection.perform_request(method, url, params, body, ignore=ignore, timeout=timeout)
File "/usr/lib/python2.7/site-packages/elasticsearch/connection/http_urllib3.py", line 93, in perform_request
self._raise_error(response.status, raw_data)
File "/usr/lib/python2.7/site-packages/elasticsearch/connection/base.py", line 105, in _raise_error
raise HTTP_EXCEPTIONS.get(status_code, TransportError)(status_code, error_message, additional_info)
elasticsearch.exceptions.TransportError: TransportError(500, u'OutOfMemoryError[Java heap space]')
This outputs the following:
Code: Select all
2015-12-01 13:53:20,121 INFO Job starting...
2015-12-01 13:53:20,124 INFO Beginning CLOSE operations...
2015-12-01 13:53:20,129 INFO logstash-2015.10.22 is within the threshold period (100 days).
2015-12-01 13:53:20,129 INFO logstash-2015.10.23 is within the threshold period (100 days).
2015-12-01 13:53:20,129 INFO logstash-2015.10.24 is within the threshold period (100 days).
2015-12-01 13:53:20,129 INFO logstash-2015.10.25 is within the threshold period (100 days).
2015-12-01 13:53:20,129 INFO logstash-2015.10.26 is within the threshold period (100 days).
2015-12-01 13:53:20,129 INFO logstash-2015.10.27 is within the threshold period (100 days).
2015-12-01 13:53:20,129 INFO logstash-2015.10.28 is within the threshold period (100 days).
2015-12-01 13:53:20,130 INFO logstash-2015.10.29 is within the threshold period (100 days).
2015-12-01 13:53:20,130 INFO logstash-2015.10.30 is within the threshold period (100 days).
2015-12-01 13:53:20,130 INFO logstash-2015.10.31 is within the threshold period (100 days).
2015-12-01 13:53:20,130 INFO logstash-2015.11.01 is within the threshold period (100 days).
2015-12-01 13:53:20,130 INFO logstash-2015.11.02 is within the threshold period (100 days).
2015-12-01 13:53:20,130 INFO logstash-2015.11.03 is within the threshold period (100 days).
2015-12-01 13:53:20,130 INFO logstash-2015.11.04 is within the threshold period (100 days).
2015-12-01 13:53:20,130 INFO logstash-2015.11.05 is within the threshold period (100 days).
2015-12-01 13:53:20,130 INFO logstash-2015.11.06 is within the threshold period (100 days).
2015-12-01 13:53:20,130 INFO logstash-2015.11.07 is within the threshold period (100 days).
2015-12-01 13:53:20,130 INFO logstash-2015.11.08 is within the threshold period (100 days).
2015-12-01 13:53:20,130 INFO logstash-2015.11.09 is within the threshold period (100 days).
2015-12-01 13:53:20,130 INFO logstash-2015.11.10 is within the threshold period (100 days).
2015-12-01 13:53:20,130 INFO logstash-2015.11.11 is within the threshold period (100 days).
2015-12-01 13:53:20,131 INFO logstash-2015.11.12 is within the threshold period (100 days).
2015-12-01 13:53:20,131 INFO logstash-2015.11.13 is within the threshold period (100 days).
2015-12-01 13:53:20,131 INFO logstash-2015.11.14 is within the threshold period (100 days).
2015-12-01 13:53:20,131 INFO logstash-2015.11.15 is within the threshold period (100 days).
2015-12-01 13:53:20,131 INFO logstash-2015.11.16 is within the threshold period (100 days).
2015-12-01 13:53:20,131 INFO logstash-2015.11.17 is within the threshold period (100 days).
2015-12-01 13:53:20,131 INFO logstash-2015.11.18 is within the threshold period (100 days).
2015-12-01 13:53:20,131 INFO logstash-2015.11.19 is within the threshold period (100 days).
2015-12-01 13:53:20,131 INFO logstash-2015.11.20 is within the threshold period (100 days).
2015-12-01 13:53:20,131 INFO logstash-2015.11.21 is within the threshold period (100 days).
2015-12-01 13:53:20,131 INFO logstash-2015.11.22 is within the threshold period (100 days).
2015-12-01 13:53:20,131 INFO logstash-2015.11.23 is within the threshold period (100 days).
2015-12-01 13:53:20,131 INFO logstash-2015.11.24 is within the threshold period (100 days).
2015-12-01 13:53:20,131 INFO logstash-2015.11.25 is within the threshold period (100 days).
2015-12-01 13:53:20,132 INFO logstash-2015.11.26 is within the threshold period (100 days).
2015-12-01 13:53:20,132 INFO logstash-2015.11.27 is within the threshold period (100 days).
2015-12-01 13:53:20,132 INFO logstash-2015.11.28 is within the threshold period (100 days).
2015-12-01 13:53:20,132 INFO logstash-2015.11.29 is within the threshold period (100 days).
2015-12-01 13:53:20,132 INFO logstash-2015.11.30 is within the threshold period (100 days).
2015-12-01 13:53:20,132 INFO logstash-2015.12.01 is within the threshold period (100 days).
2015-12-01 13:53:20,132 INFO CLOSE index operations completed.
2015-12-01 13:53:20,132 INFO Done in 0:00:00.017672.