Skip to main content

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
-1 votes
0 answers
55 views

Why can't I login with SSH using password?

I created an user on my server (adduser -G wheel myuser) and I set UsePAM yes PasswordAuthentication yes but I still get rejected when I try to login with myuser. How can I enable the ssh login via ...
None's user avatar
  • 657
0 votes
1 answer
43 views

How to install rapidjson-devel in Amazon Linux 2

It seems that recently epel-7 has been removed, and so I can no longer follow instructions from: How to install epel-release in Red Hat linux 7.8 How would one install rapidjson-devel on Amazon ...
malat's user avatar
  • 3,141
0 votes
1 answer
60 views

Cron time zone won't work on an AWS based EC2 instance

I have an EC2 instance that runs linux. The timezone is set to UTC time and I need my cron tasks to work on UK timezone. However, I am unable to change the system clock to the UK timezone. It must ...
A.Bux's user avatar
  • 1
0 votes
1 answer
82 views

Ansible AWX v17.0.1 running against EC2 instance -- ModuleNotFoundError: No module named 'ansible.module_utils.six.moves'

I am trying to run a simple Ansible playbook against an EC2 instance using AWX. My Ansible AWX is version 17.0.1 (running in Docker, not the Kubernetes version). I ran a 'pip3 list | grep six' and it ...
Swampcritter's user avatar
0 votes
2 answers
216 views

Ssh Permission denied on EC2 Linux server (publickey)

Please I created 2 Ubuntu Linux EC2 instances(master and slave) when I tried to ssh from the master server to the slave I get the error Permission denied (publickey). Server Details ubuntu@ip-172-31-...
Godwin's user avatar
  • 1
0 votes
0 answers
178 views

Run Go app as service with systemd in AWS EC2 instance

I'm trying to set my Go app as a systemd service in an EC2 instance with Amazon Linux 2023 so that it restarts on crashing and system reboots. I was following the advice from here: I created a ...
Ronald's user avatar
  • 1
0 votes
1 answer
73 views

yum-cron equivalent in amazon linux 2

It looks like yum-cron is unavailable in amazon linux 2.X, how can I enable automatic updates? I'm trying to install both security and non-security updates automatically.
daisy's user avatar
  • 55k
0 votes
1 answer
132 views

Linux I/O issue? Multiple FFMPEG saving streams as HLS, lose segments despite low CPU and Memory consumption

