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

learn more… | top users | synonyms (1)

3
votes
2answers
178 views

What is the difference between /sys/block/sda1/stat and /sys/block/xvda1/stat?

On my local machine, I have /sys/block/sda1/stat. On an Amazon machine, I have /sys/block/xvda1/stat. When I run cat /sys/block/sda1/stat or cat /sys/block/xvda1/stat both give 11 fields of output. ...
0
votes
1answer
621 views

how to have root partition LVM for RHEL 5.8 64 bit on AWS EC2

I am new to this and I have to create a RHEL 5.8 Amazon Machine Image (AMI) in which the root partition should be a logical volume. I know how to create a data partition as a logical volume but am not ...
10
votes
4answers
56k 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 ...
10
votes
2answers
14k 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 ...
1
vote
1answer
28 views

How to change FTP home directory in Centos 6

I have created one Linux centOS 6 instance in Amazon EC2 and installed cPanel on it and started running my websites there . The issue i face was when i try to FTP to the instance with following config ...
0
votes
0answers
29 views

etc/apt/sources.list contents for EC2 Instances upon AWS

When I copy an Ubuntu image between regions, the image is customised slightly in the process. Notably the software sources in /etc/apt/sources.list are altered to "local values". I am aware that ...
0
votes
0answers
33 views

Route dies on Ubuntu 14.04.2

So I have this routing setup in EC2 on a Ubuntu machine: 10.50.0.0/24 dev eth0 proto kernel scope link src 10.50.0.163 x.x.x.x via 10.50.0.80 dev eth0 proto static y.y.y.y via 10.50.0.80 dev ...
1
vote
1answer
114 views

AWS Outbound ACL Rules impact on incoming ssh connections

I am making a bastion ssh server on CentOS 7 in an AWS EC2 instance. When I use the following rules in its ACL, I am able to connect to the server just fine: Inbound Rules Allow traffic on port 22 ...
0
votes
0answers
28 views

Remove or decrease JAVA Security openjdk AWS centos instance

How to decrease or remove java security level in CentOS openjdk? I tried removing the java security level but I didn't find any option, my OS is in an ec2 aws machine.
1
vote
1answer
3k 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 ...
11
votes
3answers
16k 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 ...
1
vote
1answer
107 views

Can set up a cron job to copy my server to Amazon S3

I have an Ubuntu 12.04 install on physical hardware. I will then install Geonode on it. The system will be running at a place with variable network capacity. My colleagues will add data and should ...
5
votes
2answers
4k 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 ...
0
votes
0answers
22 views

How to point all domain with ELB dns

In Aws I am creating A ELB(Elastic Load Balancer ) for handling load over instances . my question is in previous we are use single instance and add this instance with an elastic ip . with this ...
0
votes
1answer
531 views

How to convert Ubuntu init script to Amazon Linux AMI init script?

I had a Ubuntu based Amazon EC2 server where I was running my java based application. For this I had written a init script which was running perfectly and as follows #! /bin/sh # set the environment ...
1
vote
1answer
63 views

Prompting for a password on sudo?

I'm creating users using Puppet. Here's the gist of what I'm doing in Puppet: user { 'ntkay': name => 'ntkay', uid => 10000, home => '/home/ntkay', managehome => true, ...
0
votes
1answer
81 views

Subdomain Creation in Amazon EC2 using Nginx Server [closed]

I am using amazon ec2.... My app is written in Ruby on Rails. I am using Nginx Server. How can I create sub-domain and automate it when a user registers like http://user.mywebsite.com?
1
vote
1answer
62 views

rsync with weird files name appended

I'm doing rsync every 10 minutes via cronjob with a 3g Dongle outside on a field. The rsync will send data to my EC2 server and there I can check the files being sent. But I encounter the destination ...
0
votes
0answers
51 views

How to resize AWS-EBS of AWS-HVM?

It's possible to resize AWS-EBS of AWS-EC2(PV).But, when comes to AWS-EC2-HVM it is not possible via snapshot method. What is the procedure to resize EBS of HVM? [root@host ~]# df -h Filesystem ...
1
vote
0answers
37 views

Can't mkdir events No space left on device - EC2 Linux [duplicate]

After put about 5 millions files on a EC2 instance, I can no longer mkdir because inodes are all used. I still have 40Gb space on this EBS! Is there a way to overcome this? Thanks. Filesystem ...
3
votes
2answers
1k views

Building kernel module using dkms, missing headers

I would appreciate, if anybody can help me. 1) I am trying to build kernel module for Ubuntu sever using dkms. Detailed manual is here. 2) When It is building module using this syntax: sudo dkms ...
0
votes
0answers
73 views

Rsync Issue (AWS EC2)

I have spent quite a bit of time trying to Rsync from a remote to a local machine but been having issues with finding the synced files apparently. The command I entered is: sync -avzhe ...
0
votes
2answers
138 views

bash permissions - unknown problem

