Questions tagged [amazon-ec2]

Amazon Elastic Compute Cloud (EC2) is a cloud-based computing platform.

Filter by
Sorted by
Tagged with
0
votes
0answers
9 views

AWS EC2 Instance lost its internet after reboot - Ubuntu OS

I am really not good with servers. So what happened is that I rebooted my EC2 Instance with Ubuntu as the Operating System. I rebooted it via the EC2 Instance console. Now when it turned back on, it ...
1
vote
0answers
17 views

upgrade AWS HVM Ubuntu 18.04 LTS to 20.04 LTS

I have an AWS HVM AMI running Ubuntu 18.04 LTS. I want to upgrade to 20.04 LTS. do-release-upgrade -d Seems to work as expected. Completes the upgrade up to the reboot at the end. Once the system ...
1
vote
1answer
44 views

Bridging Amazon EC2 Netplan (20.04)

I've been trying to create a bridge on my EC2 instance (Ubuntu 20.04) with netplan but I keep losing access to my machine. Currently attempting to disable ENA, but not sure if I'm simply missing ...
0
votes
1answer
13 views

Not able to scp file to AWS EC2 instance - the same pem key works fine for my colleague

I am trying to scp copy a jar file to AWS EC2 instance via Jenkins' job. The copy process fails with message "Host key verification failed" The same command works fine for my colleague who uses the ...
-1
votes
0answers
11 views

Ubuntu on AWS lost keypair access to home directories with new keypair

I have a AWS EC2 Instance from 2013 (elastic) with a lost keypair. There are many videos and legitimate ways of regaining access by replacing the keypair via a series of volume changes and commands. ...
0
votes
1answer
18 views

EC2 added memory is not reflecting in the diskspace

I have added some extra space to my EC2 instance and resized the filesystem following AWS docs. Not sure what went wrong but my disk size is showing up correctly when I try df -h but the used space ...
0
votes
0answers
16 views

Can not access port on Ubuntu in AWS after some time of application run

This is my first question on StackExchange. We developed a TCP/IP server application to accept multiple clients and we used java to develop this application. Once client connected, it will do multiple ...
0
votes
0answers
10 views

How can I clear the npm forever log file when it reaches a certain limit?

Our dev server keeps hitting 100% memory usage on /dev/xvda1 [ 30G 30G 0 100% /] 18GB of this is from forever logs. Yesterday I ran forever cleanlogs and the size of the 18GB folder went down ...
0
votes
1answer
26 views

Using screen command with aws ec2 start-up script doesn't work

I'm trying to start up a minecraft server as soon as my ec2 instance boots (it has a CloudWatch event to stop and start the instance everyday, so when it boots i need to start the server) My server's ...
0
votes
1answer
32 views

Crontab - Linux - EC2 - Python - No module named 'pandas'

I'm trying to run a Python script (it's a webscraping) via crontab on EC2. But it's not working. Here is my task: SHELL = /bin/bash PATH = /usr/local/sbin:/usr/local / bin: / sbin: / bin: / usr / ...
0
votes
0answers
30 views

How can I move var to an EBS service on Amazon AWS EC2?

I have an EBS configured and attached to an EC2 instance. I attached the volume to the instance and then proceeded to follow the instructions here and here. Once I got to this part: sudo shopt -s ...
0
votes
1answer
26 views

AWS EC2 disk full, cannot release space

I am using an EC2 instance to run a node app. I logged into the server after a while only to realise that the server has run out of disk space. After debugging, I realised that logs are taking up ...
0
votes
1answer
90 views

Bridging Amazon EC2 With Netplan (18.04)

I have tried looking through this site, and google for a solution before anyone asks. I've made numerous attempts to make a bridged network on my Amazon EC2 server with no success. I've tried My "...
0
votes
0answers
16 views

AWS EC2 - Apache2(Ubuntu) does not update webpage after editing file

I've just recently installed Apache2 with a LAMP stack on an Ubuntu 18.04 image on a EC2 instance. After installing everything I cloned a git repo of a project website for one of my courses and begin ...
2
votes
0answers
44 views

Cannot upgrade EC2/Ubuntu to 18.04.4 with do-release-upgrade. Maybe it's python?

I'm trying to upgrade my Amazon EC2 instance from Ubuntu 16.04.6 to 18.04.4. I've already performed the cleanups like apt clean, apt autoremove etc... Then I start do-release-upgrade, I confirm to ...
0
votes
0answers
24 views

debootstrap very slow in Amazon EC2

For some inexplicable reason, running debootstrap is extremely slow in Amazon EC2 instances. I've tried it on various instances and at various times. It feels like Amazon's IP addresses are maybe ...
0
votes
0answers
84 views

postfix/postfix-script: fatal: mail system startup failed

