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

General error: 7 server closed the connection unexpectedly #1110

Closed
jakenoble opened this issue Jun 20, 2022 · 2 comments
Closed

General error: 7 server closed the connection unexpectedly #1110

jakenoble opened this issue Jun 20, 2022 · 2 comments

Comments

@jakenoble
Copy link

When running many (1,000s) of fixtures Postgres crashes with no error and no error in its log file. The crash just states;

 SQLSTATE[HY000]: General error: 7 server closed the connection unexpectedly
  	This probably means the server terminated abnormally
  	before or while processing the request.
  • Is this a known issue or just a byproduct of running lots of fixtures?
  • Is there a known workaround?
    • splitting up fixtures?
    • Postgres config changes?
@theofidry
Copy link
Member

I honestly cannot say. You would need to double check your postgresql logs. I don't think 1k fixtures is that big of a deal and I've certainly handled way more in the past.

@theofidry
Copy link
Member

Closing as I really cannot help without more information, and I'm pretty certain the library manages several thousand of objects just fine. How much your DB can handle though is specific to you, worst case you will have to batch the persisting of the aggregates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants