Questions tagged [amazon-ec2]

Amazon Elastic Compute Cloud (EC2), which allows users to rent virtual computer systems, is part of Amazon Web Services.

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

Failed to locate executable /~/.nvm/versions/node/v18.15.0/bin/node: No such file or directory

What is supposed to be the appropriate node executable path to use. My machine runs on windows but i am using Amazon linux as the app is hosted on an AWS EC2 intance. Whenever i start the app from ...
0 votes
0 answers
18 views

Why can't Kubernetes PODs communicate with Docker containers started manually?

We are running Docker and Kubernetes on EC2 through the EKS service, and this cluster is mainly used for CICD purposes solely. Besides that, we are trying to setup TestContainers to run in our ...
0 votes
0 answers
48 views

Centos SSH Ports stops responding

I have a couple AWS instances running CentOS. Every few days the SSH ports stop connecting on both instances. When I try to SSH into the server it just keeps trying to connect and doesn't timeout. ...
  • 1
0 votes
1 answer
17 views

laravel not execute after adding SSL

I'm trying to run laravel on EC2(AWS linux 2) and apache server. And I recently bought a domain from Namecheap And I installed laravel to var/www/html folder. My /etc/httpd/conf/httpd.conf has those ...
  • 101
0 votes
1 answer
110 views

Process: 17925 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)

I'm trying to Restart Apache in AWS linux 2 (EC2 server). When I run sudo systemctl restart httpd I get this issue Job for httpd.service failed because the control process exited with error code. See ...
  • 101
0 votes
1 answer
32 views

systemd service won't start at boot/restart

I'm really getting crazy trying to figure out why my systemd service won't start at boot, or whenever the ruby script associated fails (like what should do in my intention). I'm running it on a EC2 ...
0 votes
0 answers
45 views

ec2 routing outgoing traffic through specific network interface

I have an EC2 instance with 2 network interfaces running on Ubuntu 20.04. Primary: default with the ec2 instance (ens5) Secondary: attached additional interface (ens6) The EC2 instance is sitting on ...
  • 121
6 votes
1 answer
2k views

Why doesn’t binary compiled on M1 Mac (arm64) run on EC2 t4g.micro instance (aarch64)?

Running argon2 compile on M1 Mac on AWS t4g.micro instance running Debian throws following error. According to https://stackoverflow.com/a/47274698/4579271, arm64 and aarch64 refer to the same ...
0 votes
0 answers
415 views

"connect: Network is unreachable" when trying to ping6 or traceroute6 ipv6.google.com

Good afternoon. I set up an EC2 instance a few months ago and just about now I've gotten around to set up IPv6 on it. I've followed this guide from Amazon, however, I can't reach any server using IPv6....
1 vote
0 answers
247 views

Can no longer SSH to AWS EC2 instance

We have an AWS EC2 instance running Amazon Linux 2. This instance was running fine up until a couple days ago. Then we used an Ansible playbook to install a new version of our software. We have used ...
0 votes
0 answers
34 views

how to resolve this error in ubuntu instance in ec2?

I was trying to host my project which uses tkinter. when I enter the running command of my project, it showed I was lacking some requirements like tensorflow, opencv, keras and some version ...
  • 1
0 votes
0 answers
32 views

Mounting a disk after stop and start EC2, giving error

The instance type g4dn.xlarge and it was stopped and started by me. I wasn't the one who set it up so I don't know how things were mounted earlier. Post restart some data from /home/ubuntu/somefolder ...
2 votes
1 answer
41 views

Amazon Linux server upgrade

My company is needing to upgrade the OS of our EC2 instances from AML 1 to AML 2 since end of life is 6/2023. We recently released a significantly large add-on to our application, so we are talking ...
  • 23
1 vote
0 answers
247 views

How to fix clipboard problem in Amazon Linux 2 (CentOS)?

I have an AWS workstation with Linux on it and the "system" clipboard is not working so I cannot copy-paste text (ctrl+c/v etc.) between the applications running inside this workstation. I ...
  • 61
0 votes
1 answer
71 views

Accidentally deleted yum.repos.d/ directory in my Amazon Linux AMI 2018.03 machine

By mistake i deleted yum.repos.d/ folder and all .repo files inside this folder using sudo rm -rf yum.repos.d/ so now i am not able to install anything and also not able to update. After deleted once ...
1 vote
0 answers
15 views

How can I send custom commands to a process when my EC2 instance gets "shutdown"?

I'm hosting a Minecraft server on an EC2 instance & I'm also using Google Cloud Functions to stop the instance every night via the AWS SDK. Every time the instance gets stopped via my cloud ...
1 vote
1 answer
104 views

How to hibernate AWS EC2 instance from inside it?

I have an EC2 instance (Amazon Linux AMI 2018.03) which I can hibernate from outside it — using the console, or AWS CLI. Is there any way to hibernate it by running a command inside it? Some Linux ...
1 vote
0 answers
90 views

Enable tmux detached non-interactive session to run stty without "input/output error"

I'm trying to launch a MineCraft server at startup of an AWS EC2 instance running Amazon Linux. For convenience, I used tmux to start a detached session, so I could ssh in to the box and connect to ...
  • 119
0 votes
1 answer
504 views

How to do RHEL AWS EC2 instance inplace upgrade

We have AWS ec2 instance with RHEL 8.2 OS using a public redhat ami image. Need to understand if its possible to do an inplace upgrade of the EC2 instance from RHEL 8.2 to RHEL 8.6. If yes, what are ...
  • 113
0 votes
0 answers
43 views

su cannot find script in path

On AWS EC2 instance I have the following script that runs at startup under the root user cd /home/ec2-user/lutze su -p -c "python -m lutze" ec2-user The script runs without a problem ...
  • 111
0 votes
0 answers
62 views

Why does my EC2 AWS instance receive timeouts sending mails via postfix?

I am trying to set up a postfix mailserver for outgoing mails on my EC2 instance. Basically i do not understand why the server times out pinging external hosts: Postfix is set up correctly and with a ...
0 votes
0 answers
920 views

Unable to start service nexus on Ubuntu

I'm trying to run Nexus on Ubuntu 22.04 EC2 instance of type t2.micro I have followed this article to do so https://www.fosstechnix.com/how-to-install-nexus-repository-on-ubuntu/ However when i run ...
  • 1
0 votes
1 answer
176 views

File contained in compressed TAR archive missing after decompressing

The data.tar.xz in libemu2_0.2.0+git20120122-1.2build1_amd64.deb is weird. If I use tar tvf or tar xvf there is a file ./usr/bin/sctest, but after I decompressed the archive with tar xvf, the file ./...
  • 101
1 vote
0 answers
769 views

Issue with Yum update Redhat Linux Amazon EC2

In my scenario , for some reason yum has stopped working in my Amazon EC2 instance, located in the us east -1 region. There seems to be something wrong with the path of the repo metadata, is this ...
  • 11
0 votes
1 answer
257 views

Run an API service on Linux

I'm ssh'ing into an AWS EC2 instance and starting my API. I want the API to keep running and accepting requests. So, is tmux a good way to do this? Or is there a better way? I was under the impression ...
0 votes
2 answers
226 views

Use Ansible 2.12 to access AWS EC2 via host: tag class

On my local hardware, I have a Vagrant box running Ubuntu 20, on which I'm using Ansible 2.12.2 I am able to access AWS and even create an EC2 instance within a VPN. When I view inventory, I can see ...
1 vote
1 answer
185 views

get instance id for rhel ec2 image in aws

What syntax needs to be used in the following command in the terminal of a RHEL 8 AWS EC2 instance to return only the valid instance id instead of the corrupted value it is currently returning? $ ...
  • 4,911
0 votes
0 answers
104 views

Giving superuser access to user directory binaries

I am new to linux. I have installed rust on a linux box (AWS EC2) using the official documentation. The binaries are installed in my home directory and the paths have been added to the $PATH variable. ...
0 votes
0 answers
77 views

Setting up Payload for Kali on AWS Cloud for the First time

