Author Archives: Kirrus

bind refuses to restart, debian squeeze

After an upgrade, I’ve noticed a few times that bind has refused to restart or reload, saying:

Stopping domain name service: namedrndc: connect failed: connection refused

This seems to be a permissions bug in debian, quite a long lasting one. In order to cheat-fix it quickly, I do the following:

chown bind:root /etc/bind/rndc.key
chmod 660
/etc/init.d/bind9 restart

That seems to fix it well enough. I think it’s a problem in that bind starts as one user, but runs as another. It may be that 440 are all the perms that are necessary. The debian bug report is here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=169577

Magento Session Files

Magento (the popular open-source online shop system) likes to store its PHP session files in ~/public_html/var/session/

Most debian servers don’t have that in their cron job that deletes old session files.

So, you probably want to set it to store it’s session files in the default location (/var/lib/php5) or alter your cron job (/etc/cron.d/php5)

Fun!

The wind is not your friend

Cycling home tonight, I had just left work’s place, onto a stretch  of road with no streetlights. Picture the scene, it’s just stopped bucketing it down with rain, now spitting. I’m in wet-weather gear, and it’s dark. Quite dark. My backpack has a reflective cover, and I’ve a reflectctive jacket, with a particually annoying LED flashing backlight. (I’m paranoid – shortly will have red LED flashing in my helmet.)

Got out safely, clipped my feet in fine (I now have special shoes that clip onto my pedals), accelerating towards my average 15-17mph on that particular bit of road, the wind decided to push me, hard, towards the edge of the road. A very small shallow there, with a grassy bank. Wheels in the culvert, uncontrollable de-acceleration, equals me flat across the A road, with one car passing me and another just behind it.

Promtly to the sound of car-horns telling me just how close I’d come to getting run over, I dragged myself off the road *sharpish*, and dragged my bike off as quick as I could after I was off. I’ve a couple of very minor abrasions on my ankles. Lucky. Very lucky.

Note to self. When it’s wet and windy, piss drivers off by sticking a meter off from the side. It’s far better than getting run over.

Invalid method in request \x16\x03\x01

So, ran into this one. Firefox is throwing this error, along with ‘SSL_ERROR_RX_RECORD_TOO_LONG’. Turns out, apache was serving plain HTTP on port 443, as it hadn’t been given a default SSL config.

Other causes may be: Corrupted SSL cert (rare). Mis-configured proxy. Not adding “SSLEngine On” after configuring an SSL cert. But mostly, you’re trying to talk HTTPS to an HTTP serving webserver.

`a2ensite default-ssl` (on debian) fixed it. Well, fixed in in that the default server now has a snake-oil self-signed cert, but, you know, fixed it. 🙂

Possible missing firmware on debian squeeze

If you get these errors:
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8105e-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-1.fw for module r8169

or

W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168f-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168f-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8105e-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-3.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-1.fw for module r8169

Do this as root (or using sudo):

#  apt-get install firmware-realtek

Win!

If you have other firmware issues, n1md4 suggested installing: firmware-linux and firmware-linux-nonfree in the comments (thanks!)

London wander 2011 photos #1

I’ve finally downloaded all the photos I took whilst wanding around london for half a day. The majority are rubbish, but a few are quite interesting.

Let’s start with a couple of street scenes. I’ll hopefully post some more sooner or later 🙂

Street scene, laptop, pub, walking

Just need to finish this...

Please don't ticket me! Man, I really hate wardens. I only stopped for a minute to get an ice cream!

Eaccelerator mirror / downloads

Eaccelerator is insanely useful in my line of work. However, their main downloads are down right now, so I’m mirroring the latest version here:

https://kirrus.co.uk/stuff/eaccelerator-0.9.6.1.tar.bz2
https://kirrus.co.uk/stuff/eaccelerator-0.9.6.1.zip

You can see the files sha1sums here: https://eaccelerator.net/wiki/Release-0.9.6.1

Alternatively, if you’re scripting (we are), you can use the following to get my (‘up-to-date’) version:
https://kirrus.co.uk/stuff/eaccelerator-latest.tar.bz2

bz2.. because that’s the version we use here 😉

 

Book Review – Hornet’s Nest, Patricia Cornwell & others

It’s probably about time I got around to tapping out another book review post. So, here goes.

Hornets Nest – Patricia Cornwell

I’ve just finished this one. It’s an interesting book, although slightly confused. It starts off with a serial murder, introducing the main antagonists slowly. The murders, however, are not the books real aim, you know ‘who-dun-it’ by 75% of the way through. It’s more a social/character discourse, with elements of romance mixed in.

The book does start slow, because of the focus on inital character building. However, it doesn’t grab me as similar books have, I assume because I have already become too used to that world, so am not being introduced to much I’ve no experience of.

The book did annoy me though, for one abuse of technology-speak. Yes, techy-speak may be confusing for those not used to it, but email is not passed through more than two UAs, and normally no more than 2 MTAs; a UA is a User Agent, i.e. your email client, so Outlook, Thunderbird, or your web-mail. MTA stands for Mail Transfer Agent, and is one of the computer programs email is passed through as it transits the internet. Specific abuse stems from trying to fill out a 1-dimensional computer tech character.

The book finishes on a slightly strange note, murders solved, good guys slightly victorious (with requisite battering), but the relationships we’ve been following throughout not yet tied off or stable. I assume this is leading to a possible follow up book, but it just annoys me. It’s one reason I like Elizabeth Moon’s work, she does tie up immediate stuff, and leaves characters stable, whilst allowing the greater narrative to hang for the next book.

It’s a good enough read, though not one I’d particularly recommend or lambast.

Killashandra – Anne Macaffrey

This is the second in a trilogy from one of the masters of sci-fi/fantasy. It’s basically a sci-fi romance, but the story is enthralling. One in my permanent collection, this would have been a third re-read. Follows Killashandra as she leaves Ballybran to save a lover’s life, gets caught up in planetary political wrangles, and finds a love she’ll never forget. If you’ve not read this series, and are into Sci-Fi, I’d recommend picking it up. First in the series is ‘Crystal Singer’, Killashandra is followed by the finale, ‘Crystal Line’.

Devil May Care – Sebastian Faulks (As Ian Flemming)

Meh. I finished this book in a day. It’s not a hard read. I saw one of the major twists coming too early, and it’s a pointless boring twist. I can think of at least 3 different better ways to finish this plot.

Basically, read if you want another bond story, but don’t expect it to be a particularly challenging or rewarding read. Of course, the good guys win, but I do like in when they win in a bit more style!

That’s the books I’ve read this week. Now I’m starting to run out of fresh ones. I’m going to be mainly re-reading stuff I guess. Any suggestions in what to look out for gratefully received. Sci-Fi/Fantasy is my preference, but I’ll read almost anything apart from horror. (And mills and boon types.)

Cycle Photo

5 miles 30 minutes. Drink. Photo. Breathe. 5 miles 20 minutes.

Click on each photo for a full-size version. There are some stunning ones (in my biased opinion) a little way below.

New Bike

half-full bottle of water, and a backpack

siloutte

bridge over river

Hidden spiders web

Hidden spiders web, didn't see it till I opened the image at home

blury river framed by wire fence

cloudy river & water-plants

manhole cover rusting

Cloudy Sky

midday sun