Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [amazon-ec2]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
523 views

For new AWS instance, "Using username "ubuntu". Server refused our key."

I have been using Amazon EC2 instances in AWS. I have been successful connecting with WinSCP to a variety of instances, including Amazon Linux, Rocky Linux, SUSE, and CentOS 6, 7, and 8. All of ...
user avatar
  • 115
1 vote
0 answers
14 views

How to connect EC2 instance to Netbeans remote server?

I am trying to connect my AWS ec2 ubuntu instance to the Netbeans. While I am trying to connect with Netbeans Remote server then, It is showing the following error message. I have searched all the ...
user avatar
0 votes
0 answers
140 views

Permission Denied (publickey) when using SSH

I have Ubuntu 20.04 running in VirtualBox as my control node. I am using AWS EC2 instances (Ubuntu) for my remote servers. Every time I try to ssh into one of my EC2 instances I get " Permission ...
user avatar
  • 1
0 votes
0 answers
51 views

RDP on EC2 works until logging out and back in RDP, SSH works without issue - must reboot to get RDP to work again

I have a Ubuntu 18.x that I have installed XRDP on and GNOME so I can configure Security Onion 2 for my org. This is a VM running in AWS on a EC2. I have whitelisted my public IP for SSH and RDP in ...
user avatar
0 votes
0 answers
79 views

AWS EC2 Ubuntu 20.04.4 LTS STARTUP taking too long because of cloud-init / url_helper.py issue

Everytime I restart my server I get this cloud-init related error that slows the startup by 5 minutes. Where this error comes from and how can I fix this? [ 5.458859] cloud-init[869]: Cloud-init v. ...
user avatar
  • 101
0 votes
0 answers
37 views

NetPlan configured VLAN in Ubuntu 18.04 cannot ping

I have an Ubuntu 18.04 server in AWS EC2, running Docker. I want to have separate network cards for each Docker container, as the app inside them needs to use the same port (5003). I added some ...
user avatar
  • 1
0 votes
1 answer
56 views

Ubuntu 20.04 Terminal Using the Screen Command

I've been using the "screen" linux command on an AWS EC2 instance to keep code running 24/7. Recently I tried the command in my ubuntu terminal and found that if I make a screen, run a ...
user avatar
0 votes
1 answer
139 views

Help with adding secondary IPs to Netplan on Ubuntu 20.04 AWS EC2 instance

I have a Ubuntu 20.04 ec2 instance. I need to add three more persistent private IP addresses in addition to the primary. I'm familiar with the old way of doing this, but I have no experience with ...
user avatar
  • 1
0 votes
0 answers
13 views

Showing characters on website for data saved in database

I have upgraded database to version mysql-8.0 8.0.28-0ubuntu0.20.04.3. But its starting showing the invalid characters from database on website. Can you please tell how can we resolve this. I have ...
user avatar
2 votes
1 answer
46 views

Unable to change permissions inside AWS Docker ubuntu instance

I'm trying to run a discord bot in an AWS ubuntu docker container. My Dockerfile looks like this: FROM ubuntu ADD hydrabot.exe / ADD bot_config.json / ADD client_secrets.json / ADD Cyberbit.ttf / ADD ...
user avatar
  • 133
0 votes
0 answers
13 views

Best approach to route traffic out different routes based on what user is logged in

I have an Ubuntu 20.04 machine with 2 ethernet interfaces with 2 IP addresses each. It's an AWS EC2 instance and each of the 4 IP addresses has an EIP attached to it via NAT. Both interfaces connect ...
user avatar
  • 101
0 votes
0 answers
149 views

Cloud-init doesn't run as first boot for instance launched from an AMI created from another instance

We configure AWS EC2 instances (Ubuntu 20.04) with cloud-init using user-data scripts. We're noticing the user-data scripts don't execute if they are run on instance which is launched from a custom ...
user avatar
0 votes
0 answers
90 views

