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 vote
0 answers
13 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
27 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
17 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
39 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 ...
  • 103
0 votes
0 answers
27 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
24 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
54 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
77 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
512 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
77 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
129 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 ...
0 votes
1 answer
63 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? $ ...
  • 5,179
0 votes
0 answers
62 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
46 views

Creating a boot partition (1GB) in an EC2 instance from an existing partition (1TB)?

Moving forward, in order to recover your instances from the error they are currently stuck in, you will have to move the /boot partition of your affected instances to a dedicated and smaller EBS ...
  • 1
0 votes
0 answers
33 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
182 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
65 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
51 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
0 answers
16 views

AWS OpenVPN, Squid and smartphones

I have AWS EC2 with Ubuntu, OpenVPN server, Squid and some services like calDAV, remote git repo and so on. Usually i use it for these services only and sometimes for internet access by setting up ...
0 votes
2 answers
670 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
3k 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
0 votes
0 answers
22 views

Restore a deleted file from a folder in AWS EC2 Instance [duplicate]

I'm a total newbie to the world of Linux/UNIX and I have the following situation: I was doing a deployment of changes to an AWS EC2 instance, which as I understand is pretty much a server that is ...
1 vote
1 answer
53 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
25 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-...
0 votes
0 answers
115 views

How can I (safely) proxy from my computer through amazon workspace to VNC running on an EC2 instance I setup?

I'm am doing development for my company on a machine owned by the company I'm contracted to. Recently we have been pushed to use a more 'secure' environment built on top of/utilizing Amazon ...
  • 794
1 vote
1 answer
295 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
0 votes
0 answers
70 views

How to change ODBC Configuration USER DATA SOURCES

I'm attempting to setup an ODBC connection on a new EC2 Linux2 instance on AWS. I'm capable, but inexperienced with CLI and no expert by any means. I'm following our vendor's instructions for setting ...
1 vote
2 answers
977 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
360 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
48 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
60 views

'apache2 -k start' keeps on appearing in htop and chokes memory

I had some "Out of memory" problems on my ec2 instance, so i enlarged it a bit so i can at least ssh into it and find out what's the problem.. the server itself runs apache2 and serves 2 ...
0 votes
0 answers
324 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
370 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
28 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
260 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
107 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
3k 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
35 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
40 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
222 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-...
0 votes
0 answers
214 views

crontab only running first 2 of multiple python scripts (ubuntu)?

I have a crontab in ubuntu (EC2 AWS instance). It runs a different python script on the hour. Each python script ends with a file being overwritten in /home/ubuntu/bandsintown via writeJSON.write. ...
1 vote
1 answer
4k views

Install google chrome in Amazon linux EC2 instance - CentOS

I am currently facing troubles in installing google chrome/chromium in Amazon EC2 instance. I tried the command, [ec2-user@ip-XXXX yum.repos.d]$ sudo yum install google-chrome-stable Loaded plugins: ...
  • 111
4 votes
0 answers
475 views

CUDA not available on Deep Learning AMI (DLAMI) running on an Amazon EC2 P2 instance

I am running the Ubuntu 18.04 Deep Learning AMI (DLAMI) on AWS, and am attempting to run it on a p2.xlarge EC2 instance, but CUDA is not available in my Python interpreter. I was assuming that CUDA ...
  • 2,607
1 vote
1 answer
134 views

Linux 2 GB RAM AWS EC2 Debian ARM64 instance showing incorrect total memory

I have provisioned a 2 GB RAM AWS EC2 instance and using a ARM64 Debian 10 AMI. When I do top and grep MemTotal /proc/meminfo. I get total memory of 1898 instead of 2048 MB. Even if the reserved ...
  • 111
3 votes
0 answers
127 views

What could cause EROFS error for an openat call of a symlinked path, but only sometimes?

I'm trying to debug an issue which I see only intermittently, often only once or twice per server and then it goes away. I have an application which attempts to open a lock file using openat() with ...
  • 7,860
1 vote
1 answer
1k views

SSH Public Key Authorization error Permission denied (publickey,gssapi-keyex,gssapi-with-mic)

I am trying to SSH onto my server with the command ssh -i key.pem ec2-user@ip_address as I did with no issues last week but this week it is giving me an error of only ec2-user@ip_address:Permission ...
  • 11
0 votes
0 answers
94 views

I installed the python3.8 version for my application and deleted the python2.7 in amazon linux 2 , now yum command is not working

I installed the python3.8 version for my application and deleted the python2.7 in amazon linux 2 , now yum command is not working.
-1 votes
1 answer
188 views

What happens if choose only my Ip in the security group inbound rule for ssh & http in AWS EC2 instance [closed]

I am a student and trying to get a grasp on how does the inbound rule in the security group for EC2 instance in AWS work. I tried setting up couple of rules SSH & HTTP for only My IP but when I do ...
0 votes
1 answer
70 views

Ezjail network in aws ec2 instance

I am trying to connect a jail to the internet in a aws ec2 instance. I am able to create the jail and execute a console inside, the problem is that the jail does not have any connection to the outside....

1
2 3 4 5
8