244 questions
0
votes
0
answers
96
views
/lib64/libpthread.so.0: version `GLIBC_PRIVATE' not found (required by xxx)
After running an application that had been running without any problems on Amazon-Linux-2/RHEL 7.9 for the first time in Amazon-Linux-2023/RHEL 9 environment, I got the following error and application ...
0
votes
1
answer
219
views
Nginx Not Loading Custom Configuration After Migrating WordPress from Amazon Linux 2 (AL2) to Amazon Linux 2023 (AL2023)
I’ve been running a WordPress site on AWS EC2 instances with Amazon Linux 2 (AL2). Since AL2 will reach End-of-Life in June 2025, I’m migrating the site to Amazon Linux 2023 (AL2023). The deployment ...
0
votes
1
answer
117
views
How to use bazel to download amzn2-core packages
I need to get tar and gzip for an amazon linux 2 based container that will run in an environment without internet access. Using bazel, I create a container from the latest aws-cli image, and I don't ...
1
vote
1
answer
1k
views
cloud-init fails on Amazon Linux 2023 but works on AmazonLinux2 [closed]
Here's my very simple test script that I want to run on ec2 launch via cloud-init using terraform.
data "cloudinit_config" "cloudinit" {
gzip = false
base64_encode = ...
0
votes
0
answers
94
views
Get error on accessing amazon extras installation on EC2 instance
Error on installing amazon-linux-extras on Amazon-linux 2 AMI
Command that i execute after connecting EC2 on terminal
sudo yum update -y
sudo yum install java-1.8.0-openjdk-devel
sudo wget -O /etc/...
3
votes
4
answers
1k
views
Has anyone encountered skylight in amazon workspaces using extremely high cpu and memory? [closed]
Over the past few days my Amazon Workspace keeps freezing up (Session Interrupted). I am not positive but the culprit seems to be skylight which is consuming over 28.5GB of reserved memory and 148.3GB ...
1
vote
0
answers
862
views
Docker build doesn't pick TARGETARCH arg value when running on Amazon Linux 2
I’m running docker build on an Amazon Linux 2 EC2 instance, and using TARGETARCH arg to identify the target architecture:
FROM python:3.12.1-slim-bookworm AS build
ARG TARGETARCH
RUN echo "arch ...
1
vote
1
answer
2k
views
SSM Patch manager Patch policy issue
The requirement is to do the patching of existing EC2 instances. So we decided to work with AWS Patch Manager under the Systems Manager.
Issue: We have added AmazonSSMManagedInstanceCore Policy Role ...
0
votes
0
answers
139
views
redis-cli works perfectly when bash script is executed manually but gives a "command not found" error when run from crontab
I have an Amazon Linux 2 powered EC2 instance that runs user data script and installs redis-cli as part of it. This redis instance runs inside Elasticache and therefore requires TLS support
I am ...
0
votes
1
answer
812
views
How do I uninstall NPM v10.0.0 from Amazon Linux 2 4.14.322-244.536.amzn2.x86_64?
I recently tried to upgrade my node version from v16.20.2 to v18.7.1 by compiling from the source code. I have since given up on that idea and I'm just going to use packages compatible with Node v16....
0
votes
1
answer
84
views
Web.stdout logs stopping randomly on Amazon linux
My EC2 insurance is started by beanstalk and my logging just stops randomly after successfully loghing for a few minutes. But I know my app is still running due to database entries.
I restarted ...
0
votes
1
answer
110
views
jenkins.plugins.publish_over.BapPublisherException: Failed to connect and initialize SSH connection. target instance OS amazon linux 2023
When I am trying to SSH from jenkins to EC2 instance its giving the below error:
jenkins.plugins.publish_over.BapPublisherException: Failed to connect and initialize SSH connection. Message: [Failed ...
1
vote
0
answers
441
views
Build C++ Applications in a Amazon Linux 2 Docker Container with Visual Studio
I followed the next URL and successfully built a simple C++ app on Ubuntu Docker container with Visual studio 2022.
Build C++ Applications in a Linux Docker Container with Visual Studio
Next, I tried ...
2
votes
1
answer
296
views
New Relic Silent installation on Amazon Linux 2 ARM 64 bit [closed]
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....
0
votes
1
answer
1k
views
Call to undefined function simplexml_load_string() in Laravel 8 Controller
I have a web application written in laravel 8 and hosted on an EC2 instance running Amazon Linux 2. The application pulls in an atom feed. Previously, it worked fine. However, after some composer ...
6
votes
1
answer
1k
views
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 "$...
0
votes
1
answer
795
views
Increase timeout value in AWS ElasticBeanstalk with Application Load Balancer for Amazon Linux 2
I am trying to increase the value of Timeout in AWS Elasticbeanstalk with Load Balancer, behind nginx.
What I did so far is to create a
.ebextensions
folder, and inside a file with these 2 ...
0
votes
1
answer
1k
views
How to automatically generate HTTPS/SSL certificates in AWS Beanstalk without a load balancer?
I am using Elastic Beanstalk on AWS to host a single-tenant application with Amazon Linux 2 + Nginx server.
Is there any way to automatically generate a HTTPS certificate without recurring to a Load ...
0
votes
0
answers
2k
views
curl#60 - "SSL certificate problem: unable to get local issuer certificate" with amzn2-core
I have a dockerfile that has the following snippet
FROM amazonlinux:2
USER root
WORKDIR /opt
# Install tools to allow for the creation of users
RUN yum -y update
RUN yum -y install python3 \
...
0
votes
1
answer
413
views
SSL_ERROR_SSL cannot send email using C# SmtpClient from Amazon Linux EC2 instance after upgrading from dotnet 3.1 to 6.0
I am trying to send email using C# dotnet 6.0 from Amazon Linux server. The code looks something like this:
public class EmailSender
{
private readonly SmtpOption _smtpOption;
public ...
2
votes
0
answers
360
views
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/...
0
votes
1
answer
4k
views
docker build - groupadd: command not found
Hi have recently started writing Dockerfile From amazonlinux:latest , i can't seem to figure out why groupadd commnd wont work. I have 2 versions , it works in the first one and it doesnt in the 2nd ...
1
vote
1
answer
412
views
Getting Error: unrecognized option -march=nocona while installing aerospike 3.10.0 version for python on amazon linux 2 system
I am currently using aerospike version < 4.9, which requires a python aerospike client < 5.0.0
While doing pip install aerospike==3.10.0, I am getting this error
Assembler messages:
Error: ...
0
votes
0
answers
438
views
How to run headless chromium browser in AWS lambda using selenium and java without docker?
unable to run chromium on traditional aws lambda. also i dont want to use docker.
For instance, I have uploaded the compiled binaries of the chrome driver and headless chromium into a lambda layer and ...
0
votes
1
answer
214
views
AWS Codebuild Installing Upgraded Version of Package but Old Version Still Detected/Used
I have a Django App deployed via AWS' elastic beanstalk, that uses the CodePipeline service to build. As part of that pipeline, the CodeBuild service is used to build the app that gets deployed to the ...