Questions tagged [amazon-ec2]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
29 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/...
0
votes
0answers
23 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 ...
0
votes
0answers
14 views

supervisor using all of cpu memory on aws

I am using supervisor on aws instance for larval job queues (backend process). Also installed Redis on my instance. but the problem is when I run supervisor on instance my instance stop working. then ...
1
vote
0answers
39 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 ...
0
votes
0answers
245 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 ...
0
votes
0answers
45 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/...
2
votes
2answers
367 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, ...
1
vote
1answer
27 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 ...
2
votes
1answer
317 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 ...
0
votes
0answers
13 views

Nvidia driver missing

I have setup Cuda with Nvidia on AWS GPU instance it is working fine. But suddenly I am facing NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver and I need to reinstall ...
1
vote
1answer
36 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 ...
1
vote
0answers
54 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" ...
1
vote
1answer
25 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 ...
1
vote
0answers
20 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 ...
0
votes
0answers
276 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 ...
1
vote
1answer
309 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 ...
1
vote
0answers
26 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 ...
0
votes
2answers
125 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 ...
0
votes
1answer
281 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 ...
0
votes
0answers
33 views

CIS Tools for AWS Ubuntu FIPS 18.04 AMI

We are using AWS Marketplace Ubuntu FIPS 18.04 (https://aws.amazon.com/marketplace/pp/B08GCSCZJK). We are able to access FIPS Tools with the AMI. But when we try to access the cis-audit toolkit, ua ...
0
votes
0answers
198 views

AWS Lightsail Ubuntu 18.04 - sudo must be owned by uid 0 and have the setuid bit set

I know this may look like a duplicated question, but I haven't found anything regarding AWS Lightsail Ubuntu instances on this site, so I've read many answers about how to fix this issue but found ...
1
vote
0answers
83 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 ...
0
votes
0answers
65 views

ReactJS application - npm_module not updating after AWS code-deploy

I have setup AWS pipeline to deploy reactjs application, with AWS Code Commit-Code Build-Code Deploy. Whole code is getting update but not the npm_modules after the pipeline deployment and getting ...
2
votes
1answer
265 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-...
2
votes
1answer
2k 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
1
vote
0answers
597 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: [...
2
votes
1answer
433 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 ...
1
vote
1answer
91 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 ...
0
votes
0answers
101 views

Accessing phpmyadmin Amazon ec2 Ubuntu

Hi Guys I'm trying to access the PHPMyAdmin interface on AWS ec2. I followed this tutorial step by step and I land on the attached image page, none of the passwords even work here. What passwords must ...
0
votes
0answers
1k views

PHP Startup: Unable to load dynamic library 'pdo_mysql'

I am using php 7.4 and ubuntu 16.04 which I have upgraded from 14.04. Here I am randomly getting pdo error like: PHP Core Warning 'yii\base\ErrorException' with message 'PHP Startup: Unable to load ...
2
votes
2answers
1k views

AWS EC2 Ubuntu 16.04.7 LTS Upgrade problems

I have an AWS EC2 instance that I am running a website on and I am running into issues while upgrading it. Here are the steps I have tried: $ sudo apt update $ sudo apt upgrade After the first part ...
0
votes
0answers
92 views

what is the best way to partition /tmp and /var/log in ubuntu 18.04?

Using aws ec2 ubuntu 18.04 OS. Need to perform CIS hardening task for file system where we need to partition /tmp /var/log /var directories and mount them to a separate file system partitions What is ...
0
votes
0answers
171 views

debug1: Authentications that can continue: publickey,password

I am trying to connect AWS EC2 which is launch with .pem key, But when I am trying to connect it using pem it is asking for ubuntu user which is a EC2 user from AWS. Previously I was able to login ...
0
votes
0answers
549 views

sudo mkfs -t xfs /dev/xvda mkfs.xfs: cannot open /dev/xvda: Device or resource busy

Is it possible to format my whole root EC2 instance to XFS while I'm logged into my instance? On a fresh install I am trying on EC2 Ubuntu 20.04: sudo mkfs -t xfs /dev/xvda Which is giving mkfs.xfs: ...
0
votes
1answer
40 views

cant login amazion ec2 created with AMI

I can't log in my aws ec2 instances with password here ill explain what I did create new aws ec2 instances (remove key login and enable password login) create image again create new instances with ...
2
votes
1answer
380 views

apt-get update on private IPv6 AWS EC2

I have an EC2 on a private subnet with an IPv6 egress-only gateway. The VPC, subnet and EC2 all have IPv6 support and the EC2 has an IPv6 IP address assigned. I can ping and run curl to pull down ...
0
votes
0answers
43 views

Xubuntu GUI not loading?

[Crossposted from Unix & Linux] I just installed xubuntu-core on my amazon-ec2 server, but I can't get it to load into a UI. When I try to use sudo startx it throws an error, while sudo service ...
0
votes
0answers
427 views

Ubuntu 18.04 netplan configuration for aws ec2 instance

In Ubuntu 16.06, I was adding another interface with following configuration auto ens4 iface ens4 inet dhcp sudo ip route add default via 10.10.8.1 dev ens4 table ens4_rt sudo ip rule add from 10.10.8....
0
votes
0answers
240 views

Received 0 SUCCESS signal(s) out of 1. Unable to satisfy 100% MinSuccessfulInstancesPercent requirement

{ "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "VpcId": { "Type": "AWS::EC2::VPC::Id", ...
1
vote
1answer
90 views

Downsizing EBS drive on AWS Ubuntu 18 not booting

I'm trying to downsize an EBS volume size on AWS on a Ubuntu 18 instance but it's not booting. Here are the steps I took: Stop the instance Create a snapshot of the boot drive Create a volume from ...
1
vote
0answers
152 views

Steps to debug failed systemctl service response

I have a Hybris server on an AWS EC2 instance. When I try to start the server using systemctl start hybris.service I get the following error: Job for hybris.service failed because the control process ...
0
votes
0answers
99 views

How can I upgrade live ec2 intsance runninng ubuntu 14.04 LTS to latest stable ec2 ubuntu 18.04 LTS

Looking for a clear way of upgrading one of live ec2 machine running Ubuntu 14.04 LTS to 18.04 LTS. As stack is quite older now, I know we can upgrade to older version to a new version but how about ...
0
votes
1answer
1k views

Cloud-init related error on ec2 ubuntu server 18.04

I am getting below errors on my EC2 Ubuntu 18.04 server. If anyone knows the reason and solution please help me. When I tried Cloud-init status I got status: error as a result. The error log shown ...
0
votes
0answers
8 views

Adjusting Size Of EC2 Instance By Replacement [ Data Migration Comulsory ]

This EC2 needed large disk at the launch. With data of 300G at the launch, most space was supposed to be used by 2 of the directories /backup /home The data increased 2 folds within a month, for ...
1
vote
1answer
519 views

AWS EC2 running Ubuntu 18 VPN will not connect (network manager?)

I am attempting to run a 3rd party VPN (Hotspot Shield) on my EC2 instance running Ubuntu 18. When I run the the connect command, I get an error for Hotspot Shield client. I have attached the ...
0
votes
0answers
140 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
1k 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
146 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
170 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 ...
0
votes
1answer
54 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 ...

1
2 3 4 5
9