The Amazon Linux AMI is a supported and maintained Linux image provided by Amazon Web Services for use on Amazon Elastic Compute Cloud (Amazon EC2).
Questions tagged [amazon-linux]
312 questions
4
votes
4 answers
How do I find the old version of node js?
I'm trying to install "n", the nom helper on Amazon Linux. I'm having difficulty. It seems I have an old version of the node somewhere but I can't figure out where. When I run
npm install -g n
I get the below error ...
[myuser@mymachine ~]$ sudo…

Dave
- 15,639
- 133
- 442
- 830
4
votes
1 answer
How to upgrade docker in latest Amazon linux AMI
I am using Amazon linux AMI in Opsworks and the Amazon linux AMI are the latest one (OS Amazon Linux 2017.03).
The issue is that this AMI comes with docker version 17.03.2-ce, however I need to install version 17.05 or later (because I want to…

Manish Joshi
- 3,550
- 2
- 21
- 29
3
votes
1 answer
Curl error (6) on amazonlinux docker container during `yum install`, but no issues with other image
I am attempting to build a Docker container on my local machine based on the amazonlinux:latest image, but running into a Curl error during the yum install steps in my Dockerfile:
#6 0.378 - Curl error (6): Couldn't resolve host name for…

Derek Schilling
- 41
- 3
3
votes
3 answers
Using NodeJS 18 in AWS Amplify on Amazon Linux 2 fails
Trying to upgrade an existing React app running on AWS Amplify from node v16 to v18
The image used is the provided Amazon Linux 2
Expected it to install node 18 on the machine it spun up and build the application, since this is the LTS version
Here…

Sahar LaOr
- 43
- 1
- 6
3
votes
2 answers
AWS EC2 Amazon Linux 2 AMI Starting PostgreSQL
Have an AWS EC2 instance which is running Amazon Linux AMI 2.
Installed PostgreSQL using
sudo amazon-linux-extras install postgresql13
Now, how to start it and configure it?
I can see
Package postgresql-13.3-2.amzn2.0.1.aarch64 already…

CR Sardar
- 921
- 2
- 17
- 32
3
votes
1 answer
PM2 I/O Unexpected error : Missing mandatory field refresh_token to make a POST request on /api/oauth/token
When i try to monitor my server with pm2.io, I am getting the error [PM2 I/O] Unexpected error : Missing mandatory field refresh_token to make a POST request on /api/oauth/token

MUHAMMAD SHAHID RAFI C P
- 1,067
- 1
- 12
- 25
3
votes
4 answers
Cannot use amazon-linux-extras in AWS CodeBuild image
My CDK stack defines a CodePipeline with the following CodeBuild project:
project_build = codebuild.Project(self, "ProjectBuild",
project_name = "Build",
source = github_source,
environment = codebuild.BuildEnvironment(
…

zessx
- 68,042
- 28
- 135
- 158
3
votes
1 answer
postgresql-setup command and postgres service not found on AWS Linux
I have been configuring an EC2 instance with postgreSQL according to the steps outlined in this tutorial. I am using AWS Linux 2018-03 and have installed postgres92 via the following:
$ sudo yum install postgresql postgresql-server postgresql-devel…

mayosten
- 634
- 5
- 17
3
votes
0 answers
How to install net core in amazon linux ec2 instance?
I am trying to install net core in amazon linux and when I run:
#sudo yum install dotnet-sdk-3.0
I get the following error:
Error: Package: dotnet-runtime-deps-3.0-3.0.0-1.x86_64 (packages-microsoft-com-prod)
Requires: openssl-libs
Help…
3
votes
1 answer
How to upgrade ruby version to 2.6.3 in amazon linux
I booted up a amazon linux machine in which the default ruby version was ruby 2.0.0p648 (2015-12-16 revision 53162) [x86_64-linux]. I want to update it to 2.6.3.
I found this article How to upgrade ruby version in Amazon Linux system?. But when I…

Kaushik Vijayakumar
- 755
- 3
- 10
- 19
3
votes
0 answers
Run selenium tests (chrome) in AWS Lambda - NET Core
Trying to run selenium tests in AWS Lambda. Read below links and felt confident to implement similar tests with NET Core…

Suresh Raja
- 411
- 6
- 23
3
votes
1 answer
How to fix "usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed" error in Linux?
I'm trying to setup a jenkins server to host my automation framework with Selenium-webdriver(3.142.0) and ruby(2.3.7) on Amazon Linux. If I try to invoke a chromedriver using my script, it says,
"Selenium::WebDriver::Error::UnknownError: unknown…

Esaki Raja
- 89
- 1
- 1
- 7
3
votes
1 answer
AWS Lambda (python2.7): Adding matplotlib as a layer
I am having trouble trying to add matplotlib as a layer to my Python 2.7 AWS Lambda function.
On the Lambda execution environment, I am trying to install the necessary libraries and create a layer as described here.
Things I've tried:
First, I pip…

onurmatik
- 5,105
- 7
- 42
- 67
3
votes
1 answer
Awslogs awslogsd - unable to open database file
I am using Awslogs on Amazon Linux 2, but my awslogs agent does not seem to start successfully. I am using this documentation
When I look at the service journal systemctl -l status awslogsd
● awslogsd.service - awslogs daemon
Loaded: loaded…

Cyril Duchon-Doris
- 12,964
- 9
- 77
- 164
3
votes
2 answers
wkhtmltopdf amazon linux won't encode emoji
I'm trying to generate a PDF via wkhtmltopdf in an Amazon Linux os, everything works fine, but when i try to use emoji on the HTML, the fonts break and the emoji is displayed as a black box.
Before deploying, i tried locally and it works, locally i…

Gumma Mocciaro
- 1,205
- 10
- 24