Archive for the ‘Web’ Category

Back online

Sunday, March 20th, 2011

Shortly after moving my blog to an EC2 instance I received an ominous email stating:

We have noticed that one or more of your instances are running on a host degraded due to hardware failure.

The risk of your instances failing is increased at this point. We cannot determine the health of any applications running on the instances. We recommend that you launch replacement instances and start migrating to them.

After a bit of searching around it seemed that, as my instance is EBS backed, I should just need to stop it and restart it and, in all likelihood, it would move to another host. Sounded simple enough but the stop seemed to be taking forever. After downloading the command line tools I tried to force the stop but still no luck – except when I logged in again the following night it was finally showing as stopped. Unfortunately, when I tried to start it I received the following error: “Server.InternalError: Internal error on launch”.

I posted a question on the EC2 forum and, as you can see, was told that the root volume was in an “abnormal attachment state”. You’ll also see that my attempts to force a detach via the AWS Management Console appeared to fail or at least, the console thought the volume was still attached and therefore wouldn’t let me reattach it. Reverting to the command line utilities again allowed me to successfully detach and reattach the volume and then start the instance. Another delay whilst the DNS refresh took effect (perhaps I should try out an Elastic IP) and, about three days after I first hit stop, the site is finally back online. I’m putting it down as a learning experience!

Server hacked

Wednesday, March 9th, 2011

When attempting to post the image for my last blog entry, it failed to be resized. When I logged in to the server to see what was up with ImageMagick, I didn’t appear to have permission to execute ls. Or ps. Or netstat… A quick Google suggested that these were the hallmarks of a rootkit attack. Unfortunately the files had been modified prior to the oldest Slicehost backup that I had. At this point I realised the server was still running Intrepid, limiting my chances of picking up packages to detect and remove rootkits. After a reboot of the server I discovered that I had lost all connectivity. Booting up a Slicehost rescue image I was able to retrieve all of the data I needed. Now to get things up and running again. Earlier in the year I had been playing around with a free micro-instance on EC2 and this seemed like the ideal opportunity to switch across. The instance is running Apache rather than nginx as on my Slicehost image. This needed a bit of tuning down to prevent segmentation faults. Everything seems to be running smoothly now. I just need to switch the DNS records away from Slicehost and then I’m done.

Street View Fame

Monday, March 22nd, 2010

Back in October ’98 I blogged about the arrival of the Google Street View car in our road. The data for our area has finally been made available and I’m glad to report that Emma (with short hair) and I can now claim our moment of fame. I’m disappointed that we don’t get to feature twice despite crossing the road whilst the car turned at the end of the cul-de-sac. Having moved house since you’re not likely to find us in the same spot again!

Entries close

Friday, February 20th, 2009

Entries for the JOK Chasing Sprint closed this evening which was a great relief. This was to have been the year of the Web 2.0 entry system but, in reality, other commitments meant that my annual rewrite of the system only got as far as a stateless interface. This should stand me in good stead for next year though… Rails still continues to be a pleasure to use and the more I learn (I splashed out on the PDF version of the soon to be released Agile Web Development with Rails: Second Edition) the better it gets. New improvements to the development process this year were Git for version control and Capistrano for deployment. These certainly gave me more a lot more confidence in making updates to the live system.

(more…)

WordPress upgrade

Friday, January 9th, 2009

I’ve finally had a chance to upgrade to WordPress 2.7. It’s relatively painless since I’ve switched to updating via Subversion. The only problem I hit was with text widgets. I was seeing an error along the lines of “Warning: array_keys() [function.array-keys]: The first argument should be an array in wp-includes/widgets.php on line 1044″ which, if you Google it, currently appears at the top of a whole host of other people’s blogs. Deleting all (three) of my text widgets and recreating them seemed to fix the problem. It’s good to see that threaded comments have finally made it in to the base product. I’ve previously experimented with a couple of plugins but never turned them live for users as I’ve never been entirely happy with the way they’ve been implemented. (As a consequence though you’ll see that some historical posts already have threaded responses from me.) I have to say that, right now I’m not a big fan of the revamped admin pages but that may be just lack of familiarity…

Rails update

Saturday, November 15th, 2008

It’s that time of year where I get my online orienteering system out of mothballs ready for the next JOK Chasing Sprint. My first task was to update the application to the latest Rails 2.1.2 which proved to be harder than I had anticipated. I’m used to working with enterprise software where it’s a given that you can’t break users’ existing applications.

(more…)

Day off

Tuesday, October 28th, 2008
Manor Farm Hen

I had an enforced day off work when the nursery refused to let Emma in with a bout of conjunctivitis (although interestingly the information we got from the nurse included guidance from the Health Protection Agency that eye infections were not a reason to exclude a child from school or childcare). Emma and I made the most of the opportunity (and sun) and headed over to Manor Farm Country Park for much of the day.
(more…)

Thursday @ WSTC

Thursday, May 8th, 2008

Went along to see my UK colleague Andy Piper‘s presentation on "Using Social Software to Improve Your Effectiveness at Work". Andy’s an engaging speaker and his presentation was well thought out and put together. As a result I signed up for a twitter account but we’ll have to wait and see whether it gets much use let alone improving my effectiveness at work. It did also prompt me to revisit an internal file sharing tool which, having previously not realised that access could be restricted, I had discarded as much of the material I want to share is of a confidential nature.

(more…)