Questions tagged [aws]

Amazon Web Services (AWS)

Filter by
Sorted by
Tagged with
0 votes
1 answer
25 views

accidentally did `sudo rm -r /*`, can I fix it? [duplicate]

I accidentally did sudo rm -r /* from a directory. I don't know what got deleted. Now I can no longer login to my instance via ssh. Is there a way to recover the instance or creating new one is the ...
1 vote
0 answers
26 views

(Some) applications not launching in Ubuntu using VNC on AWS EC2

I am using an Ubuntu 22.04 installation on an AWS EC2 instance (VM). I have installed VNC server and I am accessing the system using VNC Viewer. Initially, applications like Byobu Terminal and gedit ...
1 vote
1 answer
9k views

How can i update my docker version in Linux environment?

I need to update my docker version as per older version its showing some issue related to go code so, i have to update the docker version as i found the issue. My linux machine in AWS.
0 votes
1 answer
5k views

Can't read and change original pg_hba.conf in PostgreSQL 12

I can't to connect to aws remote ubuntu server where installed postgresql. And i want to connect from my pc to postgres on ubuntu i cant do that: Unable to connect to server: FATAL: no pg_hba.conf ...
0 votes
0 answers
163 views

AWS EC2 Ubuntu crashing

I am using AWS EC2 with ubuntu 22. After running sudo apt-get update and sudo apt-get upgrade I have restarted the machine using sudo reboot. Then my server started crashing in every 2-3 hours. The ...
0 votes
0 answers
60 views

How to sync an Ubuntu machine inside AWS using NTP

I have an Ubuntu instance inside AWS, which communicates with a third-party instance, also in AWS. I would like to ensure my instance's system time matches their's as close as possible. They have told ...
0 votes
1 answer
8k 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 ...
0 votes
0 answers
66 views

Handling DNS Resolution Failure after Releasing the Primary Public IP on Linux Machine with Multiple IPs

I am encountering an issue on my Linux machine with multiple network interfaces and IP addresses. Specifically, after releasing the primary public IP (let's call it 112. * .* .1) on the ens3 interface,...
1 vote
2 answers
4k views

How to visit a webpage using PuTTY?

I'm using Ubuntu VPS server, and I want to do a simple thing. I want to go to a webpage through the terminal to do a couple of checks regarding my website's traffic. I just need it to open a browser (...
0 votes
1 answer
7k views

Created vm with virt-manager but it won't boot. Says on bootable device

I am running dual boot Windows 11 Pro and Ubuntu 20.04. Everything works when I boot to Windows, but I can't set up the VM on ubuntu. Created vm with virt-manager but it won't boot. Says on bootable ...
1 vote
1 answer
238 views

Why has the latest Ubuntu Pro AMI and unsupported Kernel

Short The latest ubuntu pro AMI in eu-central-1 has an unsupported Kernel which has reached the end of its livepatch support. Which AMI should I use to start a recent, working LTS 22.04 Pro Ubuntu, ...
3 votes
4 answers
10k views

How to install Nvidia CUDA driver on AWS ec2 instance?

I am using AWS instance but Nvidia CUDA driver is not install there. I need help to install Nvidia CUDA driver on ec2 install. The Ubuntu version is 18.04 and the instance is GPU based. The graphics ...
0 votes
1 answer
126 views

Ubuntu Pro 22.04 AMI not available?

We currently build a golden image from the Ubuntu 22.04 AMI offered from Canonical, however there are security patches that are only available through Ubuntu Pro. In researching creating an AMI from ...
0 votes
1 answer
7k views

How to update virtualenv from Python 3.5 to 3.6 on AWS with requirement.txt?

I am having a trouble to deploy my Django project due to Python version differences, so I want to update its version on AWS (16.04.4). I currently have a virtual environment with Python 3.5, so I am ...
0 votes
0 answers
114 views

port 22: Connection refused, but only 60% of the time

I am running this: ssh_command = f'ssh -vvv -o StrictHostKeyChecking=no -i {private_key_file} ubuntu@{public_ip}' # Use os.system to execute the SSH command in a subshell os.system(ssh_command) ...
1 vote
1 answer
217 views

Deleting lines beginning with a string

I wrote a bash script that I use to backup certain directories to the cloud. I then direct that output to a log file. The log file consists of lines starting with either "upload" or "...
0 votes
0 answers
123 views

AWS Ubuntu 22.04 Interface Down on Reboot

Using Ubuntu 22.04.01 via AWS and just did a kernel update (among other items in apt upgrade) to 6.2.0-1017-aws and rebooted. Had to console in because connectivity was failing with no network changes....
0 votes
0 answers
122 views

Ubuntu Pro on AWS | Temporary failure in name resolution

I created a new EC2 instance with Ubuntu Pro 22.04 image. After 1st access, I updated system packages and Audited/fixed using usg command. After usg fix command, I rebooted the system and upon 1st ...
287 votes
7 answers
620k views

How to run sudo command with no password?

How does the ubuntu user on the AWS images for Ubuntu Server 12.04 have passwordless sudo for all commands when there is no configuration for it in /etc/sudoers? I'm using Ubuntu server 12.04 on ...
1 vote
1 answer
6k views

AWS CLI throwing "No module named 'botocore.parameters'" error?

I installed the AWS CLI using the instructions provided that suggest using PIP. After the installation when I try to run it I get the following error: [21:03:50] ip-10-0-0-115:awscli-1.2.9.egg-info $...
1 vote
1 answer
9k views

How to remove all the files inside the directory at AWS instance launch?

I want to remove all the files and folders inside the particular directory at /var/www/example directory using user data script at AWS instance launch. Can you please help me.
0 votes
1 answer
200 views

AWS userdata does not run on custom Ubuntu AMI

I've created a custom Ubuntu ISO with Autoinstall and userdata to set up a virtual machine (VM) in our VMware setup. This VM is then converted to OVA format, uploaded to AWS S3, and converted to an ...
0 votes
0 answers
55 views

Acess Aws server files using FTP like filezilla without .pem file

My Manager sent me AWS server credentails and told me to connect with filezilla. He gave the Hostname & User : ubuntu , but when i asked for .pem or ssh key file, he told my system's key is ...
0 votes
0 answers
93 views

Issue in nvidia-smi version and docker cuda ref in ubuntu 20.04

The issue in Ubuntu 20.04: Issue in Cuda Version: ERR! Issue in Cuda ref in Docker like: cudaloader gstcudaloader.c:169:gst_cuda_load_library: Could not open library libcuda.so.1, libcuda.so.1: ...
25 votes
5 answers
119k views

cURL Received HTTP/0.9 when not allowed, but nghttp2 is installed

I'm trying to setup the wallet RPC for a Monero node, but when I use cURL to that port, I get this error: curl: (1) Received HTTP/0.9 when not allowed However, checking curl --version gives me this: ...
0 votes
0 answers
486 views

Amazon Workspace Client not connecting to Amazon Workspace on Ubuntu 22.04

Download from http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb Install using command sudo apt-get install ./libssl1.1_1.1.1f-1ubuntu2_amd64.deb
0 votes
0 answers
64 views

Empty network related files appearing in home directory periodically

Why are these empty files appearing in my home directory periodically? -rw-rw-rw- 1 ubuntu ubuntu 0 Jun 22 05:40 ip-172-31-15-<censored>-9e994000.13551491757067348536736786 -rw-rw-rw- 1 ...
0 votes
0 answers
136 views

How to set a static IP on a `tunnel` network?

I am using amazon AWS VPN endpoint and I have a ubuntu 20.04 client for which I would like to have a static IP on the VPN network. I cannot find any examples on how to setup the /etc/netplan/50-cloud-...
0 votes
1 answer
189 views

AWS EC2 ubuntu box authentication by using Azure AD

I need your help to integrate user account on AWS EC2 ubuntu box by using Azure AD Credentials. We have an azure account where we have created users which in used by email and other SSO services. we ...
0 votes
0 answers
87 views

Could not install packages due to an Environment Error: [Errno 28] No space left on device

I am trying to install the terserflow. I have a t2.xlarge instance type but every time I get an error. Can you please help me with how much storage I have to take? ERROR: Could not install packages ...
1 vote
1 answer
946 views

Cron not working in the new EC2 instance. If run manually then it's working

I have set up a new EC2 instance. Everything is working perfectly. Now this morning I have set the cron and below is an example of cron */5 * * * * /usr/bin/php https://www.xyz.in/api/cron/index.php ...
0 votes
0 answers
145 views

