Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [amazon-ec2]

Amazon Elastic Compute Cloud (EC2), which allows users to rent virtual computer systems, is part of Amazon Web Services.

0
votes
0answers
15 views

SSM send-command to install esrally on ec2

I am trying to use SSM's send command to start esrally on a remote ec2 instance(amazon-linux). I install the tool using pip pip3 install esrally. However the issue I am facing is that SSM runs as root ...
0
votes
1answer
47 views

“sudo shutdown now” in my crontab @reboot

Now whenever my EC2 instance starts, it shuts down immediately, anyway to salvage this situation? OS: Ubuntu18.04
1
vote
1answer
49 views

Syntax error checking if file exists [closed]

A bash script running in Amazon Linux 2 is trying to test if a file exists. Then if it does exist, the script should delete the file. The following error gets thrown every time the script runs. ...
0
votes
1answer
34 views

Setup IP and port forwarding in AWS

I have a web server in AWS EC2 for example with http://11.22.33.44 listening to port 80. I would like to do something like port forwarding such as if I'm browsing the website IP from my home network ...
0
votes
0answers
34 views

Routing outgoing traffic between two NIC

I'm looking for a solution to proxify all the outgoing connections through several network interfaces so that they would appear to come from different IP's and I'm using Ubuntu 18.04 EC2's. What I ...
0
votes
0answers
7 views

vsftp on ec2 - not able to list directory with passive mode

I have installed an vsftp on an EC@ Linux instance. I can connect with active mode no problem, but with passive mode I get: Disconnected from server Could not retrieve directory listing Error ...
0
votes
0answers
5 views

vsftp on linux ec2

I have installed vsftp on Linux on an EC2 instance. I need to revoke the list privilege from one of the users. How can it be done? What I need is for the user to be able to upload files but not ...
0
votes
0answers
13 views

How to render visuals running on AWS EC2 instance to local?

I have a linux ec2 instance that I am logging into using putty from my windows laptop. I would like to develop a graphics intensive game in ec2 instances using pygame, opengl and pangolin. How do I ...
0
votes
2answers
123 views

How do I switch users on Amazon Linux for EC2 instances?

I saw How to change to normal user in the command line when logged in as the root user? How to switch between users on one terminal? I have access to sudo. I tried [ec2-user@ip-172-99-99-99 Weekly ...
1
vote
0answers
333 views

Multiple static IPs with netplan

on Amazon EC2 I want to set up multiple IPs on secondary Network Interface. whatever I do it sometimes fail to connect to secondary IPs, main word here is sometimes, thats why its very complicated to ...
0
votes
0answers
17 views

How to use “netatalk” to share files between my Mac and AWS EC2?

When I use the ubuntu machine at the office, a very nice feature is that I can share files in my finder just by drag & drop between my laptop and the ubuntu machine. But it doesn't work when I try ...
1
vote
1answer
36 views

What is the purpose of auditctl -a never,task?

I see that whenever I start a new ec2 server the default rule for auditctl is auditctl -a never,task What is the purpose of having this rule?
0
votes
0answers
67 views

SSH Error on AWS EC2

After connecting succesfully to AWS on the latest iMac through Bash Script 1: chmod 400 ~/PEM.pem ssh -i "~/PEM.pem" ec2-user@address.com jupyter notebook --no-browser --port=8888 Then opening a ...
1
vote
2answers
540 views

How do I configure my Amazon Linux service to auto-restart if it fails?

I'm using Amazon Linux. I have a script to start and stop a service, written in bash, located at /etc/init.d/wildfly At the various run levels, I have symlinks to ensure the script starts and stops,...
2
votes
1answer
202 views

Why is systemd-resolved restarting frequently?

After upgrading an EC2 instance to Ubuntu 18.04 I started getting occasional errors Resolving DNS for my database server in my PHP scripts like the following: Uncaught Exception: PDOException: PDO::...
0
votes
1answer
111 views

httpd hogging all memory until server crash

The server in question is used for processing data into reports, it has three cron jobs which execute every minute to check the process queue and if anything is found they'll keep running until the ...
0
votes
2answers
63 views

How does a EC2 machine prevents ssh root access with a warning?

I've setup a machine on EC2 running Debian stretch. Upon trying to ssh as root, I get the following message: $ ssh -i "mykey" root@machine Please login as the user "admin" rather than the user "...
0
votes
3answers
408 views

How can we generate the session token in aws

i have aws access key and secret key with me. i wanted session token to be updated in aws credential file (~/.aws/credentials), how will i get it? I want them to be generated in command line.
-1
votes
1answer
18 views

Can't access parallel Linux setup/environment

I installed a new EC2 instance (Ubuntu 18), followed these instructions for connecting via Putty, updated NodeJS and installed pm2 (these instructions). Everything worked well. I even set up a pm2 ...
0
votes
1answer
88 views

Host of issues stemming from too many symlink levels errors

On an AWS EC2 instance, I was upgrading imagemagick. Current installation was 6.8.x which is vulnerable, and I was moving it to 6.9.10-12 which if I read properly, I think it's patched. Somewhere ...
2
votes
0answers
197 views

REPO Error: HTTP Error 403 - Forbidden during firefox-compat install from AWS EC2 instance

tmp]$ sudo yum --enablerepo=epll install firefox-compat Loaded plugins: priorities, update-motd, upgrade-helper Could not retrieve mirrorlist http://repo.lambda-linux.io/2018.03/epll/x86_64/os/mirror....
1
vote
1answer
53 views

