Work

Request Tracker 3.6.5 broken after updating Cent OS

Can’t locate object method “seek” via package “File::Temp” at /usr/lib/perl5/site_perl/5.8.8/MIME/Parser.pm line 816.

The underlying problem is perl was updated and overwrote the “correct” version of File::Temp that you probably installed when setting up RT and forgot about. To fix this issue


cpan install File::Temp
/etc/init.d/httpd restart

MAKE SURE TO RESTART APACHE! I didn’t, and it cost me probably 2 hours of screwing around with it.

I’m posting this because
http://www.nabble.com/RT-3.6.5-and-Sendmail-error-and-looks-like-perl-error-td15989015.html
Didn’t really mention what the final working solution was.

LDAP+ Sudo +TLS fix

For those of you who can’t get those three to work together, make sure you specify both TLS_CACERT tls_cacertfile- I didn’t and it caused me grief.

ldapifying an ubuntu server

I recently wrote a nice little script in ruby for ldapifying new ubuntu servers- all the server needs is a ssh key set up for root, the rest is cake…

jmorg@util3:~/base_configs# ./ldapify -h
Usage: ldapify --install hostname [$options]
       ldapify --check hostname
       ldapify --uninstall hostname
        --install hostname           hostname to ldapify(foo.pub.local)
        --uninstall hostname         removes ldapification from hostname
    -a, --access_group access_group  access_group that has access to hostname
        --no_group_dn                No access_group limitations- use with caution.
    -c, --clusters x,y,z             clusters in which hostname belongs
        --aliases x,y,z              other aliased hostnames for the host
        --ignore-home                don't mount/unmount home
    -v, --verbose                    enable verbosity
    -q, --quiet                      silence all unneeded messages
    -h, --help                       Show this message

jmorg@util3:~/base_configs# ./ldapify --install log1.pub.local -a devboxes
backing up sources.list...
updating sources.list...
updating package list...
adding nfs entry to /etc/fstab...
Complete.
Mounting home, please wait...
complete.
installing debconf-utils...
patching debconf selections...
installing libnss-ldap ...
symlinking ldap.conf...
copy ssl cert and ldap.conf...
complete.
No Access group was given, using admin_only by default.
backup nsswitch.conf and pam.d files...
complete.
install nsswitch.conf and pam.d files...
complete.
ldap requires the manager password:
please verify the manager password:
store manpass...
installing sudo-ldap...

jmorg@util3:~/base_configs# ./ldapify --uninstall log1.pub.local
restore nsswitch.conf and pam.d files...
complete.
remove ssl cert and ldap.conf...
complete.
removing nfs entry...
complete.
unmounting home...
complete.
removing debconf-utils, libnss-ldap and libpam-ldap ...
removing ldap.conf symlinks...
removing sudo-ldap, restoring sudo...
retore sources.list...
updating package list...
ldap requires the manager password:
please verify the manager password:
jmorg@util3:~/base_configs#

So what all does it do?

  • Sets up ldap authentication of user accounts
  • mounts the nfs-based home directory
  • Sets up ldap-based sudo rules
  • Creates a host entry in the ldap server
  • Adds an entry in the ldap server for the distro’s cluster and ldapified hosts cluster
  • Can completely revert back to the original state

This script takes about 2:45 to run (mostly due to the 120 seconds of waiting for the /home dir to mount), and saves roughly half an hours worth of work. It’s not very stable (pre-ldapified boxes cause it to freak out when trying to re-install/remove) , but it will be a lot of help as we move towards ubuntu as our standard distro.

I wrecked the car.

Whoops. This happened after work on Tuesday. Jackie was at home.

I was on a small service drive that T’d into a 4.5 lane road that was fairly busy. looked left, saw a car with it’s right turn signal on in the right lane. looked right, say a red light. looked left, saw the car with the blinker slowing down as if to turn down the road I was on. looked right, saw the red light turn green, meaning I had about 10 seconds to react. I had been at this intersection for about 3 cycles of that light, and saw this as my oppertunity. as I pulled out, the lady with the turn signal showed me that she actually was meaning to go straight. She sheared off the front of the car from the front of the front tire foreward- bumper, lights, hood, etc. radiator and engine were intact.

Cops gave me a ticket for failing to yield, but I’m gonna try and fight it since she had on her turn signal and failed to add that to her report. The witness on the scene saw the turn signal, but said it was because she was changing from left to right lanes and then just left it on.

So the car has $10k worth of damage because the frame is bent. They’re probably going to total it. I got away with just a sprained wrist.

Oh well, at least we’ll get a new car out of it (probably).

27

Doing another annual recap this year like I did last year.

2006 was a pretty rough year- move from DC Metro back to Grand Rapids, got a crappy job, found out jackie was pregnant, got laid off from crappy job, spent 3 months unemployed, and at the end of November was offered an awesome new job in Troy, MI (the other side of the state). Other than Ian, and the new job, the best good news is we finally have a decent couch- two of them, actually.

Employment

I enjoyed working at CSX a lot, but Virginia started getting to me- a guy threw himself in front of the orange line and it was on the news down there, and I realized I could sorta understand why he did it… that was my hint that I needed to get out of there. The result was taking the first job that could get me back to Michigan.

I ended up taking a contract-to-hire job back in Grand Rapids that paid poorly, treated me like crap, and generally made me come home and curl up in the fetal position. Part of the agreement to even get close to the payrange I was looking for was I had to work 55 hours a week. The problem was I spent all 55 hours each week for 3 months putting out fires and stressed myself so badly that the doctor told me I had to cut back. Five months(August) into the 3 month contract (oh, it was open ended, didn’t you know that?) I was laid off. No severance, just a boot out the door. I wasn’t the only one laid off since the company is apparently not doing as well as they thought they were, but there’s still a lot of bitterness there.

The recruiter flat out lied when he said the Grand Rapids job market had improved- the unemployment rate is still 7% and companies are closing down left and right. I spent 3 months searching for a job in the area when our friend Chris P. offered to hand my resume off to a friend of his who was looking for a linux admin. Three interviews later, they offered me the job for a decent amount of money and benefits. The down side was it’s in Troy, so we’re moving again. This place seems great tho, and I don’t have any of the doubts or negative feelings I had initially about the job in GR.

Family

In July, Jackie and I found out we were going to have a child. It’s a boy, and he’s due on March 10th. We’ve decided on Ian Hawthorn for a name. We’re really excited about it, but to be honest it didn’t help the stress level when I was laid off a month after finding out. We’re looking forward to it, but the new job is complicating issues like lamaz classes and doctor changes.

My brother Jamie is off being a park ranger/professional bum, Brian is still in school, parents are doing good, inlaws are good, grandparents are all doing well and the cats still haven’t been set on fire- can’t ask for more than that.

Hobbies

I finally finished my chainmail shirt. The age difference between rings resulted in some bad discoloration which I tried to fix by treating with vinegar- Unfortunately that completely removed the zinc coating on some resulting in rusting- once I get the cash I plan on rolling it in a bucket of sand to remove the rust, oiling it, and then putting it in a tupperware container.

I played with my guitar quite a bit early in the year, but slacked off later on. I also realized that learning to play the keyboard is going to require more than 25 keys, so I’ve put it off until I have the time and money to get a real keyboard and take lessons. I did manage to pick up a trumpet and restring my violin- I can play a scale on the violin (barely) and can annoy the neighbors with the trumpet. I also bought some new reeds for Jackie’s clarinet and learned how to play a scale.

I got back into ruby and finally checked out this whole rails thing- it’s very cool. I wish I would have kept up with ruby way back when and ignored the nay-sayers.

I’ve also taken up walking- yes, walking. I’ve been walking about 3 miles every other day since we moved back to Grand Rapids- once around the block. Now that we’ve moved, that’ll probably go by the wayside due to the lack of walking partners and Jackie’s general roundness (from Ian).

Hopefully 2007 will see us getting back to where we were last year this time.

New OS: Kubuntu 6.10

Ok, trying out Kubuntu on my new work laptop and I’m liking it quite a bit- the only problems I’ve had so far are with Hibernate (which I think is self- inflicted) and wireless stuff. I’ve figured out the wireless stuff and wanted to mention it for the people out there having the same troubles as I did. First up, a little info on my setup:

Model: IBM T42 (note, not the T42p, which is awesome, the crappier model)
OS: Kubuntu 6.10
Wireless NIC: Intel Corporation PRO/Wireless LAN 2100 3B Mini PCI Adapter (rev 04)
Wireless Driver: ipw2100 1.3

Wireless

There are a lot of choices for network setup, and since I use WPA2 with PSK, I’m going to document that.

in /etc/network/interfaces:
auto eth1
iface eth1 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf.local

in /etc/wpa_supplicant/wpa_supplicant.conf.local
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1
#For WPA-PSK network
network={
ssid="myssid"
key_mgmt=WPA-PSK
proto=WPA2
pairwise=TKIP
group=TKIP
psk="my big secure passphrase"
}

/etc/modprobe.d/ipw2100.modprobe
options ipw2100 disable=0

and that was it- I spent time tinkering with all sorts of things, but I think this was all there was. If I get brave and re-do it next weekend, I’ll make sure to fully document the process.

Hibernate

While trying to get wireless working, I noticed that hibernation stopped working- I’m not sure what I did, but I’m pretty sure it’s my fault- it WAS working originally.

UPDATE
DOH, it helps if the swap partition is mounted so hibernation has someplace to store the data! it’s all working good now.

New Job

