Questions tagged [amazon-linux-2]

251 questions
4
votes
2 answers

New Elastic Beanstalk instance not using .htaccess

I'm having a weird issue I've not encountered before: My new Elastic Beanstalk environment is not respecting my .htaccess files. It's odd because I don't recall this ever being a problem before. In fact I have an older EB environment that I set up…
3
votes
0 answers

Install sdkman on Amazon Linux 2: version `GLIBC_2.28' not found

I'm trying to install sdkman on an Amazon Linux 2 AMI (I have no choice, we must use some blessed/patched AMIs). I follow the steps: sudo curl -s "https://get.sdkman.io" | bash source "$HOME/.sdkman/bin/sdkman-init.sh" No errors so far. But then I…
Pierre
  • 2,335
  • 22
  • 40
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…
3
votes
1 answer

Error when running yum on Amazon Linux 2 - "SSL certificate problem: unable to get local issuer certificate"

I have a Docker container based on the latest amazonlinux image running on my work computer and I get this error when I attempt to run yum "anything" (e.g. yum update, yum install ____): failure: repodata/repomd.xml from amzn2-core: [Errno 256] No…
jspinella
  • 2,013
  • 3
  • 25
  • 39
3
votes
1 answer

Possible to add imagick webp support for PHP in AWS Linux 2?

I'm running PHP 7.4 on an AWS Linux 2 instance. PHP 7.4 comes with imagick module 3.4.4 compiled by ImageMagick 6.9.10-6, but it doesn't have support for WEBP enabled. I've installed the libwebp-devel library, but I can't figure out how to recompile…
HWD
  • 1,547
  • 7
  • 36
  • 72
3
votes
1 answer

Connection issues through AWS Nat Gateway

I have an Amazon Linux 2 application server with the Spring Boot application aboard in the private subnet. There is a Nat gateway in front of that application server in the public subnet. Application sends a request with Connection: keep-alive…
3
votes
2 answers

Run Packages Installation Commands on Amazon Linux 2 using EB Extensions

I'm running ASP.NET Core 3.1 Application on Elastic Beanstalk with Amazon Linux 2 EC2 instances. I need my app to be able to generate QR codes and for this I'm using QRCoder library. It worked on my Windows machine out of the box, but to make it…
twinmind
  • 1,440
  • 13
  • 21
3
votes
1 answer

Nginx on ec2 instance does not serve static files

What was working I have MERN stack dashboard up and running on AWS EC2 instance. Ec2 instance is at ec2...aws.com React app is served on port 5004. Node app is running on port 5003. What was changed The problem started when I set up the domain…
3
votes
1 answer

How do I redirect certain traffic through the openVPN tunnel "Split tunnel"?

I have an openvpn server residing in amazon cloud on subnet 172.168.1.0/24. I have another X-ec2 instance on another subnet 172.168.2.0/24. I am able to not route internet traffic through the VPN by removing push "redirect-gateway def1" on the…
Zain Jhan
  • 56
  • 1
  • 4
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…
2
votes
1 answer

New Relic Silent installation on Amazon Linux 2 ARM 64 bit

I am trying to install New Relic PHP agent on Amazon Linux 2 (ARM 64) in silent mode but unfortunately it is getting into interactive mode. I have set the environment variables as mentioned in the doc. Here are the steps I followed, am I missing…
user182944
  • 7,897
  • 33
  • 108
  • 174
2
votes
0 answers

AmazonLinux2 Welcome Page shows over Nginx Installation

So, I'm setting up a backend api on Amazon Linux 2 and I have installed Nginx, set up a service systemd file that uses Gunicorn to run the django instance and create a sock file at /home/ec2-user/backend/testsite.sock. That file is getting created…
2
votes
1 answer

Failed Puppeteer/Chromium installation with Node.js, ARM64 + AWS EC2, Linux 2

I'm trying to install puppeteer on an AWS EC2 ARM64 instance with Amazon Linux 2 managed by Beanstalk, with Node.js v14. It's a c7g.2xlarge instance type. Installation Errors The chromium binary is not available for arm64. If you are on Ubuntu, you…
Jay
  • 1,564
  • 16
  • 24
2
votes
1 answer

Deployment of Amazon Linux 2 on Lightsail Container is getting cancelled

I wanted to deploy the "Amazon Linux 2"-image (public.ecr.aws/amazonlinux/amazonlinux:2022) on a Lightsail Container. It takes a while and then the deployment is getting cancelled. This is the log output: `[19/Aug/2022:12:07:25] [deployment:1]…
2
votes
1 answer

How can you install additional packages within your EKS launch template bootstrap script?

I have this bootstrap script for my EKS node-group launch template and I added in some commands to try to install Apache. I tried a few variations and none would install the service. I'm able to do it manually if I ssh into my nodes, but haven't…
user19457124
1 2
3
16 17