Browse through the questions and answers listed below or filter and sort to narrow down your results.
EC2 lost key pairs
I did something six months ago on an EC2 instance. I've tried all the steps about 30 times and gave up. I have tried by edit user data and also using AWSSupport-ResetAccess. I have just tried again and noticed the error output on AWS Systems Manager. Can anyone help please? What can I do? Here is the output... Locating rescue device Mounting rescue volume /dev/nvme1n1p1 unlink /mnt/mount/etc/resolv.conf '/etc/resolv.conf' -> '/mnt/mount/etc/resolv.conf' removed '/mnt/mount/usr/bin/ec2rl' '/mnt/mount/usr/bin/ec2rl' -> '/usr/local/ec2rl-1.1.6/ec2rl' Generating new key pair Starting chroot Error: execution failure inside chroot environment. ================================================================================ The EC2Rescue execution did not complete successfully. removed 'etc/resolv.conf' umount: /mnt/mount/sys (sysfs) unmounted umount: /mnt/mount/dev/pts (devpts) unmounted umount: /mnt/mount/dev/pts (devpts) unmounted umount: /mnt/mount/dev/shm (tmpfs) unmounted umount: /mnt/mount/dev (devtmpfs) unmounted umount: /mnt/mount/proc (/proc) unmounted umount: /mnt/mount (/dev/nvme1n1p1) unmounted ----------ERROR------- chroot: failed to run command '/bin/bash': No such file or directory
How to set-up my EC2 server and find the right model for me?
Hello, I am building out a casino game that will not involve multiplayer online gameplay. Rather, it is a simple slots game with 6 different rooms. I anticipate having some users, perhaps optimistically around 1000 per month. Eventually, I'd like to move into the multiplayer realm and incorporate poker/blackjack live games; however, for now, I'd like to stick to the slots game concept. How much data/ what service do you recommend for me? My programmer recommended between 4-8 GB RAM, 2-4 core CPU, and 165-240 GB SSD. What do you guys think? Also, could anyone provide a step-by-step guide to how to set-up such a server with the recommended specs? Many thanks.
Patching EC2 Instances without rebootig - nodes in "pending reboot" state
Hi Team. I'm working with Patch Manager and I need to patch some groups of EC2 instances (Windows in this case). Instances got patched (or seems to) but remains in state "pendig reboot" and "non compliance". I don't know how to change instance's state. I've tried rebooting the instances manually and rebooting them using Run Command (with AWS-InstanceRebootWithHooks document) but they are still in "pending reboot" state. I also have a big doubt if patches are correctly installed. Thanks in advance.
aws gamelift cli how to wait for active fleet before changing alias.
Hi, I want to automate my pipeline so every build generates a new fleet and in turn our alias points to that fleet. However if I do that I get some down time between one fleet and the other. Is there a way to say cli to activate the fleet and wait for it to be active?
Updating Ubuntu on EC2 instance
I am running Ubuntu 22.04 on an EC2 instance. It is acting as a virtual host using Apache2 for several domains. When I connect to it with SSH, I get the following output: ``` steve@steve-Inspiron-3268:~$ ssh -i ~/.ssh/key-ub-20220725-1.pem firstname.lastname@example.org Welcome to Ubuntu 22.04 LTS (GNU/Linux 5.15.0-1017-aws x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Thu Oct 6 14:52:02 UTC 2022 System load: 0.0 Processes: 110 Usage of /: 26.1% of 24.05GB Users logged in: 1 Memory usage: 33% IPv4 address for eth0: 172.31.32.80 Swap usage: 0% * Ubuntu Pro delivers the most comprehensive open source security and compliance features. https://ubuntu.com/aws/pro 57 updates can be applied immediately. To see these additional updates run: apt list --upgradable *** System restart required *** Last login: Thu Oct 6 14:44:47 2022 from 18.104.22.168 ubuntu@ip-172-31-32-80:~$ ``` Do I need to run the following three commands to update the system? ``` sudo apt update sudo apt upgrade sudo systemctl reload apache2 ``` Is this something I need to do periodically or can I instruct Ubuntu to do it on a regular basis. I do not want to write a script and run it using CRON because that is getting outside my experience and I am trying to keep my system as simple as possible.
Amazon Linux 2022 (AL2022) Is it possible to upgrade from one Release Candidate (RC) to the next RC
First things first: AL2022 is a joy to use on T4G EC2. Is the update from one RC to the next one implemented yet? I have the august AL2022 installed and want to upgrade to the september one: ``` # dnf update --releasever=2022.0.20220928.0 Amazon Linux 2022 repository. Errors during downloading metadata for repository 'amazonlinux': - Status code: 403 for https://al2022-repos-XXX.amazonaws.com/core/mirrors/2022.0.20220928.0/aarch64/mirror.list - Status code: 403 for https://al2022-repos-XXX.amazonaws.com/core/mirrors/2022.0.20220928.0/aarch64/mirror.list Error: Failed to download metadata for repo 'amazonlinux': Cannot prepare internal mirrorlist: Status code: 403 for https://al2022-repos-XXX.amazonaws.com/core/mirrors/2022.0.20220928.0/aarch64/mirror.list Ignoring repositories: amazonlinux. Dependencies resolved. Nothing to do. Complete! ``` All in- and outbound ports are open for both IP4 and IP6 in security rules.
Unable to connect to EC2 instance & access over internet
Hello, I am trying to connect to the linux base EC2 instance using putty but I can't connect to the instance. Also I create linux base application server using User Data and trying to access over browser, I am not able to access it. Please help me to reach out that problem
ec2 Standard Reserved instance: Can you increase the EBS size from the original size when the instance was created?
If I have a Standard Reserved ec2 instance and the only thing I want to do is increase the EBS SSD size to a larger size than when I created the instance, can this be done? i.e. if I increase the EBS from 160GB to a higher EBS size, or change from using gp2 to using gp3, can this be done with a Standard Reserved instance? I would not be changing the instance size or type. Or would I need to have a Convertible Reserved instance to be able to change the EBS size? Nothing else would be changing.
CuDNN Library Not Working Out-of-the-Box
I am using the g4dn.xlarge instance type with the Deep Learning AMI GPU TensorFlow 2.10.0 (Amazon Linux 2) 20220927. Upon logging in for the first time, I test the installation and get: ``` [ec2-user@ip-10-0-0-133 ~]$ /usr/local/bin/python3.9 -c "import tensorflow" 2022-10-06 07:09:39.691571: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 AVX512F AVX512_VNNI FMA To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. 2022-10-06 07:09:39.815546: I tensorflow/core/util/util.cc:169] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`. 2022-10-06 07:09:39.848413: E tensorflow/stream_executor/cuda/cuda_blas.cc:2981] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered 2022-10-06 07:09:40.583444: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /opt/amazon/efa/lib64:/opt/amazon/openmpi/lib64:/usr/local/cuda/efa/lib:/usr/local/cuda/lib:/usr/local/cuda:/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64:/usr/local/cuda/targets/x86_64-linux/lib:/usr/local/lib:/usr/lib:/lib: 2022-10-06 07:09:40.583574: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /opt/amazon/efa/lib64:/opt/amazon/openmpi/lib64:/usr/local/cuda/efa/lib:/usr/local/cuda/lib:/usr/local/cuda:/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64:/usr/local/cuda/targets/x86_64-linux/lib:/usr/local/lib:/usr/lib:/lib: 2022-10-06 07:09:40.583594: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly. ``` The error was worrying, and so I decided to check the status of CUDA and cuDNN. ``` [ec2-user@ip-10-0-0-133 ~]$ whereis nvcc nvcc: /usr/local/cuda-11.2/bin/nvcc.profile /usr/local/cuda-11.2/bin/nvcc [ec2-user@ip-10-0-0-133 ~]$ whereis cudnn.h cudnn: ``` The lack of path for cuDNN is of course a problem. To better confirm, however, I ran the scripts in this answer: https://stackoverflow.com/a/47436840 I get the outputs: ``` libcudart.so.11.0 -> libcudart.so.11.2.152 libcuda.so.1 -> libcuda.so.510.47.03 libcuda.so.1 -> libcuda.so.510.47.03 libcuda is installed libcudart.so.11.0 -> libcudart.so.11.2.152 libcudart is installed ``` and ``` ERROR: libcudnn is NOT installed ``` However, when navigating to the CUDA folder, I see the the cuDNN files are actually present, and so I'm unsure what the problem is.