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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [amazon-ec2]

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

-1
votes
0answers
5 views

Connection throttling on outbound request once user starts browsing same website while connected to vpn [on hold]

My vpn server is configured on aws ec2 instance and have only 1 Public IP and the users are connecting to it using ovpn file. Once the user get authenticated to our server a tunnel/IP get allocated ...
0
votes
1answer
13 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
16 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
votes
0answers
19 views

How to swap root volume without rebooting server

Context My product provisions spot instances on AWS. The instances should appear identical after a user terminates, and then recreates that instance (we need to remount the volume). AWS suggests ...
0
votes
0answers
13 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
54 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
58 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
93 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
24 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
183 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
561 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
397 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
226 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
85 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/...
0
votes
0answers
68 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
94 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 ...
1
vote
1answer
313 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
202 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
103 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
388 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
404 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
102 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
24 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
172 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: ...
0
votes
2answers
507 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
183 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
227 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
320 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
0answers
250 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
20 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
2answers
252 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
105 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 ...
1
vote
1answer
121 views

Interpetation of /proc/sys/kernel/shmall

Unless I am wrong. the value of /proc/sys/kernel/shmall indicates the the total amount of shared memory, in bytes, that can be allocated to the system. I am on a t2.micro ec2 debian instance, and I ...
1
vote
2answers
123 views

How can I log into a running docker instance?

poking docker to see how it works: ubuntu@ip-172-31-14-19:~$ ubuntu@ip-172-31-14-19:~$ sudo docker run --net=host -d -t jmar71n/freepbx ...
0
votes
1answer
43 views

What would go wrong if i move /var from one machine to another?

I have a AWS EC2 instance (lets call it Eye1) with a 500GB EBS as secondary storage mounted at /var. Now I want to migrate my environment to a different EC2 instance (lets call in Eye2). The new ...
0
votes
1answer
213 views

Use KVM to run Asterisk on AWS?

How up to date and useful is AsteriskNOW? I ask because I'm having challenges installing Asterisk on Ubuntu with apt. On my local system I'm installing AsteriskNOW through KVM but am considering ...
0
votes
1answer
525 views

How to mount a xfs volume to centOS 7 ec2 instance /home directory

I created t2.medium instance and attached ebs volume to the instance Here are some useful information. sudo pvs PV VG Fmt Attr PSize PFree /dev/xvdb1 vg_home lvm2 a-- <200....
2
votes
0answers
114 views

Resizing partitions for EC2 FreeBSD instance without reboot

I modified the volume size for a partition on AWS Console and it does not show up in gpart show. It does show up after the reboot. I didn't have to reboot an Ubuntu instance to resize. Am I missing ...
1
vote
2answers
355 views

Make date change permanent in EC2

How can I manually set date and time to future in EC2 instance and make it permanent, so it won't reset after reboot ? I can change date using this command: $ sudo timedatectl set-time "2017-12-09 ...
0
votes
1answer
47 views

SSH ignoring user and login with another one

After I create a new user (newuser) in a EC2 machine (ubuntu), add the authorized_key and try to ssh into it, it doesn't work. Now thats all fine and dandy if it fails, but it actually succeed into ...
0
votes
0answers
1k views

Why is Oracle Java 8 installation failing in AWS Ubuntu 16.04 AMI?

I am using AWS EC2 with ubuntu 16.04 LTS. Suddenly, I am facing an error when I am trying to install Oracle java 8. add-apt-repository ppa:webupd8team/java -y aptitude update -y echo oracle-java8-...
0
votes
2answers
68 views

Can't find Cron-Initiated Processes Initiated on Amazon EC2 Server

On my remote Amazon EC2 instance, I've scheduled a Cron job to run a program once every hour. The program takes about 55 minutes to run, and sends me an email when it starts and when it stops. It has ...
1
vote
1answer
1k views

AWS - ssh: connect to host instance_ip port 22: Connection refused

I've changed following line in the ssh_config file to enable password logging: PasswordAuthentication Yes After that I've reboot the ec2 instance. Now trying to ssh but it saying refused connection. ...
1
vote
1answer
229 views

Cron on Amazon EC2 centos still executes even after delete [closed]

I have a cron job in machine 1 that opens/close machine 2 for a few hours. Now i deleted all cron jobs in machine 1, so it wont open/close machine 2. I have no crons, To delete all crons in machine ...
0
votes
1answer
170 views

How is `DirectMap4k` set in /proc/meminfo?

In some of the EC2 servers of the same type, DirectMap4k can be anywhere between ~100000 kB down to ~50000 kB. How is it set and if it's possible to tune it?
0
votes
1answer
325 views

Run node app with SSL on 443 port (on 80 is working)

I am trying to configure a server running on Amazon EC2. I figured out how to run my node app on port 80, but now I'm trying to run on port 443, with Letsencrypt SSL. Before to work on port 80 I ...
1
vote
1answer
591 views

Is there ramdrive on AWS EC2 instance by default?

I found my df command says the following: $ df Filesystem 1K-blocks Used Available Use% Mounted on udev 31428656 0 31428656 0% /dev tmpfs 6288016 9136 ...
-2
votes
2answers
205 views

/proc consuming space on hard disk gradually [closed]

EC2 instance running centos 7.0 hard disk space is consumed slowly, which is flushed after reboot. Content : Base OS, Cloudwatch Agent, CodeDeploy agent, nginx, Anti Virus MacFee, Java application (...
6
votes
4answers
5k views

Multiple commands during an SSH inside an SSH session

I have a local machine which is supposed to make an SSH session to a remote master machine and then another inner SSH session from the master to each of some remote slaves, and then execute 2 commands ...
1
vote
0answers
217 views

How to view httpd response log?

I have an Amazon Linux EC2 instance running as my webserver. If I view the latest access logs by running sudo tail /etc/httpd/logs/access_log I can see that there are requests coming from IPs that ...