How to convert Linux cron jobs to "the Amazon way"?
For better or worse, we have migrated our whole LAMP web application from dedicated machines to the cloud (Amazon EC2 machines). It's going great so far but the way we do crons is sub-optimal. I have a...
View ArticleEC2 Ubuntu connect to PPTP VPN Server
SetupI'm developing for a customer XYZ and have to access APIs running on XYZ Server. We have an IKE2 VPN between our firewalls (XYZ and our office). I am able to ping XYZ Server's Local IP through My...
View ArticleProblem while installing virtualenv on AWS Ubuntu 18.04 AMI
How to install virtualenv properly on AWS Ubuntu 18.04 AMI. I have tried various ways such as through pip and through apt-get but I am not able to either properly install or configure it. Whenever I am...
View ArticleHow to find AMI ID of CentOS 7 image in AWS Marketplace?
I have been launching EC2 instances by logging in to the AWS site, hitting the "Launch" button and following the proscribed steps. Now I'd like to launch instance from an Ansible script, and to do this...
View Articletomcat 8080 behind AWS Application Load Balancer 443
My goal is 443 (ALB)->8080 (TOMCAT)I am running a EC2 tomcat instance on 8080.Here is the tomcat apr connector on 8080<Connector protocol="org.apache.coyote.http11.Http11AprProtocol" port="8080"...
View ArticleInternal tensorflow-keras error loading hd5 model
I'm trying to load a trained model in an aws EC2 machine and I get the following: Traceback (most recent call last): File "/home/ubuntu/kraken/krk_modeling/src/services/logger.py", line 51, in wrapper...
View ArticleDo on-demand Mac OS X cloud services exist, comparable to Amazon's EC2...
Amazon's EC2 service offers a variety of Linux and Windows OS choices, but I haven't found a service offering a similar "rent by the hour" service for a remote Mac OS X virtual machine. Does such a...
View ArticleAWS Ubuntu 18.04 AMI package installation failed
Whenever an AWS autoscaling group launches new ubuntu instance and I try to install any package on that instance it gives me the following error:[stderr]E: Could not get lock...
View ArticleHow to set Environment Varibales EC2 Ubuntu for Django App
I am EC2 to host a django app and now want the Database settings not to hard coded in the settings file rather set them as environment variables.I changed the /etc/environment and added the variables...
View ArticleNot able to connect to Amazon RDS from EC2 Django Instance
I was deploying my Django Project on AWS (this is my first time doing this) after a lot of first time learning i got stuck at an error : django.db.utils.OperationalError: (2005, "Unknown MySQL server...
View ArticleSetting up SSL on AWS Linux server via letsencrypt certbot
I have been stuck on this for a while now. I have been trying to get a SSL certificate for free for my website through certbot. As per the instructions given on the website for my configurations, I...
View ArticleSSH connection denied by EC2 instance
I'm trying to SSH into my instance on EC2 but getting permission denied. Port 22 is open in the security group. I set 400 as a permission for the file which is setting that supposedly works in this...
View ArticleDoes a single EC2 Reserved Instances allow for multiple EC2 instances for a...
I understand that EC2 Reserved Instances are a billing feature.I purchase 1 Reserved Instance for an m5.2xlarge in AZa and pay all up-front for the year.Let's say I run 2m5.2xlarge instances in AZa for...
View ArticleSystemd service not starting under custom user, only with root
I'm trying to run a Sonatype Nexus under the custom nexus user, because they recommend not running it not under the root user. I'm on an Amazon Linux 2 EC2 machine and it ran previously successfully...
View ArticleClass 'illuminate\foundation\application' not found in...
I want to deploy laravel project on ubuntu ec2 instance. I have installed laravel project on the server. The problem I am facing is during setup of the web page and also in laravel config settings.I am...
View ArticleDo I have to configure SSL certificates files in nginx.conf file behind AWS...
I have a configuration in AWS EC2 for HTTPS incoming connections.As I am a newbie to this stuff, I have nginx config which in an old-fashioned way I would edit like this:...
View ArticleCan't retrieve MongoDB to local drive using SCP from AWS EC2
I have a Docker container using Strapi (which used MondoDB) on a now defunct AWS EC2. I need the content off that server - it can't run because it's too full. So i've tried to retrieve all the files...
View ArticlePossibility of migration Amazon EC2 Windows images to Google Compute Engine
Maybe anyone know the way how to migrate Windows images from Amazon EC2 to Google Compute Engine and back. I've read about the Linux images migration in GCE documentation, but there are no any info...
View ArticleHow to launch simple web server on EC2 Linux 2 [closed]
This command will allow you to start simple dummy web server on your AWS EC2 instance using Linux 2 AMI which will listen on port 80 and output tag:Name value as response:rm -rf simplehttp &&...
View ArticleUnable to access the EC2 Kubernetes dashboard
I followed How can I access to kubernetes dashboard using NodePort in a remote cluster for testing?My Kubernetes cluster runs in Amazon EC2 instances and cluster services looks like below$ kubectl get...
View Article