pointing sub domain to AWS EC2 server, website not displaying

The main domain is pointed on other AWS EC2 instance and due to the subdomain is a staging site so I launch another AWS EC2 instance, installed Apache, added the subdomain vhost to default .conf at /...
user avatar
0 votes
0 answers
85 views

CRON doesn't run

I had to reinstall a whole stack on an EC2 instance because a colleague mess up the previous one (not able to SSH anymore). Long Story Short: New EC2 is running. We have to run 2 jobs by a CRON job. ...
user avatar
  • 101
0 votes
0 answers
85 views

Unable to update ubuntu 20.04 on EC2 owing to timeout [duplicate]

I've got what could either be a problem with an EC2 instance or with ubuntu 20.04. When I run sudo apt-get update I eventually get: Failed to fetch http://eu-west- 2.ec2.archive.ubuntu.com/ubuntu/...
user avatar
  • 101
0 votes
0 answers
105 views

How do I upgrade an existing EC2 instance from Ubuntu 16.04 to 18.04 through CLI with custom Ubuntu 18.04 image?

How do I upgrade an existing EC2 instance from Ubuntu 16 to 18 through CLI/ansible with our own Ubuntu 18.04 image? Tried below steps and able to upgrade from 16 to 18.04 but it used ubuntu common ...
user avatar
  • 1
0 votes
1 answer
845 views

Temporary failure in Name Resolution PHP-Ubuntu

I keep getting this error very frequent: Severity: Warning --> mysqli::real_connect(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution This issue gets resolved ...
user avatar
0 votes
0 answers
33 views

Why website keeps on asking logins whenever I visit the site or refresh the site pages?

I have just deployed my website files in "var/www/html/site-files" running no ubuntu server (Zend-server) via Amazon Web Service(AWS) ec2 instance but whenever I attempt to load or type ...
user avatar
0 votes
0 answers
1k views

Easiest way to setup Ubuntu as a VPN server (L2TP) for a home router to connect

I'm trying to create/deploy a VPN to solve a connection issue regarding a game I'm playing (Xbox). For this, I'm setting up a VPN on a EC2 machine on AWS and I want to connect from a home router. I ...
user avatar
  • 1
0 votes
0 answers
134 views

Install apache2 on ubuntu aws EC2 instance via scripit (useing terraform)

I try to create an ubuntu instance via terraform after install I want to execute the script which is referred to install apache2 here is my script app1-install.sh #! /bin/bash sudo apt update sudo apt ...
user avatar
0 votes
0 answers
144 views

configuring VNC server: vim ~/.vnc/xstartup command shows ' No such file or directory'

I have started learning Linux only a couple of days ago. Tried to install ubuntu desktop in my ubuntu 18.04 EC2 instance, but failed in a stage with this command vim ~/.vnc/xstartup. it says 'No ...
user avatar
0 votes
0 answers
85 views

Error ubuntu server 18.04.4 "apt update" unable to update server repository

When I try to update Ubuntu Server 18.04.4, a repository returns an error and I am unable to update the server. root# apt update Err:1 https://artifacts.elastic.co/packages/7.x/apt stable InRelease ...
user avatar
1 vote
1 answer
319 views

Issue upgrading R 4.05 to 4.1 in Focal 20.04 on AWS EC2

I am trying to upgrade R 4.0.5 to R 4.1 with an update instruction by Johannes Ranke on cloud-R and I did as follows; sudo nano /etc/apt/sources.list and added; deb http://cloud.r-project.org/bin/...
user avatar
  • 191
0 votes
0 answers
72 views

Please help organise ubuntu desktop with terminal on ec2 instance

I'm new to linux and started to learn. What i did: Created EC2 ubuntu instance Installed ubuntu desktop by following this instruction: https://ubuntu.com/tutorials/ubuntu-desktop-aws Connected via ...
user avatar
1 vote
1 answer
826 views

Can't ping after adding secondary network interface in aws ec2

Ubuntu version 20.04. First we created a 2nd private IP on the only (primary) network interface. Both private IP addresses could be pinged. Now the instance has 2 private IP addresses, 1 public IP ...
user avatar
  • 111
0 votes
1 answer
564 views

How can i upload folder from my local machine to EC2 inastance

i have a problem in uploading the folder from my laptop to my instance on amazon. i tried a lot of commands in my local machine like sudo scp -i my_key.pem -r my_folder/path public_DNS:home/ec2-user/...
user avatar
  • 1,017
1 vote
1 answer
883 views

Linux process automatically starts again with new new PID after killing

I want to stop Node server on Linux, but when I try to stop it, it automatically starts again with a new PID. How can I stop this completely? Here you can see I tried to stop Nginx and Node process. ...
user avatar
0 votes
0 answers
1k views

Wireguard no internet on ubuntu but works fine for the very same config on my android phone and on windows 10

I'm using ubuntu 20.04 for both the server and the client and have used an EC2 AWS instance for the server. I've also used this installer for installing wireguard on AWS: https://github.com/pprometey/...
user avatar
0 votes
0 answers
36 views

AWS ARM EC2 Not able to access apache after installation

So, I pull up my favorite instructions to install LAMP. AWS only has instructions for their AMI which uses yum which I am not using. ubuntu@ip:~$ sudo ufw status Status: active To ...
user avatar
2 votes
0 answers
359 views

Error when upgrading from Ubuntu 16.04 to 18.04 on AWS EC2 web server

I had done the following: sudo apt update sudo apt upgrade sudo apt dist-upgrade sudo apt-get autoremove sudo reboot Here is a console copy of the issue after I do the sudo do-release-upgrade ...
user avatar
0 votes
0 answers
1k views

getaddrinfo EAI_AGAIN in node js Ubuntu

our company has decided to move to AWS EC2 and we moved. we are using Ubuntu 18.04. we have successfully install node and npm and also started using node js. but after few days we are getting ...
user avatar
0 votes
0 answers
155 views

Installing libc6:amd64 on arm64 removes all system packages

I'm trying to install libc6:amd64 on an ARM64 ubuntu machine following this guide As per the instructions there I added the following to my sources.list: deb [arch=amd64] http://archive.ubuntu.com/...
user avatar
  • 111
3 votes
2 answers
6k views

Ubuntu upgrade from 16.04 to 18.04 in AWS EC2

My AWS EC2 instance is running on Ubuntu 16.04. But recently I got an email from AWS that Canonical - the company that provides the support of Ubuntu 16.04 LTS - will stop its support on April 30, ...
user avatar
1 vote
1 answer
38 views

How to stream data from one ubuntu terminal to another terminal

I am trying to stream a data (random) from my virtual instance on AWS EC2 ubuntu machine. I have a python script that generates some random data on the terminal. I want to get this stream of data on ...
user avatar
2 votes
1 answer
1k views

Can I run multiple scraper at the same time using cron jobs?

I have schedule some crontab jobs to scrape a number of websites. I have set some cron jobs to run the scrapers at 1 AM, scraper_1 starts on 1:01, scraper_2 starts on 1:03 and scraper_3 starts on 1:05 ...
user avatar
1 vote
1 answer
789 views

Accessing Cronjob Log files on AWS EC2 instance

I would like to start by expressing my appreciation to any help I receive. I am very new to AWS and ubuntu servers. I run a daily python job on my EC2 instance and it fails every Friday for some ...
user avatar
  • 11
1 vote
0 answers
98 views

How to solve MYSQL Server declines remote connections after restoring the server from backup?

Here are the details: # cat /etc/release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=20.04 DISTRIB_CODENAME=focal DISTRIB_DESCRIPTION="Ubuntu 20.04.1 LTS" NAME="Ubuntu" ...
user avatar
  • 2,233
1 vote
1 answer
59 views

Restore mysql db from AWS AMI?

We have one EC2 instance running our mysql database server. due to a security incident we had to delete the current EC2 instance as database was completely messed up with some sort of encryption. So ...
user avatar
  • 2,233
1 vote
1 answer
45 views

Help! cant seem to get 2FA to work for my AWS ec2 SSH

Hi I have tried the solution online to include a 2FA system inside. even after I log out it still doesn't require a 2FA and log in as long as a PEM is present and I am not sure what I am doing wrongly ...
user avatar
  • 11
1 vote
1 answer
3k views

How do I install NVIDIA drivers on an AWS EC2 g4dn instance

I have a G4DN instance running but I wanted to know how to install the NVIDIA drivers on it so I can get access to the complete processing power of the instance. It is running Ubuntu 20 focal and is a ...
user avatar
3 votes
1 answer
2k views

Mount an EBS Volume > 2TB on Ubuntu 18.04

I have an Ubuntu server running on EC2 with an EBS volume mounted on /. I resized the EBS volume to 16TB before realizing that using it as the root volume implies partitioning, and that I might need a ...
user avatar
1 vote
0 answers
27 views

Unable to install, update, or upgrade any packages on ubuntu 20.04 aws ec2 instance [duplicate]

I am trying to install net-tools using sudo apt install net-tools but I get Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package ...
user avatar
0 votes
2 answers
249 views

Is it safe to use `dist-upgrade` if `do-release-upgrade` broke my EC2 instance?

I help run a server which is on (or: was on, and is now being restored from snapshots back to…) Ubuntu 18.04. It cheerily told me that I should do-release-upgrade to 20.04.1 LTS but after I did so the ...
user avatar
  • 109
1 vote
1 answer
2k views

How to install usbip vhci_hcd drivers on an AWS EC2 Ubuntu Kernel Version

It took me a while to figure out the problem, but I've been stuck and can't seem to find a solution to this. So basically I want to connect a local USB to a AWS EC2 Instance, and the way to do it on ...
user avatar
  • 21
1 vote
0 answers
303 views

After daily log rotation, nothing going to apache error.log and access.log

Recently, after some update to Ubuntu 16.04.7 LTS (GNU/Linux 4.4.0-57-generic x86_64), I noticed that after the rotation of Apache logs, my execution of: sudo tail -n5000 -f /var/log/apache2/error.log ...
user avatar
2 votes
1 answer
428 views

Issue installing R4.0 in AWS Ubuntu focal aarch64

I am trying to install R4.0 package in the arm64 ubuntu server (focal) on th AWS. I followed the install instruction on this web site, https://rtask.thinkr.fr/installation-of-r-4-0-on-ubuntu-20-04-lts-...
user avatar
  • 191
3 votes
1 answer
12k views

Unable to install yum on Ubuntu 20.04 (AWS EC2)

My command is sudo apt-get install yum The result is : Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package yum
user avatar
  • 159
3 votes
0 answers
1k views

"[Errno 2]. No such file or directory: b'apt-get'", "rc": 2

I don't know why when I run my ansible-playbook to install packages on ec2-instances using apt-get this appears.[WARNING]: Updating cache and auto-installing missing dependency: python3-apt fatal: [...
user avatar
  • 31
2 votes
1 answer
1k views

Ubuntu 20.04 loses network in AWS after updates 28 october

28 october I run a series of normal updates on one of my Amazon-EC2 instances. For some reason it locked up and I had to reboot it. It got up but it never got any network again. So after a lot of ...
user avatar
  • 21
1 vote
1 answer
339 views

How to connect via SSH to EC2 instance that got unreachable?

Having an AWS EC2 instance running Discourse for several years. Since some weeks/months it occurs that after some Discourse upgrades (through the web GUI of Discourse), the system stalls. It is then ...
user avatar
  • 117

1
2 3 4 5
10