-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Strapi crash - ERR_INTERNAL_ASSERTION: This is caused by either a bug in Node.js or incorrect usage of Node.js internals. #18084
Comments
I couldn't figure out which query was causing this, or why it started happening. We wanted to switch to Postgres recently, and switching fixed this issue. Seems like it may be a SQLite only issue (we used better-sqlite for reference). Closing as it's no longer a problem and not able to reproduce it consistently. |
Same here . I use Postgres. It happens when the server restarts to save changes in collections. |
I think that's because node v20. I go back to version 18 and works fine, as expected. |
Still reproducing on Node 20.8.1 with Strapi 4.15.5 |
why is this issue closed? |
Reopening as others have the issues. |
Same here, Strapi 4.16.2 (node v20.10.0) |
Hello @Cretezy, Thank you for reporting this bug, however we are unable to reproduce the issue you described given the information we have on hand. Can you please create a fresh project that you are able to reproduce the issue in, provide clear steps to reproduce this issue, and either upload this fresh project to a new GitHub repo or compress it into a We would greatly appreciate your assistance with this, by working in a fresh project it will cut out any possible variables that might be unrelated. Thank you! |
I had the issue as well, was on Node.js v20.10.0, reverted to Node.js v18.19.0, seems to working ok now. Strapi v4.16.2 |
Same here, using Strapi It happened right after playing a bit with an initial content type, while learning it. Sample available here. …/backend on master [?] ❯ npm run develop
> backend@0.1.0 develop
> strapi develop
✔ Cleaning dist dir (10ms)
⠋ Building build context
[INFO] Including the following ENV variables as part of the JS bundle:
- ADMIN_PATH
- STRAPI_ADMIN_BACKEND_URL
- STRAPI_TELEMETRY_DISABLED
✔ Building build context (50ms)
✔ Creating admin (13698ms)
✔ Loading Strapi (844ms)
✔ Generating types (359ms)
✔ Cleaning dist dir (6ms)
✔ Compiling TS (1428ms)
node:internal/assert:14
throw new ERR_INTERNAL_ASSERTION(message);
^
Error [ERR_INTERNAL_ASSERTION]: This is caused by either a bug in Node.js or incorrect usage of Node.js internals.
Please open an issue with this stack trace at https://github.com/nodejs/node/issues
at assert (node:internal/assert:14:11)
at internalConnectMultiple (node:net:1118:3)
at Timeout.internalConnectMultipleTimeout (node:net:1687:3)
at listOnTimeout (node:internal/timers:575:11)
at process.processTimers (node:internal/timers:514:7) {
code: 'ERR_INTERNAL_ASSERTION'
}
Node.js v20.10.0
…/backend on master [?] took 21s❯ Indeed, as @pashioz kindly mentioned, it (still) works using Node v18.
And the result:
|
Same here on Postgres and Node v20.9.0! |
I have just upgraded to Strapi v4.17.0, seems to work without error with Node 20.10.0 so far. EDIT: Spoke to soon, works 50% of the time. |
So far we haven't been able to reproduce this at all on any version. If someone could provide exact reproduction steps that we be awesome 👍 |
@derrickmehaffy it's pretty much just running strapi develop whilst using node v20.10.0 in my case, node v20.11.0 produces the same error. Ubuntu 23.04
|
In that case then I can 100% confirm that isn't reproducable accurately because my default node version I use regularly is Node 20 on Linux Mint 21.2 (based on Ubuntu 22.04) and I spin up at least 10 to 15 projects a day and have never seen it. Meaning there is some other environmental factor at play here that we need to identify. If we can't accurately reproduce the issue we can't fix it and validate our fix. |
I running the project in a MacBook Pro Apple M1 Pro with
hope it helps |
I downgraded to Node 18.19.0 now all good. For the record in my case it was happening in production on Node 20.9.0, and in a K8 container |
Anyone else here using docker or other containers and running in production? |
Yes downgrading seems to be the only solution at the moment. As I downgraded to Node v18.17.0 and didn't get the issue anymore. |
@derrickmehaffy Actually seems to be a bug in Node nodejs/node#47644 Already merged in. I dug more when it started appearing for me not just in Strapi but in a GraphQL deployment! |
Ahh seems to be an issue in Node's network stack, should be fixed by this when it's released: nodejs/node#51045 I'll tag this correctly and close it for now since it's out of our hands but good find! |
Bug report
Required System information
node:20.5.1-alpine
Describe the bug
Strapi crashes. Seems to only be happening when hitting
/graphql
.Have not been able to find which query is causing this, will be able to this weekend.
Here are the logs:
Steps to reproduce the behavior
TBD, unsure yet. Will post this weekend.
Expected behavior
Strapi does not crash.
The text was updated successfully, but these errors were encountered: