-
Notifications
You must be signed in to change notification settings - Fork 377
ERROR: for serviceapi Container "xxxx" is unhealthy. #149
Comments
@mizbanpaytakht check es logs |
How can I check es logs !? sudo docker-compose up -d ERROR: for serviceapi Container "5c66902c456c" is unhealthy.
|
@mizbanpaytakht if you are not familiar with docker, you can request our paid support. Check the pricing here |
Hi, Im familiar with docker no logs shown for ES ! sudo docker-compose logs -f |
kamran_es_1 exited with code 137 |
@mizbanpaytakht did you setup env vars https://github.com/RD17/ambar/blob/master/Install.md#set-up-your-environment ? |
Hi, Yes the problem was because of max_map_count value. |
Hi @mizbanpaytakht , I am also receiving the same error. I have configured the max_map_count value as described. Please let me know how you managed to solve the same. |
@mizbanpaytakht the problem was because of |
I was having the same issue. At the end I figured out the docker machine (I was using a VM in vSphere) doesn't have enough RAM. After adding more RAM it goes further. Now I've got an issue with 9200 port already in use on the docker machine.. but that's another issue. |
I also got unhealthy serviceapi on Macbook. I then ran After this, still got unhealthy error. I then increased the amount of memory from 2GB to 8GB in Docker/Preferences/Advanced. Then it worked. |
The minimal ES requirements is > 2GB of RAM |
Same here memory issues was the cause of my 2hours problem. 1GB is not enough |
Hi,
I received this error while trying to start docker :
I think there is a problem with ElasticSearch service.
sudo docker-compose up -d root_db_1 is up-to-date root_es_1 is up-to-date root_rabbit_1 is up-to-date root_redis_1 is up-to-date ERROR: for serviceapi Container "b5182a16944e" is unhealthy. ERROR: Encountered errors while bringing up the project.
`version: "2.1"
networks:
internal_network:
services:
db:
restart: always
networks:
- internal_network
image: ambar/ambar-mongodb:2.0.1
environment:
- cacheSizeGB=2
volumes:
- /home/docker/db:/data/db
expose:
- "27017"
ports:
- "27017:27017"
es:
restart: always
networks:
- internal_network
image: ambar/ambar-es:2.0.1
expose:
- "9200"
ports:
- "9200:9200"
environment:
- cluster.name=ambar-es
- ES_JAVA_OPTS=-Xms2g -Xmx2g
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
volumes:
- /home/docker/es:/usr/share/elasticsearch/data
rabbit:
restart: always
networks:
- internal_network
image: ambar/ambar-rabbit:2.0.1
hostname: rabbit
expose:
- "15672"
- "5672"
ports:
- "15672:15672"
- "5672:5672"
volumes:
- /home/docker/rabbit:/var/lib/rabbitmq
redis:
restart: always
sysctls:
- net.core.somaxconn=1024
networks:
- internal_network
image: ambar/ambar-redis:2.0.1
expose:
- "6379"
ports:
- "6379:6379"
serviceapi:
depends_on:
redis:
condition: service_healthy
rabbit:
condition: service_healthy
es:
condition: service_healthy
db:
condition: service_healthy
restart: always
networks:
- internal_network
image: ambar/ambar-serviceapi:2.0.1
expose:
- "8081"
ports:
- "8081:8081"
environment:
- mongoDbUrl=mongodb://db:27017/ambar_data
- elasticSearchUrl=http://es:9200
- redisHost=redis
- redisPort=6379
- rabbitHost=amqp://rabbit
- langAnalyzer=ambar_en
volumes:
- /var/run/docker.sock:/var/run/docker.sock
webapi:
depends_on:
serviceapi:
condition: service_healthy
restart: always
networks:
restart: always
networks:
- internal_network
image: ambar/ambar-webapi:2.0.1
expose:
- "8080"
ports:
- "8080:8080"
environment:
- analyticsToken=cda4b0bb11a1f32aed7564b08c455992
- uiLang=en
- mongoDbUrl=mongodb://db:27017/ambar_data
- elasticSearchUrl=http://es:9200
- redisHost=redis
- redisPort=6379
- serviceApiUrl=http://serviceapi:8081
- rabbitHost=amqp://rabbit
volumes:
- /var/run/docker.sock:/var/run/docker.sock
frontend:
depends_on:
webapi:
condition: service_healthy
image: ambar/ambar-frontend:2.0.1
restart: always
networks:
- internal_network
ports:
- "80:80"
expose:
- "80"
environment:
- api=http://145.239.139.196:8080
pipeline0:
depends_on:
serviceapi:
condition: service_healthy
image: ambar/ambar-pipeline:2.0.1
restart: always
networks:
- internal_network
environment:
- id=0
- api_url=http://serviceapi:8081
- rabbit_host=amqp://rabbit
crawler0:
depends_on:
serviceapi:
condition: service_healthy
image: ambar/ambar-local-crawler
restart: always
image: ambar/ambar-local-crawler
restart: always
networks:
- internal_network
environment:
- apiUrl=http://serviceapi:8081
- crawlPath=/usr/data
- name=craw
volumes:
- /home/docker/2:/usr/data
The text was updated successfully, but these errors were encountered: