Stack Exchange Network

Stack Exchange network consists of 174 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

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
9 views

AWS ec2 linux folder/files access [closed]

Server has www apache groups. All users has just www added to them. We have folders just for apache user -rw-rw-r-- 1 apache apache 7662 Jun 13 10:34 github-webhook.php -rw-rw-r-- 1 apache ...
1
vote
0answers
29 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
23 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
1answer
40 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
0answers
12 views

How to add mount point details in amazon linux cloud formation

I want to add disk and mount point for my data path like below in Cloud Formation template for creating AWS EC2 instance "mkfs -t xfs /dev/xvdb\n" "echo \"/dev/xvdb /data xfs defaults,...
0
votes
0answers
16 views

Distcp from hadoop to aws

I have to transfer files from hadoop cluster to AWS bucket. Below is the command i am using. hadoop distcp -Dmapreduce.job.queuename=root.mr.sbg.sla -Dfs.s3n.proxy.host=qy1prdproxy02.ie.xxx.net -Dfs....
0
votes
3answers
31 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.
0
votes
0answers
19 views

DISTCP from Hadoop to AWS s3 Bucket

I tried the below command to transfer file from hadoop to AWS hadoop distcp -Dmapreduce.job.queuename=root.mr.sbg.sla -fs.s3a.proxy.host=qy1prdproxy02.ie.XXX.net -fs.s3a.proxy.port=80 -fs.s3a....
-1
votes
1answer
17 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
19 views

Host of issues stemming from too many symlink levels errors

Ok. I understand the title can be misleading or confusing... so plz bear with me. On an AWS EC2 instance, I was upgrading imagemagick. Current installation was 6.8.x which is vulnerable, and I was ...
2
votes
0answers
69 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
22 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
43 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
0answers
35 views

How to run a command in power up or shutdown (NOT reboot)?

I have some EC2 instances and I wanted to run a command whenever an instance is created or terminated. Some of the solutions that AWS offers are not very simple (like using SNS topics and using ...
0
votes
1answer
33 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
68 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
0answers
32 views

How to start and stop service from browser

I made a nodejs app and this app should run on server forever, but sometimes we need to start and stop it. So I want to make a webpage to access the output of the app's console and start & stop ...
0
votes
1answer
17 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
0answers
23 views

Accessing Amazon Linux 2 repository from Ubuntu EC2 Instance

I am trying to mirror Amazon Linux 2 repository on one of my local Update server which is running Ubuntu 1604 as EC2 Instance in AWS. While mirroring the repo using reposync utility, i am getting ...
0
votes
1answer
27 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
28 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
30 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 ...
0
votes
0answers
21 views

How to restrict `sftp` & `scp` access only to the user's folder on CentOS? [duplicate]

I created a new user on my host, but when I enter SFTP using Filezilla, for example, I can access all folders from the host, even the root user. Is there any way I can limit access from SFTP and scp ...
1
vote
0answers
59 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
131 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
575 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
0answers
32 views

Centos 6.9 - Cloud Drive

Just looking for some advice really, I'd like to have a network drive that maps directly to Google Drive (or any cloud really - Amazon etc). Is it possible to have a setup where network users can ...
0
votes
1answer
380 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. However, I'm still encountering some issues that I have trouble understanding (still ...
0
votes
1answer
1k 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
1answer
959 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
285 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
157 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
119 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 ...
0
votes
0answers
159 views

How to create Docker Image based on EC2 AMI image?

I installed several things on my CentOS EC2 instance (Java, MySql, gradle, setup local application...). Also recently created EC2 AMI image out of all that. Is it possible to create a Docker image ...
2
votes
1answer
562 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
347 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
172 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
578 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
933 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
194 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
33 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
243 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
913 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
272 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
391 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
363 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 ...
0
votes
1answer
378 views

Upgrade PCRE lib on AWS EC2 Linux AMI

I would like to update the default PCRE library of my AWS EC2 Linux instance. Current version is 8.21 2011-12-12. I tried with the following guides: https://forums.aws.amazon.com/thread.jspa?...
1
vote
0answers
23 views

Aws how to read cloudwatch graph?

I have one instance on AWS and here is the graph from cloudwatch but those Network (in) and Network (out)? How do i calculate how much bandwidth my instance eating? They are in Bytes
1
vote
3answers
368 views

ZFS on Amazon linux ami

I am trying to install ZFS on my amazon linux ami. Since the package is by default not available in their repository, I downloaded it from http://zfsonlinux.org/ . I also managed to install spl and ...
0
votes
1answer
205 views

Amazon EBS - extend LVM partition (non destructively)

I have an Amazon EBS volume that I'm using as a backing store for MongoDB, and I want to extend it. The volume holds a single partition, which is an LVM partition type. That partition belongs to a ...