Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. ...
  2. elasticsearch:
  3. image: docker.elastic.co/elasticsearch/elasticsearch:${ELK_VERSION}
  4. container_name: elasticsearch
  5. environment:
  6. - cluster.name=docker-cluster
  7. - node.name=elasticsearch
  8. - discovery.seed_hosts=elasticsearch,es02
  9. - discovery.zen.minimum_master_nodes=1
  10.  
  11. - bootstrap.memory_lock=true
  12. - http.cors.enabled=true
  13. - http.cors.allow-origin=*
  14. - ES_JAVA_OPTS=-Xms512m -Xmx512m
  15. - ELASTIC_PASSWORD=changeme
  16. ulimits:
  17. memlock:
  18. soft: -1
  19. hard: -1
  20. volumes:
  21. - esdata01:/usr/share/elasticsearch/data
  22. ports:
  23. - 9201:9200
  24.  
  25. networks:
  26. - elk
  27. ...
  28.  
  29. PUT /_snapshot/my_backup
  30. {
  31. "type": "fs",
  32. "settings": {
  33. "location": "/backup/my_backup"
  34. }
  35. }
  36.  
  37. {
  38. "error": "RepositoryException[[es_backup_basic] failed to create repository]; nested: CreationException[Guice creation errors:nn1) Error injecting constructor, org.elasticsearch.repositories.RepositoryException: [my_backup] location [/backup/my_backup] doesn't match any of the locations specified by path.repo because this setting is emptyn at org.elasticsearch.repositories.fs.FsRepository.(Unknown Source)n while locating org.elasticsearch.repositories.fs.FsRepositoryn while locating org.elasticsearch.repositories.Repositorynn1 error]; nested: RepositoryException[[es_backup_basic] location [/backup/my_backup] doesn't match any of the locations specified by path.repo because this setting is empty]; ",
  39. "status": 500
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement