Questions tagged [amazon-linux-2]
251 questions
2
votes
1 answer
AWS EC2 Amazon Linux 2 AMI PostgreSQL Installation
Have an AWS EC2 instance which is running Amazon Linux AMI 2.
Like to install PostgreSQL Server 13 on it.
Following the instructions as mentioned here - https://www.postgresql.org/download/linux/redhat/
But, when executing -
sudo yum install -y…

CR Sardar
- 921
- 2
- 17
- 32
2
votes
1 answer
Problem Mounting EFS through .ebextensions on EB using Linux 2
We have a .war, containing an .ebextensions folder with the storage-efs-mountfilesystem.config, which mounts the efs to the EC2 Instance. On Linux 1 it works like a charm. Now we use the same war on Linux 2 and cannot deploy it, as we get an error…

HarmonicLux
- 23
- 4
2
votes
0 answers
Dockerfile conditional COPY of certs folder if exists
Running nodejs express app with letsencrypt certs for HTTPS.
CAN'T find a way to conditionally copy the generated certs folder it exists (exists on remote EC2 - not localy)
Docker version 20.10.7, build f0df350
Tried this 2 solution and can't make…

Eyal Solomon
- 470
- 1
- 6
- 15
2
votes
2 answers
AJAX requests failing for ASP.NET Core app in Amazon Linux 2 vs Amazon Linux 1
I have an ASP.NET Core v.3.0 web application hosted in Amazon AWS Elastic Beanstalk using Docker. The application works fine in Docker running 64bit Amazon Linux (v2.16.11). When I update to Docker running 64bit Amazon Linux 2 (v3.4.12) the requests…

Christos K.
- 144
- 1
- 4
- 11
2
votes
1 answer
Not able to install mysql-community-server on Amazon linux 2
When ever I am trying the command
sudo yum install mysql-community-server
I am getting the following error
The GPG keys listed for the "MySQL 8.0 Community Server" repository are already installed but they are not correct for this package. The…

nayan dhabarde
- 1,734
- 1
- 19
- 38
2
votes
0 answers
Why does AWS Beanstalk AL2 Procfile for Passenger use puma socket?
I am migrating my ruby on rails application from AWS Beanstalk Amazon Linux 1 to their new Ruby Amazon Linux 2 (AL2).
My application server is Passenger. In their instruction, the guide says to do these 2 things:
In Gemfile
gem 'passenger'
In…

oky_sabeni
- 7,672
- 15
- 65
- 89
2
votes
0 answers
Nginx " Cannot GET /api " Reverse Proxy
My problem:
I need to do a reverse proxy with Nginx in AWS Linux 2 (Free), and the nginx doesn´t stop throwing me Cannot GET /api ...
Code:
server {
location /api {
proxy_pass http://localhost:3000;
}
}
And nothing…

nepko
- 21
- 4
2
votes
1 answer
Configuring Elastic Beanstalk for SSH access to private git repo using Amazon Linux 2 hooks
Suppose we have a custom Python package, called shared_package, in a private repository, hosted on github or bitbucket. Our private repository is configured for read-only access via SSH, as described e.g. here for github and here for…

djvg
- 11,722
- 5
- 72
- 103
2
votes
2 answers
How to install Node Packages for an Elastic Beanstalk Python 3.7 Project Running on 64bit Amazon Linux 2?
I am using a Django package named django-pipeline to compress js and css files.
When I deploy my project, I run Django's collectstatic command, from .ebextensions folder:
01_django.config:
container_commands:
...
07_collectstatic:
…

Jarad
- 17,409
- 19
- 95
- 154
2
votes
1 answer
Elastic beanstalk - Rolling deployment issue. Unexpected downtime
We just migrated our Elastic beanstalk environments from PHP 7.3 running on 64bit Amazon Linux to PHP 7.4 running on 64bit Amazon Linux 2 and we are seeing the following errors:
When deploying code to the environment with a Rolling deployment…

N.B
- 139
- 1
- 5
2
votes
0 answers
Upgrade an elasticbeanstalk platform from 3.6 to 3.7 Linux 2
I have an existing AWS elastic beanstalk flask application that deploys from circleci. The application is a python app, and has been running fine under AWS EB platform, "64bit Amazon Linux 2018.03 v2.9.10 running Python 3.6". This platform is…

Beel
- 1,000
- 12
- 23
2
votes
0 answers
Elastic Beanstalk Amazon linux 2 with docker | nginx custom configuration
I am configuring aws elasticbeanstalk Amazon linux 2 with docker-compose.
I want to configure nginx like this.
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
server_name _;
location /…

Hoonki
- 125
- 6
2
votes
1 answer
How to solve the error "Executable path is not absolute, ignoring:"
I'm currently developing an application in Amazon Linux2 using Django, Nginx, Gunicorn, and Postgresql.
I have created and configured a system file for Gunicorn to work when the OS boots, But after starting gunicorn I get the following error...
Jun…

Tio
- 944
- 3
- 15
- 35
2
votes
0 answers
Run headful chromium with nvidia GPU and Xvfb on EC2 instance with PRIME
I am trying to do hardware accelerated WegGL rendering through puppeteer on an Elastic Beanstalk instance (EC2 running Amazon Linux 2).
My instance is a g4dn.xlarge with Nvidia RTX drivers provided by this AMI.
I'm managing to run chromium with…

Alex de Boutray
- 113
- 1
- 7
2
votes
0 answers
Outputting JSON logs on Elastic Beanstalk with Amazon Linux 2
Recently we upgraded our EB environments from Amazon Linux to Amazon Linux 2. After the upgrade, we see the log format has changed. All logs now have something prefix like this Apr 30 20:36:39 ip-172-31-2-140 web: . So when we write a JSON log, the…

Hao Nguyen
- 76
- 3