I am using 16.04.4 LTS (Xenial Xerus) as an instance on AWS EC2. I have set up AWS SES (Simple Email Server). When I run sudo postfix start; sudo postfix reload I get postfix/postfix-script: ...
0
votes
0answers
121 views

command aws not found in ubuntu 19.10 after pip install awscli

I am trying to pro grammatically connect to an aws instance. So on my Ubuntu 19.10 I did python -m install -u pip /usr/bin/python: No module named install instructions then I did debian@osboxes:~/...
1
vote
1answer
89 views

ssh to amazon aws instance from virtual machine ubuntu 19.10

I have aws instance key .pem file I saved that in a folder "home/debian/cs605\ data\ management/assignment6/mumbai\ instance\ keys" the key name is mumbai-instance-1.pem I wrote a small bash ...
1
vote
2answers
227 views

How to connect Ansible to AWS-EC2 via ssh

I want to connect ansible to EC2 via ssh. I created a key pair on my local machine(ubuntu) and copied it to my EC2 instances using ssh-copy-id. The copy was successful, but I get the error below when ...
1
vote
1answer
61 views

Upgrade R package on ec2 instance

The version of R is 3.4 and want to upgrade it to 3.6. Then I have followed the these steps: sudo /bin/bash and I just went to root. Then remove the r-base core: # apt-get remove r-base-core ...
1
vote
0answers
69 views

Installing Apache on a new Ubuntu 18.04 EC2 Instance and Stalled

I recently logged into a fresh install of Ubuntu 18.04 on my EC2 Instance. I ran the updates and upgrades and everything worked fine. I then restarted the server and went to install Apache. I ran ...
0
votes
0answers
75 views

18.04 server: AWS slow network upload

I have an AWS EC2 instance of Ubuntu 18.04.3 LTS. When I created the instance, the network was 1 gbps up and down. After using it for awhile, the upload is stuck at 4.2 mbps, but with 1 gbps download....
1
vote
1answer
24 views

cron jobsare not working on ubuntu ec2 machine. Multiple methods attempted

Test cronjobb: * * * * * /bin/echo Test >> /user/ubuntu/test.txt I tried including this in multiple places with no luck: added in crontab -e added in sudo crontab -e added in sudo vim /etc/...
0
votes
1answer
83 views

Couldn't connect to EC2 instance

I'm trying to connect to my EC2 instance with terminal: ssh -i server.cer ubuntu@ec2-**-**-***-**.us-west-2.compute.amazonaws.com but have The authenticity of host 'ec2----.us-west-2.compute....
2
votes
0answers
278 views

Renewing certificate on server with Let's Encrypt when first issued with docker

