-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting "The serverless deployment bucket does not exist", when the bucket does exist. #6351
Comments
I believe this may actually be an issue with S3 not fully deleting buckets immediately, or ever, sometimes. In that case, the namespace is still owned and it appears in the console but it's empty and unable to be deleted. |
Found this and wanted to add a comment with my experience. The most common cause I've found is when you try to delete a stack and the delete fails for some reason. If it gets to the S3 bucket resource before it gets to the failure then the bucket will get deleted producing this error if you try to redeploy because the stack already exists. You will need to manually delete the stack because to my knowledge there's no way for serverless to recover once the bucket is gone. |
Deleting the stack form the cloud formation resolved the issue for me thanks @devblueray |
Just ran into this issue. Here is the log information: `Serverless: Packaging service... Serverless Error --------------------------------------- The serverless deployment bucket "fs-dashboard-dev-serverlessdeploymentbucket-1j077zxpijd1t" does not exist. Create it manually if you want to reuse the CloudFormation stack "fs-dashboard-dev", or delete the stack if it is no longer required. Get Support -------------------------------------------- Serverless: Packaging service... Serverless Error --------------------------------------- The serverless deployment bucket "fs-dashboard-dev-serverlessdeploymentbucket-1j077zxpijd1t" does not exist. Create it manually if you want to reuse the CloudFormation stack "fs-dashboard-dev", or delete the stack if it is no longer required. Get Support -------------------------------------------- Your Environment Information --------------------------- Serverless: Packaging service... Serverless Error --------------------------------------- The serverless deployment bucket "fs-dashboard-dev-serverlessdeploymentbucket-1j077zxpijd1t" does not exist. Create it manually if you want to reuse the CloudFormation stack "fs-dashboard-dev", or delete the stack if it is no longer required. Get Support -------------------------------------------- Your Environment Information --------------------------- Serverless: Packaging service... Serverless Error --------------------------------------- The serverless deployment bucket "fs-dashboard-dev-serverlessdeploymentbucket-1j077zxpijd1t" does not exist. Create it manually if you want to reuse the CloudFormation stack "fs-dashboard-dev", or delete the stack if it is no longer required. Get Support -------------------------------------------- Your Environment Information --------------------------- child process exited with code 1 and signal null |
Same scenario as #3964, reproducible with the most recent version (3.19.0). There's currently no way to A workaround, using only the CLI:
Afterwards,
... and redeploy. This is a very loose process, so YMMV. |
I was receiving this error as well but my bucket did in fact exist. I deleted the contents of the bucket and ran serverless deploy again and had a successful deployment. Hopefully, this helps someone else from having to delete the full cloudformation stack. |
Run sls deploy:
Go to create new bucket:
Run sls remove:
The text was updated successfully, but these errors were encountered: