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 on first serverless deploy

See original GitHub issue

When deploying a new Serverless project for the first time (stack doesn’t exist in CloudFormation yet) with sls deploy, I see this error:

$ sls deploy
Serverless: Creating Stack...
Serverless: Checking stack creation progress...
......
Serverless: Stack successfully created.
Serverless: Bundling with Webpack...
Time: 4537ms
       Asset    Size  Chunks             Chunk Names
./handler.js  268 kB       0  [emitted]  main
Serverless: Zipping service...

  Error --------------------------------------------------

     EEXIST: file already exists, link '/Users/kennu/Projects/xxx/xxx/services/.webpack/.serverless'
     -> '/Users/kennu/Projects/xxx/xxx/services/.serverless'

     For debugging logs, run again after setting SLS_DEBUG env var.

  Get Support --------------------------------------------
     Docs:          v1.docs.serverless.com
     Bugs:          github.com/serverless/serverless/issues

     Please report this error. We think it might be a bug.

When I run sls deploy again, it works fine.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
khoaisohdcommented, Sep 24, 2016

Could you publish a new version for this fix?

3reactions
theniksocommented, Sep 28, 2016

Version 1.0.0-rc.2 is on npm with this fix!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Top 10 Serverless Deployment Errors (and How to Fix Them)
1. Invalid CloudFormation state · 2. Unable to fetch parameters · 3. API Gateway: No integration defined for method · 4. Codebuild deploy...
Read more >
My first serverless deploy failed with Stack XXXXX does not exist
serverless deploy -v. but I'm getting the following error: Set "provider.apiGateway.shouldStartNameWithService" to "true" to adapt to the ...
Read more >
Serverless deploy - Function not found - sls deploy
I've faced this issue with Serverless. The issue is caused by how Serverless handles, tracks, and deploys your functions. When you deleted the...
Read more >
Unable to deploy new stack #10782 - serverless ... - GitHub
Run npx serverless@3 deploy --stage dev --verbose. Expected Result: Stack gets created for the dev stage. Actual Result: Produces the following ...
Read more >
Stack with id does not exist - Seed.run
The reason it shows up as this error is because on the first deployment Serverless Framework tries to create an S3 bucket to...
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