I am running a dockerized django on an EC2 instance. I configured nginx in a docker container and got a certificate also in a docker container. (I followed this guide: https://www.humankode.com/ssl/...
1
vote
1answer
193 views

I can't ssh to my Amazon AWS Ubuntu instance using a newly created user and a key pair?

I created a user called 'grader' to my instance and gave it sudo permission, also I switched the password in /etc/ssh/sshd_config to be off. I generated a key pair in my local machine and added the ...
0
votes
0answers
44 views

Screencast Ec2 instance including sound

I need to screencast at scale, I can create AWS EC2 instances and get mostly there except for sound. The issue is that the Ubuntu image for EC2 comes void of a sound card or a virtual one as far as I ...
3
votes
1answer
33 views

Can't reach EC2 on certain ports

I'm able to connect to my EC2 with window's putty (port TCP 22) but not other ports (e.g. port TCP 80 or TCP 3000). Using netstat I can see that I'm getting SYN_SENT on ports other than 22: netstat -...
1
vote
1answer
861 views

how to change the MTU size permanently in EC2 Ubuntu18.04 instance?

I'm trying to change the MTU size of Ubuntu 18.04 EC2 instance back to 1500 from 9000 since my other cloud instance's MTU set to 1500. I tried various solutions like adding below two lines in the /etc/...
0
votes
2answers
443 views

AWS ubuntu server, web page not loading

I'm struggling with something on my AWS ubuntu instance. I'm trying to install MyBB on my server. I've created an RDS database and an EC2 ubuntu instance. On my instance, I've installed apache2 and ...
0
votes
0answers
27 views

How to set up the graphical interface of AWS EC2 Ubuntu 18.04 server

I started an example EC2 on AWS. The system version is Ubuntu 18.04. Now I want to install a graphical interface. I have consulted a lot of materials and tested several installation methods, but the ...
0
votes
0answers
178 views

Stuck after reboot - stop on “Reached target Cloud-init target” - EC2 AWS

I have reboot my EC2 instance on AWS and now it stuck on "Reached target Cloud-init target". I cannot access the instance via putty because it gives time timeout. I have reboot again and again and ...
2
votes
1answer
276 views

EC2 ubuntu instance is full but can't find why

Here's the current usage Filesystem Size Used Avail Use% Mounted on udev 488M 0 488M 0% /dev tmpfs 100M 11M 89M 11% /run /dev/xvda1 7.7G 7.7G 396K 100% / ...
0
votes
0answers
81 views

File server on EC2 Ubuntu 18.04 accessible from Windows 10 clients

Over the past week, I've tried tutorials on PPTP, OpenVPN and Samba, but I can't find a combination that works for me to connect from Windows and use my Ubuntu server for file sharing. I'm wondering ...
0
votes
0answers
49 views

MySQL Query takes a long time for result after Server replacement

In this link the description sound exactly to my issue MySQL takes ages to load (only when using WP) But I can't fix the issue with skip-name-resolve adding in my.conf SQL configuration. if I check ...
1
vote
0answers
224 views

Unable to ssh into ec2 instance: WARNING: UNPROTECTED PRIVATE KEY FILE! Permissions 0555 for '<key-name>.pem' are too open

After I created an ec2 instance, I tried to ssh into the port by using the private key, but even though I chmod the key down to 400, I get this error. vagrant@ubuntu-bionic:/vagrant$ chmod 400 ./itmo-...
0
votes
0answers
75 views

Permission denied to remove releases folder of CI/CD in Ubuntu EC2

I have a CI/CD in GitLab in an EC2 with Ubuntu 18.04. The directory where the folders current and releases are placed is /home/ubuntu/airflow_ci. Every time I push a new version from my computer I ...
1
vote
1answer
156 views

how to change display name or nickname of ubuntu server? (AWS EC2)

I'm wondering how I can change the displaying name when I log into my server. So for example I SSH into the server and it display my username @ ec2 instance ip. example: username@ip-10.0.0.129 what ...
0
votes
0answers
46 views

WSL to Amazon Ubuntu aws: No more authentication methods to try. Permission denied (publickey)

After reading this, this, this, and this: no solution worked. I'm using WSL and everything seems fine except that the hostname resolution gives me a local IP (like 192.168.1.10) instead of trying to "...
0
votes
0answers
24 views

How to point a subdomain to run applications using virtualenv on ec2 (AWS)

I added an ec2 instance (ubuntu server) in aws, installed python3.7, virtualenvs, pointed ec2's elastic ip to a subdomain, entered virtualenvs and made a webapp to run the web application. How do I ...
0
votes
0answers
32 views

domain with User

I'm on setting up hadoop cluster with some EC2 Amazons including my local ubuntu machine. But after some days I got realize my user name attached with with random AWS ip. hduser@ec2-18-222-170-204 ...
1
vote
1answer
85 views

Unmounting and detaching volumes on AWS ec2 instance not working?

Hello good Ubuntu community! I have an EC2 instance that I'm working with on Ubuntu 16.04 LTS w/ three volumes attached. Device xvda is the normal production volume with all current live data, and ...
0
votes
3answers
100 views

how to find a valid Private ip address of the machine out of all the interfaces?

My main objective is to find out the valid interface's private IP address in Linux machine. e.g. I have 7 interfaces and out of 7 I have two interfaces docker0 with IP address of 172.12.2.1 and eth0 ...
0
votes
0answers
39 views

Limiting shell commands that a user can run over SSH

I would like to setup up an isolated AWS EC2 Linux server which has 2 different users: 1) Data Owner: Can upload CSV file to this server from specific IP address. We can create an unrestricted user ...
0
votes
0answers
58 views

Listen on 22 port from specific IPs

I've two test AWS EC2 instances with below IPv4 Public IPs 3.15.217.194 18.222.170.204 I want to listen SSH request from above two IPs on my local ubuntu machine to copy some files. Here is my ufw ...
0
votes
0answers
48 views

Connect from AWS EC2 to Ubuntu

I am using ubuntu 16 OS based machine and having one AWS EC2 cloud machine. Am able to copy file using scp from ubuntu to AWS EC2. I was thinking same can be done If I want to copy from AWS EC2 to my ...
0
votes
0answers
75 views

Permission denied (public), lost connection

I'm trying to copy one file from AWS Instance one to instance two. But getting bellow error. Here is my copy command scp jdk-8u221-linux-i586.tar.gzz ip-172-31-18-114.us-east-2.compute.internal:/...
1
vote
1answer
62 views

apt configuration for bionic hosts in EC2

We have an apt repository hosted in an S3 bucket, which we use to deliver packages to workloads in EC2. On xenial, we have had no problem, however using the same configuration on bionic, we are now ...
0
votes
0answers
18 views

suitecrm in ubuntu18 ec2 instance port 80 error

hi i have problem while setup suitecrm in ec2 instance free tier ...everything was fine till installation page for suitecrm then i got (Internal Server Error...Apache/2.4.29 (Ubuntu) Server at (IP ...

1
2 3 4 5
9