Docker Community Forums

Share and learn in the Docker community.

Failed to create service Error response from daemon network cannot be used with services and invalidargument containerspec

Hi All,

Below are 2 errors im getting
1.

Creating service monitoring_kibana
failed to create service monitoring_kibana: Error response from daemon: rpc error: code = InvalidArgument desc = ContainerSpec: image reference must be provided
Creating service monitoring_logstash
failed to create service monitoring_logstash: Error response from daemon: The network monitoring_elk cannot be used with services. Only networks scoped to the swarm can be used, such as those created with the overlay driver.

Dont know how to solve

Here is the docker-compose.yml file

version: '3.3'

services:
  elasticsearch:
    build:
      context: elasticsearch/
      args:
        ELK_VERSION: $ELK_VERSION
    volumes:
      - ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
    ports:
      - "9200:9200"
      - "9300:9300"
    environment:
      ES_JAVA_OPTS: "-Xmx256m -Xms256m"
    networks:
      - elk

  logstash:
    build:
      context: logstash/
      args:
        ELK_VERSION: $ELK_VERSION
    volumes:
      - ./logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml:ro
      - ./logstash/pipeline:/usr/share/logstash/pipeline:ro
    ports:
      - "5000:5000"
      - "9600:9600"
    environment:
      LS_JAVA_OPTS: "-Xmx256m -Xms256m"
    networks:
      - elk
    depends_on:
      - elasticsearch

  kibana:
    build:
      context: kibana/
      args:
        ELK_VERSION: $ELK_VERSION
    volumes:
      - ./kibana/config/:/usr/share/kibana/config:ro
    ports:
      - "5601:5601"
    networks:
      - elk
    depends_on:
      - elasticsearch

networks:
  elk:
    driver: overlay

and docker-stack.ym file

version: '3.3'

#networks:
#  host:
#    driver: overlay
#    attachable: true

volumes:
  elasticsearch:
  logstash:
  kibana:

services:

  nginx: 
    image: nginx:latest
    volumes:
      - ./default.conf:/etc/nginx/conf.d/default.conf
     
  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.0.1
    ports:
#      - "9200:9200"
      - "9300:9300"
    configs:
      - source: elastic_config
        target: /usr/share/elasticsearch/config/elasticsearch.yml
    environment:
      ES_JAVA_OPTS: "-Xmx256m -Xms256m"
      ELASTIC_USERNAME: "xxxx"
      ELASTIC_PASSWORD: "xxxx"      
#      http.cors.enabled: "true"
#      http.cors.allow-origin: "*"
#      xpack.security.enabled: "true"
#    networks:
#      - host
    volumes:
      - elasticsearch:/usr/share/elasticsearch/data
    deploy:
      mode: replicated
      replicas: 1

  logstash:
    image: docker.elastic.co/logstash/logstash-oss:7.0.1 
    ports:
#      - "5000:5000"
      - "5044:5044"
      - "9600:9600"
    configs:
      - source: logstash_config
        target: /usr/share/logstash/config/logstash.yml:rw
      - source: logstash_pipeline
        target: /usr/share/logstash/pipeline/logstash.conf
    volumes:
      - logstash:/usr/share/logstash/data
    environment:
      LS_JAVA_OPTS: "-Xmx256m -Xms256m"
    deploy:
      mode: replicated
      replicas: 1

  kibana: 
    image: fxlabs/kibana7:latest
    volumes:
      - kibana:/usr/share/kibana/data
    configs:
      - source: kibana_config
        target: /usr/share/kibana/config/kibana.yml
    deploy:
      mode: replicated
      replicas: 1
  caddy:
    image: openfaas/caddy
    ports:
      - "5601:5601"
      - "9200:9200"
      - "3030:3030"
    volumes: 
      - /home/docker-elk/Caddyfile:/etc/caddy/Caddyfile 
    deploy:
      mode: replicated
      replicas: 1
      placement:
        constraints:
          - node.role == manager
      resources:
        limits:
          memory: 128M
        reservations:
          memory: 64M

configs:

  elastic_config:
    file: ./elasticsearch/config/elasticsearch.yml
  logstash_config:
    file: ./logstash/config/logstash.yml
  logstash_pipeline:
    file: ./logstash/pipeline/logstash.conf
  kibana_config:
    file: ./kibana/config/kibana.yml

#networks:
#  elk:
#    driver: overlay

Here is the docker network ls

Here is the docker images

Please help out how to solve it…I’m deploying ELK in my laptop
Anything need let me know

So which one are you trying to get to work?

If its the first one, docker-compose then you need to add a “image:” tag to each service.

fx.

services:
  elasticsearch:
    build:
      context: elasticsearch/
      args:
        ELK_VERSION: $ELK_VERSION
    image: elasticsearch:latest
    .....

  logstash:
    build:
      context: logstash/
      args:
        ELK_VERSION: $ELK_VERSION
    image: logstash:latest
    .....


  kibana:
    build:
      context: kibana/
      args:
        ELK_VERSION: $ELK_VERSION
    image: kibana:latest
    .....

networks:
  elk:
    driver: overlay

and I belive the 2nd error is because you created the network within the first compose

Yes previous it bridge i change to overlay error gone but just i want to know whether it will come again or not

The 2 compose files are for different purpose.

docker-compose is a local “installation”
where docker-stack is for docker-cluster.

You should chose one of them, not both.
Then the error wont come again

1 Like

thanks i have use docker-stack.yaml file for deploy but i got another error

mohd@master-node:~/Music/Exception-Email-Notification/docker-elk$ tail -f /var/log/syslog | grep kibana
May 18 16:55:40 master-node dockerd[24124]: time="2021-05-18T16:55:40.339808478+05:30" level=info msg="Attempting next endpoint for pull after error: Head https://registry-1.docker.io/v2/fxlabs/kibana7/manifests/latest: Get https://auth.docker.io/token?scope=repository%3Afxlabs%2Fkibana7%3Apull&service=registry.docker.io: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"
May 18 16:55:42 master-node dockerd[24124]: time="2021-05-18T16:55:42.195795459+05:30" level=error msg="pulling image failed" error="Head https://registry-1.docker.io/v2/fxlabs/kibana7/manifests/latest: Get https://auth.docker.io/token?scope=repository%3Afxlabs%2Fkibana7%3Apull&service=registry.docker.io: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)" module=node/agent/taskmanager node.id=kwpyr5ixo3xx6psp782zxtgre service.id=10h7ton3yj4y4xfqbcxkc2x7c task.id=94now9tz3qsron9ped4hmxzjr
May 18 16:56:48 master-node dockerd[24124]: time="2021-05-18T16:56:48.171941058+05:30" level=error msg="pulling image failed" error="pull access denied for fxlabs/kibana7, repository does not exist or may require 'docker login': denied: requested access to the resource is denied" module=node/agent/taskmanager node.id=kwpyr5ixo3xx6psp782zxtgre service.id=10h7ton3yj4y4xfqbcxkc2x7c task.id=z66hyorzth9oieyziqedblwl7
May 18 16:57:56 master-node dockerd[24124]: time="2021-05-18T16:57:56.669087844+05:30" level=error msg="pulling image failed" error="pull access denied for fxlabs/kibana7, repository does not exist or may require 'docker login': denied: requested access to the resource is denied" module=node/agent/taskmanager node.id=kwpyr5ixo3xx6psp782zxtgre service.id=10h7ton3yj4y4xfqbcxkc2x7c task.id=azbqxjx4w4u5oy2gwwa11kmh5

dont know how to solve it

dosnt seem like the same docker-compose as the first one?
but its complaining that image you defined, no longer exists, which also seems to be the case:
Docker Hub there is no kibana image

yes u where right i have use another image of kibana its work but i got another issue

mohd@master-node:~$ docker container logs fe5fe4f19954
{"type":"log","@timestamp":"2021-05-19T05:48:05Z","tags":["info","optimize"],"pid":1,"message":"Optimizing and caching bundles for elastalert-kibana-plugin, kibana, stateSessionStorageRedirect, status_page and timelion. This may take a few minutes"}
Browserslist: caniuse-lite is outdated. Please run next command `npm update caniuse-lite browserslist`
{"type":"log","@timestamp":"2021-05-19T05:48:52Z","tags":["info","optimize"],"pid":1,"message":"Optimization of bundles for elastalert-kibana-plugin, kibana, stateSessionStorageRedirect, status_page and timelion complete in 46.97 seconds"}
{"type":"log","@timestamp":"2021-05-19T05:48:52Z","tags":["status","plugin:kibana@undefined","info"],"pid":1,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2021-05-19T05:48:52Z","tags":["status","plugin:elasticsearch@undefined","info"],"pid":1,"state":"yellow","message":"Status changed from uninitialized to yellow - Waiting for Elasticsearch","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2021-05-19T05:48:52Z","tags":["status","plugin:elastalert-kibana-plugin@1.0.4","info"],"pid":1,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2021-05-19T05:48:52Z","tags":["status","plugin:apm_oss@undefined","info"],"pid":1,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2021-05-19T05:48:52Z","tags":["status","plugin:console@undefined","info"],"pid":1,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2021-05-19T05:48:52Z","tags":["status","plugin:interpreter@undefined","info"],"pid":1,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2021-05-19T05:48:52Z","tags":["status","plugin:metrics@undefined","info"],"pid":1,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2021-05-19T05:48:52Z","tags":["status","plugin:tile_map@undefined","info"],"pid":1,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2021-05-19T05:48:53Z","tags":["status","plugin:timelion@undefined","info"],"pid":1,"state":"green","message":"Status changed from uninitialized to green - Ready","prevState":"uninitialized","prevMsg":"uninitialized"}
{"type":"log","@timestamp":"2021-05-19T05:48:53Z","tags":["status","plugin:elasticsearch@undefined","info"],"pid":1,"state":"green","message":"Status changed from yellow to green - Ready","prevState":"yellow","prevMsg":"Waiting for Elasticsearch"}
{"type":"log","@timestamp":"2021-05-19T05:48:53Z","tags":["info","migrations"],"pid":1,"message":"Creating index .kibana_1."}
{"type":"log","@timestamp":"2021-05-19T05:48:53Z","tags":["fatal","root"],"pid":1,"message":"{ Method Not Allowed :: {\"path\":\"/.kibana_1\",\"query\":{},\"body\":\"{\\\"mappings\\\":{\\\"dynamic\\\":\\\"strict\\\",\\\"properties\\\":{\\\"config\\\":{\\\"dynamic\\\":\\\"true\\\",\\\"properties\\\":{\\\"buildNum\\\":{\\\"type\\\":\\\"keyword\\\"}}},\\\"migrationVersion\\\":{\\\"dynamic\\\":\\\"true\\\",\\\"type\\\":\\\"object\\\"},\\\"type\\\":{\\\"type\\\":\\\"keyword\\\"},\\\"namespace\\\":{\\\"type\\\":\\\"keyword\\\"},\\\"updated_at\\\":{\\\"type\\\":\\\"date\\\"},\\\"references\\\":{\\\"type\\\":\\\"nested\\\",\\\"properties\\\":{\\\"name\\\":{\\\"type\\\":\\\"keyword\\\"},\\\"type\\\":{\\\"type\\\":\\\"keyword\\\"},\\\"id\\\":{\\\"type\\\":\\\"keyword\\\"}}},\\\"index-pattern\\\":{\\\"properties\\\":{\\\"fieldFormatMap\\\":{\\\"type\\\":\\\"text\\\"},\\\"fields\\\":{\\\"type\\\":\\\"text\\\"},\\\"intervalName\\\":{\\\"type\\\":\\\"keyword\\\"},\\\"notExpandable\\\":{\\\"type\\\":\\\"boolean\\\"},\\\"sourceFilters\\\":{\\\"type\\\":\\\"text\\\"},\\\"timeFieldName\\\":{\\\"type\\\":\\\"keyword\\\"},\\\"title\\\":{\\\"type\\\":\\\"text\\\"},\\\"type\\\":{\\\"type\\\":\\\"keyword\\\"},\\\"typeMeta\\\":{\\\"type\\\":\\\"keyword\\\"}}},\\\"visualization\\\":{\\\"properties\\\":{\\\"description\\\":{\\\"type\\\":\\\"text\\\"},\\\"kibanaSavedObjectMeta\\\":{\\\"properties\\\":{\\\"searchSourceJSON\\\":{\\\"type\\\":\\\"text\\\"}}},\\\"savedSearchRefName\\\":{\\\"type\\\":\\\"keyword\\\"},\\\"title\\\":{\\\"type\\\":\\\"text\\\"},\\\"uiStateJSON\\\":{\\\"type\\\":\\\"text\\\"},\\\"version\\\":{\\\"type\\\":\\\"integer\\\"},\\\"visState\\\":{\\\"type\\\":\\\"text\\\"}}},\\\"search\\\":{\\\"properties\\\":{\\\"columns\\\":{\\\"type\\\":\\\"keyword\\\"},\\\"description\\\":{\\\"type\\\":\\\"text\\\"},\\\"hits\\\":{\\\"type\\\":\\\"integer\\\"},\\\"kibanaSavedObjectMeta\\\":{\\\"properties\\\":{\\\"searchSourceJSON\\\":{\\\"type\\\":\\\"text\\\"}}},\\\"sort\\\":{\\\"type\\\":\\\"keyword\\\"},\\\"title\\\":{\\\"type\\\":\\\"text\\\"},\\\"version\\\":{\\\"type\\\":\\\"integer\\\"}}},\\\"dashboard\\\":{\\\"properties\\\":{\\\"description\\\":{\\\"type\\\":\\\"text\\\"},\\\"hits\\\":{\\\"type\\\":\\\"integer\\\"},\\\"kibanaSavedObjectMeta\\\":{\\\"properties\\\":{\\\"searchSourceJSON\\\":{\\\"type\\\":\\\"text\\\"}}},\\\"optionsJSON\\\":{\\\"type\\\":\\\"text\\\"},\\\"panelsJSON\\\":{\\\"type\\\":\\\"text\\\"},\\\"refreshInterval\\\":{\\\"properties\\\":{\\\"display\\\":{\\\"type\\\":\\\"keyword\\\"},\\\"pause\\\":{\\\"type\\\":\\\"boolean\\\"},\\\"section\\\":{\\\"type\\\":\\\"integer\\\"},\\\"value\\\":{\\\"type\\\":\\\"integer\\\"}}},\\\"timeFrom\\\":{\\\"type\\\":\\\"keyword\\\"},\\\"timeRestore\\\":{\\\"type\\\":\\\"boolean\\\"},\\\"timeTo\\\":{\\\"type\\\":\\\"keyword\\\"},\\\"title\\\":{\\\"type\\\":\\\"text\\\"},\\\"uiStateJSON\\\":{\\\"type\\\":\\\"text\\\"},\\\"version\\\":{\\\"type\\\":\\\"integer\\\"}}},\\\"url\\\":{\\\"properties\\\":{\\\"accessCount\\\":{\\\"type\\\":\\\"long\\\"},\\\"accessDate\\\":{\\\"type\\\":\\\"date\\\"},\\\"createDate\\\":{\\\"type\\\":\\\"date\\\"},\\\"url\\\":{\\\"type\\\":\\\"text\\\",\\\"fields\\\":{\\\"keyword\\\":{\\\"type\\\":\\\"keyword\\\",\\\"ignore_above\\\":2048}}}}},\\\"server\\\":{\\\"properties\\\":{\\\"uuid\\\":{\\\"type\\\":\\\"keyword\\\"}}},\\\"kql-telemetry\\\":{\\\"properties\\\":{\\\"optInCount\\\":{\\\"type\\\":\\\"long\\\"},\\\"optOutCount\\\":{\\\"type\\\":\\\"long\\\"}}},\\\"timelion-sheet\\\":{\\\"properties\\\":{\\\"description\\\":{\\\"type\\\":\\\"text\\\"},\\\"hits\\\":{\\\"type\\\":\\\"integer\\\"},\\\"kibanaSavedObjectMeta\\\":{\\\"properties\\\":{\\\"searchSourceJSON\\\":{\\\"type\\\":\\\"text\\\"}}},\\\"timelion_chart_height\\\":{\\\"type\\\":\\\"integer\\\"},\\\"timelion_columns\\\":{\\\"type\\\":\\\"integer\\\"},\\\"timelion_interval\\\":{\\\"type\\\":\\\"keyword\\\"},\\\"timelion_other_interval\\\":{\\\"type\\\":\\\"keyword\\\"},\\\"timelion_rows\\\":{\\\"type\\\":\\\"integer\\\"},\\\"timelion_sheet\\\":{\\\"type\\\":\\\"text\\\"},\\\"title\\\":{\\\"type\\\":\\\"text\\\"},\\\"version\\\":{\\\"type\\\":\\\"integer\\\"}}}},\\\"_meta\\\":{\\\"migrationMappingPropertyHashes\\\":{\\\"config\\\":\\\"87aca8fdb053154f11383fce3dbf3edf\\\",\\\"migrationVersion\\\":\\\"4a1746014a75ade3a714e1db5763276f\\\",\\\"type\\\":\\\"2f4316de49999235636386fe51dc06c1\\\",\\\"namespace\\\":\\\"2f4316de49999235636386fe51dc06c1\\\",\\\"updated_at\\\":\\\"00da57df13e94e9d98437d13ace4bfe0\\\",\\\"references\\\":\\\"7997cf5a56cc02bdc9c93361bde732b0\\\",\\\"index-pattern\\\":\\\"66eccb05066c5a89924f48a9e9736499\\\",\\\"visualization\\\":\\\"52d7a13ad68a150c4525b292d23e12cc\\\",\\\"search\\\":\\\"181661168bbadd1eff5902361e2a0d5c\\\",\\\"dashboard\\\":\\\"eb3789e1af878e73f85304333240f65f\\\",\\\"url\\\":\\\"c7f66a0df8b1b52f17c28c4adb111105\\\",\\\"server\\\":\\\"ec97f1c5da1a19609a60874e5af1100c\\\",\\\"kql-telemetry\\\":\\\"d12a98a6f19a2d273696597547e064ee\\\",\\\"timelion-sheet\\\":\\\"9a2a2748877c7a7b582fef201ab1d4cf\\\"}}},\\\"settings\\\":{\\\"number_of_shards\\\":1,\\\"auto_expand_replicas\\\":\\\"0-1\\\"}}\",\"statusCode\":405,\"response\":\"<html>\\r\\n<head><title>405 Not Allowed</title></head>\\r\\n<body>\\r\\n<center><h1>405 Not Allowed</h1></center>\\r\\n<hr><center>nginx/1.19.10</center>\\r\\n</body>\\r\\n</html>\\r\\n\"}\n    at respond (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:308:15)\n    at checkRespForFailure (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:267:7)\n    at HttpConnector.<anonymous> (/usr/share/kibana/node_modules/elasticsearch/src/lib/connectors/http.js:166:7)\n    at IncomingMessage.wrapper (/usr/share/kibana/node_modules/elasticsearch/node_modules/lodash/lodash.js:4935:19)\n    at IncomingMessage.emit (events.js:194:15)\n    at endReadableNT (_stream_readable.js:1103:12)\n    at process._tickCallback (internal/process/next_tick.js:63:19)\n  status: 405,\n  displayName: 'MethodNotAllowed',\n  message: 'Method Not Allowed',\n  path: '/.kibana_1',\n  query: {},\n  body:\n   '<html>\\r\\n<head><title>405 Not Allowed</title></head>\\r\\n<body>\\r\\n<center><h1>405 Not Allowed</h1></center>\\r\\n<hr><center>nginx/1.19.10</center>\\r\\n</body>\\r\\n</html>\\r\\n',\n  statusCode: 405,\n  response:\n   '<html>\\r\\n<head><title>405 Not Allowed</title></head>\\r\\n<body>\\r\\n<center><h1>405 Not Allowed</h1></center>\\r\\n<hr><center>nginx/1.19.10</center>\\r\\n</body>\\r\\n</html>\\r\\n',\n  toString: [Function],\n  toJSON: [Function] }"}

 FATAL  Method Not Allowed :: {"path":"/.kibana_1","query":{},"body":"{\"mappings\":{\"dynamic\":\"strict\",\"properties\":{\"config\":{\"dynamic\":\"true\",\"properties\":{\"buildNum\":{\"type\":\"keyword\"}}},\"migrationVersion\":{\"dynamic\":\"true\",\"type\":\"object\"},\"type\":{\"type\":\"keyword\"},\"namespace\":{\"type\":\"keyword\"},\"updated_at\":{\"type\":\"date\"},\"references\":{\"type\":\"nested\",\"properties\":{\"name\":{\"type\":\"keyword\"},\"type\":{\"type\":\"keyword\"},\"id\":{\"type\":\"keyword\"}}},\"index-pattern\":{\"properties\":{\"fieldFormatMap\":{\"type\":\"text\"},\"fields\":{\"type\":\"text\"},\"intervalName\":{\"type\":\"keyword\"},\"notExpandable\":{\"type\":\"boolean\"},\"sourceFilters\":{\"type\":\"text\"},\"timeFieldName\":{\"type\":\"keyword\"},\"title\":{\"type\":\"text\"},\"type\":{\"type\":\"keyword\"},\"typeMeta\":{\"type\":\"keyword\"}}},\"visualization\":{\"properties\":{\"description\":{\"type\":\"text\"},\"kibanaSavedObjectMeta\":{\"properties\":{\"searchSourceJSON\":{\"type\":\"text\"}}},\"savedSearchRefName\":{\"type\":\"keyword\"},\"title\":{\"type\":\"text\"},\"uiStateJSON\":{\"type\":\"text\"},\"version\":{\"type\":\"integer\"},\"visState\":{\"type\":\"text\"}}},\"search\":{\"properties\":{\"columns\":{\"type\":\"keyword\"},\"description\":{\"type\":\"text\"},\"hits\":{\"type\":\"integer\"},\"kibanaSavedObjectMeta\":{\"properties\":{\"searchSourceJSON\":{\"type\":\"text\"}}},\"sort\":{\"type\":\"keyword\"},\"title\":{\"type\":\"text\"},\"version\":{\"type\":\"integer\"}}},\"dashboard\":{\"properties\":{\"description\":{\"type\":\"text\"},\"hits\":{\"type\":\"integer\"},\"kibanaSavedObjectMeta\":{\"properties\":{\"searchSourceJSON\":{\"type\":\"text\"}}},\"optionsJSON\":{\"type\":\"text\"},\"panelsJSON\":{\"type\":\"text\"},\"refreshInterval\":{\"properties\":{\"display\":{\"type\":\"keyword\"},\"pause\":{\"type\":\"boolean\"},\"section\":{\"type\":\"integer\"},\"value\":{\"type\":\"integer\"}}},\"timeFrom\":{\"type\":\"keyword\"},\"timeRestore\":{\"type\":\"boolean\"},\"timeTo\":{\"type\":\"keyword\"},\"title\":{\"type\":\"text\"},\"uiStateJSON\":{\"type\":\"text\"},\"version\":{\"type\":\"integer\"}}},\"url\":{\"properties\":{\"accessCount\":{\"type\":\"long\"},\"accessDate\":{\"type\":\"date\"},\"createDate\":{\"type\":\"date\"},\"url\":{\"type\":\"text\",\"fields\":{\"keyword\":{\"type\":\"keyword\",\"ignore_above\":2048}}}}},\"server\":{\"properties\":{\"uuid\":{\"type\":\"keyword\"}}},\"kql-telemetry\":{\"properties\":{\"optInCount\":{\"type\":\"long\"},\"optOutCount\":{\"type\":\"long\"}}},\"timelion-sheet\":{\"properties\":{\"description\":{\"type\":\"text\"},\"hits\":{\"type\":\"integer\"},\"kibanaSavedObjectMeta\":{\"properties\":{\"searchSourceJSON\":{\"type\":\"text\"}}},\"timelion_chart_height\":{\"type\":\"integer\"},\"timelion_columns\":{\"type\":\"integer\"},\"timelion_interval\":{\"type\":\"keyword\"},\"timelion_other_interval\":{\"type\":\"keyword\"},\"timelion_rows\":{\"type\":\"integer\"},\"timelion_sheet\":{\"type\":\"text\"},\"title\":{\"type\":\"text\"},\"version\":{\"type\":\"integer\"}}}},\"_meta\":{\"migrationMappingPropertyHashes\":{\"config\":\"87aca8fdb053154f11383fce3dbf3edf\",\"migrationVersion\":\"4a1746014a75ade3a714e1db5763276f\",\"type\":\"2f4316de49999235636386fe51dc06c1\",\"namespace\":\"2f4316de49999235636386fe51dc06c1\",\"updated_at\":\"00da57df13e94e9d98437d13ace4bfe0\",\"references\":\"7997cf5a56cc02bdc9c93361bde732b0\",\"index-pattern\":\"66eccb05066c5a89924f48a9e9736499\",\"visualization\":\"52d7a13ad68a150c4525b292d23e12cc\",\"search\":\"181661168bbadd1eff5902361e2a0d5c\",\"dashboard\":\"eb3789e1af878e73f85304333240f65f\",\"url\":\"c7f66a0df8b1b52f17c28c4adb111105\",\"server\":\"ec97f1c5da1a19609a60874e5af1100c\",\"kql-telemetry\":\"d12a98a6f19a2d273696597547e064ee\",\"timelion-sheet\":\"9a2a2748877c7a7b582fef201ab1d4cf\"}}},\"settings\":{\"number_of_shards\":1,\"auto_expand_replicas\":\"0-1\"}}","statusCode":405,"response":"<html>\r\n<head><title>405 Not Allowed</title></head>\r\n<body>\r\n<center><h1>405 Not Allowed</h1></center>\r\n<hr><center>nginx/1.19.10</center>\r\n</body>\r\n</html>\r\n"}

kibana container is excited status i.e., its not running and when i check logs above error it show
Even i try to install npm in elasticalert folder of docker-elk but its not working again same error

please tell me how to solve it