So after 3 months of unemployment, I was offered a job over in Troy, so I’ll be moving about 3 hours away from Grand Rapids. The position is for a linux sys admin. Unlike the last place, this one seems like a winner from the get go- much more lively and has a (for lack of a better term) DC vitality, compared to companies in Grand Rapids which sort of feel like they’re recycling coffee grounds and requesting employees bring in their own toilet paper.

I love Grand Rapids, I really do, but for cryin out loud it’s a dead area. I’ve tried to make it work, but this was the last chance. I’m really not planning on coming back (unless there’s a MAJOR change going on). It’s time I move on, get a good job with a stable company, and get a house. Jackie and I are sticking by our “1 year in apartment, then get a house” rule, so we’re looking for a decent sized apartment in the area- preferrably a townhouse with a finished basement and a back yard.

I’ll keep you up to date on developments with the new job.

New Low.

So I just got hit with a new low…

Looks like I’m inelegible for unemployment. Apparently I haven’t been in michigan long enough to warrant helping me out. when I look back on my life, this will be the moment when I said “this is as bad as it got.”

I’m hoping it doesn’t get much worse at least.

The depression that I’m sitting in right how is the soul crushing type where you lose the will to do anything. Hell, I’m only writing this because I’m bored of playing disgaea 2- if that doesn’t tell you how bored I am, I don’t know what will.

So yeah, fuck you Sean. Fuck you for convincing me to trust you on this job.

Pissed off vs. Pissed on

Today I find myself a little of both.

I was called into the confrence room today and told that the company I was contracted to requested that today be my last day.

Yes, I am officially unemployed.

Fortunately I was laid off, not fired- turns out business wasn’t as good as they were hoping and they can’t afford someone to try and fix their broken infrastructure. Since they fired a developer a few weeks ago, and the lead developer put in his 1 week notice today, I can’t say it’s suprising- if they’re getting rid of me after losing two other people, they must be hemmoraging money pretty badly.

The worst part is, not only did I see this coming, but I worked my ass off there knowing it was coming. I was hoping they’d at least have the decency to give me some severance pay, but apparently since I’m just a contractor they don’t feel the need. They did however give me a nice 1 paragraph recommendation letter- I guess that makes up for laying off a guy with a kid on the way who they shouldn’t have hired if they knew they wouldn’t be able to afford him.

I’m pretty pissed off right now because I feel like I made a mistake coming back to michigan- I won’t be able to find work around here since I’m pretty specialized (michigan is Microsoft territory, and at this point I’m pretty specialized in linux) and the economy is crap to boot.

The worst part about all of this is jackie and I went so far into debt to move back and we still haven’t dug out. Now jackie’s pregnant and my hopes for employment are slim to none, and we couldn’t even afford to move somewhere else if we wanted to because our credit cards are maxed out from the last move.

I feel pretty bad for the other sysadmin because they’re gonna crap back on him again and he’s just gonna take it. The Devs are screwed because I did a lot to make their development environment more professional- seperate user accounts, testbeds, standardized development/beta/production servers, version control, etc- most of that will go down the shitter because it will all be neglected if it’s even kept at all. the other sys admin will probably either format them or ignore them.

It’s been a hell of a day, and I need to take a shower still after my walk- then I’m going to bed. If you know of anyone looking to hire a Linux Sys Admin or a perl/php/ruby developer (or some combination of either), send them my way.

stupid dell raid card..

so the devs are having a hell of a time with the new dev server- it’s constantly locking up on certain threads for 30-45 seconds. apache mainly, but occasionally grep and other things. It appears to be completely random. I’ve been pulling my hair out trying to find the problem, and I think I got it nailed down thanks to a post on the gentoo forums (http://forums.gentoo.org/viewtopic-t-189180-highlight-writethru.html) that said to change some settings in the raid card’s firmware… I tested this on the prod machine since it’s not in use yet(they’re both dell 2850’s with the lsi megaraid cards) and benchmarked before and after with bonnie++… here are the results(- is original, + is new):

 Version 1.93c       ------Sequential Output------ --Sequential Input- --Random-
 Concurrency   1     -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
 Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
-prod             7G   331  98 27139  10 17554   4  1156  99 65858   7 371.8   5
-Latency               104ms   41538ms     804ms   19824us   46554us     631ms
+prod             7G   335  98 54977  23 27923   7  1075  99 61596   6 342.9   4
+Latency             76755us     331ms     590ms   12104us   24805us     414ms

Notice the second column under Latency? 41538ms vs 331ms - a 40 second latency when using the dell default settings…

I think this is where my lag issue is coming from… here’s hoping.
I’ll report back when I make the change on dell and see if the devs are still having lag problems.

Update-
so I switched the write policy to ‘write-thru’ instead of write back and changed the readpolicy to normal rather than adaptive… changed the benchbark, but not the problematic behavior- well, actually now, ALL of the devs are locking up at the same time…

Next »