Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WORKER TIMEOUT on application start in AWS EC2 instance #36

Open
dboterho opened this issue Dec 7, 2018 · 4 comments
Open

WORKER TIMEOUT on application start in AWS EC2 instance #36

dboterho opened this issue Dec 7, 2018 · 4 comments

Comments

@dboterho
Copy link

dboterho commented Dec 7, 2018

Hello,

We have been trying to set up an instance of the application on an AWS EC2 instance. Everything seems to be setup correctly; EC2 instance is running, we can telnet to the ports, attached volume is OK, and AWS Elasticsearch instance appears accessible and running. When we hit the /ping URL it times out. And looking at the docker logs we can see the below messages:

[2018-12-04 16:50:33 +0000] [1946] [INFO] Booting worker with pid: 1946
[2018-12-04 16:50:33 +0000] [1947] [INFO] Booting worker with pid: 1947
[2018-12-04 16:50:33 +0000] [1950] [INFO] Booting worker with pid: 1950
[2018-12-04 16:50:33 +0000] [1954] [INFO] Booting worker with pid: 1954
[2018-12-04 16:51:33 +0000] [6] [CRITICAL] WORKER TIMEOUT (pid:1946)
[2018-12-04 16:51:33 +0000] [1946] [INFO] Worker exiting (pid: 1946)
[2018-12-04 16:51:33 +0000] [6] [CRITICAL] WORKER TIMEOUT (pid:1947)
[2018-12-04 16:51:33 +0000] [6] [CRITICAL] WORKER TIMEOUT (pid:1950)
[2018-12-04 16:51:33 +0000] [6] [CRITICAL] WORKER TIMEOUT (pid:1954)
[2018-12-04 16:51:33 +0000] [1954] [INFO] Worker exiting (pid: 1954)
[2018-12-04 16:51:33 +0000] [1947] [INFO] Worker exiting (pid: 1947)
[2018-12-04 16:51:33 +0000] [1950] [INFO] Worker exiting (pid: 1950)

We have ruled out memory and cache issues and tried using different versions. The issue appears to originate from the dsys/match image. Does anybody know what our issue is?

AMI: ubuntu/images/hvm-ssd/ubuntu-bionic-18.04-amd64-server-20180912 (ami-07a3bd4944eb120a0)
EC2 instance type: t2.medium
Elastic Search version: 6.3

Thanks

@cucomans
Copy link

Same problem here. Did you get with a solution?

@dboterho
Copy link
Author

@cucomans no, didn't find a workround and went with an alternate solution (which didn't include phash).

@cucomans
Copy link

It was working fine untill last monday and then boom this error started to occurr.

@lklic
Copy link

lklic commented Apr 16, 2021

I had the same problem, from the logs I was getting the following:
Elasticsearch: Max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

Following this stackoverflow i did the following:
https://stackoverflow.com/questions/51445846/elasticsearch-max-virtual-memory-areas-vm-max-map-count-65530-is-too-low-inc

edit /etc/sysctl.conf and added vm.max_map_count = 262144 to the end of the file

ran sysctl -w vm.max_map_count=262144
then systemctl restart docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants