Amazon Elastic Compute Cloud (EC2), which allows users to rent virtual computer systems, is part of Amazon Web Services.

learn more… | top users | synonyms

13
votes
1answer
13k views

BUG: soft lockup - CPU# stuck for x seconds

I've seen a few bug reports and questions (on stackexchange and elsewhere) regarding a nagging "BUG: soft lockup - CPU#<n> stuck for <dt>s!". So far, I haven't found any clue as to what ...
9
votes
4answers
36k views

VSFTPD, 553 Could not create file. - permissions?

I've set up VSFTPD on Amazon EC2, with the Amazon Linux AMI. I created a user and can now succesfully connect via ftp. However, if I try to upload something I get the error message "553 Could not ...
8
votes
2answers
10k views

How can I block a range of IP addresses with an Amazon EC2 instance?

I know a certain range of IP addresses are causing problem with my server, 172.64.*.* what is the best way to block access to my Amazon EC2 instance? Is there a way to do this using security groups or ...
7
votes
1answer
11k views

Is there a way to get the Public DNS address of an instance?

I have a project wherein I need to update configuration files each time an EC2 instance is booted with the Public DNS address of the current instance. I'll be using Perl or Sed for this, so that's ...
5
votes
1answer
745 views

Need to ssh from one Amazon EC2 server into another one

Basically I need to be able to connect from one EC2 instance to another using SSH. I run the command ssh -i path-to-pem-file ec2-user@dns-address-of-ec2-instance, and it times out. I set my security ...
5
votes
1answer
235 views

How can I find a Ubuntu package to use with Amazon EC2?

I'm looking to set up a new server on Amazon's EC2 and I wanted to use Ubuntu 11.04 is it is fairly new but not too new. I previously used 10.10 which I think is also very stable and time-tested. My ...
5
votes
1answer
3k views

Connection ec2 instance operation timeout error using ssh

After creating a new instance, I am trying to access my instance like below: ssh -i private_key.pem root@my_instance_public_domain but the operation is timing out. I have updated the private key ...
4
votes
2answers
2k views

What is /dev/xvde1?

I'm having to do with an OpenShift RHEL Linux installation running on Amazon EC2. In the filesystem, there is a device file named /dev/xvde1 mounted to / ... and a device file named /dev/xvde2 mounted ...
4
votes
3answers
432 views

Does bash have a built in caching command available (sort of like mktemp or sponge)?

I'm using the amazon ec2 command line tools, and the ec2-describe-instances tool is a little painful because of the 2-5 seconds it requires to make the request and display the output. I'm looking ...
3
votes
2answers
12k views

Convert Amazon .pem key to Putty .ppk key Linux

I have generated and downloaded a private .pem key from AWS. However, to use Putty in order to connect to the virtual machine, I must have that key in .ppk format. The process of conversion is ...
3
votes
2answers
614 views

Is it possible for a CentOS system on EC2 to not have a bootloader?

I'm attempting to look for grub: [root /]# find / -iname "*grub*" /sbin/grubby /usr/share/man/man8/grubby.8.gz /usr/share/vim/vim70/syntax/grub.vim /usr/share/vim/vim70/ftplugin/grub.vim ...
3
votes
2answers
1k views

ZFS on Linux and Amazon EC2

I have a situation where I need dynamically expandable storage space on a Linux machine running in Amazon EC2, and ZFS came to mind. If I remember properly, ZFS supports a way to dynamically expand a ...
3
votes
2answers
1k views

Create and Delete Amazon EC2 Volumes using a shell script

I am using this following script which does a regular backup of volumes on Amazon AWS cloud service. It creates new snapshots of the volumes and should remove snapshots older than two days. It is ...
3
votes
3answers
366 views

Install pdflatex via SSH on Amazon EC2 instance

