Stuck at `moveArtifactsToPackage` during package cmd and `Successfully published` on deploy
See original GitHub issueI’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:
- Created 2 years ago
- Comments:7 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
yeah, I think so, thanks @bkniffler a lot for raising the error early, will revert once I have time to implement the fix
🎉 This issue has been resolved in version 1.10.6 🎉
The release is available on:
Your semantic-release bot 📦🚀