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.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
MrMoosecommented, 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.

0reactions
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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting common AWS CDK issues
This topic describes how to troubleshoot the following issues with the AWS CDK. After updating the AWS CDK, the AWS CDK Toolkit (CLI)...
Read more >
@jsii/check-node | Yarn - Package Manager
This package can be used to check whether the node runtime used to run an application is known to be compatible with the...
Read more >
Returns JSII error when attempting to create empty stack with ...
I have re-installed aws cli, cdk and nodejs. Any suggestions on what to look for? Steps to reproduce: mkdir myfolder cdk init --language...
Read more >
jsii - PyPI
AWS CDK Automation... Aaron Costley... Abdallah Hodieb · 🐛 Adam Ruka... Andrew Wason · 🐛 💻 Andy Slezak · 💻 Ansgar Mertens... Anshul Guleri... Ben...
Read more >
How to upgrade CDK from CDKv1 to CDKv2 in an existing ...
On december 2nd AWS announced the general availability of upgrading CDK version 2. This blog describes how to upgrade to CDKv2.
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