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

Server hangs with 2 parallel requests #111

Open
phackwer opened this issue Jul 2, 2018 · 0 comments
Open

Server hangs with 2 parallel requests #111

phackwer opened this issue Jul 2, 2018 · 0 comments

Comments

@phackwer
Copy link

phackwer commented Jul 2, 2018

Hi. W using are e the Phusion/Passenger docker container (https://github.com/phusion/passenger-docker) and I'm having the most unusual problem here: when running a docker container locally (as development) that has IMGKit, my code runs smooth, and generates the images properly. But when we go to the QA server, the QA hangs in the second request. wkhtmltoimage seems to get stuck, with no hope to ever come back. If I go into the docker container and kill the process manually (killall wkhtmltoimage-amd64) rails start responding other requests.

Now: what is really bizarre: if I call the endpoints that generate the images directly from my browser, al go, all normal... There is nothing special on the headers, actually it's a pretty standard get with the token in the URL, so there should be no problem at all with it!

Also, the same code that generates the images is used in a different part of our system (as we created it as a concern to be used on different controllers), and they are all working fine!!!

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

1 participant