Tag Info

New answers tagged

0

The first thing that comes to mind is that the filesystem containing this file could be full. The program would get an error every time it tried to write to the file, but it could be ignoring those. If the EC2 instance has a copy of the strace program, you can use it to get an idea what the program is doing: strace -p pid-of-process will list all of the ...


0

This is macosx, i see this in your resolv.conf dump. this file is used for compatibility. does nameserver 192.168.0.1 work properly? behavior points me, it is not working and proces timeouts with dns contact. other, 192.168.0.1 is local ip in unroutable ip class (not routed over Internet). this should be any local cache dns server. this is working? Have you ...


2

The fact that the timeout is five seconds long could be significant. Some applications (but notably not dig) use getaddrinfo() instead of gethostbyname(); the former, if called with certain arguments, will wait for both IPv4 and IPv6 responses, while the latter will return immediately an IPv4 reply is received. The default timeout for getaddrinfo() in this ...


0

Since nobody had any suggestions, I tested it out using Packstack on two CentOS instances within a VPC and was successfully able to have Neutron create GRE tunnels between compute nodes and was able to communicate over the tunnels between hosts.


0

Try following: <?php $link = mysql_connect('localhost', 'mysql_user', 'mysql_password'); if (!$link) { die('Could not connect: ' . mysql_error()); } echo 'Connected successfully'; mysql_close($link); ?> Replace localhost, mysql_user and mysql_password with your credentials. OR //conection: mysqli_connect("myhost","myuser","mypassw","mybd") or ...


0

If you were using virtual servers before this would be the same. AWS is a simple cloud service with a lot of different options to choose from and gives you some good security features. What I'd do is: Register with AWS. Launch an EC2 instance (This is your standard virtual server) Launch an RDS (This is your database server, separate from your EC2 ...


2

Good question, the Amazon EC2 documentation for CPU Credits in T2 Instances could be more precise here indeed - the introductory blog post New Low Cost EC2 Instances with Burstable Performance provides a better explanation, see the table in the middle: The column labeled "Baseline Performance" indicates the percentage of single core performance of the ...


1

Here's how I got it to work: http://aws.amazon.com/windows/server2012r2/faq/ says: Q: Can I create a Storage Space using an EBS volume? Yes. EBS volumes can be used to setup a Storage Pool. The volumes can be formatted as NTFS or ReFS depending upon your application*. *This is currently only supported on Windows Server 2012 and is not yet supported on ...


1

Amazon Windows AMIs come with the "EC2Config" service installed. If we can make some assumptions about your environment (like... you're not also running some service called EC2Config locally), then you may be able to take advantage of this. If you can list the services available on your machine, you can search for the EC2Config service. Here's an example ...


2

Turns out the underlying hardware clock was in a bad state, and kept overriding the NTP time sync (was pointed in the right direction by https://forums.aws.amazon.com/thread.jspa?messageID=519638). If anyone else is having this issue on EC2, you can contact Amazon to fix the underlying hardware.


1

sendgrid uses password based authentication (config details for that below). It won't care about your IP, or the hostnames you use (myhostname, myorigin, etc). The hostname your server presents to sendgrid in the HELO (or EHLO) greeting is likely to appear in mail headers. Some recipients' spam software may check it, so use something that does exist in ...


1

When you try to access via ELB, do you get any access log or any kind of logging on your application ? If not, thats more likely a IP transition issue between ELB and EC2 instances. Could be application specific, like; do you need a real IP address of the client (like X-Forwarded-For header) ? Maybe, its because of the authentication logic that you use in ...


1

First, most third party SMTP gateway providers support using their service as a authenticated, encrypted relay host: sendgrid documentation Dyn documentation AWS SES documentation mailjet documentation mailgun documentation etc. etc. etc. The key is, you shouldn't have to do access control using IP addresses or hostname. You use encryption (TLS) and ...


0

You can create an ami of the instance. So later you can create an instance using this ami from the point where it been taken for ami


0

In cloud init, if any of the steps fails (i.e. returns an error exit code), the rest of the steps will not be performed. My guess would be that the tee fails and as a result also the mount isn't executed. It would be helpful if you mention how exactly are you using cloud-init: is it using a cloud-config file with runcmd, or are you using a script?


0

If you're specifically seeing this on the root volume, one thing to watch out for is that some AMIs don't seem to have their cloud-init scripts set up properly to expand your root FS to fill the available space. For instance, the AMI was initially created with an 8 GiB root volume, you change it to a larger size when creating a new instance, but when you run ...


0

S3 is not the right tool for your job. S3 is for storing static objects that are accessed relatively infrequently by any specific host. Better options for your needs: A network file share is probably the easiest solution. Network latency won't be great for performance but it'll be better than S3. There's also potential scaling issues but local caching ...


1

I have a similar set up relaying via mailgun. Firstly, you can get the public IP of an instance using: http://169.254.169.254/latest/meta-data/public-ipv4 From within the instance, in my case I use orchestration (ie. Chef + OpsWorks) to automatically create a DNS record in Route53 for the instance on boot. You could probably also use: ...


1

Probably you have standard set of Security Groups as well as one instance of EC2, but remember that you can make multiple Security Groups and multiple EC2 instances, so: You have to assingn Security Group to EC2 instance. Go to AWS website -> EC2 -> Instances -> select your instance -> Actions button -> Networking/Change Security Groups -> here you can ...


0

On ec2 instance, the IP is dynamic, This is precisely what EC2 Elastic IPs are for. Nab an EIP, associate it with your server, and then you can point a proper DNS record to that EIP.


2

You don't place this on the instance. Rather you provide it as the user-data field when launching a new instance.


0

For that, the best solution is, as you said, IPtables at the 3 different machines. Actually, that is not a good solution as the remote ip ($remote_addr in Nginx) will be from Amazon's loadbalancer. Banning that will result in all traffic forwarded getting banned. You'll have to inspect the packets and find the HTTP X-Forwarded-For header, IPtables ...


0

Jumping in on an old answer that started me off on my search. Kudos to Ameer Deen above for the scripts, btw. Found this post which dives in much deeper to PowerShell scripts to fully automate the data-gathering and EBS snapshot process: http://messor.com/aws-disaster-recovery-automation-w-powershell/ Then of course discovered that those were all written ...


0

You may cactch all outgoing (non local) email using mailertable entry, see FEATURE(mailertable) mailertable: . local:catch-all alaises: catch-all: userx P.S. You may use SMART_HOST instead of mailertable,


1

recently i hit the same problem, i know that vsftpd works perfect on centos 6.5. but on ubuntu 14.04 i can not start it, no time to mess with it, just install proftpd. http://askubuntu.com/questions/453784/vsftpd-installation-not-working-on-virtual-server-as-of-14-04 apt-get install proftpd


0

I have not tested this solution, but it seems to fit your requirement. http://william.shallum.net/random-notes/sendmailredirectallmailfordevelopment The second example is the one to use. LOCAL_RULE_0 R$* $#smtp $@example.com $:someone


0

Add EC2 pem key to SSH ssh-add ~/.ssh/KEY_PAIR_NAME.pem


1

Reinstall Failed RPMS I've seen this issue happen when something fails during the RPM transaction. The RPM database can become out of sync with the system. As a result what the system actually has and what RPM thinks is installed varies. TIP: Before doing any of this creat an AMI image so you can easily recover if things completely fail. You can use rpm ...


-1

Elastic IPs working By default, instance in the VPC will only get an IP from a private subnet within the VPC, usually somewhere in the 10.0.0.0/8 subnet. This means that while those instances can access other instances within that same subnet, they won’t be able to connect to the wider internet. One way to give every machine access is to setup a NAT ...


0

I had the same error on a CentOS 6 system. It turns out that I needed to install an additional repository as described in the installation guide for the foreman: http://theforeman.org/manuals/1.5/index.html#3.3.1RPMPackages All RHEL and derivatives require Red Hat Software Collections (RHSCL) 1.0 or rebuild, e.g. Software Collections for CentOS. RHSCL ...


3

Yes, instances are permanently deleted after termination. If you want to keep the server around, assuming you're using EBS root instances, you can stop it, which will not delete the server. Then you can start it again when needed.


0

SQL Server Migration Assistant (SSMA) for MySQL lets you quickly convert MySQL database schemas to SQL Server or SQL Azure schemas, upload the resulting schemas into SQL Server or SQL Azure, and migrate data from MySQL to SQL Server or SQL Azure. You can use this small app and guide on msdn. Get started here : ...


0

Not so much an answer as a work around for me was to convert the Simple XML data object into a standard array: $xml = simplexml_load_file("data.xml"); $json = json_encode($xml); $data = json_decode($json,TRUE);


0

It looks like it's basing the output it gives based on your hostname, so check what's in /etc/hostname and if it's wrong change it to something more appropriate. However, the hostname won't actually be needed to connect, you should just be able to connect to the public IP address that you have given the instance on port specified (8080 in this case) Also ...


0

I suspect you want to be using the "Public IP" and/or "Public DNS" of your server, rather than the "Private IP" or "Private DNS". You can see all of these in the "Description" tab of the instance on the EC2 dashboard. The Private DNS compute.internal domain name will only be meaningful if you are using Amazon-provided DNS. I don't know any reason that ...


1

I am using Chef on Azure but I believe I've discovered the correct setting for this. @hek2mgl was very close, but his method will be overwritten everytime you reconfigure, which I don't think is practical. In your /etc/chef-server/chef-server.rb file, add the following line: chef_server_webui['cookie_domain'] = 'FQDN' Where "FQDN" is your fully ...


0

That dialog comes from apt-get attempting to make your configuration easy for you, but it seems to assume you're installing to a database on the local machine. In this case, you should say no to that dialog; you'll have to manually configure the "phpMyAdmin Configuration Storage". Even though the dialog says you "must" have the database installed, I don't ...


1

Solved the problem I had to format the volume and then mount on my linux installation i.e lsblk to see name of device , in this case xdf, then sudo mkfs -t ext4 /dev/xdf sudo mkdir /mnt/data sudo mount /dev/xdf /mnt/data sudo chmod 777 /mnt/data


0

Solved by using ntpdate -u. It seems that EC2 machine can not connect to an NTP server outside their Availability Zone without this option.


1

For full system backups in EC2, you should go with EBS Snapshots. For data backup in S3/Glacier I would go with S3cmd in Linux systems and Cloudberry Backup tools in Windows (Not free, but worths each dollar). S3cmd is a simple command line tool you can use in your standard backup scripts to push a copy into a S3 bucket. For Glacier rotations, use S3 ...


2

Is it possible to connect to EC2 instance directly? No, this is not possible. This functionality would be trivial for AWS to implement (several other VPS vendors have done so), but they choose not to, presumably to encourage their customers to use EC2 as it's intended to be used - each instance should be able to be discarded and built from the ground ...


-1

Ha... ok... it works when you manually configure network interfaces. I found this.


0

To keep time in sync with ntp servers simply install package ntp and restart the service with /etc/init.d/ntp restart


1

Upstart is an event based system. For your job to execute at a correct stage it may need to wait for particular event(s) emitted by other start up job(s). Possible solutions will differ from system to system and will depend on how upstart jobs are defined and what events they emit. It may also depend on the upstart version installed on the system. Please ...


1

Take this with a grain of salt, but I feel like Dropbox or Onedrive could be a suitable solution.


1

Running a VPN server on the Windows Server instance is likely what you need to allow your clients to access the shared drive. Depending on the security needs of the content, a PPTP VPN is the easiest to setup and least secure, L2TP/IPSec is more secure but more complex and SSTP is the newest technology which works on SSL so its easier to deploy (or so i've ...


2

Edge locations have nothing to do with EC2. They are used by CloudFront distributions. You can use CloudFront for static web site assets, but nothing like SSH access to EC2 instances.


0

Well, first, you don't need to have X actively running locally in any manner for NX sessions to succeed. I can't address your case in regards to MS Azure, but may I suggest going through the struggle of getting the old (and admittedly deprecated) freenx (not free NoMachine) to work? I have had success taking the rpm's from 0.7.3 and adapting them to modern ...


1

The notify_fault script is invoked when keepalived enters the fault state. You want to configure your script using notify_master /etc/keepalived/vrrp.sh


2

The other answers all seem to be correct but they may be missing the point. It seems to me that the real answer is don't do that. I can't imagine a use case that requires you to secure an arbitrary IP address; it seems like a bad idea for all the good reasons mentioned in the other answers. You lose the flexibility of decoupling the name from the IP address ...



Top 50 recent answers are included