Note: Please go to docs.rightscale.com to access the current RightScale documentation set. Also, feel free to Chat with us!
Home > FAQs > Why do my Rightscripts fail to run after changing my instance hostname?

Why do my Rightscripts fail to run after changing my instance hostname?

Table of Contents

Background

When changing your instance's hostname, you may notice that you will no longer be able to run Rightscripts or boot scripts.

Also, you may notice a repeating error similar to this in the /var/log/messages log file -

Nov 14 16:43:06 ip-1-3-6-7 RightLink[13853]: Could not
determine node name from Ohai, will retry in 20s...

Answer

The reason you are unable to run scripts is because our Rightlink agent requires a valid hostname and it needs to be able to resolve the hostname of the instance properly. If it is unable to do so, you will see this error and Rightlink will cease communication with our core servers.

To work around this, we need to SSH into the instance and check that the hostname resolves properly using this command:

hostname -f

If you see output such as this:

hostname -f
Hostname: Unknown hostname

Then we have a problem with the hostname.

To fix it, you can add a hostname alias onto the /etc/hosts localhost entry, like so:

127.0.0.1   localhost   localhost.localdomain your-hostname-goes-here

Once that is saved/changed, you will want to re-verify it is working/fixed with the hostname -f command. We will then want to re-enroll the instance with Rightlink. To do so, simply use this command:

rs_reenroll

You should see the output of Rightlink starting and enrolling on your screen and it should eventually give you your command prompt back.

Still need help?

If you still need help, feel free to open a ticket from the Rightscale dashboard under the Support -> Email link in the top right corner.

Alternatively, email us at Support@rightscale.com or give us a call at (866) 787-2253.

You must to post a comment.
Last modified
21:30, 16 May 2013

Tags

Classifications

This page has no classifications.

Announcements

None


© 2006-2014 RightScale, Inc. All rights reserved.
RightScale is a registered trademark of RightScale, Inc. All other products and services may be trademarks or servicemarks of their respective owners.