mysqldump on mariadb 10 extremely slow [closed]

I'm running a MariaDB 10.1.34 instance on AWS RDS. Instance specs are as follows: Instance Class: db.t2.large Storage: 100GiB gp2 DB Size: 1.2 GiB I'm trying to create a mysqdump from an EC2 ...
1
vote
1answer
104 views

local vs non-local chsh

How do I get chsh in Amazon EC2 (Linux 2)? $ chsh -s /bin/zsh zsh: command not found: chsh Here's what I see: $ ls -ahl /usr/bin/ | grep chsh -rwxr-xr-x 1 root root 16K Jul 27 21:02 lchsh ...
0
votes
1answer
43 views

RHEL Apache Test Page shown on navigation to EC2 IP address

I have a Django app that runs on 8080, apachectl configtest shows no errors and python manage.py runserver runs it without any errors. However the regardless of whether the app is running or not, the ...
2
votes
2answers
146 views

yum stopped wokring on my ec2 instance

I have an EC2 instance on which I was trying to install spark.I removed the required system python version from the system by mistake and nothing relying on python seems to work now including yum and ...
0
votes
1answer
53 views

What are potential reason where linux send SIGINT SIGTERM or SIGHUP to a python script that is not user initiated?

I am seeing that my python script in ec2 linux getting terminated for some reason. I am not sure why and how to debug it. I tried sending the output of nohup to a file nohup python my_script.py >...
0
votes
1answer
29 views

Allow a group to su to a user without a password in Amazon Linux

In Amazon linux on my ec2 server, how do I allow a group of restricted users to su to a specific user. Also I would like for them not to be prompted for password. I have a group called 'my-users' ...
0
votes
1answer
29 views

Unable to establish SSH connection between two AMI ec2 instances

Trying to establish ssh connection between two ec2 instances. Copied Host A id_rsa.pub key to Host B's authorized_keys file [root@ip-172-31-9-173 .ssh]# cat id_rsa.pub ssh-rsa ...
2
votes
1answer
44 views

Extend partition into grown volume

I had an Ubuntu VM which I imported into Amazon AWS. I then increased the volume size from 100GB to 1500GB. How can I extend the partition to use all of the new space. root@pbx-a:~# lsblk NAME ...
1
vote
0answers
60 views

What is “!!” command shown in top result

I run two drupal 8 websites on an amazon ec2 instance. They are portfolio sites. below is server details. [ec2-user@ip-xx-0-0-xx ~]$ uname -a Linux ip-xx-0-0-xx 4.4.15-25.57.amzn1.x86_64 #1 SMP Wed ...
0
votes
1answer
205 views

GLIBC 2.14 installation error: forced unwind support is required - RHEL 7.5

I have upgraded my RHEL OS from 6.7 to 7.5. After upgrading, I found some issues when trying to run yum. Below are the details. # yum repolist There was a problem importing one of the Python modules ...
0
votes
1answer
1k views

sudo yum remove php linux in aws

When I was trying to upgrade PHP version in amazon web server I got this kind of error. I'm trying to up upgrade PHP version 5.6 to 7.0 in amazon web server and I am using to putty to upgrade. [root@...
0
votes
1answer
581 views

Apache mod_wsgi with conda python 3 — can't load module

I recently posted this question to clear a hurdle in launching a Flask webapp on my Amazon ec2 RedHat 7 instance. In brief, I am attempting to launch a Flask webapp via an Anaconda environment using ...
1
vote
1answer
2k views

Apache (httpd) server fails to start on Redhat 7 (Amazon ec2 instance)

I'm having some trouble launching my Apache server from RHEL 7 (Amazon ec2). My larger goal is to host a Flask application from the ec2 instance using an Anaconda environment, but right now I'm just ...
1
vote
2answers
2k views

