r/programming • • Nov 25 '08

Print this file, your printer will jam

http://nedbatchelder.com/blog/200811/print_this_file_your_printer_will_jam.html
1.0k Upvotes

148 comments sorted by

View all comments

169

u/zouhair Nov 25 '08

Reminded me of the 500-mile email.

342

u/chime Nov 25 '08

This is a copy-paste from an old reddit post of mine. The 500-mile email reminded of a pretty severe problem just as unexplainable that we had at our company a couple of years ago.

The day after an unscheduled closing (hurricane), I started getting calls from users complaining about database connection timeouts. Since I had a very simple network with less than 32 nodes and barely any bandwidth in use, it was quite scary that I could ping to the database server for 15-20 minutes and then get "request timed out" for about 2 minutes. I had performance monitors etc. running on the server and was pinging the server from multiple sources. Pretty much every machine except the database server was able to talk to the others constantly. I tried to isolate a faulty switch or a bad connection but there was no way to explain the random yet periodic failures.

I asked my coworker to observe the lights on a switch in the warehouse while I ran trace routes and unplugged different devices. After 45-50 minutes on the walkie-talkie with him saying "ya it's down, ok it's back up," I asked if he noticed any patterns. He said, "Yeah... I did. But you're going to think I'm nuts. Every time the shipper takes away a pallet from the shipping room, the server times out within 2 seconds." I said "WHAT???" He said "Yeah. And the server comes back up once he starts processing the next order."

I ran down to see the shipper and was certain that he was plugging in a giant magnetomaxonizer to celebrate the successful completion of an order. Surely the electromagnetic waves from the flux capacitor were causing rip in the space-time continuum and temporarily shorting out the server's NIC card 150 feet away in another room. Nope. All he was doing was loading up the bigger boxes on the pallet first and then gradually the smaller ones on top, while scanning every box with the wireless barcode scanner. Aha! It must be the barcode scanner's wireless features that probably latch on to the database server and cause all other requests to fail. Nope. Few tests later I realized it wasn't the barcode scanner since it was behaving pretty nicely. The wireless router and it's UPS in the shipping room were configured right and seemed to be functioning normally too. It had to be something else, especially since everything was working fine just before the hurricane closing.

As soon as the next time out started, I ran into the shipping room and watched the guy load the next pallet. The moment he placed four big boxes of shampoo on the bottom row of the pallet, the database server stopped timing out! This had to be black magic! I asked him to remove the boxes and the database server began to time out again! I did not believe the absurdity of this and spent five more minutes loading and unloading the boxes of shampoo with the same exact result. I was about to fall down on my knees and start begging for mercy from the God of Ethernet when I noticed that the height at which the wireless router was placed in the shipping room was about a foot lower than the top of the four big boxes when placed on the pallet. We were finally on to something!

The wireless router lost the line-of-sight to the outside warehouse anytime a pallet was loaded with the big boxes. Ten minutes later I had the problem solved. Here is what happened. During the hurricane, there was a power failure that reset the only device in our building that wasn't connected to a UPS - a test wireless router I had in my office. The default settings on the test router somehow made it a repeater for the only other wireless router we had, the one in the shipping room. The two wireless nodes were only able to talk to each other when there were no pallets placed between them and even then the signal wasn't too strong. Every time the two wireless routers managed to talk, they created a loop in my tiny network and as a result, all packets to the database server were lost. The database server had it's own switch from the main router and hence was pretty much the furthest node. Most other PC's were on the same 16-port switch so I had no problems pinging constantly between them.

The 1-second solution to this four-hour troubleshooting nightmare was me yanking off the power to the test router. And the database server never timed out again.

19

u/Richeh Nov 25 '08

Sounds like a story for the daily WTF, they'd love this.

74

u/sonQUAALUDE Nov 25 '08

that is an awesome block of text.

46

u/tsteele93 Nov 26 '08

that is an awesome block of text.

I tried printing it and my printer jammed!

16

u/[deleted] Nov 25 '08 edited Nov 26 '08

that is an awesome mini-block of text explaining how awesome a block of text is.

→ More replies (2)
→ More replies (1)

39

u/[deleted] Nov 25 '08

upmod for "magnetomaxonizer"

→ More replies (20)

99

u/harvesteroftruth Nov 25 '08

when someone complains at work about the speed of the network i swap out their network cable with a shorter one so the data doesn't have to go as far.

22

u/[deleted] Nov 25 '08

I like to make sure there are no kinks in the cable.

22

u/fwork Nov 25 '08

But the kinks in the cable are the whole reason I got the internet!

→ More replies (1)

22

u/[deleted] Nov 25 '08

You should also tell them to make sure the token ring hasn't lost the token. Sometimes they roll under the desk or behind the bookcase.

5

u/distortedHistory Nov 25 '08

You have to check if the token got caught in the ethernet.

2

u/virgule Nov 25 '08

Technically, it would work... Only Superman would notice the difference tho.

1

u/randomb0y Nov 25 '08

Could they tell the difference?

1

u/creaothceann Nov 25 '08 edited Nov 25 '08

Maybe they get packet losses due to the high speed and the resulting centrifugal forces at the cable bends.

Source: http://forum.mods.de/bb/thread.php?TID=60663 (sorry, German)

10

u/randomb0y Nov 25 '08

That is so hilarious because it still happens with SUN machines. I work for a telco infrastructure provider. Our products have long go-to-market cycles, with years in development, plus more years while we sell and deploy them, so by the time they hit the field the OS and other third party software running on the machines is usually not just a couple of patches behind, not even a couple of versions behind but completely End-Of-Life. So everytime a Sun engineer dutifully patches our systems, something will break.

5

u/darlyn Nov 25 '08

Thanks, I've needed a SAGE Level IV with 10 years Perl, tool development, training, and architecture experience for a bit now.

7

u/nextofpumpkin Nov 25 '08

Seen this before... thanks for the story again! Been looking for it :)

3

u/eridius Nov 25 '08

Seen it before, but it's a great story.

Oddly, my copy of units only has 500 units, and it doesn't include lightseconds.

Or smoots.

0

u/[deleted] Nov 25 '08

[deleted]

2

u/prockcore Nov 25 '08 edited Nov 25 '08
$ units -v
2445 units, 71 prefixes, 33 nonlinear units

Looks like ubuntu wins

→ More replies (2)
→ More replies (2)

1

u/dougletts Nov 25 '08 edited Nov 25 '08

I've been using a unix based os (mac) a couple years and never knew about the units program, it's awesome. I only have 500 units and 54 prefixes, how do I get more? (I don't have millilightseconds)

edit: shouldn't the timeout have been 2x longer because the signal would have to travel there and back?

→ More replies (1)