I am new to this. I want to setup a payload on kali Linux machine hosted on AWS EC2 Marketplace Cloud. Of course this runs using a static IP. For instance the Static IP is 16.23.89.223 (IPV4 which is ...
0 votes
0 answers
350 views

what is icl-twobase1 service

On one of my EC2 instance (RHEL) on AWS, there is a service called icl-twobase1 running on port 25000. Does anyone know what that service is?
  • 101
0 votes
1 answer
163 views

EC2 Redhat - Multiple IP

I have one VPC with two Subnets (SubnetA and SubnetB). My team wants to have multiple IPs assigned to the Instance, each from one subnet. The Instance already have one Private IP (from SubnetA, ...
0 votes
0 answers
84 views

Why I can not navigate my Jenkins EC2 instance? This site can’t be reached

I looked at various SO answers My EC2 security groups I also tried to ping,got this PING 54.197.186.213 (54.197.186.243) 56(84) bytes of data. --- 54.197.186.213 ping statistics --- 1 packets ...
0 votes
2 answers
1k views

How do I forward all requests from local port to port on my remote Amazon EC2 instance which is using a custom ssh port

I am trying to forward all requests from local port 8888 to port 8888 to my remote Amazon EC2 instance. The only difference is that my EC2 instance is running ssh on custom port 56129. I can ...
  • 111
0 votes
1 answer
6k views

dnsmasq: failed to create listening socket for 127.0.0.1: Address already in use

I'm trying to set up dnsmasq on AWS Ubuntu 20.4 by following this link. However, I can't seem to get around the error dnsmasq: failed to create listening socket for port 53: Address already in use I'...
  • 101
1 vote
1 answer
65 views

Linux picking wrong source IP

I have an EC2 instance running on a k8s cluster. The instance has three three interface cards. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 ...
0 votes
1 answer
26 views

Accidentally deleted the apt.deb file after SSHing into my EC2 instance

Accidentally deleted the /ec2-user/apt.deb file. This is after SSHing into my EC2 instance with username ec2-user with the following command: ssh -i <pem file path> ec2-user@ec2-54-176-4-151.us-...
1 vote
1 answer
534 views

Nginx Caching SSL Certificate?

Previously(successfully), I had updated my SSL certificates in the same fashion as I tried to do this time. Like 2 files I have, domain.chained.crt and domain.key. Then ran sudo service nginx restart, ...
  • 111
2 votes
2 answers
2k views

MariaDB & Amazon Linux 2: ERROR: ld.so: object '/usr/lib64/libjemalloc.so.1' from LD_PRELOAD cannot be preloaded

Following AWS documents, I'm attempting to get a basic LAMP server up and running. Everything appears to be working fine. Logging into MySQL either through the terminal or phpMyAdmin (GUI) works. ...
0 votes
1 answer
824 views

EHOSTUNREACH error creating a TCP connection between instances on the same EC2 subnet

I have a client EC2 instance and a server EC2 instance, both residing in the same EC2 subnet. The subnet routing table is configured so that this is a “local” route. When I run EC2 networking ...
1 vote
0 answers
64 views

Dovecot - password query syntax error

Whenever Thunderbird attempts to connect to my server I receive an error in the maillog of dovecot: auth-worker(32527): Error: sql(admin,xxx.xxx.xxx.xxx,): Password query failed: You have an error in ...
  • 11
0 votes
0 answers
532 views

Unable to restart apache, when trying to set up ssl for amazon linux 2 (ec2 instance)

I am trying to set up ssl on amazon linux 2, and am unable to restart apache COMMAND : sudo systemctl restart httpd Error: Job for httpd.service failed because the control process exited with error ...
  • 101
0 votes
2 answers
722 views

"Warning: bad syntax, perhaps a bogus '-'?" has started to appear when connecting to server

I am suddenly seeing the following warning when I ssh to my server. I researched it and cannot seem to find the cause neither I am able to get rid of it. Please, can someone help? Thank you!
2 votes
1 answer
3k views

Steam>Warning: failed to init SDL thread priority manager: SDL not found — Amazon Linux 2

Following the documentation of Valve to install SteamCMD I'm attempting to both install SteamCMD and run a gaming server on an EC2 instance using Amazon Linux 2 or Redhat. Steps taken (after creating ...
0 votes
0 answers
95 views

Changing allowoverrideall for httpd.conf permission denied

/etc/httpd/conf/httpd.conf: open for write: permission denied I am trying to change the allowoverrride None to allowoverride all in httpd.conf in apache since it's not reading my htaccess, causing ...
0 votes
0 answers
446 views

Amazon linux 2 Mysql not running

I've followed everything on this documentation https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-lamp-amazon-linux-2.html#prepare-lamp-server but the mysql didn't seem to start and always ...
-1 votes
1 answer
205 views

mariadb server not running after install amazon linux 2

My mariadb server is not running after I install it with yum install mariadb-server. after running this command, it displays: mariadb-server-10.2.38-1.amzn2.0.1.x86_64 is obsoleted by mysql-community-...
0 votes
1 answer
8k views

How do I log all commands executed by all users

I'd like to get the logs in the following format in one log line: user_x executed command_y I have found the following solutions: How to log all Bash commands by all users on a server? How do I log ...
  • 1
1 vote
0 answers
51 views

Trouble using VSFTPD service for ftp server on AWS S3

First post on here so I apologize if its in the wrong place or format. So currently I have a working ftp server on aws linux EC2 and S3 with users that can connect via ftp/ftps/sftp . However the way ...
0 votes
0 answers
63 views

Linux screen session is untouchable

I have a screen session running from an ssh server I'm using, and I want to be able to terminate the session because I no longer need it. The problem is I was screwing around a little in the terminal ...
  • 1
1 vote
1 answer
313 views

apt errors not installing

I am currently trying to install mysql-server using sudo apt install mysql-server on my Ubuntu 20.04 WSL. However, after entering Y to install, I am hitting the following error: Setting up ec2-...

1
2 3 4 5
8