Unable to bind MAC Address with interfaces in ubuntu

I am running Ubuntu 20.04 on an AWS environment. While trying to bind MAC Address to interfaces in netplan YAML file. The changes are not working as expected. I followed the following configuration, ...
0 votes
0 answers
70 views

Terraform AWS EC2 Instance stops installing remote commands because of Ubuntu Kernel Upgrade

I'm trying to boot up an EC2 instance on AWS using Terraform. So far the config is good and the instance works. SSH into the instance also works through Terraform security groups etc. However I want ...
2 votes
1 answer
586 views

What are these non-generic kernels ending in azure, aws, nvidia, oem, oracle, gcp and how did they get installed?

I run Ubuntu 22.04.3 LTS on a Dell laptop. I noticed that I have quite a few kernels that are non-generic, but I don't know how they got installed. The kernels ending in -azure, -aws, -nvidia, and -...
1 vote
1 answer
271 views

Can’t start IPFS daemon - ipfs.service: Failed with result ‘exit-code’

Even though I'm a noob, I decided to launch a new AWS Ubuntu instance for my IPFS node and encountering errors. I followed this tutorial - https://medium.com/textileio/tutorial-setting-up-an-ipfs-peer-...
1 vote
2 answers
735 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. ...
0 votes
0 answers
307 views

