Quantcast
Channel: Active questions tagged amazon-ec2 - Stack Overflow
Browsing all 29243 articles
Browse latest View live
↧

Nginx trys to download file instead of displaying

I install Nginx and have a subdomain and domain. The subdomain has php5-fpm and wordpress. It works fine and is in one sites-available file symlinked to sites-enabled. The domain doesn't have php and...

View Article


Image may be NSFW.
Clik here to view.

Double slash in URL is automatically converted in single slash in...

I am working on one site where I need to show 404 pages when someone adds double slash in URL.I have written logic to check REQUEST_URI and if there is double slash then I am showing 404 pages...But...

View Article


How to find Amazon EC2 AMI only have the id?

What I have is AMI id (something like this ami-06358f49b5839867c) The case was AMI i see in this Karamel scriptHow do I find information about that AMI like Name, Region, ...?

View Article

Too many conenctions error on AWS-EC2 (Laravel, MySQL) - SQLSTATE[HY000] [1040]

I had a use case of handling 100000 requests per minute & each request consists of 2 MySQL queries. Problem is that the server is able to handle the request(confirmed through the https logs) but...

View Article

AWS ELB Load Sharing Configuration

We have 3 EC2 Instances(Apache Web Server) running under AWS ELB, it sharing load correctly but whenever any of Web Server down i.e. Web1 having some issue i.e. Disk Full or Apache Crash then still ELB...

View Article


Training with pytorch works locally but gets stuck on AWS

We are trying to train our networks on the AWS Cloud, implemented with PyTorch. Those trainings work on our local computer installed with 2 GTX1080ti. However, when we try to use the NVIDIA AMI with or...

View Article

return self.request('POST', url, data=data, **kwargs) TypeError: request()...

Im trying to create an incident to the server which is hosted on another ubuntu machine. I saved the below code as test.py file and when i execute this from a local ubuntu machine it works fine, But...

View Article

Segmentation fault on every command line in Ubuntu 16.04

I have started getting segmentation fault (core dumped) error message on every command I enter on this EC2 instance. It is running Ubuntu 16.04. I was preparing the machine with Microsoft RDP via SSH...

View Article


Secrets manager extremely slow in EC2s via awscli and boto3

I'm writing a flask API in pycharm. When I run my code locally, requests using boto3 to get secrets from secrets manager take less than a second. However, when I put my code on an EC2, it takes about 3...

View Article


Amazon ssh_exchange_identification: read: Connection reset by peer: when...

I went on to my amazon ec2 successfully and I have been experimenting around. I found it annoying that I needed to always run sudo on everything so what I decided to do was to go to the route directory...

View Article

Image may be NSFW.
Clik here to view.

EC2 CPU utilization hits 100% everytime in a machine where a drupal site is...

I have my production drupal website running on EC2. Recently we noticed that our EC2 CPU utilization is hitting 100%. I checked my site traffic, not much users are there. I checked the process running...

View Article

how to load pickle model in linux system

I have built Xgb model with xgboost package in python. I saved the model using pickle and joblib which works perfectly in my windows 10 system. But it is giving error in AWS instance I am trying to...

View Article

launching R in AWS EC2

I am trying to launch an R instance in AWS EC2. I have opted for the free tier and use the Amazon Linux AMI. In user data I have specified in the following manner to install R and Rstudio: #!/bin/bash...

View Article


Image may be NSFW.
Clik here to view.

AWS batch job on ECS Instance produces Read only error

I am trying to run a batch job that worked just fine last week and now for some reason everytime I run it I get the following error: [Errno 30] Read-only file system: '/root/.aws/credentials'The error...

View Article

No module named 'virtualenvwrapper'

I am working to set up a Django project on Amazon EC2 with an Ubuntu 14.04 LTS instance. I want to write my code using Python 3. I've been advised that the best way to do this is to use...

View Article


Can you switch from an Elastic IP address to a pooled public IP on an EC2 in...

I currently have a legacy instance that had an Elastic IP address assigned to it.I have moved this instance to a VPC in a public subnet, and no longer need the Elastic IP address on it. If I remove the...

View Article

AWS Resource Groups across accounts

Is there a way to create resource groups in a central IT account that lists resources from another child account? I am trying to run automation through SSM from one central account to take effect in...

View Article


AWS Security Group and IAM Role

To connect my ec2-instance to S3 or RDS, I usually need to give ec2 instance a role with appropriate permissions, correct? If I have my ec2-instance in one SecurityGroup and s3/RD3 in another security...

View Article

Multiple Containers Sharing Single GPU

I have configured an ECS service running on a g4dn.xlarge instance which has a single GPU. Inside the task definition I specify the container definition resource requirement to use one GPU as...

View Article

unable to resize root partition on EC2 centos

i created my EC2 Machine using Community Image of Centos 6.3 x64. i have added a 35 GB disk. Now when i do #df -h Filesystem Size Used Avail Use% Mounted on /dev/xvda1 7.9G 1.2G 6.4G 16% / tmpfs 7.3G 0...

View Article
Browsing all 29243 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>