Waiting for a planned maintenance window is so boring… So I am basically holding my breath and keep my fingers crossed for a DBA to not wreak havoc, cause general breakage across our environment and hoping for never getting the cue to start cleaning things up.


I had the strangest problems with a LAMP-server running a WordPress blog the other week. The only error messages from /var/log/httpd/error_log I found that seemed relevant was:

[error]  End of file found: apr_() file_read_full() failed

After some googling I found that file_read_full() came from mod_sflow and after that I found the issue quoted below in their bug-tracker.

Finally got to the bottom of this. I hadn’t realized that there was a difference between a SIGHUP restart and a graceful(SIGUSR1) restart. Unlike other daemons the log-rotation for apache typically does a graceful (SIGUSR1) restart, and this is the one that was being handled badly by mod-sflow 1.0.3 — although the error was only exposed if the server was relatively busy at the time.

https://code.google.com/p/mod-sflow/issues/detail?id=4

In our prepackaged logrotatate-script from the CentOS rpm Apache got reloaded, not restarted when logrotated.

 /var/log/httpd/*log {
    missingok
    notifempty
    sharedscripts
    delaycompress
    postrotate
        /sbin/service httpd reload > /dev/null 2>/dev/null || true
    endscript
}

I added copytruncate and changed reload to restart in the logrotate script and we’ll see if the problem still occurs.

References:


I had an interesting day at work today trying to untangle some legacy shit and merging old stuff into a brand spanking new monitoring cluster.

It was a lot of iterating through the same stuff over and over. Breaking stuff into pieces and finding out what it’s supposed to do. And trying to read the manuals available.

I felt like the dog meme above:

“LET ME IN I NEED TO GO BACK OUT AGAIN!”


  • (via The Phoenix Project: A Novel About IT, DevOps, and Helping Your Business Win | IT Revolution)


Two videos from Stockholm Ruby Usergroup’s meetup in November.




One of the best books I have read this year is Thomas A. Limoncelli’s Time Management for System Administrators.

It is somewhat dated in places (with references to PDA’s which mostly been replaced by mobile phones and other devices) but the general lessons are good and sound. I would recommend it to every one who struggles with juggling incidents, projects and customer obiigations as a System Administrator.


  • Recently I have been struggling to learn some Python and used a lot of different resources. The two that completely stand out as awesome introductions are:

Learn Python the hard way
How to Think Like a Computer Scientist
Both are online courses/books that are free to try out and use but also come in printed form if you pay for it.

Recently I have been struggling to learn some Python and used a lot of different resources. The two that completely stand out as awesome introductions are:

Both are online courses/books that are free to try out and use but also come in printed form if you pay for it.


Yesterday I went to a meetup hosted at Spotify.

The talks where:

  • Security Loves DevOps by James Turnbull from Puppetlabs
  • Puppet Labs: The State of the Nation by James Turnbull from Puppetlabs
  • Test Automation at Spotify by Kristian Karl from Spotify

The talk on bringing Security together with Development and Operations resonates well with the whole DevOps culture and I can’t get enough talks on the subject.

It was interesting to here from Puppetlabs and James about the somewhat strange design choices they done earlier on and nice to hear about the fixes planned. I also like their focus on transparency and investments in a more engaging community. I look forward to see what Puppetlabs planned for the next couple of years.

The last talk about testing at Spotify was educational, and as I am a operations guy and do not worry much about end users experience in my day to day work, it put things into perspective. We all have to mind our customers! It was nice of Spotify to show us some of their techniques for testing and educational to see a live demo off the login test.

All in all it was a great evening and it’s always nice to get some nice beers and some food for free. Big thanks to the Devops meetup group!


Gitlab: Self Hosted Git Management


I read an article in Admin Network and Security about using Kanban as a System Manager. One of the points in the article was that there’s a couple of reasonable choices for selecting a web app for your Kanban needs. I’ve tested all the tools linked here and my pick would be Trello but your mileage may vary. They are all great applications of the Kanban methodology and worth a try.


All videos published by PuppetLabs on their YouTube channel. All filmed at PuppetConf 2012.


Puppet at GitHub, from PuppeCconf ‘12.