Skip to content

Instantly share code, notes, and snippets.

$ curl -XPUT 10.0.3.160:9200/_snapshot/backup -d '{"type":"s3","settings":{"secret_key":"<super secret key>","access_key":"<access key>","max_restore_bytes_per_sec":"5120mb","bucket":"<my-backup-bucket>","max_snapshot_bytes_per_sec":"5120mb"}}'
{"error":{"root_cause":[{"type":"process_cluster_event_timeout_exception","reason":"failed to process cluster event (put_repository [backup]) within 30s"}],"type":"process_cluster_event_timeout_exception","reason":"failed to process cluster event (put_repository [backup]) within 30s"},"status":503}
from the logs:
[2016-02-11 20:07:15,683][INFO ][rest.suppressed ] /_snapshot/backup Params: {repository=backup}
ProcessClusterEventTimeoutException[failed to process cluster event (put_repository [backup]) within 30s]
at org.elasticsearch.cluster.service.InternalClusterService$2$1.run(InternalClusterService.java:343)

Keybase proof

I hereby claim:

  • I am charlesmims on github.
  • I am charlesmims (https://keybase.io/charlesmims) on keybase.
  • I have a public key whose fingerprint is 525B E363 BD9A A014 1E84 0CF2 864B 6A7A 5698 7D7F

To claim this, I am signing this object:

def kv_diff(A, B, whitelist=[]):
'''
Function can be used on elasticsearch mappings to identify variations.
Returns a diff.
Eg:
template = requests.get(es_url + '/_template/mytemplate', auth=(es_user,es_pass)).json()['projects']['mappings']
mapping = requests.get(es_url + '/foo/_mapping' % project_id, auth=(es_user,es_pass)).json()['foo']['mappings']
kv_diff(template, mapping)
'''
try: