Questions tagged [amazon-linux-2]
251 questions
0
votes
1 answer
problem with Java 8 in Amazon linux 1 vs Amazon linux 2
I'm running into a problem when migrate to run my Springboot app from Amazon linux 1 to Amazon linux 2. I'm using run file with select the Java version by JAVA_HOME:
Amazon linux 1: JAVA_HOME=/usr/lib/jvm/jre-1.8.0-openjdk.x86_64
Amazon linux 2:…

Dattq2303
- 302
- 2
- 13
0
votes
1 answer
ONESHELL in Makefile not working with bash on Amazon Linux 2 ami
I am using this Amazon Linux 2 AMI on an EC2 instance: amazon/amzn2-ami-hvm-2.0.20210525.0-x86_64-gp2
This Makefile works fine:
.SHELLFLAGS := -euo pipefail -c
SHELL := bash
all:
echo here
When I run make all I get:
bash-4.2$ make all
echo…

kldavis4
- 2,177
- 1
- 22
- 33
0
votes
1 answer
How to Automatically Restart Linux Services on Amazon Linux 2 using Systemctl?
Seems the majority of guides online relate to Amazon Linux using init.d which isn't on Amazon Linux 2. Systemctl is on Amazon Linux 2, which doesn't appear to be capable (from what I've found to date) of automatically restarting a service if it has…

Michael Cropper
- 872
- 1
- 10
- 28
0
votes
1 answer
.NET 5.0 ASP.NET Web Server on Amazon Linux 2 startup error: "System.UnauthorizedAccessException: Access to the path '/root/.dotnet' is denied."
I am currently attempting to run a .NET 5.0 ASP.NET application on a Amazon Linux 2 EC2 instance.
This is being hosted with nginx, automatically run with supervisord upon deployment. This is my first time running this after deploying and found this…
0
votes
0 answers
Changing from mod_mpm_prefork to mod_mpm_event
I'm trying to change my apache to start using threads.
So I changed from mod_mpm_prefork to mod_mpm_event.
After that, I started receiving this message
PHP Fatal error: Unknown: Cannot find save handler 'memcached' in Unknown on line 0
The only…

FedeCaceres
- 158
- 1
- 11
0
votes
0 answers
New versions of docker packages are not available in the amazon-linux-extras
I have a requirement of updating the docker version to 19.03.11 or later on the amazonlinx2 and that package is not listed in the package list.
If I execute amazon-linux-extras install docker=19.03.11 it won't be succeeded and says "Nothing to…

Aruna Fernando
- 101
- 7
0
votes
1 answer
How to automatically upload ASP.NET Core crash dumps to an Amazon S3 bucket?
We have an ASP.NET Core 3.1 application running in Amazon EC2 instances with Amazon Linux 2 (RHEL based).
Periodically our application crashes with an 11/SEGV status (segmentation fault) so we enabled minidumps to be generated with an environment…

Emiliano Sandler
- 44
- 9
0
votes
1 answer
How to auto quote content after character on each line in Linux? (Elastic Beanstalk environment variables related)
Consider the following file:
APP_ENV=production
APP_NAME=Some API <- This line HERE
RDS_DB_PASSWORD=Some_Strong_Password
// etc...
This file is auto-generated by AWS Elastic Beanstalk for my environments i.e. I have no control over the formatting…

Ben Carey
- 16,540
- 19
- 87
- 169
0
votes
2 answers
Error on running python file on EC2 machine
I am trying to run a python file on an EC2 machine with Amazon Linux installed. I used putty to connect and when I try to run the file I get this output.
[ec2-user@myIP ~]$ python oasis_live.py
File "oasis_live.py", line 36
async def…

Akorian
- 85
- 6
0
votes
1 answer
WildFly 21 CLI cannot recognize existing file path on Amazon Linux 2
On Amazon Linux 2 AMI:
$ cd /opt/wildfly/bin
$ ./jboss-cli.sh -c
[standalone@localhost:9990 /]…

OsmanBalci
- 53
- 5
0
votes
0 answers
Problem with connecting ProxySQL from remote computer
I just solved my problem, thanks for your help!
I'm a developer who wants to connect to the aurora serverless (mysql) through the ec2 instance using ProxySQL.
The ec2 instance is running on Amazon Linux 2.
I tried to connect from my computer using…

Eliott
- 23
- 4
0
votes
0 answers
invalid option when trying to curl a file in linux and give it rights for execution and then move it
I am trying to download the file that will install Mate UI and give it rights to the scipt file then move it somewhere else, here is the content of the script (onpurposely one script is calling the other due to provisioning limitations):
sudo curl…

Rado Ratko
- 49
- 5
0
votes
1 answer
Why am I getting ImportError: No module named _gdal for GDAL in python2.7 on Amazon Linux 2
I followed these instructions for installing GDAL 3.2.0 on a new AWS t3a.large EC2 instance running Amazon Linux 2 for use in python2.7 programs. The install seems to have worked, but when using from osgeo import gdal in python I get the following…

lee
- 21
- 2
0
votes
1 answer
can't install mysql_xdevapi on ami linux2
I need mysql_xdevapi extension. trying through sudo pecl install mysql_xdevapi
error: C++ preprocessor "/lib/cpp" fails sanity check - fixed.
error: boost not found - fixed.
error: protobuf not found - this is the main problem((
...bla bla…

Tig
- 38
- 4
0
votes
1 answer
How to start Unicorn with systemctl and systemd
I would like to start Unicorn with systemctl on the amazon-linux-2, but the Unicorn doesn't start.
I've wrote a /etc/systemd/system/unicorn.service file.
[Unit]
Description=The unicorn…