Questions tagged [amazon-linux-2]

251 questions
1
vote
1 answer

AWS Elastic Beanstalk Amazon Linux 2 - How to set a custom NodeCommand

Migrating your Elastic Beanstalk Linux application to Amazon Linux 2 - AWS Elastic Beanstalk According to the docs, the aws:elasticbeanstalk:container:nodejs namespace is no longer supported and the new way to set NodeCommand is to "Use a Procfile…
1
vote
2 answers

Installing memcached on Amazon Linux

I am trying to use memcached for PHP on a Amazon Linux EC2 instance. In my PHP script when I call $mc = new Memcached(); the following error gets thrown in /var/log/php-fpm/www-error.log: [06-Sep-2020 00:49:44 UTC] PHP Fatal error: Uncaught Error:…
1
vote
1 answer

MongoDB Compass error creating SSH Tunnel: connect EADDRINUSEt, after setting username / password on database, AWS Linux 2 (EC2)

I have setup my mongodb on AWS Linux 2 EC2 instance. I have associated inbound rule as - SSH | TCP | 22 | to the instance. I was able to SSH into it through MongoDB Compass by using following settings: However as soon as I added a username…
1
vote
2 answers

SageMaker gives CannotStartContainerError although I specified an entrypoint

I want to train a custom ML model with SageMaker. The model is written in Python and should be shipped to SageMaker in a Docker image. Here is a simplified version of my Dockerfile (the model sits in the train.py file): FROM amazonlinux:latest #…
Joe
  • 1,628
  • 3
  • 25
  • 39
1
vote
1 answer

Amazon-linux-extras PHP 7.4 repo missing php-zip extension

So apparently somebody has forgotten about php-zip extension at AWS. There is no php-zip extension available for Amazon Linux 2 in the amazon-linux-extras php7.4 repo. Does anybody know how to get the php-zip extension installed? This is very…
Juha Vehnia
  • 1,255
  • 12
  • 15
1
vote
1 answer

Openssl on lambda with Nodejs10 in Amazon linux 2

Amazon Linux 2 lambda I can’t execute OpenSSL with console call in lambda with node10.x runtime. AWS will leave the support for node8.10 and I have a platform serverless that use OpenSSL with console call with node8.10 My code was some similar to…
Luis Ortiz
  • 41
  • 2
  • 5
1
vote
0 answers

Unable to start Unicorn(EC2×Nginx×Unicorn)

Overview I making production environment with AWS(EC2)+Nginx+Uniconr on myRailsApp. I completed connection to EC2 and Nginx setting,Unicorn setting. But I can't start to Unicorn. I tried unicorn version down(5.5.1→5.4.1) I'm a beginner and I tried…
1
vote
0 answers

Unable to start MySql In Docker Container - Amazon Corretto 11

I am trying to setup MySql inside Docker container which is running using Amazon Corretto 11. I could install the MySql but not able to start the server. I basically followed the steps given…
1
vote
0 answers

WARNING: erroneous pipeline: no source element for URI

I have this public HLS stream from apple: http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/sl.m3u8 It has the following content: curl http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/sl.m3u8 #EXTM3U #EXT-X-STREAM-INF:PROGRAM-ID=1,…
1
vote
0 answers

How to install python26-virtualenv on my amazon linux 2 instance

I am trying to move my application to run on Amazon Linux 2(AL2) ami which used to run on Amazon Linux 1. While trying to install the dependency of python26-virtualenv package, i am getting this error: [root@ip-10-186-34-249 ec2-user]# yum install…
1
vote
0 answers

phpMyAdmin not working in Amazon Linux 2 after adding virtual host in .conf file

I followed the below link and installed everything. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-lamp-amazon-linux-2.html I have some applications running and there are virtual hosts. All the application is running fine expect…
1
vote
0 answers

Best way to write Condition to systemd unit file

Trying to figure out the best way to go about determining if a linux instance is Amazon Linux 2 or Red Hat Enterprise Linux 7. I was looking at the ConditionArchitecture test, however, it does not seem to get granular enough. The other route would…
Isaiah
  • 169
  • 1
  • 2
  • 10
1
vote
1 answer

Unable to install libsasl2-devel on Amazon Linux 2 machine

I am running Ansible playbook and trying to install OS dependencies packages for python. I am trying to run the following: sudo yum install gcc gcc-c++ libffi-devel python-devel python-pip python-wheel openssl-devel libsasl2-devel openldap-devel…
Tanmaya Nanda
  • 21
  • 1
  • 5
1
vote
1 answer

How to update s3fs from v1.74 to latest version in amazon linux 2 or centos?

I already installed s3fs-fuse v1.74 and my boss need me to update it to latest version, yet I'm a newbie here. I'm using Amazon Linux 2 instance in AWS, sometimes works with centos 7 code too. Could someone help me please?
Aly
  • 11
  • 1
  • 3
1
vote
4 answers

Getting "npm ERR! code ELIFECYCLE npm ERR! errno 126" while running npm install

I am trying to run npm install on my server and getting this error. > node-cron@2.0.3 postinstall /home/workspace/AgreementCancellationProd/retrymechanism/node_modules/node-cron > opencollective-postinstall /usr/bin/env: node: Permission denied npm…
writeToBhuwan
  • 3,233
  • 11
  • 39
  • 67