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 EC2 (Elastic Compute Cloud) is a web service that allows users to rent virtual computing capacity on which they can run their applications. Web service questions are on topic here only if the question is about the operating system or using a PC application hosted there. Otherwise, other sites on the network may be more appropriate

0
votes
0answers
5 views

Access secondary EBS volume and change permission of /.ssh directory - AWS

I have attached an EBS Volume(Centos based) with a new EC2 instance(Amazon Linux) as a secondary volume. The purpose of attaching it as a secondary volume is- I want to fix permission of /.ssh ...
0
votes
0answers
8 views

Jenkins on EC2 AWS service: getting '[ec2-user: command not found' error

I am installing Jenkins on EC2 instance. I have followed all the steps from the AWS document provided at https://d1.awsstatic.com/Projects/P5505030/aws-project_Jenkins-build-server.pdf . I am stuck at ...
0
votes
0answers
16 views

Coherent UI Not Loading HTML Page Over Unity Project in Amazon EC2 Instance

I've been trying to show a GUI over the top of a Unity 3D project using Coherent UI, this works as expected when running on my PC, however after copying the game over to an Amazon EC2 instance and ...
0
votes
0answers
21 views

MongooseIM SSL connection via AWS ELB

I have MongooseIM server configured with docker-compose in an EC2 instance in AWS. I intend to give access to some mobile clients with SSL through an ELB (AWS) on port 5222 (module ejabberd_c2s of ...
0
votes
1answer
24 views

How to fix “Permission denied” when trying to edit a file on aws server?

I have a PHP file on AWS linux server. The address is /var/app/***/a.php. When I try to edit the file using WinSCP, I get the permission denied error. I tried to access the rights to edit using this ...
0
votes
0answers
34 views

How to translate old 'ip' commands to netplan config for Ubuntu 18.04 on AWS EC2

Previously I had a script to apply my second static IP and route on the default NIC on boot like so: ip addr del 192.168.123.123/32 dev ens5 ip route add 172.25.65.0/24 dev ens5 src 192.168.123.123/...
0
votes
1answer
12 views

MSCVR100.dll missing on EC2 Instance When Trying to Run NGINX

I'm trying to run NGINX with an RTMP module on an Amazon EC2 instance, but when I try to I get an error message saying "The program can't start because MSCVR100.dll is missing from your computer. Try ...
0
votes
0answers
53 views

How do I configure Tomcat 8 on Windows to allow access from external IPs?

I'm running Tomcat 8 on an Amazon Web Services EC2 instance. The instance's operating system is Windows Server 2012. I am trying to use my local PC's browser to connect to Tomcat on that instance. I ...
0
votes
2answers
23 views

Cannot install hexbin library R on AWS instance

I am working on a project that uses the package plotly in R. When I tried installing plotly, hexbin (a dependency) would not compile, because it could not find the gfortran .so libraries. I have ...
0
votes
0answers
15 views

Disable Host Verification for Hadoop

I have set up Hadoop to run as a linux service in an AWS EC2 instance (deployed via an auto-scaling group) and have it run as a spark user. However, when I start it, I get the following message in ...
1
vote
0answers
25 views

Nginx v Redis: Upstream Prematurely Closed Connection

My AWS EC2 instance, running Node, needs to pass data to my Redis cache. This has been working fine for months. But, for the passed few days, it's broken. All requests either timeout after approx 60 ...
0
votes
0answers
19 views

cannot get reponse from docker viz with a public ip

I have 2 EC2 instances in VPC, one of them in public subnet and 2 others in private subnet. I am during docker swarm on my machines in private subnet. I am running docker viz in my manager node. ...
0
votes
1answer
32 views

How to Access AWS EC2 Windows Instance Via Web Browser

Am new to AWS-EC2. Have a Windows EXE running on EC2 Instance and can access it via Windows Remote Desktop. How, if possible, do I configure AWS-EC2 instance to be accessed from a web browser rather ...
1
vote
0answers
31 views

Django services and websocket deploying in Amazon EC2 [closed]

I have a project with websockets with angular and django, it works fine locally when I have deployed to Amazon EC2. I have attached a screenshot of the server in django in Amazon EC2 that it looks ...
1
vote
0answers
19 views

Cant upload files to EC2, while there's still space left

I have 2 different instances, that have 60GB and 75GB capacity. While my data (train+test) is about 8 GB in total but it gets stuck at around 5.6GB (after 4 hours of uploading). I'm getting charged ...
1
vote
0answers
16 views

GCP: Can not ssh to instance after sftp config setting (ForceCommand internal-sftp) [closed]

After I added following lines to the /etc/ssh/sshd_config for sftp setup as online guide suggested. Match group sftp ChrootDirectory /home X11Forwarding no AllowTcpForwarding no ForceCommand internal-...
0
votes
1answer
59 views

SSH into EC2 instance: Operation timed out

I'm trying to ssh into my ec2 instance in order to deploy my MEAN-stack app but no matter what I'm receiving a timeout error. I've tried so many solutions that were posted in other StackExchange ...
0
votes
0answers
49 views

Django Application Killed unexpectedly in AWS EC2 Instance

I have a Django Project running over AWS EC2 Instance. I am using default Django server to run the application. To make the server running in background I have used screen command as: To open screen: ...
0
votes
0answers
77 views

How to bypass closed ports in local network to play games

tl;dr: ports to play games blocked on local network, want to bypass them and play again I live in a uni dorm with a pretty good internet connection (1 gbps), the only thing is that the only open ...
0
votes
0answers
18 views

Is it possible to install sqlsrv on amazon linux with php 5.6?

The official Microsoft tutorial links to the repo with sqlsrv versions that are for php 7.0 and up. I've read about the "mssql" with freetds as an alternative, but, from what I understand, its a ...
0
votes
1answer
70 views

Installing mod_php for Apache after installing Remi repo version of PHP 5.6

I followed this guide on how to install PHP 5.6 from the Remi repository on my Amazon Linux 2 instance. Now I need to connect that installation, which was placed in /opt/remi/php56/, to already ...
1
vote
1answer
74 views

yum install php dependency errors

I'm trying to install php 5.4 or 5.6 on an Amazon Linux 2 server using this command: yum install php54 This is the output: Loaded plugins: extras_suggestions, langpacks, priorities, update-motd ...
2
votes
1answer
70 views

AWS EC2 FTP Failed to Retrieve Directory Listing

I know this question has been asked to death (1, 2, 3, 4) but I must be missing something here that I just can't get it working. The FTP login is successful but fails at the directory listing ...
0
votes
0answers
9 views

AWS EC2 instance connection timedout, two instances under same security group, one connect other one dont

Hi could anyone please help, i am running two Ec2 instances under same security group, both were running ok, i just installed jenkins, docker on one instance and ran command ufw allow 8080 in one ...
0
votes
1answer
32 views

How do I do an HTTP POST to a server living in an Amazon ec2 instance over ssh?

I have a server listening on http://0.0.0.0:8000, however this is living in an Amazon instance. How can I make an HTTP POST request from an external computer (using curl)? That is, I would like to ...
0
votes
1answer
177 views

How to connect AWS ec2 Windows instance in Putty?

I have created a AWS Windows Ec2 instance, I can able to connect to the remote windows machine by using .rdb file, everything works fine. Now I need to connect a windows server by using putty. Let me ...
0
votes
1answer
20 views

Return to ec2-user from a custom user

When creating an ec2 instance I use a bootstrap script. On the instance I install and configure an nginx web server. For security reasons, I need to create a new user (www-data). The www-data user ...
0
votes
1answer
25 views

How to create bootable image of the entire OS for creating new EC2 instance?

I have a Linux OS installed on my local desktop. Is it possible to create a disk image of the entire OS (including all installed software and libraries and user files) and use it to create Amazon an ...
0
votes
0answers
488 views

Putty closes by immediately after authentication, Cygwin-SSH on the server

I have installed OpenSSH with CYGWIN on Windows Server 2012 R2 server on Amazon EC - I wanted to create my SSH instead of creating instances in the admin dashboard. My SFTP connection with the ...
0
votes
1answer
40 views

Directories missing when connecting to EC2 via FTP client (Transmit)

I successfully connected to my EC2 instance via Transmit (SFTP protocol, ec2-user and pem key). However, while I do have access to the instance after logging in I cannot see nor access any directories ...
0
votes
1answer
52 views

Sudden ssh connection loss on Amazon Linux

Periodically the ssh connection with amazon linux gets stuck and I can not connect anymore. Having to restart the instance ec2 for the connection to return to normal. This is not an idle connection. ...
0
votes
1answer
174 views

sudo python vs python

I have an instance in EC2 running Linux. I am trying to use the AWS Python DAX Client. The Dax Client is operating at the TCP level. I am running one of their example sample code https://github.com/...
0
votes
0answers
115 views

Architecture for Video Rending using FFMPEG on ECS vs Lambda

I have written an AWS lambda function to use ffmpeg and render a image, and an audio clip into a mp4 video. That works, but I've been running into limitations of Lambda even with max memory and ...
1
vote
1answer
73 views

When does ec2 switch between public DNS and public IP?

I have an application using Django, in Django config there is a list of ALLOWED_HOSTS. The application was working fine with the IP xxx.xxx.xxx.xxx in the ALLOWED_HOSTS list. It then threw the ...
0
votes
1answer
40 views

Why would a command line program need user input when it's not specified in the source code

Why would a program that is run from the command line wait for user input (pressing Enter) if it wasn't programmed to do so? I was using an AWS EC2 instance to run a computationally intensive program ...
0
votes
2answers
516 views

console-setup causes apt-get update to hang

I want to automatically install apache2 on my EC2 instance during first load. I am using the base Ubuntu 16.04 LTS image: ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-20180522 (ami-...
0
votes
0answers
41 views

How could I list all users with admin priviledges on CentOS?

I did the following commands: sudoers users list: for USER in `cut -d: -f1 /etc/passwd`; do sudo -U $USER -l; done | egrep -A 1 'may run' users on root group: getent passwd | grep -ve 'nologin' ...
0
votes
1answer
63 views

Extracting system info in one go from ec2-instances

I have almost 150 ec2-instances in an account. I want to extract some system info from each instance. I am aware that I can individually login into each system and get the information using the ...
0
votes
0answers
172 views

unable to connect to AWS EC2 server from putty from work place

Hi I'm trying to connect to AWS EC2 instance using putty by giving authenticate PPK file. getting an error unable to connect to server name host not found, i'm trying to connect from work place, is it ...
1
vote
0answers
288 views

AWS - Cannot ping/ssh my machine from AWS EC2 instance

I have created an AWS T2 instance. I created security groups to allow all traffic on all ports only from my local machine's IP. So when I try to ssh from my dev-machine with the pem file (ssh -i ...
0
votes
1answer
31 views

EBS - Volumes Usage is higher than what i actually see

I have an Amazon Free Tier account It's showing that i am using 25.75 GB, I only have a single EC2 instance running, what is this "EBS - Volume" I have a 30GB disc attached to this instance and as ...
0
votes
1answer
739 views

How do I keep 2 EFS instances in sync across regions

My company has an application running with multiple EC2 instances sharing 1 EFS instance that holds our application's files in the US East region, however our application is used nationally and our ...
0
votes
0answers
100 views

How set NTL parameters in putty ssh client?

AWS glue development endpoint show the following cmd line for shh connetction: ssh -i <private-key.pem> -NTL 9007:000.000.000.0:9007 glue@someHOst.us-west-2.compute.amazonaws.com What is -NTL ...
-1
votes
1answer
92 views

How do I get my Amazon EC2 instance to allocate more memory? [closed]

I am working on a deep learning Neural Network project using NumPy. My laptop, which has 4 GB of RAM, has no problem preprocessing the data. However, that same preprocessing step causes a MemoryError ...
1
vote
1answer
25 views

Locale wrongly configured [duplicate]

I have just launched an EC2 machine, in the frankfurt region. The locale is corrupted: ubuntu@myhost:~$ locale locale: Cannot set LC_ALL to default locale: No such file or directory LANG=en_US.UTF-8 ...
0
votes
1answer
64 views

Unable to SSH to my local computer from a remote EC2 instance

I'm able to connect to my EC2 instance from my local computer, but would like to access files on my computer from EC2. I have already generated a key pair on EC2 and added the public key to my ...
0
votes
0answers
18 views

Amazon Linux to Ubuntu 16 users / groups / data migration

Is there a way to migrate all my linux users/groups and files with their permissions from a AWS Amazon Linux instance to a AWS Ubuntu 16 instance? __| __|_ ) _| ( / Amazon Linux AMI ...
0
votes
1answer
739 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 ...
0
votes
0answers
275 views

RDP Session from Windows 10 into Ubuntu creates different user sessions on Ubuntu machine when new user log in

I have an EC2 instance running Ubuntu with a GUI. I am able to connect to it with standard RDP (remote desktop connection). However, When a second user logins concurrently with same user credentials, ...
1
vote
1answer
1k views

Cannot ping EC2 instance. Inbound rules set

I've read several threads but can not find a solution to following problem: I have just set up a new instance of an EC2 server running Windows Server 20xx. I have set up an inbound rule for this ...