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.

Unable to build chrome on aws

See original GitHub issue

Hi, i tried building the chrome locally and on ec2 as well, but it failed on both. On ec2 the build didn’t appeared in my s3. I am trying to build an old version of headless chrome to run on latest node10 environment. Below config:

Dockerfile ~FROM lambci/lambda~ -> FROM lambci/lambda:build-nodejs10.x ~FROM amazonlinux:2017.03~ ->FROM amazonlinux:latest

docker build \  -t "headless-chromium:64.0.3264.0" \
  --build-arg VERSION="64.0.3264.0"

ec2 config:

{
  "SpotPrice": "1.3362",
  "InstanceCount": 1,
  "Type": "one-time",
  "LaunchSpecification": {
    "ImageId": "ami-8c1be5f6",
    "InstanceType": "c5.18xlarge",
    "IamInstanceProfile": {
      "Arn": "this gets updated by the ec2-build.sh script"
    },
    "BlockDeviceMappings": [
      {
        "DeviceName": "/dev/xvda",
        "Ebs": {
          "DeleteOnTermination": true,
          "VolumeType": "gp2",
          "VolumeSize": 64,
          "SnapshotId": "snap-080eb3cb2eda29974"
        }
      }
    ],
    "UserData": ""
  }
}

The script had a little missing arg which i added. Logs:

https://abchromebuiid.s3-us-west-2.amazonaws.com/exportedlogs/49b9a273-d4d6-4cda-95b4-f7bb15563e9d/i-0353fd1db84225270-cloudinit-chromium-64.0.3264.0-canary/000000.gz

I can provide more if needed. Please help.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
belmercommented, Dec 3, 2019

I don’t think you can. This module does not support Node 10x or later yet. I believe it’s still on the work In Progress

0reactions
erdahujacommented, Jan 9, 2020

@belmer any updates?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Puppeteer unable to run Chrome on AWS CodeBuild
The build is triggered from standard buildspec.yml executing maven mvn -B package . The angular build/test is done from maven using the eislett/ ......
Read more >
Packaging Google Chrome with Amazon WAM
To create a package for Google Chrome · Open the context (right-click) menu for HKEY_LOCAL_MACHINE\Software and choose Add Key. · In the Add...
Read more >
Installing Google-chrome and Chromedriver on an Amazon ...
Installing Google-chrome and Chromedriver on an Amazon Linux machine · 1. Use this command to install the newest version of the chrome browser:...
Read more >
Installing Chromedriver, Google Chrome & Selenium AWS EC2
How To Install Google Chrome, Selenium & Chromedriver For AWS EC2 Instances ... I've created a python script that you can use to...
Read more >
Unable to Create Driver Instance for chrome in ubuntu
Unable to create driver instance in 1st attempt with retry timeout of 0 seconds ... (9c759b81a907e70363c6312294d30b6ccccc2752),platform=Linux 4.4.0-1052-aws ...
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