[GH-ISSUE #251] serviceapi Container "..." is unhealthy. (Solution in #189 doesn't work) #242

Closed
opened 2026-02-27 15:55:47 +03:00 by kerem · 3 comments
Owner

Originally created by @asittampalam on GitHub (Aug 10, 2019).
Original GitHub issue: https://github.com/RD17/ambar/issues/251

Hey guys. First of all thanks for your great work!
I face the same issue as in #189 :

docker-compose up

Starting ambar_db_1     ... done
Starting ambar_rabbit_1 ... done
Starting ambar_es_1     ... done
Starting ambar_redis_1  ... done

ERROR: for serviceapi  Container "5b4a212023f1" is unhealthy.
ERROR: Encountered errors while bringing up the project.

I'm on Mac OSX though (dev system). But even using

screen ~/Library/Containers/com.docker.docker/Data/vms/0/tty

to set

sysctl -w vm.max_map_count=262144 
sysctl -w net.ipv4.ip_local_port_range="15000 61000" 
sysctl -w net.ipv4.tcp_fin_timeout=30 
sysctl -w net.core.somaxconn=1024 
sysctl -w net.core.netdev_max_backlog=2000 
sysctl -w net.ipv4.tcp_max_syn_backlog=2048 
sysctl -w vm.overcommit_memory=1

doesn't solve the issue for me. Any hints? Thanks.

Originally created by @asittampalam on GitHub (Aug 10, 2019). Original GitHub issue: https://github.com/RD17/ambar/issues/251 Hey guys. First of all thanks for your great work! I face the same issue as in #189 : ``` docker-compose up Starting ambar_db_1 ... done Starting ambar_rabbit_1 ... done Starting ambar_es_1 ... done Starting ambar_redis_1 ... done ERROR: for serviceapi Container "5b4a212023f1" is unhealthy. ERROR: Encountered errors while bringing up the project. ``` I'm on Mac OSX though (dev system). But even using ``` screen ~/Library/Containers/com.docker.docker/Data/vms/0/tty ``` to set ``` sysctl -w vm.max_map_count=262144 sysctl -w net.ipv4.ip_local_port_range="15000 61000" sysctl -w net.ipv4.tcp_fin_timeout=30 sysctl -w net.core.somaxconn=1024 sysctl -w net.core.netdev_max_backlog=2000 sysctl -w net.ipv4.tcp_max_syn_backlog=2048 sysctl -w vm.overcommit_memory=1 ``` doesn't solve the issue for me. Any hints? Thanks.
kerem 2026-02-27 15:55:47 +03:00
  • closed this issue
  • added the
    wontfix
    label
Author
Owner

@asittampalam commented on GitHub (Aug 10, 2019):

docker logs output:

Elasticsearch WARNING: 2019-08-09T21:56:55Z
  Unable to revive connection: http://es:9200/

Elasticsearch WARNING: 2019-08-09T21:56:55Z
  No living connections

Catastrophic failure! Error: No Living connections
[2019-08-09T21:57:56.777Z] SLAO api key must be specified
Elasticsearch ERROR: 2019-08-09T21:57:56Z
  Error: Request error, retrying
  PUT http://es:9200/ambar_log_record_data => getaddrinfo ENOTFOUND es es:9200
      at Log.error (/node_modules/elasticsearch/src/lib/log.js:225:56)
      at checkRespForFailure (/node_modules/elasticsearch/src/lib/transport.js:240:18)
      at HttpConnector.<anonymous> (/node_modules/elasticsearch/src/lib/connectors/http.js:162:7)
      at ClientRequest.wrapper (/node_modules/lodash/lodash.js:4929:19)
      at emitOne (events.js:116:13)
      at ClientRequest.emit (events.js:211:7)
      at Socket.socketErrorListener (_http_client.js:387:9)
      at emitOne (events.js:116:13)
      at Socket.emit (events.js:211:7)
      at emitErrorNT (internal/streams/destroy.js:64:8)
      at _combinedTickCallback (internal/process/next_tick.js:138:11)
      at process._tickCallback (internal/process/next_tick.js:180:9)

Elasticsearch WARNING: 2019-08-09T21:57:56Z
  Unable to revive connection: http://es:9200/

Elasticsearch WARNING: 2019-08-09T21:57:56Z
  No living connections

Catastrophic failure! Error: No Living connections

(A lot of repetitions of this block)

<!-- gh-comment-id:520137937 --> @asittampalam commented on GitHub (Aug 10, 2019): `docker logs` output: ``` Elasticsearch WARNING: 2019-08-09T21:56:55Z Unable to revive connection: http://es:9200/ Elasticsearch WARNING: 2019-08-09T21:56:55Z No living connections Catastrophic failure! Error: No Living connections [2019-08-09T21:57:56.777Z] SLAO api key must be specified Elasticsearch ERROR: 2019-08-09T21:57:56Z Error: Request error, retrying PUT http://es:9200/ambar_log_record_data => getaddrinfo ENOTFOUND es es:9200 at Log.error (/node_modules/elasticsearch/src/lib/log.js:225:56) at checkRespForFailure (/node_modules/elasticsearch/src/lib/transport.js:240:18) at HttpConnector.<anonymous> (/node_modules/elasticsearch/src/lib/connectors/http.js:162:7) at ClientRequest.wrapper (/node_modules/lodash/lodash.js:4929:19) at emitOne (events.js:116:13) at ClientRequest.emit (events.js:211:7) at Socket.socketErrorListener (_http_client.js:387:9) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at emitErrorNT (internal/streams/destroy.js:64:8) at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickCallback (internal/process/next_tick.js:180:9) Elasticsearch WARNING: 2019-08-09T21:57:56Z Unable to revive connection: http://es:9200/ Elasticsearch WARNING: 2019-08-09T21:57:56Z No living connections Catastrophic failure! Error: No Living connections ``` (A lot of repetitions of this block)
Author
Owner

@asittampalam commented on GitHub (Aug 10, 2019):

Update:

Changing the following in the docker-compose file seems to "solve" the issue: ES_JAVA_OPTS=-Xmx256m -Xms256m. But this is a hacky solution, so I'm leaving the issue open. Could this be a Mac related issue?

<!-- gh-comment-id:520141745 --> @asittampalam commented on GitHub (Aug 10, 2019): Update: Changing the following in the docker-compose file seems to "solve" the issue: `ES_JAVA_OPTS=-Xmx256m -Xms256m`. But this is a hacky solution, so I'm leaving the issue open. Could this be a Mac related issue?
Author
Owner

@stale[bot] commented on GitHub (Aug 25, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

<!-- gh-comment-id:524625005 --> @stale[bot] commented on GitHub (Aug 25, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ambar#242
No description provided.