SeleniumGridScaler icon indicating copy to clipboard operation
SeleniumGridScaler copied to clipboard

Can't find AMI on aws

Open James-E-Adams opened this issue 7 years ago • 9 comments

Hi! Is the linux ami listed in aws.properties.default as id: ami-d216a3ba available anywhere? If not, is it possible to set this up without it?

James-E-Adams avatar Jun 28 '17 06:06 James-E-Adams

It is in us-east-1 region.

Does anybody know what the username to access this AMI once it comes up is?

discobean avatar Jul 06 '17 01:07 discobean

Oh, hilarious. I've set up our infrastructure sans the autoscaling, but nice to know for futureproofing. Is there a locked user already set up on the AMI?

James-E-Adams avatar Jul 06 '17 01:07 James-E-Adams

I rebuilt the AMI from us-east-1 using packer, and created an ami in ap-southeast-2: ami-70ddcf13.

I used this packer file:

{
    "builders": [
        {
            "ami_name": "grid-node-new-open3-domain",
            "ami_groups": [ "all" ],
            "ssh_username": "ubuntu",
            "instance_type": "t2.medium",
            "region": "us-east-1",
            "source_ami": "ami-d216a3ba",
            "type": "amazon-ebs"
        }
    ]
}

Basically created an AMI in my AWS account in us-east-1, then just copied the AMI to ap-southeast-2.

So you could do the same for whatever region you need.

discobean avatar Jul 06 '17 05:07 discobean

Great. Thanks for posting that.

James-E-Adams avatar Jul 06 '17 05:07 James-E-Adams

@AggressiveSneeze the built in user should be 'ubuntu' FWIW

mhardin avatar Jul 06 '17 16:07 mhardin

@James-E-Adams @discobean @mhardin As we are talking about AMI, have got a question: Currently my grid runs on 2.53 , FFv45 ESR (supported by AWS EC2), Chrome v51 , all fine.

I upgraded to Selenium Webdriver 3.4.0 and i was able to run on FFv52 ESR (supported by AWS EC2) But now that I updated SeleniumGrid Scaler to selenium 3.5.3, I am not able to start FFv52 or Chrome v61 on EC2 nodes. I can see the spots are greyed but then i get ' Chrome failed to start: crashed' and for FF it simply times out. Just curious if any of you have succeeded in running latest FF or Chrome in AWS linux boxes? I am using latest Chrome and Gecko drivers as necessary.

Any input is appreciated!

ambirag avatar Sep 22 '17 09:09 ambirag

@ambirag we're running chrome 61 on our linux boxes. We updated selenium in this project, as well as the selenium jar on the nodes. I want to say we intermittently get the Chrome failed to start: crashed error, but for the most part it runs well for us.

mhardin avatar Oct 02 '17 20:10 mhardin

@mhardin is that Linux - AWS linux or Ubuntu or FEDORA or what flavor is it? because officially chrome discontinued support for CenOS/RHEL so just curious. Also installing chrome on Linux requires gtk3 library, can you point me to any instructions you followed?

ambirag avatar Oct 16 '17 10:10 ambirag

@ambirag its the default ubuntu image thats included in this project.

mhardin avatar Oct 18 '17 15:10 mhardin