Uncaught "Socket hang up" error when community member API is unresponsive #42
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Our service has a large volume of SSL renewal requests which we handle using Greenlock. Recently we started experiencing a large number of "Socket hang up (ECONNRESET)" errors, and we tracked the source to the addCommunityMember function of Greenlock. It appears that when the https://api.ppl.family servers are unresponsive (possibly due to a large amount of traffic) this error can occur, and it's not caught, which can cause the process to crash.
I had to dig through the code of this library to figure out that every renewal request causes an API call to be made to this external service, which appears to be administered by the same entity as Greenlock. I had no idea that our email addresses were being sent to this service- at the very least I would hope for this to be documented in the README. I'm sure this isn't malicious behavior, and maybe I missed the documentation regarding this but it would be nice if this was more obvious, especially as it can apparently be a source of errors.
Since I added
securityUpdates: false
to our Greenlock configuration (the flag that disables the API calls to ppl.family) we haven't seen any more "Socket hang up" errors, so I'm confident this was the source of the problem.I'm happy to submit a PR documenting the
securityUpdates
option if that would help.Hello,
Thanks for the report. The error should be silently ignored:
You may have an older version, or perhaps there's another level of error propagation.
The behavior is documented and the usage is described:
securityUpdates
)The URL hasn't been updated from the old site (now therootcompany.com, was ppl.family).
Very, very rarely, I send out security notices. I sent one out the last time Let's Encrypt had a breaking change that affected all Greenlock installs. There's another one coming up shortly.
Closing. Let me know if you need anything else.