Header set Access-Control-Allow-Origin code added but nothing is happening

I am trying to solve the below option on my website Strict-Transport-Security Content-Security-Policy X-Frame-Options X-Content-Type-Options Referrer-Policy Permissions-Policy I found the below ...
12 votes
4 answers
20k views

Amazon Workspaces Client not working on 22.04

I have the official Amazon client, and I have been using it for years. When I upgraded to 22.04, the client began to crash on every launch. It seems to be an error with OpenSSL $ ./workspacesclient ...
5 votes
2 answers
29k views

stderr: No ECDSA host key is known for github.com and you have requested strict checking

[enter image description here] 1Failed to connect to repository : Command "git ls-remote -h -- [email protected]:yeni/jenkins-terraform.git HEAD" returned status code 128: stdout: stderr: No ...
4 votes
2 answers
424 views

Can juju be used in other region than the US?

Is there a way to bootstrap and/or deploy a server in Amazon EC2 not in the US region ? In juju's constraints, it seems that we can only choose region a, b, c or d which are in the US. Thanks for help
0 votes
0 answers
337 views

FATAL ERROR: Remote side sent disconnect message in filezila

I am using FileZilla to connect my Ubuntu server using the PPK file but every time I am getting the below error. Yesterday it was working but today I tried several times but not working. I have ...
0 votes
2 answers
452 views

How can I increase Ubuntu hard drive space on AWS when resize2fs says there is nothing to do?

I've looked at a few tutorials, they say - Step 1) run df -h $ df -h Filesystem Size Used Avail Use% Mounted on /dev/root 7.7G 6.1G 1.7G 79% / devtmpfs 3.9G 0 3.9G 0% /dev ...
5 votes
3 answers
21k views

/dev/nvme0n1p1space is full how to clean it?

I just set up my site through AWS EC2 not that long ago from following YouTube tutorial. Now I have issue with no space left on the disk space and I tried to remove some of the old backup files I have....
0 votes
0 answers
436 views

Can't increase the root partition size on Ubuntu 20.04

I am currently using ubuntu 20.04 (AWS Ec2) machine. My root filesystem has no more space as per the below output sudo df -h Filesystem Size Used Avail Use% Mounted on /dev/root 7.6G 7....
0 votes
0 answers
92 views

Plesk Web Admin SE

I have install the Plesk Web Admin SE Ubuntu for AWS Lightsail. Prior I had no issues but now after 3 months it no longer works and asks for a paid key. I emailed AWS and they said I need to contact ...
1 vote
1 answer
1k views

SSH access to Ubuntu Permission denied (publickey)

I'm trying to create a new user in ubuntu with keybased authentication and to configure Github actions (via ssh) to deploy any new change done on my branch, however am stuck with SSH connection to ...
11 votes
2 answers
3k views

The mail command hangs on "Cc:" for mail

For some reason, when I send mail with mail -s 'test email' [email protected] It prints out Cc: after I press enter and I can't do anything. I tried pressing . and it still is stuck. I'm ...
0 votes
1 answer
1k views

UnicodeEncodeError: 'utf-8' codec can't encode characters in position 4-6: surrogates not allowed

I have written a small code snippet to check the aws cli version #!/bin/bash if [ -e "/usr/local/bin/aws" ]; then myAWS="/usr/local/bin/aws" else myAWS="/usr/bin/aws&...
2 votes
3 answers
2k views

18.04, Deja Dup, backup to AWS S3 bucket

18.04 has a nag message about backups. I tried to configure it to backup to an AWS s3 bucket, as I'd done in 16.04. The new Deja Dup UI doesn't show AWS S3 as an option in "Online Accounts" (even ...
0 votes
1 answer
1k views

Problem with SFTP: "Credentials were not accepted by the server"

I'm using an instance of Ubuntu 22.04.1 LTS via AWS, having enabled ports 22 and 443 in Ubuntu via ufw, and I'm using a Security Group with those same ports enabled. Although I'm able to connect via ...

1
2 3 4 5
8