question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Keystone server crashes with too many requests

See original GitHub issue

Discussed 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:closed
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
dcousenscommented, Aug 31, 2022

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,

1reaction
dcousenscommented, Aug 18, 2022

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found