245 questions
0
votes
1
answer
76
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
0
answers
46
views
Mongo is going in frozen state: kernel: INFO: task mongod:88453 blocked for more than 122 seconds
I'm encountering an issue where MongoDB goes into a frozen state on my server. After logging into MongoDB, no commands can be executed, and the secondary node does not automatically promote to primary....
2
votes
1
answer
142
views
Elastic Beanstalk original environment not working after clone , epel failed
Hello everyone I have a problem, I have an elastic beanstalk that hosts our website as an API. It's been fine and good however I have been developing the next stage of the site. I uploaded the new ...
0
votes
1
answer
58
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 ...
0
votes
0
answers
94
views
setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory on Amazon Linux 2
, #_
~\_ ####_ Amazon Linux 2
~~ \_#####\
~~ \###| AL2 End of Life is 2025-06-30.
~~ \#/ ___
~~ V~' '->
~~~ / A newer version of Amazon ...
0
votes
1
answer
469
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
1
answer
185
views
Unable to Migrate AWS Sagemaker Notebook instance of Amazon Linux 1(AL1) type to Amazon Linux 2 (AL2)
I have AWS sagemaker notebook instances of Amazon Linux 1 type (notebook-al1-v1) and its in Stopped state. As AWS is not supporting AL1type notebook anymore, i want to migrate it to AL2 type. I ...
0
votes
0
answers
51
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/...
0
votes
0
answers
45
views
java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver in Amazon Linux Machine
I am working on Amazon Linux machine. I have installed all the required libraries still getting odbc error. I have tried multiple jars files still no success. need help for this issue.
Python version ...
0
votes
0
answers
261
views
How to run FFMPEG with --enable-libfontconfig on Amazon Linux 2
Problem
I want to run FFmpeg on AWS Lambda (Amazon Linux 2) with the configuration --enable-libfontconfig enable.
Situation
I already have FFmpeg running on AWS Lambda without the configuration --...
0
votes
0
answers
24
views
bash Command not executing on Ec2 from Lambda
I'm trying to run certain bash on a Ec2 instance that I create in a Lambda function.
code
const instanceParams = {
ImageId: "ami-0c101f26f147fa7fd",
InstanceType: "t2.micro&...
3
votes
4
answers
817
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 ...
0
votes
1
answer
95
views
running aws cli on amazon linux returns No module named 'cryptography'
running aws on an aws linux ec2 returns No module named 'cryptography'
updating or installing older version with pip does not help
0
votes
0
answers
360
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 ...
0
votes
1
answer
257
views
Random "Unable to locate credentials" in the child processes on AWS EC2
Bounty clarification
I already found band-aid solution, see my answer.
However, I still do not understand
At what point script below is throttled - when it calls IMDS? or when IMDS calls STS?
Why ...
1
vote
1
answer
1k
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 ...
3
votes
3
answers
3k
views
How to install Wkhtmltopdf in Amazon Linux 2023?
I am upgrading my servers to Amazon Linux 2023 from AL2. My application needs wkhtmltopdf and now while trying to install it I see that is not officially released on my specific OS version. I have ...
0
votes
0
answers
116
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 ...
2
votes
1
answer
1k
views
How to install Cypress prerequisites and Chrome on Amazon Linux 2 v5 (or AL2023)?
It appears that Amazon Linux 2 v5.0 image (Amazon Linux 2 x86_64 standard:5.0 runtime available to CodeBuild) no longer contains Amazon Linux Extras, which makes a lot of documentation and answers ...
0
votes
1
answer
693
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....
1
vote
0
answers
61
views
Error: Schema validation failed with the following errors: Data path "" must have required property 'outputPath'
ng build --aot --build-optimizer
Skipping invalid target value; expected an object.
Project extension with invalid name (serve) found.
Project extension with invalid name (extract-i18n) found.
...
0
votes
1
answer
65
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
0
answers
272
views
Facing SSL issue with Qpid Python Proton library when using Amazon Linux 2 / Lambda using Python 3.10
We are building an AWS ActiveMQ project using Lambda (runs on Amazon Linux 2), which uses Qpid proton library from Apache. The issue ultimately seems to be that the Qpid library is unable to locate ...
0
votes
1
answer
100
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 ...
0
votes
0
answers
332
views
Compiling GD 2.3.3 for existing PHP 7.2.34
The Amazon Linux 2 AMI server has php with version 7.2.34. It contains the GD 2.1 bundled
GD Support => enabled
GD Version => bundled (2.1.0 compatible)
Now I would like to upgrade the GD to ...
1
vote
0
answers
396
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 ...
3
votes
2
answers
4k
views
How to install python3.11 and update Pylint on Amazon Cloud9 IDE?
How to install python3.11 on Amazon Cloud9 IDE? and make the IDE's Pylint module recognize Python's new feature/keywords, such as "match"?
Is there any simpler solutions?
I have found a ...
2
votes
1
answer
249
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
0
answers
55
views
Amazon Linux 2 Crontab not working Properly
I am trying to Execute a script though crontab : At every minute on every day-of-month from 1 through 5 and every day-of-month from 16 through 23 and on every day-of-week from Monday through Friday.
...
0
votes
1
answer
841
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 ...
0
votes
1
answer
553
views
ERROR: Cannot connect to the Docker daemon at [MASKED]. Is the docker daemon running?
I've been battling with this problem for hours and can't seem to find a solution. I have a self hosted gitlab-runner that's an Amazon Linux 2 EC2 instance. I installed git, docker and gitlab-runner (...
3
votes
0
answers
879
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 "$...
-1
votes
1
answer
720
views
How to install these specific packages to `amazonlinux2`
Well, basically I was using a ubuntu distribution of docker image and had to run the following command to install the exact packages as below into it:
DEBIAN_FRONTEND=noninteractive ...
0
votes
1
answer
646
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 ...
1
vote
1
answer
638
views
How to create AWS Lambda layer for Shapely 2.0 (Python3.9)?
I've been trying to create a layer for Lambda that would allow me to use shapely for runtime python 3.9. For some reason lambda just keeps returning the error:
lambda_function': No module named '...
0
votes
1
answer
970
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 ...
1
vote
2
answers
184
views
How can I include single quotes surrounding a value coming from an environment variable into a PostgreSQL statement [duplicate]
This line of command I picked from one of my bash scripts I am trying to use to automate some initial setup of a PostgreSQL database in an Amazon Linux machine.
I have the environment variable named ...
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 \
...
1
vote
3
answers
4k
views
Failed to install java in Amazon Linux 2
I am using sudo amazon-linux-extras install java-openjdk11 this command,but it says
sudo: amazon-linux-extras: command not found
How I can install java in my ec2 ?
I am using sudo amazon-linux-extras ...
0
votes
1
answer
375
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 ...
1
vote
0
answers
331
views
Is it ok to use yum priorities plugin or will it cause any issues?
I am currently working on upgrading PHP installation on Amazon Linux 2 instance. As all the PHP 8 modules are not available in the default EPEL repo I have planned to use the REMI repository. However ...
2
votes
0
answers
314
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/...
1
vote
0
answers
2k
views
Unable to install Redis module with PHP 8.x version on Linux
Deployment of one of the application in our environment started failing while trying to install PHP Redis module on Amazon Linux. The environment has PHP 8 installed. I am getting the below error.
---&...
0
votes
1
answer
3k
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
votes
1
answer
874
views
Why is systemd service failing on AWS Amazon Linux 2?
I have a Node.js application cloned on an AWS EC2 instance running Amazon Linux 2.
I can execute the project's server.js file just fine:
[ec2-user@ip-*********** portfolio_v3]$ nvm use 16
Now using ...
1
vote
1
answer
285
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: ...
-1
votes
1
answer
595
views
EC2 .bashrc and .bash_profile re-setting
Reason I'm asking: pycurl requires both libcurl-devel and openssl-devel. To install these, I have these two lines the my .bash_profile:
sudo yum install libcurl-devel
sudo yum install -y openssl-devel
...
0
votes
0
answers
357
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
0
answers
189
views
Uncatchable MQTT aws-crt-nodejs crash
I am using the MQTT client in aws-crt to subscribe and publish, but every once in a while the server crashes with an error I have not been able to catch in JavaScript, but seems to be thrown in the C ...
0
votes
1
answer
175
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 ...