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

TypeError: ssl.destroySSL is not a function #53660

Open
Fusl opened this issue Jul 1, 2024 · 3 comments
Open

TypeError: ssl.destroySSL is not a function #53660

Fusl opened this issue Jul 1, 2024 · 3 comments
Labels
tls Issues and PRs related to the tls subsystem.

Comments

@Fusl
Copy link

Fusl commented Jul 1, 2024

Version

v20.13.1

Platform

4.14.345-262.561.amzn2.x86_64 #1 SMP Fri May 31 18:15:42 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Running inside Docker image built from docker.io/node:20.13.1-bookworm-slim

Subsystem

tls

What steps will reproduce the bug?

No response

How often does it reproduce? Is there a required condition?

No response

What is the expected behavior? Why is that the expected behavior?

No response

What do you see instead?

node:_tls_wrap:650
      ssl.destroySSL();
          ^

TypeError: ssl.destroySSL is not a function
    at TCP.done (node:_tls_wrap:650:11)

Additional information

Randomly throughout the day, multiple Node.js instances from our fleet of servers are simultaneously terminating after throwing the error with the provided stack trace pointing towards this ssl.destroySSL() call in _tls_wrap.js.

We're not 100% sure that this is a bug in Node.js since we weren't able to pinpoint this issue to a specific part of our codebase and couldn't find a reproduction case yet but we plan on rolling out an update that enables the NODE_DEBUG=tls option to gather more information.

@juanarbol
Copy link
Member

Hey. Thanks for the report.

You could also increase the stack trace size to get more information about the error.

node --stack-trace-limit=100 or something like that

@RedYetiDev
Copy link
Member

Could you possibly provide more information about what code caused this? A larger stack trace (as @juanarbol mentioned) might help as well.

@RedYetiDev RedYetiDev added the tls Issues and PRs related to the tls subsystem. label Jul 2, 2024
@Fusl
Copy link
Author

Fusl commented Jul 6, 2024

Shortly after opening this issue, we have rolled out an update to our production system, enabling the debug and suggested trace limit options. We haven't experienced another similar crash yet so I can't provide further information at this time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tls Issues and PRs related to the tls subsystem.
3 participants