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: Could not determine node name from Ohai, will retry in 20s...
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:
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:
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.
© 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.