Keystone server crashes with too many requests
See original GitHub issueDiscussed in https://github.com/keystonejs/keystone/discussions/7753
<div type='discussions-op-text'>Originally posted by IamMattL August 1, 2022 Hi,
I find that the keystone server dies when you refresh the admin page a few times, which then i have to start up the server again. This happens in dev and production, is this a bug or a configuration issue? I’ve looked for this issue on github and the Docs but cant find anything about it.
This seems to be a linux issue as it doesn’t happen on windows.
Running on Ubuntu 20.04
Here is the console output
$ yarn dev
yarn run v1.22.19
$ keystone dev
✨ Starting Keystone
⭐️ Dev Server Starting on http://localhost:3000
⭐️ GraphQL API Starting on http://localhost:3000/api/graphql
✨ Generating GraphQL and Prisma schemas
✨ The database is already in sync with the Prisma schema.
✨ Connecting to the database
✨ Creating server
✅ GraphQL API ready
✨ Generating Admin UI code
✨ Preparing Admin UI app
event - compiled client and server successfully in 14.1s (1315 modules)
✅ Admin UI ready
wait - compiling /api/__keystone_api_build...
event - compiled successfully in 285 ms (196 modules)
wait - compiling /init (client and server)...
event - compiled client and server successfully in 581 ms (1341 modules)
Error: aborted
at connResetException (node:internal/errors:691:14)
at abortIncoming (node:_http_server:597:17)
at socketOnClose (node:_http_server:591:3)
at Socket.emit (node:events:532:35)
at TCP.<anonymous> (node:net:687:12)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Bug #1155566 “Note: Keystone Request / Header Size Limits ...
Requests with large POST body can crash Keystone or underlying services. ... this can lead to resource exhaustion on the Keystone server.
Read more >How does too many requests make a server crash?
If a server has too many requests, it might queue up the request in its waiting lists and serve it when all the...
Read more >What is Server and Why does a Server Crash? - Utmel
Some reasons why the server cannot continue to provide services may be: The contradiction between the fast-growing number of users and the server...
Read more >My NodeJS server crashes after 6 Axios post request
Your server is not sending the response back to the client. Try to send a response. Try to change your server code. app.post('/api/sandbox', ......
Read more >Why swift-proxy-server crashes due to large memory ...
Why swift-proxy-server crashes due to large memory consumption ? ... /v2.0 HTTP/1.1" 200 335 DEBUG:keystoneclient.session:RESP: [200] Vary: ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @jamie-lord and @IamMattL,
The following CVE and security advisory was issued for this problem upstream in nextjs, and was resolved as part of Keystone’s recent update to nextjs@v12.2.4.
Thanks for your patience,
@jamie-lord @IamMattL, sorry for the vague update, we’ll elaborate on the problem soon. We intend to make a release today in which this problem should be fixed.