sudo: unable to mkdir /var/log/sudo-io/00/2A: No space left on device

A script began throwing errors related to not being able to init an I/O plugin sudoers_io: (amazon linux). I can't get into delete some logs since each time I use the sudo command, it fails to log ...
0
votes
0answers
337 views

Can't access nginx on EC2 instance

I have set up Ubuntu 14.04 as an EC2 instance. I have installed Nginx using the following commands: sudo apt-get update sudo apt-get upgrade sudo apt-get install nginx While most articles tell that ...
0
votes
1answer
193 views

How to run userdata scripts on Custom FreeBSD AMI?

I read that you can only run userdata once on an EC2 AMI. If you make a custom AMI from an EC2 instance, you cannot run userdata script on that custom AMI. On Ubuntu instances, you can remove /var/lib/...
1
vote
0answers
152 views

How do I trigger a tcpdump capture on Amazon ECS based on a log event?

I have an application that runs on Amazon ECS. Every once in a while (about once a month for a few hours), we have this issue where XML responses to our application are truncated, so an XML parse ...
2
votes
1answer
927 views

Issues with “nohup” on Linux instance on EC2 Amazon Web Services

I am working on the Ubuntu system on Amazon Web Services EC2. I have created an instance and need to run a node.js server on the system. Once I ssh into my working directory and use the following ...
0
votes
1answer
491 views

Use VNC to SSH tunnel through bastion host to graphical OS (Red Hat)

Here's the scenario: I have 4 hosts. Client/localhost AWS bastion host (port 22 only) EC2 Instance with graphical desktop (private subnet) EC2 Instance (no graphical) with Docker running a WebLogic ...
2
votes
1answer
252 views

Server upgrade (yum update) removed psql local installation

I have installed locally a PostgreSQL server 9.6.2 on aws Centos server a while ago using these commands: rpm -i https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-6-x86_64/pgdg-ami201503-...
0
votes
0answers
763 views

Unable to install PHPMyAdmin with PHP 7.1

I previously installed php56 in aws but i had to update to 7.1. When I do, I couldn't install phpmyadmin anymore. I tried to search on the net but all are said to remove php5.6 then to install 7.1. It ...
0
votes
1answer
2k views

Cannot extend partition beyond 2TB on AWS Ubuntu

a@b:~$ sudo growpart -v /dev/xvda 1 update-partition set to true resizing 1 on /dev/xvda using resize_sfdisk_dos 6291456000 sectors of 512. total size=3221225472000 bytes WARN: disk is larger than 2TB....
0
votes
1answer
321 views

systemctl does not restart the service until ssh to the AWS instance

I am hosting a bitcoind on my AWS EC2 instace and I have made it as a user service using the following service file: [Unit] Description=Bitcoind [Service] Type=simple ExecStart=/usr/local/bin/...
0
votes
0answers
43 views

EC2 connection failure after EBS volume re-attachment

My EC2 instance (port 80) has been blocked due to spamming. I set up a new instance and re-attached the EBS volume to the new instance. When I try to connect via SSH I get the following message: ...
0
votes
1answer
308 views

Unable to run Jenkins Slave jobs on AWS EC2 Centos 7 VM

I have Jenkins Master Server running on prem and my slaves are running on AWS. It's Centos 7 EC2 VM. When Jenkins tries to push slave.jar file over scp it fails with the following error message: ...
1
vote
2answers
1k views

SSH'd into a linux AWS box, how to exit out of terminal without closing script running in AWS box? [duplicate]

I have ssh'd into a ubuntu AWS box via terminal on mac. I have successfully setup the process I want to run in the box. How do can exit out of terminal without killing the process running? Can not ...
3
votes
0answers
375 views

Why does `/dev/shm` on an EC2 instance have I/O throughput comparable to an EBS drive?

I recently learned about the convenient "shared memory" file system at /dev/shm. I wanted to see if I could use this to speed up a sometimes-disk-bound program that writes to and reads from a ...
0
votes
3answers
479 views

Broken 'sudoers' file on EC2 - RedHat 6.9

Sudoers file seems that has error: sudo sudo: >>> /etc/sudoers: syntax error near line 56 <<< sudo: parse error in /etc/sudoers near line 56 sudo: no valid sudoers sources found, ...
1
vote
0answers
409 views

CentOS Amazon EC2 instance won't boot after upgrading to CentOS 6.9 via yum

A client updated their EC2 CentOS 6.4 instance to 6.9 using yum update. After the update and a reboot, the instance wouldn't start up anymore (became unreachable) The system log (recovered from the ...