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

"Error: EOF: end of file, read" in jsii after upgrading aws cdk to 1.71.0 #11232

Closed
jorgenfroland opened this issue Oct 31, 2020 · 10 comments
Closed
Assignees
Labels
bug This issue is a bug. jsii This issue originates in jsii, or this feature must be implemented in jsii. needs-triage This issue or PR still needs to be triaged. p1

Comments

@jorgenfroland
Copy link

jorgenfroland commented Oct 31, 2020

Hi,

After upgrading aws cdk to 1.71.0 I started getting the error below from jsii.

Reproduction Steps

Upgrade aws cdk to 1.71.0. It will install version 1.14.0 of jsii which it depends on.

Trying to downgrade jsii to version 1.13.0 with aws cdk 1.71.0 returns:

aws-cdk-core 1.71.0 depends on jsii<2.0.0 and >=1.14.0

(jsii 1.14.0 was released on 29th of Oct 2020)

What did you expect to happen?

I expected bootstrap to complete without errors.

What actually happened?

(.env) PS C:\Users\jfroland\Documents\code\cdk\push-app-stats> cdk bootstrap
C:\Users\jfroland\Documents\code\cdk\push-app-stats\.env\lib\site-packages\jsii\_embedded\jsii\jsii-runtime.js:13295
                    throw e;
                    ^

Error: EOF: end of file, read
    at Object.readSync (fs.js:568:3)
    at SyncStdio.readLine (C:\Users\jfroland\Documents\code\cdk\push-app-stats\.env\lib\site-packages\jsii\_embedded\jsii\jsii-runtime.js:13278:33)
    at InputOutput.read (C:\Users\jfroland\Documents\code\cdk\push-app-stats\.env\lib\site-packages\jsii\_embedded\jsii\jsii-runtime.js:13203:34)
    at KernelHost.run (C:\Users\jfroland\Documents\code\cdk\push-app-stats\.env\lib\site-packages\jsii\_embedded\jsii\jsii-runtime.js:13021:32)
    at Immediate.<anonymous> (C:\Users\jfroland\Documents\code\cdk\push-app-stats\.env\lib\site-packages\jsii\_embedded\jsii\jsii-runtime.js:13029:37)
    at processImmediate (internal/timers.js:456:21) {
  errno: -4095,
  syscall: 'read',
  code: 'EOF'
}
 ⏳  Bootstrapping environment aws://<account_id>/<region>...
CDKToolkit: creating CloudFormation changeset...
 ✅  Environment aws://<account_id>/<region> bootstrapped (no changes).
(.env) PS C:\Users\jfroland\Documents\code\cdk\push-app-stats>

Environment

  • Framework Version: 1.71.0
  • Node.js Version: v12.18.3
  • OS : Win10
  • Python (Version): 3.6.8

Other


This is 🐛 Bug Report

@jorgenfroland jorgenfroland added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Oct 31, 2020
@jorgenfroland
Copy link
Author

A temporary workaround is to downgrade aws cdk to 1.70.0 and jsii to 1.13.0.

@paujim
Copy link

paujim commented Oct 31, 2020

I get the same error after the upgrade (1.71.0)

@SomayaB SomayaB added the jsii This issue originates in jsii, or this feature must be implemented in jsii. label Nov 2, 2020
@nbmha1
Copy link

nbmha1 commented Nov 3, 2020

Also seeing this. However, I noticed that if I removed my import of pydantic (above 1.5.0) it went away.

@RomainMuller
Copy link
Contributor

Can you confirm whether this is still an issue? There was a problem with Python 3.6 (see #11255) in jsii 1.14.0 which has been fixed in. jsii 1.14.1. This might be what caused your problems here.

@MrMoose
Copy link

MrMoose commented Nov 6, 2020

I have this issue as well and just tested it with jsii 1.14.1 and cdk 1.72.0 on windows.

The problem still occurs and doesn't seem to be fixed.

@crudemandarin
Copy link

Experiencing the same issue. I downgraded to aws-cdk to 1.70.0 and jsii to 1.13.0, however I get the following message:

ERROR: constructs 3.2.15 has requirement jsii<2.0.0,>=1.14.1, but you'll have jsii 1.13.0 which is incompatible.

Problem is not fixed

@paujim
Copy link

paujim commented Nov 6, 2020

Can you confirm whether this is still an issue? There was a problem with Python 3.6 (see #11255) in jsii 1.14.0 which has been fixed in. jsii 1.14.1. This might be what caused your problems here.

I still see the issue in cdk 1.72.0 (windows) and python 3.8

@jorgenfroland
Copy link
Author

jorgenfroland commented Nov 7, 2020

Can you confirm whether this is still an issue? There was a problem with Python 3.6 (see #11255) in jsii 1.14.0 which has been fixed in. jsii 1.14.1. This might be what caused your problems here.

I also see the issue using cdk 1.72.0, jsii 1.14.1 and Python 3.6.8.

@RomainMuller RomainMuller added the p1 label Nov 9, 2020
@RomainMuller
Copy link
Contributor

The Error: EOF: end of file, read is in fact caused by incorrect (in light of the documentation) behavior of fs.readSync of node on Windows, when STDIN is wired to a socket (this is the case when node is spawned as a sub-process with "piped" IOs).

This is effectively a duplicate of (actually duplicated by, but the other somehow got my attention first) #11314. I'll resolve this as you can follow the proceedings in #11314.

@github-actions
Copy link

github-actions bot commented Nov 9, 2020

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. jsii This issue originates in jsii, or this feature must be implemented in jsii. needs-triage This issue or PR still needs to be triaged. p1
Projects
None yet
Development

No branches or pull requests

7 participants