So strangely enough I have the following problem in a directory inside a script: #!/usr/bin/env bash MAIN_DIR=/home/ec2-user/dir/ LAST_DIR=$(ls -d -t ${MAIN_DIR}*/ | head -1) When I run it I get: ...
3
votes
3answers
2k 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 ...
0
votes
0answers
62 views

Two servers fail to communicate with eachother

I'm hosting an Apache Archiva instance on one server and trying to publish some files from my continuous integration server to that server. However I'm getting the following error when trying to ...
0
votes
2answers
148 views

Setting up a script on an AMI box to create directories - vsftpd, pam, mysql

I'd like to first say I'm a noob when it comes to linux, so please excuse my confusion. I'm trying to setup vsftpd on a amazon ami 64 bit box, free tier micro. Following these instructions, ...
0
votes
0answers
60 views

AWS EC2: Attach ebs volume fails

I'm using a script that uses Amazon EC2 CLI to create ebs volumes from other instances snapshots & attaches them. The failure happens after creating the volumes - sometimes the attach fails. This ...
1
vote
1answer
206 views

How, on ubuntu, to run as a service / run under supervision

I have been given 3 clusters. One is of Kafka, one is of storm and one is of ZooKeeper. I need to make it so that the services start and when stopped, start up again as described in the Zookeeper ...
0
votes
2answers
109 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 ...
0
votes
1answer
3k views

ERROR: init: ttyS0 (/dev/ttyS0) main process (1612) terminated with status 1

I'm getting the following errors every 10-30 seconds on a virtual Red Hat Enterprise Linux 6.5 2 Server on Amazons EC2. Sep 23 09:57:05 ServerName init: ttyS0 (/dev/ttyS0) main process (1612) ...
0
votes
0answers
92 views

Unable to connect the Ubuntu EC2 instance to VPC LAN on AWS using secondary NIC adapter?

Infrastructure setup: VPC is created with 192.168.254.0/24 netwok Private subnet within VPC (Virtual Private Cloud) is created with 192.168.254.0/25 network Public subnet within the VPC is created ...
0
votes
1answer
509 views

wget 403 forbidden error on AWS

I'm not the most talented developer out there, and the question I'm asking may be basic, but I need some help:) I used wget to get source content from Seeking Alpha on my AWS server, and have been ...
0
votes
1answer
183 views

Installing Restund on AWS EC2 Ubuntu

I have successfully installed Restund on a Vagrant Machine running Ubuntu. But when I tried to install it on AWS EC2 Instance running Ubuntu, I get an error when starting Restund. Error Message: tls ...
0
votes
1answer
96 views

Bash 4.3 yum repository for Amazon Linux

I'm trying to get bash 4.2 (or a more recent version) on Amazon Linux in ec2. The default repository only has Bash 4.1. I'm looking for a yum repository with a recent version. $ sudo yum install ...
0
votes
2answers
309 views

How do I find and remove Nginx from an EC2 instance?

I want to remove Nginx from my Amazon Linux EC2 server. How can I find it and remove/disable it? Nginx is listening on port 80, and I need access to that port. It would be preferable to not have to ...
0
votes
0answers
12 views

Dynamic action calls are getting through Amazon CloudFront

We have configured CDN to speed up our website. In our website we are doing some ajax calls basically action calls which take some amount of time to get response from origin server because they are ...
3
votes
3answers
462 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 ...
5
votes
1answer
280 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 ...
0
votes
1answer
367 views

Cron Log File Outputs Nothing

I get no output from my cronjob. The script the job is executing is: <?php require '/opt/bitnami/apps/wordpress/htdocs/wp-load.php'; ...
0
votes
1answer
349 views

Mysql database didn't connect through sqlyog or any other mysql software?

I can connect to a MySQL server through a browser and also I can show all database list through PuTTY. But when I try to use sqlyog or running the mysqldump command through PuTTY it shows this error: ...
1
vote
0answers
42 views

Hosting Multiple Websites on Webmin

I set up a couple of Virtual Servers (websites). The problem is, does not matter what URL I use, I will always be redirected to the first one Virtual server I created. Here is the redirective text ...
0
votes
0answers
207 views

Apc is not working in php 5.5

I install APC in ubuntu server where php version is 5.5.9. When I see apc. php it is enabled but it not properly work. In php info APC support Emulated 2nd one apcu is Version 4.0.2 ...
3
votes
1answer
2k 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 ...
1
vote
2answers
4k views

Turn off --skip-grant-tables in MySQL

I'm pretty new to using Linux but am setting up my MySQL databases on an Amazon ec2 instance. I followed some directions I found about resetting the user login pass by using the --skip-grant-tables ...
2
votes
1answer
467 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 ...
19
votes
1answer
22k 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 ...
1
vote
1answer
979 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 ...
3
votes
1answer
1k views

Unreferenced inodes on EC2 linux instance

I have an Amazon EC2 instance which I am using as a NFS file server. It's using a 5x1TB volume RAID0 array. The system is very I/O intensive and files are being written/copied/deleted through the NFS ...
2
votes
1answer
786 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 ...
1
vote
0answers
96 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 ...