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
1 answer
39 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 ./...
user avatar
  • 101
1 vote
0 answers
83 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 ...
user avatar
0 votes
1 answer
31 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 ...
user avatar
0 votes
2 answers
56 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 ...
user avatar
0 votes
1 answer
17 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? $ ...
user avatar
  • 5,074
0 votes
0 answers
25 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. ...
user avatar
0 votes
0 answers
24 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 ...
user avatar
  • 1
0 votes
0 answers
16 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 ...
user avatar
0 votes
0 answers
68 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?
user avatar
  • 101
0 votes
1 answer
37 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, ...
user avatar
0 votes
0 answers
18 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 ...
user avatar
0 votes
0 answers
9 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 ...
user avatar
0 votes
2 answers
129 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 ...
user avatar
  • 111
0 votes
1 answer
981 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'...
user avatar
  • 101
0 votes
0 answers
19 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 ...
user avatar
1 vote
1 answer
37 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 ...
user avatar
0 votes
1 answer
22 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-...
user avatar
0 votes
0 answers
44 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 ...
user avatar
  • 784
1 vote
1 answer
104 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, ...
user avatar
  • 111
0 votes
0 answers
24 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 ...
user avatar
1 vote
2 answers
475 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. ...
user avatar
0 votes
1 answer
154 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 ...
user avatar
1 vote
0 answers
37 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 ...
user avatar
  • 11
0 votes
0 answers
16 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 ...
user avatar
0 votes
0 answers
125 views

The "npm start" doesn't run in Bash

In the EC2 service of AWS, I make a Launch Template with the AMI Amazon Linux 2 64bits (x86), t2.micro for the instance type, and for the User Data I wrote the next scripts: #!/bin/bash sudo yum ...
user avatar
0 votes
0 answers
152 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 ...
user avatar
  • 101
0 votes
2 answers
204 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!
user avatar
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 ...
user avatar
0 votes
0 answers
24 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 ...
user avatar
0 votes
0 answers
80 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 ...
user avatar
-1 votes
1 answer
51 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-...
user avatar
0 votes
1 answer
2k 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 ...
user avatar
  • 1
0 votes
0 answers
32 views

AWS EC2 packet flow order

Similarly to the "Netfilter Packet Flow Diagram", someone knows about a diagram explaining the packet flow in AWS networking order predence? Example: Packet flow evaluation from a EC2 ...
user avatar
1 vote
0 answers
23 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 ...
user avatar
0 votes
0 answers
35 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 ...
user avatar
  • 1
1 vote
1 answer
128 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-...
user avatar
0 votes
0 answers
124 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. ...
user avatar
1 vote
1 answer
2k 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: ...
user avatar
  • 111
3 votes
0 answers
351 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 ...
user avatar
  • 2,552
1 vote
1 answer
87 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 ...
user avatar
  • 111
0 votes
0 answers
45 views

write script in AWS linux server once port is kill then automatically that script is run and start server

I had deploy jar file on AWS EC2 instance server. and start it using this command. nohup java -jar /home/ec2-user/project/example.jar & Using above command process is running in background. But ...
user avatar
3 votes
0 answers
107 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 ...
user avatar
  • 7,670
1 vote
1 answer
986 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 ...
user avatar
  • 11
0 votes
0 answers
54 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.
user avatar
-1 votes
1 answer
73 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 ...
user avatar
0 votes
1 answer
57 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....
user avatar
0 votes
0 answers
85 views

Display desktop using X11?

Client: MacOS latest. Server: Ubuntu 18.04 EC2 I have somehow managed to test out that X forwarding is working. It took a lot of time as I am new to MacOS, finally realised I need XQuartz. I am unable ...
user avatar
  • 101
1 vote
0 answers
90 views

Why all terminal text editors could stop working (AWS EC2 Ubuntu 16.04)?

Maybe stupid question. But I'll try. Can't open any files by any text editors (vi/vim/nano/less/touch) after restart OS (AWS EC2/Ubuntu 16.04.6 LTS). But cat and tail still work. I don't see any ...
user avatar
  • 11
0 votes
0 answers
633 views

Install libsodium on EC2

I am trying to install R and related packages on an AWS Ec2 (Linux) instance . The packages fail with a dependency on libsodium . R failure ------------------------- ANTICONF ERROR ----------------...
user avatar
0 votes
2 answers
799 views

Successfully installed amazon-efs-utils but cannot find it

$ sudo yum install -y amazon-efs-utils --verbose Loading "extras_suggestions" plugin Loading "langpacks" plugin Loading "priorities" plugin Loading "update-mood"...
user avatar
  • 101

1
2 3 4 5
8