What just happened to robohash.org?
robohash.org
robohash.org
It's entirely my fault. I screwed up in a few ways, which is what you always see in something like this.
Im on an overnight business trip from Boston to Dallas.. My Real Job wanted me to tour a new datacenter down here.
In any event, I've been running straight, without sleep since yesterday AM when I flew out on a Red Eye, so I.. I'll admit it.. I went to bed.
I was sleeping peacefully from 1AM to 4AM, cradling my old-school, screaming-loud pager secure in the knowledge that all my little servers would alert me if they had problems.. I have Pingdom, PagerDuty, Nagios, Munin, I've got monitoring 16 different ways..
When I woke up at 4AM (3 hours is enough. Why not?) to make my flight back to Boston, I see I've received several hundred text messages. Hrmm.. What is this?
I double-checked the work-servers, but those were fine, and have Other staff to help watch them, and escalate. Checking email, I see Pingdom is patiently explaining that RoboHash is down.
"But WAIT?!", I can hear your exclaim! Why didn't your pager wake you up?
Well, it turns out that old-school pagers are.. Regional. Once I'm outside of NewEngland, it's a cool looking retro piece of trash.
The text messages arrived, but my sleeping brain was able to peacefully ignore them in bliss.
As to what actually happened? Linode migrated my machine to a new datacenter, and rebooted it. I had a bug in my init script, so it didn't start up properly when rebooted.
Basically, I need to create a Ramdisk, then copy the code from the stable position on HDD. This is because a bazillion hits/second would overwhelm the disk if I loaded it manually from disk each time.
Anyway, Nginx was started (hence the error), but the init script was trying to start up my python code, without creating the ramdisk first, so.. RoboFail.
Sorry about the problem. Imagine my embarrassment.
On the plus side, I'm now in a TSA-approved boarding area, so I have a good 20 minutes to fix the init script before my flight back. ;)
A good example that something like this can always hit you, no matter of how prepared you are.
SSL support is in. Just use https://robohash.org/goldfish.png
Also, We can use Gravatar instead of RoboHash, if a user has a Gravatar-
Pass the gravatar-style hash in to RoboHash, and it'll return if it exists. http://robohash.org/620050a4db5104bae758cd75171d64ca?gravata...
You could also just pass the email into Robohash- http://robohash.org/colin@sq7.org?gravatar=yes
But then your email is out on the public internet, so the hashed method is better if you can do it.
With Either method, RH will return a Gravatar if one exists, and if not, it'll return a Sexy looking Robot, custom stamped just for you.
Of course, cache warm-up would remain a possible problem source.
(of course you should have configured the box properly and done a test reboot to see if it would all come up well but as you already wrote there are multiple factors at work here and I'm wondering if Linode is in the habit of taking machines down that are working just fine without their owners consent).
(It appears that the code is BSD-licensed.)
Sorry for the downtime, though. That's embarrassing.
;; ANSWER SECTION: www.robohash.org. 10800 IN CNAME robohash.com.robohash.org.
Just need to fix that little bit :-) Great site BTW, love it.
AFAIK, that URL has never done anything.. But.. Sure! I've set up DNS for it, and added a 301. It'll take a bit for DNS to propagate, but it should ensure it works going forward.
I've only ever used robohash.org previously.
Anyone know similar open source efforts?
[1]: http://unicornify.appspot.com/ [2]: http://unicornify.appspot.com/making-of
https://github.com/e1ven/Robohash
As the pros say, 'Patches Welcome'.