You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Version 1.39.0 causing CircleCI deployment script to fail. #5928
ENOENT: no such file or directory, stat '/home/circleci/repo/.serverless/.serverless/serverless-api.zip'
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information -----------------------------
OS: linux
Node Version: 8.15.1
Serverless Version: 1.39.0
Exited with code 1
Reacted by Patrick Corbett, Thomas Schaaf, twitchy9000, Dan, Marco Bunge, Nikola Petkanski, Chris Feist, Rowan Beentje, Philip, Zygimantas and 7 more
ENOENT: no such file or directory, stat '/home/circleci/repo/.serverless/.serverless/engage.zip'
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information -----------------------------
OS: linux
Node Version: 8.11.4
Serverless Version: 1.39.0
Exited with code 1
Reacted by Dan, Marco Bunge, Khayalethu Sofohlo and Razvan Suprovici
No getBrand.zip file found in the package path you provided.
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information -----------------------------
OS: darwin
Node Version: 8.10.0
Serverless Version: 1.39.0
I am also seeing the issue locally and on our build server. It appears to be drilling down into the /.serverless folder twice to look for the .zip file, given the ENOENT message.
I have confirmed that 1.38.0 is working without issue.
Confirmed for local Deployment and AWS CodeDeploy / Pipelines too!
We are also using serverless-webpack.
Local
ENOENT: no such file or directory, stat '/Users/tackleberry/projects/my-custom-project-name/.serverless/.serverless/my-custom-project-name.zip'
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
/.serverless/.serverless seems to be wrong at this point.
CodeBuild Error:
Serverless Warning --------------------------------------
A valid file to satisfy the declaration 'file(resources/dynamodb-table.yml)' could not be found.
Serverless: Uploading CloudFormation file to S3...
Serverless: Uploading artifacts...
Error --------------------------------------------------
ENOENT: no such file or directory, stat 'artifacts/dev/.serverless/my-fixed-project-name.zip'
I am getting the error as well. I'm not using serverless-webpack. I am however using serverless-python-requirements and I saw a related issue on their github:
I'm also encountering Jenkins build issues using the latest version 1.39.0:
Serverless Error ---------------------------------------
No src-some-package-name-dev-run.zip file found in the package path you provided.
Your Environment Information -----------------------------
OS: linux
Node Version: 8.10.0
Serverless Version: 1.39.0
@Kennytian looks like that's the only solution right now. My general strategy was to always install the latest serverless version on CircleCI, but lately serverless became unstable and starting to think about version pinning.
Having the same issue. I maintain the serverless rust plugin. same symptom, looks to be same cause. I set the package.artifact path to my build artifacts. The package gets interpreted incorrectly now. at least inconsistently as it has in the past.
Would it be possible to revert #5297 and publish a patch version? It seems its causing numerous regressions across the ecosystem.
Reviewing the summary
Because artifacts are generated in the .serverless directory first, even if a package path was provided, the reference to the artefact zip file was incorrectly pointing at the .serverless directory. This only needs to be changed at the time the service state is saved, so I have added a few lines to the saveServiceState.js file of the AWS package plugin to fix the paths in the service configuration before saving.
Not all artifacts are generated in the .serverless directory. I think the correct behavior should be if a path is provided, serverless should honor it as is, not change it.
Activity
PMCorbett commentedon Mar 15, 2019
I am seeing precisely the same issue on CircleCI. I am also using the serverless-webpack plugin
Serverless: Uploading CloudFormation file to S3...
Serverless: Uploading artifacts...
Error --------------------------------------------------
ENOENT: no such file or directory, stat '/home/circleci/repo/.serverless/.serverless/engage.zip'
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information -----------------------------
OS: linux
Node Version: 8.11.4
Serverless Version: 1.39.0
Exited with code 1
twitchy9000 commentedon Mar 15, 2019
I am seeing the same issue when attempting to deploy from CircleCI and from local.
serverless-webpack
package:
individually: true
Serverless: Packaging service...
Serverless Error ---------------------------------------
No getBrand.zip file found in the package path you provided.
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information -----------------------------
OS: darwin
Node Version: 8.10.0
Serverless Version: 1.39.0
srdone commentedon Mar 15, 2019
I am also seeing the issue locally and on our build server. It appears to be drilling down into the
/.serverlessfolder twice to look for the.zipfile, given the ENOENT message.I have confirmed that
1.38.0is working without issue.I am also using the
serverless-webpackplugin.mbunge commentedon Mar 15, 2019
Confirmed for local Deployment and AWS CodeDeploy / Pipelines too!
We are also using serverless-webpack.
Local
/.serverless/.serverlessseems to be wrong at this point.CodeBuild Error:
dinamic commentedon Mar 15, 2019
Confirmed. It also happens on our setup.
I tried to fix it myself by editing
.serverless/serverless-state.jsonto no avail.Granted, I have no clue how serverless works, but was trying to make it work somehow. I can't deploy no more. :(
mbunge commentedon Mar 15, 2019
Forcing [email protected] in CircleCI config and for AWS in your CodeBuildDeployProject.Source.BuildSpec config.
dinamic commentedon Mar 15, 2019
Going thru changes, I feel like this is the one that broke things.
#5297
guice commentedon Mar 15, 2019
Same issue. It's global. Happens with every service of ours.
dschep commentedon Mar 15, 2019
Are all of you using serverless-webpack like @mbunge is?
rrosenblum commentedon Mar 15, 2019
I am having this issue, and I am not using
serverless-webpack.The error that I am seeing is
No <package>.zip file found in the package path you provided.guice commentedon Mar 15, 2019
I am using
serverless-webpack. The error I get is a double.serverless/.serverlessin the package path.dschep commentedon Mar 15, 2019
@rrosenblum, could you provide your
serverless.yml?rrosenblum commentedon Mar 15, 2019
Here is a copy of my serverless.yml.
hiloboy0119 commentedon Mar 15, 2019
I am getting the error as well. I'm not using
serverless-webpack. I am however usingserverless-python-requirementsand I saw a related issue on their github:serverless/serverless-python-requirements#332
keithalpichi commentedon Mar 15, 2019
I'm also encountering Jenkins build issues using the latest version 1.39.0:
And our serverless.yml:
I realize the error occurs before deploying to AWS S3.
Kennytian commentedon Mar 16, 2019
My workaround is downgrade to 1.38.0,
yarn global add [email protected]efimk-lu commentedon Mar 16, 2019
@Kennytian looks like that's the only solution right now. My general strategy was to always install the latest serverless version on CircleCI, but lately serverless became unstable and starting to think about version pinning.
softprops commentedon Mar 16, 2019
Having the same issue. I maintain the serverless rust plugin. same symptom, looks to be same cause. I set the package.artifact path to my build artifacts. The package gets interpreted incorrectly now. at least inconsistently as it has in the past.
softprops/serverless-rust#30 (comment)
softprops commentedon Mar 16, 2019
Would it be possible to revert #5297 and publish a patch version? It seems its causing numerous regressions across the ecosystem.
Reviewing the summary
Not all artifacts are generated in the .serverless directory. I think the correct behavior should be if a path is provided, serverless should honor it as is, not change it.
pmuens commentedon Mar 18, 2019
Just reverted #4188 which seems to be the root cause. Patch release should be out in ~30 minutes...
mbunge commentedon Mar 20, 2019
Nice. Thanks!