-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Error: spawn E2BIG #254
Comments
Thanks a lot for reporting this issue. It seems pretty rare to have a schema file that’s larger than a mega byte. Would you mind elaborating on your use case @witt3rd? |
I am trying to create a GraphQL wrapper for an industry standard database: https://github.com/rbhughes/pg_ppdm |
I'm receiving the same error message. We have 400+ Postgres tables. I was following the tutorial:
Received error message:
|
Thanks a lot for providing this additional information. We'll be looking into it! |
I'm now receiving the same |
BTW, with the exact same setup I described yesterday except that I updated to preview5, I get the following more detailed error:
|
In the next sprint we will investigate, which concrete bugs are happening. |
I have a sample reproduction here to hopefully help track this down: https://github.com/thortek/prisma2-issue254-reproduction |
I am able to reproduce @thortek's reproduction, the More specifically, the issue happens when running Interestingly, when I tried reproducing this independently with a large schema, I got a different error:
The These results might vary across OS/datamodel (I am using similar More info: It fails at this function |
Tried to use this on our existing DB and unfortunately it won't work. Hopefully we can get it soon. |
Hi, With values above some threshold ~70MB i get a lot of json output of the schema: i tried values between 500 - 12000 it always raises E2BIG Error. :( Hope i could help i think this is related: https://unix.stackexchange.com/questions/120642/what-defines-the-maximum-size-for-a-command-single-argument output of postgres: |
@timsuchanek Did this get fixed? I ll retest this :) |
@Manouli it'll take still a bit until it's out, the CI pipeline is stuck. I'll ping you once it's out! |
We have a new alpha out, which already fixes it for schemas of the size of 1000 models. It seems like schemas with 10000 models are not yet working. We'll investigate and do a fix soon! |
@timsuchanek that should more than enough for me :) Thank you so much |
2.0.0-preview016 fixed this error for me |
Update: In https://github.com/prisma/prisma2/releases/tag/2.0.0-preview016.2 we pushed the limits a bit further again - a schema with 3000 models is now working. |
@timsuchanek I can confirm that its working for me now. Thank you so much for dealing with this. |
Trying to run
prisma2 generate
(preview-3
) on an 18MB model file results inError: spawn E2BIG
The text was updated successfully, but these errors were encountered: