Technology Errors

RightScale Stop Recipe From Being Used In RightScript, GIT /tmp/

If you have created a custom RightScript in the RightScale interface that uses git to clone a repository and you are running that RightScript on boot following the RightScale git_repo recipe then you likely are having issues. The problem appears to stem from the fact that the environment variables are not completely cleaned up as expected including $GIT_SSH and possibly others. I have a work around noted below along with a line you can enter in your RightScript to clear the $GIT_SSH ENV variable as well.

Technology Errors

The operation can’t be completed because you don’t have permission to access some of the items

Ever attempt to delete the Trash on OSX and run into an error that says you can’t complete the operation because you don’t have permissions to access some of the items? I am not sure how often this will happen to the average user that wouldn’t already know how to resolve the problem since the chances are high that the file or files created with different permissions required you to change to the root user in the first place. Anyhow below is a better description of the issue along with a screenshot followed by how to resolve the problem emptying your Trash on your Mac.

Code Snippets

Restart Services On RackSpace Managed Nodes That Require sudo Rights

Recently I was working on a project that was using RightScale to manage RackSpace cloud nodes. One of the requirements of the project was to have application nodes scale automatically thus they were required to automatically install software, configure settings, and start services automatically on the RackSpace CentOS nodes being used. Most everything was fairly straight forward however some of the services we were using would not start properly and initially because of the lack of logging from the services we were unable to figure out what the problem was. Below I describe the problem in more detail along with the solution which involved updating a configuration file on the CentOS Linux servers and then restarting the services.

Technology Insights

How to Edit the Path Environment Variable on Mac OSX

I was installing some tools on my mac today which I wanted to have in the path. Specifically I was installing the Android-SDK tools. I wanted to have the adb shell come up no matter which directory I was in. Being a Linux guy I check out /etc/profile but discovered that mac does it just a tiny bit different . Below I will show you two ways to edit your path in mac OSX. One is permanent and one only lasts until reboot.

Technology Insights

sudo: unable to resolve host

I ran in to the weirdest error today.   “sudo: unable to resolve host”. I got this error even running as root which was the really weird part.  I was especially confused because I have been running Linux as my main OS for the better part of 10 years and have never run into this issue. Turns out the solution is very simple and almost elementary however I decided to make a quick post about it.