I need to install pdflatex on my Linux powered machine (Amazon EC2 instance, didn't decided yet which distribution would be the best so also feel free to give a hint) because I want to connect ...
3
votes
1answer
1k views

Apache 70007 and 70014 errors [closed]

I have a service where mobile phones send a big hash of data to our server which are sitting on AWS behind the ELB. Once in a while we receive 70007 and 70014 errors in the apache error logs, the ...
2
votes
2answers
2k views

What do mkfs.xfs and modprobe do when mounting an Amazon EBS instance?

I'm looking through this guide for how to add an EBS volume to an Amazon EC2 instance, and I've found this little part of instructions hard to follow: Create an XFS file system on the EBS volume ...
2
votes
3answers
2k views

How to upload a file from Windows to Linux?

I'm using Windows. I want to upload a file to Amazon server using putty from my Windows system. How to do this using scp or any other command? How do I download a file from the Amazon server to my ...
2
votes
2answers
1k views

Amazon AWS (Amazon AMI) installing OpenVPN

I'm trying to set up OpenVPN on AmazonAWS. I'm pretty new to Linux so I followed a tutorial. I ran yum -y install openvpn and I received a message saying it was successfully installed. The next step ...
2
votes
1answer
93 views

Fedora 8 - out of date?

We use Fedora 8 (an Amazon EC2 Public Image) for some of our servers. I see that Fedora is at version 20 now, and Fedora 8 is from around 2006/7. What confuses me is that these servers were installed ...
2
votes
1answer
1k views

“tshark: There are no interfaces on which a capture can be done” in Amazon Linux AMI

My goal is to capture packets with tshark in Amazon Linux AMI. While typing tshark in the command line there's an error: "tshark: There are no interfaces on which a capture can be done" How to ...
2
votes
1answer
1k views

How should I set up additional EBS storage on an Amazon EC2 instance?

One of my clients has three EC2 servers on the Amazon cloud, with several attached EBS devices: server 1 and server 2 are ubuntu micro instances, and server 3, the main production box, is a ubuntu ...
2
votes
1answer
1k views

Attempting to update Amazon Route53 using a script, but domain is not being updated

I have several Amazon EC2 instances, running Ubuntu 10.04, with which I'd like to use Amazon's Route53. I setup a script as described in Shlomo Swidler's article, but I'm still missing something. ...
2
votes
1answer
210 views

Virtual Host only works when SELinux is set to permissive - why?

Wondering why my virtual hosts will only work when SELinux is set to "permissive". When SELinux is set to "enforce" my virtual hosts are ignored and default host is shown. Apache/2.2.15 (Unix) Here ...
2
votes
1answer
280 views

Broken sudo on amazon web services ec2 linux centOS

So I had no idea of the dangers of messing with the /etc/sudoers file, and was just trying to make a simple change in there. However, I seem to have put something with incorrect syntax in there, ...
2
votes
1answer
732 views

AWS XML response error signature does not match

I have a bash script that should return the XML response for AWS EC2 regions but I am getting an XML error response as: "SignatureDoesNotMatch" The request signature we calculated does not match the ...
2
votes
1answer
2k views

enable networking inside a freebsd jail

So I'm mostly a linux newbie itself. Let alone freebsd, so please bear with me. I just need some very basic clues to get this to work. I use FreeBSD 9.1 64-bit from the list here. On my freebsd ...
2
votes
1answer
158 views

systemd mount volume using device symlink

I'm trying to have systemd mount a volume by symlink. Unfortunately when I try it times out waiting for the systemd device to show up. # systemctl start mnt-ephemeral0.mount A dependency job for ...
2
votes
0answers
106 views

Limit CPU cycles inside of Xen

I'd like to run some minimum-expectation benchmarks on EC2, but I'm having an issue of high variability in my output data. Specifically, they keep giving me more CPU than I'm minimally entitled to, ...
1
vote
1answer
653 views

What is the optimum swap size on Linux for a heavily threaded program?

I using an Amazon EC2 server small instance and by default it allows 382 threads per process. However, I wish to run 10,000 threads in a single process. Recently, I learned that this can be done by ...
1
vote
1answer
104 views

Mounting an RAID0 EBS array on EC2

I had a RAID 0 on two EBS volumes running fine on EC2 until the instance was stopped, a snapshot of the EBS volumes created and then restarted again. Now when I go to mount the RAID array I can't seem ...
1
vote
1answer
339 views

What is the official Gentoo AMI?

I would like to use Gentoo on Amazon EC2. What are the right AMI for me to use? I won't be running X unless necessary. I guess I need a server variant, if there is such a thing.
1
vote
1answer
224 views

the right way to synchronise sources on freebsd

Update: I'm happy to report @dartonw 's answer worked and I went and did a checkout and then buildworld and it built successfully in about 6 hours. So I've been having some issues with jails in ...
1
vote
1answer
814 views

vim install on freebsd has taken 5 hours and counting

Ok, so installed portmaster and I'm trying with it, I'm hoping it won't take time. So I've been up all night and my vim installation is still going on. I have an amazon ec2 freebsd server setup. I ...
1
vote
1answer
3k views

Should I run fsck on boot for an amazon ec2 image?

I have an Ubuntu micro instance running on amazon EC2. Recently after logging in I was alerted: *** /dev/xvda1 will be checked for errors at next reboot *** I've rebooted a couple times using init ...
1
vote
1answer
1k views

Driver install, kernel source not found

I am trying to install a NVidia Cuda driver on a Amazon EC2. GPU instance (Amazon Linux AMI (HVM) 2013.09.2 - ami-e9a18d80) following the instructions laid out in a blog. It worked for the last two ...
1
vote
3answers
411 views

Amazon EC2 micro instance large number of IO requests

I'm trying to understand why I have a huge number of EBS IO request on my Amazon EC2 micro instance. I launched the instance roughly 6 days ago and has racked up over 4 million IO requests so far. ...
1
vote
1answer
347 views

Do I need ephemeral storage?

I was running a small instance on Amazon EC2. I'm trying to migrate it to a micro as it requires very minimal processing power. One thing I just learned though, is that micro instances do not come ...
1
vote
0answers
77 views

Virtual Host setup works for one server, not another

Having an issue with my virtual host set up. Used this tutorial as a reference on both: http://youtu.be/wXIJMtwmPCE Apache/2.2.15 (Unix) on both servers. Seemingly Identical httpd.conf file on both ...
1
vote
2answers
896 views

Cannot install libevent on CentOS 6.5

I'm on CentOS 6.5. Specifically, I'm running this AMI: Adobe Media Server 5 Extended. I followed these steps: $ sudo yum groupinstall "Development Tools" $ sudo yum install glib2-devel fuse-devel ...
1
vote
1answer
205 views

How to stop many process like unicorn and sidekiq using single command in certain environment

I am using Ubuntu 12.04. I remotely access remotely EC2 instance, i will stop and start unicorn and sidekiq by following commands cap development unicorn:start cap development unicorn:stop cap ...
1
vote
0answers
96 views

Can't reliably create a directory on startup after ec2 instance mounts its ephemeral drives

This particular instance type mounts two ephemeral drives, in /dev/ and /mnt/. I have to create working directories for one of my services in these paths at startup or the services won't launch. ...
1
vote
0answers
316 views

Amazon EC2 MySQL Failed to Start

I'm having issues starting MySQL after it randomly stopped working a few minutes ago. I'm getting this error while trying to connect: Connect failed: Can't connect to local MySQL server through ...
1
vote
0answers
94 views

Cannot see an EC2 VPN server from another EC2 instance

I'm using openVPN to connect to one EC2 instance from another. The client cannot see the server, however, despite that servers outside of AWS can see the server and successfully negotiate with it. ...
1
vote
0answers
267 views

Unable to connect by FTP to a Debian AWS server (ami-aa46b4c3)

I've launched an AWS instance with the image debian-6.0-squeeze-i386-server-20110323 (ami-aa46b4c3) and I am trying to set up a FTP server. I have tried several ftp servers but nothing seems to work. ...
0
votes
2answers
72 views

Where to look for problems logging in via ssh [closed]

For the past two mornings I have been unable to log into (establish an ssh connection) to an Amazon EC2 instance running the Bitnami node stack (based on Ubuntu) for several minutes. After a few ...
0
votes
1answer
171 views

Changed /etc/ssh/sshd_config. Now can't get to SU. Am I screwed?

To allow one of my users ssh access I added the line AllowUsers user to my sshd_config. I gave the box a reboot and attempted to ssh back in as superuser. I was unable to do so. I have my keys- ...
0
votes
2answers
171 views

Locked out of Ubuntu machine

I recently made changes to my EC2/Ubuntu instances by installing OpenSSH, before I was able to SSH just fine, however now I'm getting this error: ssh: connect to host shopious.com port 22: Connection ...
0
votes
1answer
261 views

What is a good distribution to use that is similar to Amazon Linux [closed]

I'm running the "Amazon Linux" OS/distro in production on EC2, But I'd like to do some local development/testing with VirtualBox VMs. What would be a good distribution to use that is most like Amazon ...
0
votes
1answer
350 views

Why is rewriting in htaccess not working on this server

I'm moving code from a server that served a single domain to one that serves multiple domains. I'm using named virtual hosts to handle the different domains. The url rewriting is not being executed ...
0
votes
1answer
35 views

Memcached on a webserver

We host a Magento webshop hosted by Amazon EC2, and we have speed issues. We're currently looking at moving to another provider. We found one hosting provider where we have a test account now. Speed ...