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.

Deployment crashing while zipping assets

See original GitHub issue
  • I’m submitting a …

    • 🪲 bug report
  • What is the current behavior? After upgrading to CDK 0.36.0, deployment fails without an error message while creating an asset zip file for my lambda. Running deploy in verbose mode, i can see the last debug message printed: Preparing zip asset from directory: cdk.out/asset.357a0d25d1...

  • Please tell us about your environment:

    • CDK CLI Version: 0.36.0
    • Module Version: 0.36.0
    • OS: Antergos (Arch Linux)
    • Language: Typescript
  • Other information After looking through the corresponding source code (here) it seems like the process is crashing completely, as the finally statement (removing the staging directory in /tmp) is’nt run, the directory still exists. I’ve made sure there is enough disk space in /tmp and it is writable.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:53 (28 by maintainers)

github_iconTop GitHub Comments

1reaction
artyom-melnikovcommented, Jul 20, 2019

@jogold I can provide you with the content of the folder on which I always can reproduce this issue (this is node_modules for my project, I also verified that issue remains after I unzip content).

https://drive.google.com/open?id=1LPF5cJX9jZAEPscgp4vJlytJTq0dmZVo

As for the code - I used this one: (based on aws-cdk/lib/archive.js:36)

zipDirectory('/path/to/layer',  '/tmp/1.zip')
  .then(() => console.log('Done'));

The ‘Done’ is never printed for that folder, works fine with other

Some more observations:

  • I tried to remove some folder and it seems that when there are about 7200 files the process works fine (originally there are 10500 files)
  • I’m using Ubuntu 18.04.1 LTS, I have a feeling that it can be a platform-related issue
1reaction
kirakirakirikocommented, Jul 1, 2019

Can you add this in zipDirectory?

output.on('error', (err) => console.log(err));
output.on('warning', (err) => console.log(err));

Both don’t get called

Read more comments on GitHub >

github_iconTop Results From Across the Web

Editor crashes if Unity is closed in the middle of exporting ...
The editor crashes because of closing the editor while exporting a package. It crashes because we try to access a reference to AsyncReadManager...
Read more >
Android App suddenly crashes when compiling in Release ...
My App was working fine when build to release mode, and both when downloading from Google play store or from a Android device...
Read more >
ESXi 6.7 U2 Web client crashes when importing OVF
The same OAV deployed via cli 'ovftools' and the VM working fine. Cause: Possibly unhandled rejection: {}. Version: 1.33.3. Build: 12923304.
Read more >
Delphi deployment and Android file storage - Stack Overflow
GetDocumentsPath to get the folder where the deployed file exists at runtime. ... GetDocumentsPath, 'assets.zip'); if (FileExists(S4)) then.
Read more >
Crashes - Android Developers
An app crash on an Android device. An app doesn't need to be running in the foreground for it to crash. Any app...
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