I'm capturing an RTMP stream as HLS (saving playlist files) using FFMPEG wihout any stream processing, merely copying it. Thanks to such setup I'm able to run tens of processes (I've tried 80 at most),...
Yyyeey's user avatar
  • 1
0 votes
0 answers
20 views

single nginx config for multi apps

I am hosting my web app on linux EC2 instance. This web app contains 2 small python application called app1 & app2. What i want: request /sales -> show web on app1. request /operation -> ...
quan_bui's user avatar
0 votes
3 answers
153 views

What could be the possible reasons of remote linux host shows terminal prompt with around 15 seconds delay

When I try to ssh in to a linux host, its terminal prompt shows around 15 seconds later after entering the ssh command on my local computer. The subsequent connections take 2-3 seconds. However, ...
Rafiq's user avatar
  • 168
0 votes
0 answers
310 views

ec2 instance curl request to the ec2 subdomain of its own region fails

I just launched a new clean ec2 instance in the same eu-west-2 and specified the subnet. All traffic internally and externally is enabled. Curl requests to http://169.254.169.254 return results and ...
Thomas Stokes's user avatar
-1 votes
2 answers
448 views

delay/cancel linux shutdown

I know that similar questions were answered multiple times here, and my question may look weird, but my case is different. I would like to catch the linux shutdown command before another processes, ...
zappee's user avatar
  • 211
0 votes
0 answers
54 views

Automatic backup of Jenkins data when EC2 is terminating

A brief background - I have my Jenkins installed in EC2 (Linux2) with EFS backend - and everything is rolled out using terraform and shell scripts. I am trying to derive a 2 part solution to backup ...
user2501705's user avatar
1 vote
1 answer
184 views

How can I run Doccano as the root user without knowing my root password on EC2?

I use Doccano on an AWS EC2 instance running Ubuntu 22.04. To run Doccano, I use doccano webserver --port 8000. But now I'd like to have Doccano serve its webpages on port 80. Therefore, I have to run ...
Franck Dernoncourt's user avatar
1 vote
1 answer
125 views

Spec file for rpmbuild to build gdb9 on ec2

I'm using aws's ec2 instance and I need to install a newer version of GDB (I can't use yum install since there is no newer version available for amazon RHEL). My workflow requires to do this process ...
danwgh's user avatar
  • 23
0 votes
0 answers
200 views

Permanently adding ssh keys for Amazon EC2 logins and link to GitHub?

I've started using Amazon EC2 recently. I've setup a "permanent" Spot instance, I log in using ssh keys, then I clone some GitHub repos (using another ssh key pair). The problem is, dispite ...
Danijel's user avatar
  • 186
2 votes
2 answers
417 views

ec2 Alma 9.2 stuck on old kernel version

# the issue: dnf check-update Last metadata expiration check: 1:35:58 ago on Sun Jun 4 10:26:18 2023. Security: kernel-core-5.14.0-284.11.1.el9_2.aarch64 is an installed security update Security: ...
user1133275's user avatar
  • 5,576
0 votes
0 answers
510 views

Where is Rsyslog programname set?

I am using AWS Elasticbeanstalk to run my java web application. In EC2 node under /etc/rsyslog.d/web.conf if $programname == 'web' then { *.=warning;*.=err;*.=crit;*.=alert;*.=emerg /var/log/web....
Jeevi's user avatar
  • 101
2 votes
1 answer
6k views

AWS EC2 Amazon Linux 2023: Installing PHP 7.4

I cannot seem to be able to find php7.4 as a package on Amazon Linux 2023. The latest version is PHP 8.1 but the application I'm using has compatibility issues with the latest version of PHP; hence ...
TechMafioso's user avatar
0 votes
0 answers
149 views

User has access to directory But not able to list files inside it

The user has access to the directory But the user is NOT able list files or go inside that directory. output of getfacl: getfacl: data/emp/social/AUTO123/ user::rwx user:spidy:r-x user:lisa:rwx group::...
user avatar
0 votes
0 answers
114 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 ...
Sanmi Akande's user avatar
0 votes
0 answers
54 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. ...
Chris's user avatar
  • 1
0 votes
1 answer
150 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 ...
vimuth's user avatar
  • 101
0 votes
1 answer
619 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 ...
vimuth's user avatar
  • 101
0 votes
1 answer
279 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 ...
Voley Betz's user avatar
6 votes
1 answer
4k 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 ...
sunknudsen's user avatar
0 votes
0 answers
2k 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....
FranGamer1892's user avatar
1 vote
0 answers
915 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 ...
pacoverflow's user avatar
0 votes
0 answers
65 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 ...
Megha's user avatar
  • 1
2 votes
1 answer
390 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 ...
John's user avatar
  • 23
1 vote
0 answers
903 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 ...
wi2ard's user avatar
  • 61
0 votes
1 answer
137 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 ...
ChandraShekhara's user avatar
1 vote
0 answers
21 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 ...
Human Friend's user avatar
1 vote
1 answer
279 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 ...
Greendrake's user avatar
1 vote
0 answers
215 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 ...
ErikE's user avatar
  • 129
0 votes
1 answer
2k 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 ...
sb9's user avatar
  • 113
0 votes
0 answers
71 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 ...
Eden's user avatar
  • 111
0 votes
0 answers
91 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 ...
Fabian Schmidt's user avatar
0 votes
0 answers
4k 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 ...
Alvrey's user avatar
  • 1
0 votes
1 answer
348 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 ./...
MikimotoH's user avatar
  • 101
1 vote
0 answers
1k 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 ...
samtech's user avatar
  • 11
0 votes
1 answer
978 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 ...
e456ryftcgv's user avatar
1 vote
2 answers
370 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 ...
Thunder Rabbit's user avatar
1 vote
1 answer
352 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? $ ...
CodeMed's user avatar
  • 5,309
0 votes
0 answers
895 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?
Asdfg's user avatar
  • 101
0 votes
1 answer
310 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, ...
Shivkumar Mallesappa's user avatar
0 votes
0 answers
105 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 ...
Richard Rublev's user avatar
0 votes
2 answers
2k 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 ...
kusur's user avatar
  • 111
1 vote
2 answers
21k 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'...
L23P's user avatar
  • 111
1 vote
1 answer
118 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 ...
RajBarua's user avatar

1
2 3 4 5
8