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.

Stuck at `moveArtifactsToPackage` during package cmd and `Successfully published` on deploy

See original GitHub issue

I’m using serverless 2.39.0, also tried 2.38.0. Both package and deploy commands get stuck at the end and fail to exit the process without any clear error. Outputs are below and are with verbose+debug enabled.

Tried different configs, but it keeps on hanging on that moveToArtifactsToPackage step. Deploying still does work though, but the process will need to be cancelled with ctrl+c.

If I exchange serverless-esbuild with serverless-bundler, the process exits correctly.

Logs (package)

....
Serverless: Packaging service...
Serverless: Installing dependencies for custom CloudFormation resources...
Serverless: Invoke aws:package:finalize
Serverless: Invoke aws:common:moveArtifactsToPackage

Logs (deploy)

....
Serverless: Invoke aws:deploy:finalize
Serverless: Removing old service artifacts from S3...
Serverless: Publishing service to the Serverless Dashboard...
Serverless: Successfully published your service to the Serverless Dashboard: xxxx

Config

custom:
  esbuild:
    packager: npm
    bundle: true
    minify: false
    sourcemap: true
    target: node14
    watch:
      pattern: ['./index.ts', 'src/**/*.ts'] # default .
      ignore: ['.serverless/**/*', '.build'] # default ['.build', 'dist', 'node_modules']

Any idea what could be wrong?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
olupcommented, May 6, 2021

yeah, I think so, thanks @bkniffler a lot for raising the error early, will revert once I have time to implement the fix

0reactions
github-actions[bot]commented, May 6, 2021

🎉 This issue has been resolved in version 1.10.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

Copy-ServiceFabricApplicationPackage hangs forever #813
Publish from VS2017 got stuck in Copying application to image ... I am not sure what changed but deploy/publish seems to be working...
Read more >
First Time Using PDQ Deploy - Stuck on 'Running'
I've created the package, deployed it to a computer to test, I see it goes through the copying stage but then just sits...
Read more >
Msbuild just produces a package but does not deploy it when ...
So I execute that last MSBuild-command that I have shown you and it executes without any errors. Instead it says that the web...
Read more >
SCCM 2012 .cmd file package deployment - 'Failed'
Hi. I have created a package that runs a .cmd file to deploy an .exe file silently (with a response file). When i...
Read more >
Failed package step doesn't fail - Operations - Octopus Deploy
json' on the destination because it is locked by an external process. In order to allow the publish operation to succeed, you may...
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