Skip to content
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

unable to launch cloud formation #1

Open
ghost opened this issue Dec 8, 2017 · 14 comments
Open

unable to launch cloud formation #1

ghost opened this issue Dec 8, 2017 · 14 comments

Comments

@ghost
Copy link

ghost commented Dec 8, 2017

Hello,
I am getting below error while trying to launch the cloud formation template. can you please help me on that.

Error
Template validation error: S3 error: Access Denied For more information check http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html

Thanks,
sneha

@dpwrussell
Copy link
Member

  1. How are you trying to launch the template?
  2. What region are you using?
  3. What parameters did you provide?

@ghost
Copy link
Author

ghost commented Dec 8, 2017

Hello Dpwrussell
Thanks for the reply. I tried to launch from your link directly but I'm unable to do it. After that i created New VPC, subnets, key-pair and I launched EC2 instance on the same VPC, downloaded your code and tried changing the launch_stack.sh file and replaced with my VPC ID and Subnet ID's. When I try to execute the launch_stack.sh It is giving following errors
/home/ubuntu/omero.cloudarchive-cloudformation-master# ./launch_stack.sh
Invalid endpoint: https://cloudformation.us east 1.amazonaws.com

Can you please help me on that
Thanks
sneha

@dpwrussell
Copy link
Member

launch_stack.sh is really just for testing, but it should work if you customize it to your environment. When you did that, did you change the S3 bucket being used?

What was the problem with launching from the cloudformation link as that would be how I recommend you do that?

@ghost
Copy link
Author

ghost commented Dec 8, 2017

Hello Dpwrussell

Initially we tried to use that cloudformation links it is giving us "Template validation error: S3 error: Access Denied For more information check " so we moved to launch_stack.sh way

I didn't understand what I need to give value for "ParameterKey=S3Bucket,ParameterValue"
so I keep this as comment and tried then we getting below error when running launch_stack.sh
"An error occurred (InvalidClientTokenId) when calling the ValidateTemplate operation: The security token included in the request is invalid"

@dpwrussell
Copy link
Member

dpwrussell commented Dec 8, 2017

So the S3 bucket you only have to specify if you want to build a new deployment based on a previously dehydrated deployment. So if you want a blank instance, then not setting that configuration is the correct thing to do.

It sounds like your problems might be related to permissions on AWS in general. Do you have credentials configured on the machine on which you are trying to launch the cloudformation template from? Do those credentials have permission to launch cloudformation templates, create S3 buckets, configure networking, etc? It's best to start with a user that has admin permission.

Are you able to use the AWS CLI to perform other tasks? E.g.

$ aws s3 ls

and

$ aws s3api create-bucket --bucket <bucket_name>

If that works, then perhaps trying deploying another cloudformation template, e.g. https://s3-us-west-2.amazonaws.com/cloudformation-templates-us-west-2/S3_Website_Bucket_With_Retain_On_Delete.template

If all that works, then it probably is a cloudarchive specific problem and we can debug from there.

@dpwrussell
Copy link
Member

Did you resolve this?

@ghost
Copy link
Author

ghost commented Dec 19, 2017

Hello Russell
Thanks for your help omero server is up and running but there are some errors generated from container . omero-ms-pixel-buffer/ms-pixel-buffer/1fdc87cd-1125-47ad-875a-680e488c692f**

io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334)ke
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926)

can you please look into above error
we have error in 2 more containers having diffrent error which I'm try to resolve

@dpwrussell
Copy link
Member

Is there more stacktrace? What are you doing when you see this error?

@ghost
Copy link
Author

ghost commented Dec 19, 2017

Hello Russell
I trying to login to container to find what are causing these error but I didn't find clue about it.
I'm attaching remaining error

1.omero-ms-image-region
omero-ms-image-region

2.omero-ms-pixel-buffer
omero-ms-pixel-buffer

3.omer-ms-thumbnail
omer-ms-thumbnail

@dpwrussell
Copy link
Member

dpwrussell commented Dec 19, 2017 via email

@ghost
Copy link
Author

ghost commented Dec 19, 2017

Hello Russell,
Actually the omero.server and omero.web client are working fine. If I check the stack in CloudFormation, I have seen that instances for the omero-ms-pixel-buffer, omero-ms-thumbnail, omero-ms-image-region, and the redis services are still in "CREATE_IN_PROGRESS" status. If I check the logs for those services in CloudWatch, I can see the actual errors stopping those services from working(The above screenshots are those errors).

@dpwrussell
Copy link
Member

dpwrussell commented Dec 19, 2017

Are you sure that everything is working properly as web should not work properly without redis and the microservices. Does the ECS console say that they are running?

Other than the services saying they are still creating and the logs, is anything actually not working? Can you import and then visualize data with the web client for example?

Can you put the actual logs somewhere, annoyingly there is no way to get them from the console, but like this: https://forums.aws.amazon.com/message.jspa?messageID=676376

@akmukherjee
Copy link

Hi @dpwrussell , I believe your S3 object(s) in that bucket do not have public access and thus am unable to access them. Can you please make them available so I can try out your deployment.

@dpwrussell
Copy link
Member

@akmukherjee I don't think that is the problem as the template object is definitely public. I just tested it.

Caveat emptor: I am no longer developing on this as I am now working on a system which works more natively in the cloud: https://github.com/sorgerlab/minerva-infrastructure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants