I have two OMV4 machines, let's call them OLD and NEW.
They both:
- are running the OMV 4.1.31-1 version
- have Docker base path in "Settings" tab set to a shared folder named "Docker" with identical privileges
- have Docker Compose v1.25.0 installed
When I try to run this YAML file with Docker Compose:
version: '3'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.5.1
container_name: elasticsearch
environment:
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
discovery.type: single-node
ports:
- 9200:9200
- 9300:9300
volumes:
- PATH_TO_elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
kibana:
image: docker.elastic.co/kibana/kibana:7.5.1
container_name: kibana
ports:
- 5601:5601
depends_on:
- elasticsearch
logstash:
image: docker.elastic.co/logstash/logstash:7.5.1
container_name: logstash
depends_on:
- elasticsearch
Alles anzeigen
... everything runs fine on the OLD machine.
However, when using the identical YAML file on the NEW machine elasticsearch starts as it should and is available from the host, but it can't start Kibana.
http://NEW:5601/ returns "Kibana server is not ready yet" no matter how long I wait.
Docker log for the Kibana container keeps repeating these two messages in endless loop:
"Unable to revive connection: http://elasticsearch:9200/" and "No living connections"
On both machines the network elk_default is successfully created and DNS names are assigned to the containers listed in the YAML file.
Command docker network inspect elk_default returns this on the NEW machine (the non-working one):
[
{
"Name": "elk_default",
"Id": "d1b1926ff7dc77a0f37863e451a831dbf1ac55bf08084c9b2502ed1637d72e51",
"Created": "2020-01-15T03:46:05.05023774Z",
"Scope": "local",
"Driver": "bridge",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": null,
"Config": [
{
"Subnet": "172.21.0.0/16",
"Gateway": "172.21.0.1"
}
]
},
"Internal": false,
"Attachable": true,
"Ingress": false,
"ConfigFrom": {
"Network": ""
},
"ConfigOnly": false,
"Containers": {
"596dd8950b038e4491eb1aab8011a1b99ba2398f3a47f949166d0370477b9114": {
"Name": "elasticsearch",
"EndpointID": "12722d3ac174e86975a8f931863b70c0075e407a9f075fd0151ea0a9a6c302bf",
"MacAddress": "02:42:ac:15:00:02",
"IPv4Address": "172.21.0.2/16",
"IPv6Address": ""
},
"a043e52998227497e0ca747cec304712104d1d21a89b3a8db20065c15f705ae3": {
"Name": "logstash",
"EndpointID": "81f4a12834d8dc9523077598d6195678468c98b22072a4e3590bc254909530af",
"MacAddress": "02:42:ac:15:00:04",
"IPv4Address": "172.21.0.4/16",
"IPv6Address": ""
},
"c7431557fa280a167bab5881bad0a53f9c1e5842f09592609fb418c4011e8d4a": {
"Name": "kibana",
"EndpointID": "22ec9eeb8025fdbc2c25e259268888b23fe18ea29da09c5e0266e5eeca43f50e",
"MacAddress": "02:42:ac:15:00:03",
"IPv4Address": "172.21.0.3/16",
"IPv6Address": ""
}
},
"Options": {},
"Labels": {
"com.docker.compose.network": "default",
"com.docker.compose.project": "elk",
"com.docker.compose.version": "1.25.0"
}
}
]
Alles anzeigen
For comparison, this is the output from the OLD machine (where everything works fine) for the same command:
[
{
"Name": "elk_default",
"Id": "bc3af8453c657ace5197dbaf2c3e4280d79f6fa8075c91cb983014507b6dcb80",
"Created": "2020-01-15T05:07:40.460213828+01:00",
"Scope": "local",
"Driver": "bridge",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": null,
"Config": [
{
"Subnet": "172.21.0.0/16",
"Gateway": "172.21.0.1"
}
]
},
"Internal": false,
"Attachable": true,
"Ingress": false,
"ConfigFrom": {
"Network": ""
},
"ConfigOnly": false,
"Containers": {
"1a49349d5623095ce66ff99b26802d3430c565d0b5cbd1887a8e66f635699314": {
"Name": "elasticsearch",
"EndpointID": "b0ad84cd78ace6b83c594c1fb3345fe8967e9902e54ccaa70913106c269b495c",
"MacAddress": "02:42:ac:15:00:02",
"IPv4Address": "172.21.0.2/16",
"IPv6Address": ""
},
"49538857ea8483c3be194e1a797ca8a17f1990f1de7803467e2264a7a12b1f32": {
"Name": "kibana",
"EndpointID": "500dec574ab02a37b30454674774d6e75e800528a516f628d5f2d71adf740485",
"MacAddress": "02:42:ac:15:00:04",
"IPv4Address": "172.21.0.4/16",
"IPv6Address": ""
},
"8cd9362a0956b860c49cf76520aeaf67f6f6f2946b5eaee55557239475d6fd5c": {
"Name": "logstash",
"EndpointID": "e9b0b22a01e7f7a165af9187996ac0a09cefd6cfe1d14be393a8f784eb5aa279",
"MacAddress": "02:42:ac:15:00:03",
"IPv4Address": "172.21.0.3/16",
"IPv6Address": ""
}
},
"Options": {},
"Labels": {
"com.docker.compose.network": "default",
"com.docker.compose.project": "elk",
"com.docker.compose.version": "1.25.0"
}
}
]
Alles anzeigen
This might be connected with another issue described here I'm experiencing on the NEW machine.
Any ideas?