Questions tagged [amazon-linux-2]
251 questions
0
votes
1 answer
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 dependency issues (which i thought were resolved),…

Bad Programmer
- 893
- 1
- 13
- 27
0
votes
1 answer
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 (and registered it successfully). Here's my…

codestein
- 59
- 6
0
votes
0 answers
Missing -lstdc++ error on Amazon Linux 2 despite it being there
Here's my build command:
swift build --product API -c release --static-swift-stdlib -Xlinker -L/usr/lib64 -Xlinker -lc++
That was the result of ChatGPT's guidance. But I also tried these:
swift build --product API -c release…

shoe
- 952
- 1
- 20
- 44
0
votes
1 answer
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 configurations:
files:
…

nacho
- 531
- 9
- 26
0
votes
1 answer
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 'shapely.lib
So there's probably something wrong with…

Jonnu
- 1
- 1
0
votes
1 answer
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 Balancer?

epol
- 1,022
- 8
- 18
0
votes
0 answers
Upgrading Django application on AWS elastic beanstalk from python 3.6 to python 3.8
I have been tasked with upgrading this elastic beanstalk instance. Originally it was running Python 3.6 on Amazon Linux 1. Now I am upgrading to Python 3.8 to Amazon Linux 2. It is a Django application. Originally in the .ebextensions there was a…

Luke Muther
- 23
- 4
0
votes
0 answers
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 \
python3-pip \
shadow-utils
RUN rm -rf…

Matto
- 2,538
- 2
- 18
- 23
0
votes
1 answer
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 EmailSender(IConfiguration configuration)
{
…

Sunil Shahi
- 641
- 2
- 13
- 31
0
votes
1 answer
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 one. The only difference in the 2nd is I added few…

imit
- 3
- 2
0
votes
2 answers
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
Previously, I just ran those commands in the…

Daniel Johnson
- 193
- 2
- 14
0
votes
0 answers
"SonarQube is starting" but does not present the login page
2023.02.23 14:29:30 DEBUG web[][o.s.s.w.WebServiceEngine] Request http://10.232.6.144:8080/api/navigation/global failed during response streaming
org.sonar.server.exceptions.UnauthorizedException: User is not authenticated
at…

user21273847
- 1
- 1
0
votes
0 answers
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 have used system.setProperties in my code also…
0
votes
0 answers
Unable to upgrade Amazon Linux 2 kernel from 4.14 to 5.4
I have an older Amazon Linux 2 EC2 instance running the following:
uname -sar:
Linux ip-172-31-8-8.eu-west-1.compute.internal 4.14.62-70.117.amzn2.x86_64 #1 SMP Fri Aug 10 20:14:53 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Trying to upgrade the kernel…

Stefan Szasz
- 1,247
- 11
- 27
0
votes
0 answers
Elasticbeanstalk stopping procfile services during deploy
Hi I am struggling to figure out how to prevent services other than Web running during an elastic beanstalk al2 deploy.
I've realised that all processes listed in the procfile are created as services in Linux, but using
systemctl stop…

Simon
- 723
- 8
- 14