Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Couldn't obtain lock and too many open files error #178
I am using OpenResty and lua-resty-auto-ssl to generate SSL on the fly. OpenResty is acting as a reverse proxy to our Node.js app. It works great, but sometimes it just crashes with the following errors and never recovers.
I have to manually kill the process and restart to make it work. What could be the reason?
OpenResty version: 184.108.40.206
Also, it appears that this error occurs whenever there is an SSL generation error for specific domains. This issue might even be related to this -- I am not entirely sure though. Any help will be highly appreciated. :)
Further investigation revealed that this happens whenever the certification generation is not able to complete for any reason. For example, when any domain is behind Cloudflare, the SSL generation fails and OpenResty becomes unresponsive.