Questions tagged [amazon-linux-2]
251 questions
0
votes
1 answer
No nginx folders after installing on Amazon Linux 2 EC2 instance
I'm trying to install Nginx on an EC2 instance running Amazon Linux 2. After running the commands as listed here on: https://stackoverflow.com/a/61256478/11309912.
Checking the version shows that is installed.
nginx -v
nginx version:…

SB18
- 33
- 3
0
votes
0 answers
Daily Backup with Retention Period for SQL Server on Amazon Linux
I would like to take a baily backup with 7 days retention period for SQL Server DB which installed on Amazon Linux EC2 instance.
I tried the below two scenarios with no luck:
-RetentionDays
The below script:
EXEC sp_configure 'show advanced…
0
votes
0 answers
How to elevate run time java in Amazon-EC2 instance?
I have been trying to run docker image of my code in an Amazon EC2 instance but what I got was an error with a message "Unsupported major.minor version 52.0". Therefore, I installed Amazon Corretto 17 in the instance and ran the image again but to…

Salahuddin Shayan
- 97
- 1
- 1
- 8
0
votes
1 answer
Projection problem from gdal2tiles.py to R Leaflet
I do have a projection problem when making tiles with GDAL command and using the same for Leaflet in R. The steps I am following are:
I save the Tiff in QGIs with the following configuration:
In Centos Amazon Linux 2 and GDAL I Run the following…

RRuiz
- 2,159
- 21
- 32
0
votes
1 answer
Can we upgrade Amazon linux to amazon linux 2
I have my existing servers on Amazon Linux, now we are planning to upgrade it to amazon linux2. How do we do that?
Do we have a set of steps to upgrade or do we need to launch a new Ec2 instance using Amazon Linux2 Image and re-install our apps on…

Ricky Vijay
- 101
- 1
- 8
0
votes
1 answer
ECS container agent introspection iptables config
We have a container that needs to contact the ECS container agent introspection endpoint at runtime.
The ecs task is using bridge networking mode.
The default iptables on our Amazon Linux 2 contain the following INPUT chain:
Chain INPUT (policy…

Leslie Alldridge
- 1,427
- 1
- 10
- 26
0
votes
1 answer
Testing connection out from within running container. Kubernetes. Amazon Linux 2
I am trying to test an outbound connection from within a Amazon Linux 2 container that is running in Kubernetes. I have a service set up and I am able to telnet to that service through a VPN. But I want to test a connection coming out from that…

Gene Smith
- 169
- 12
0
votes
1 answer
Unable to run jar file with --enable-preview flag when using corretto 17
I am trying to run my application in an ec2 instance using the command
nohup java --enable-preview my-application.jar
But somehow the --enable-preview flag is ignored and i still get an error on startup telling me that i should try running it with…

Maurice
- 6,698
- 9
- 47
- 104
0
votes
1 answer
nginx is not proxy passing to my nest app
I am trying to configure NGINX to serve my nest app(which is running on docker).
My app is listening on port 3000
The server is amazon linux 2(ec2-user)
The conf file looks like this:
user nginx;
worker_processes auto;
error_log…

david davidson
- 9
- 7
0
votes
1 answer
AWS EC2 Instance (amazon Linux) refused connecting Custom TCP ports
I have created an EC2 (Amazon Linux) on Aws. I have a flask server which is running on port 8080. And have opened the same port in security group.
But the EC2 refused to connect on the 8080 port (xxx.xx.xxx.xx:8080), while the port 80 is accessible,…

Rahul Gupta
- 166
- 3
- 7
0
votes
1 answer
convert-multiple-files npm package not working on elastic beanstalk amazon Linux 2
After a successful deployment, when I run the my file conversion script as mentioned in the docs the conversion fails. my conversion script.
the script runs perfectly in local windows 10 machine and ubuntu 20.04 lts
const { convertWordFiles } =…

Md.Reyad Hossain
- 148
- 7
0
votes
1 answer
AWS CDK CloudFormationInit timeout when installing yum package
I am trying to deploy the CDK stack below:
class MyCdkStack(Stack):
def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
super().__init__(scope, construct_id, **kwargs)
vpc = ec2.Vpc.from_lookup(self,…

Alex Simpson
- 69
- 7
0
votes
1 answer
Elastic Beanstalk not executing hooks: "skipping hooks scripts under /opt/elasticbeanstalk/hooks/"
I'm trying to get Elastic Beanstalk (Amazon Linux 2, Node.js 16) to run some pre-deploy hooks. I'm using .ebextensions to create a hook in /opt/elasticbeanstalk/hooks/.
In .ebextensions, I have a file, 04_use_yarn.config:
files:
…

Alex von Brandenfels
- 1,608
- 15
- 25
0
votes
0 answers
Install chrome driver on Amazon Linux 2 ARM
I am looking to install Chrome Driver (For my selenium project) on an Amazon Linux 2 (Arm 64).
I have done this on Ubuntu and seems pretty straight, it also seems straight on AL2 x86, like this script from Intoli but it 404 when looking for Chrome…

damuz91
- 1,461
- 2
- 21
- 37
0
votes
1 answer
Site NGINX not working error show 504 Gateway Time-out
I have purchased AWS linux 2 server to host My Web application
I have published My Web node js application and want to run on default IP
I have configured the below things in /etc/nginx/sites-available/migrate.test.com
# the IP(s) on which your node…

sri
- 11
- 4