Comments (15)
Hello!
This could happen when one of the stack's resources fail to create, so, CloudFormation attempts to rollback the stack creation immediately. The rollback process may fail to delete the DynamoDB table if it was still being created when rollback executes.
I'd suggest the following:
- Find out which resources are failing to create and why from the "Events" section in the CloudFormation console. Address the root cause of failure.
A common cause, for example, is that the commands "pynt package lambda" and then "pynt deploy lambda" were not issued prior to "pynt createstack", and thus, an S3 bucket used by the CloudFormation stack was not found. This leads to stack creation failure. It could also lead to stack rollback failure, if the DynamoDB table was still being created.
-
Check stack status in the CloudFormation console. The stack status may be either "ROLLBACK_COMPLETE" or "ROLLBACK_FAILED" at this point. Manually delete the stack.
-
Re-run "pynt createstack" after the root cause identified in step 1 is addressed.
Hope this helps. I'll keep this issue open in the meantime.
from amazon-rekognition-video-analyzer.
HI,
Thanks for quick response.I have created lambda package and deployed to s3 bucket.But after that only I am using pynt createstack.Here by providing the logs
I have followed all the steps one by one.Only getting error at this create package step.
Looking forward for your support.
from amazon-rekognition-video-analyzer.
I have tried multiple times manual stack deletion and executing the create stack command.But every time I am getting status as ROLLBACK_FAILED.
Hope the logs provided above will help you to understand the issue.
from amazon-rekognition-video-analyzer.
Hello,
To fix this, delete FrameFetcherLambdaExecutionRole (along with ImageProcessorLambdaExecutionRole if it exists, too) using the IAM console. From the event log you shared, CloudFormation attempts to create the role while it already exists. This could happen, for example, if you attempted to create the stack in another region. IAM resources are global and the roles have names (RoleName attribute) in the CFN template.
A temporary solution is to delete those already-created resources manually from your account using the IAM console. You can also manually delete the stack from other regions. Then, recreate the stack.
A better fix would be to omit RoleName in the CFN template from both execution roles (simply commenting out or removing the property). I do have to update and test the CFN template before pushing such a change to this repo. You may want to give it a try in the meantime.
from amazon-rekognition-video-analyzer.
Hello,
I have tried the above mentioned way,But same problem.Can you please recheck the Cloudformation template and push to git so that it will be very useful.Kindly help as soon as possible.
Thanks
from amazon-rekognition-video-analyzer.
Hello,
To help us understand whatβs going on, could you please post screenshots of the CFN event log during attempted deletion, after you manually deleted the resources pointed out above?
Thanks.
from amazon-rekognition-video-analyzer.
I updated the CloudFormation template for more resiliency to resource creation failures. Closing this issue for now. Please feel free to post any additional questions/updates and I'll re-open.
from amazon-rekognition-video-analyzer.
Thanks,Let me check and if problem exist I will get back to you.
from amazon-rekognition-video-analyzer.
I tried the same steps as stardev24 and got the exact same result. Looked through the comments and did everything that was recommended (like checking the roles in IAM). Everything is according to the instructions and still seeing the error when creating.
from amazon-rekognition-video-analyzer.
Hello,
Can you post the details of the error? Screenshots and error message(s) would help.
Thanks
from amazon-rekognition-video-analyzer.
This is the log from cloudformation
from amazon-rekognition-video-analyzer.
Hey,
Thank you for the screenshot. It shows that the first error reported by CloudFormation (i.e. "lh-vid2 already exists") is what causes the stack creation to roll back. The name you specify for FrameS3Bucket
must not be of an existing S3 bucket.
from amazon-rekognition-video-analyzer.
awesome, thank you! I seem to have missed that constraint. Works like a charm now π
from amazon-rekognition-video-analyzer.
You're welcome!
from amazon-rekognition-video-analyzer.
my condition is similar I believe after following the steps.
It is with the lambdaroles. Please help me where to delete/comment to make the build success
from amazon-rekognition-video-analyzer.
Related Issues (20)
- Error with build.py file HOT 2
- pynt create stack: HOT 4
- 'JobStatus': 'FAILED', 'StatusMessage': 'Unsupported codec/format.' HOT 1
- Video takes infinite time to analyze HOT 2
- Having Trouble Creating Stack
- Final step videocapture HOT 4
- Accessing VideoCaptureIP
- amazon-rekognition-video-analyzer does not return data the request HOT 4
- Hey, I have a question...
- Has anyone set it up?
- Video/Image does not appear on webui
- ζηε€ε
- All works (after some modification), except viewing image frames
- Update example to use SigV4 S3 URLs
- create stack fails
- import cv2 not working
- No module named http.server HOT 1
- Video doesn't load to the webui
- Using Container in ImageProcessor Lambda Function
- duplicated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amazon-rekognition-video-analyzer.