Search Results: "ag"

8 January 2006

Andrew Pollock: [debian] Secure APT and the new archive key

I think it needs to be more widely publicised that you need to do something like:
apollock@icarus:~$ GET http://ftp-master.debian.org/ziyi_key_2006.asc   sudo apt-key add -
gpg: no ultimately trusted keys found
OK
to get APT to continue to be able to verify packages.

Andrew Pollock: [tech] Arooga! Potential feed disruption coming soon

I think tomorrow I'll reconfigure Blosxom's idea of what timezone my posts are in from Australia/Canberra to US/Pacific. Carnage and mayhem will undoubtedly follow on the odd few Planet's that I am aware of being aggregated by.

Adam Rosi-Kessel: Popularity Out of Control

This blog has been semi-offline for at least a few hours. Sorry about that. Through an interesting (at least to me) series of events, I discovered that my custom “popularity” hack/plugin was out of control. It started earlier today when one of the the RAID discs on this server gave a SMART error. I’ve never been able to really judge whether SMART errors are “for real” or not—sometimes I’ve had a disc with a serious SMART error that, after another test, will run fine for another year or two without incident. In any case, I wasn’t so worried, since this system is running RAID-5, so a single disc failing, even catastrophically, doesn’t result in any data loss or downtime. I decided to take the disc out of the RAID and run some SMART tests on it. I marked it with mdadm as FAILed (mdadm —fail) and then removed it. Strangely, the disc first passed a short test with no problems, but then ceased to be recognized as having SMART capabilities at all. I’ve had that problem before and never figured it out—the SMART capabilities seem to come back eventually. Not knowing what best to do, I just put the drive back into the RAID to see what would happen. Since the disc had already been marked as FAILed, the reconstruction started from scratch. Although I’ve got a pretty good (2Ghz) CPU and plenty (2G) of RAM, kblockd and md0_raid5 are using up most CPU cycles and everything has slowed down significantly. Reconstruction seems to be proceeding fine, just slowly—it will take 24-36 hours at the current rate. Presumably it would be much faster in single user mode, but I can’t take this server offline. In the meantime, I noticed that my blog had stopped responding entirely, while other blosxom blogs served from this same server were fine (maybe a little more latency than usual). So I started parsing through the differences in my blosxom installation and everyone else’s to see what could possibly be slowing things down so much as to time out the blog. Eventually I identified the culprit: my custom-made “popularity” plugin, which reports the most popular entries on this blog and the number of hits they have received. I hacked it together several years ago. I think at the time I just wanted to see if it would work, with the plan to come back later and fix it. I guess I forgot the “fix it” part. My popularity plugin creates a log file that it reads in each time the blog is accessed, and then appends to that file. Over the years, that file has grown to 17 megabytes. Although this is a huge waste of system resources, I didn’t notice it when the system was running at full speed. With the reduced performance from the RAID reconstruction, however, this meant that my blog never finished loading at all. If you made it this far, you certainly deserve some sort of geek admin award. Congratulations. I deserve some sort of stupid admin award, myself. P.S. Apparently I must have forgotten to check my horoscope today. The laundry machine flooded the basement when I didn’t check the sink into which the laundry machines empties. I should probably avoid sharp objects for the rest of the day.

7 January 2006

MJ Ray: slef-reflection, re-reflected

Someone commented that the last post had a 2005 permalink despite being posted in 2006. Well, behind the scenes, there's been a bit of a change for the new year which wasn't quite ready in time.
Old production method
I fed email to a script that added it to the html page, then another script added that to the RSS feeds.
New production method
I make the html for the post (usually with an editor, but I could render an email or whatever) and then a script builds the RSS from the index.
As far as the outside world is concerned, the only changes should be from .html# to a simple / in the permalinks. Old posts stay where they are for now, until I get around to sorting and archiving them. (Update: ho ho, first upload was a bit wrong in two ways, but this one is better.) (Update 2: ho ho, planet keeps displaying items after they've been deleted from the feed, unlike other aggregators. Sorry, planet debian.)

MJ Ray: From the bit-bucket

No structured article ready to go today, so here's a random round-up of links from the last month: (links are on my page...)

MJ Ray: slef-reflection, re-reflected

Someone commented that the last post had a 2005 permalink despite being posted in 2006. Well, behind the scenes, there's been a bit of a change for the new year.
Old production method
I fed email to a script that added it to the html page, then another script added that to the RSS feeds.
New production method
I make the html for the post (usually with an editor, but I could render an email or whatever) and then a script builds the RSS from the index.
As far as the outside world is concerned, the only changes should be from .html# to a simple / in the permalinks. Old posts stay where they are for now, until I get around to sorting and archiving them.

Martin F. Krafft: Unstable Linux

One thing I will never understand about this Linux hype are the operating system's miserable failures in the wake of hardware problems. Coming home from dinner, I find this all over my consoles:
Message from syslogd@piper at Sat Jan  7 22:53:35 2006 ...
piper kernel: Oops: 0002 [18] 
Message from syslogd@piper at Sat Jan  7 22:53:35 2006 ...
piper kernel: CR2: 0000004000000004
Since then, I cannot start new processes anymore (though apache2 and old processes work just fine), which means I cannot SSH into the box (which is far away from where I am right now), and thus it's become useless. The problem could be anything: corrupt memory, a broken CPU, a harddrive with bad blocks in the swap area, etc... since Linux obviously seems to be able to wall in response to a problem, I would only wish it wouldn't pout as a consequence but handle the event more gracefully. If only I had the time and energy to finally wave goodbye and choose NetBSD... Update: I managed to get a dmesg output:
<1>Unable to handle kernel paging request at 0000004000000004 RIP: 
<ffffffff80152c54> find_get_pages+36 
PGD 72cee067 PUD 0 
Oops: 0002 [18] 
CPU 0 
Modules linked in: rfcomm l2cap ipv6 af_packet ipt_REJECT ipt_state
iptable_filter iptable_nat ip_conntrack ip_tables deflate zlib_deflate
twofish serpent aes blowfish des sha256 sha1 md5 crypto_null af_key usbhid
hci_usb bluetooth raid5 xor dm_mod sbp2 ide_generic ide_cd eth1394
snd_seq_dummy snd_seq_oss snd_seq_midi snd_seq_midi_event snd_seq
snd_via82xx gameport snd_ac97_codec snd_pcm_oss snd_mixer_oss snd_pcm
snd_timer snd_page_alloc snd_mpu401_uart snd_rawmidi snd_seq_device snd
i2c_viapro soundcore i2c_core ehci_hcd via82cxxx ohci1394 shpchp pci_hotplug
sk98lin uhci_hcd ide_core ieee1394 rtc parport_pc parport floppy psmouse
pcspkr serio_raw evdev xfs exportfs sr_mod cdrom sd_mod sata_via
sata_promise libata sg scsi_mod raid1 md unix fbcon tileblit font bitblit
vesafb cfbcopyarea cfbimgblt cfbfillrect softcursor
Pid: 136, comm: kswapd0 Not tainted 2.6.12-1-amd64-k8
RIP: 0010:[<ffffffff80152c54>] <ffffffff80152c54> find_get_pages+36 
RSP: 0018:ffff81007f90dcc8  EFLAGS: 00010002
RAX: 0000004000000000 RBX: ffff81007f90dd08 RCX: ffff81007f90dd10
RDX: 0000000000000001 RSI: 0000000000000002 RDI: ffff81000289f678
RBP: 0000000000000000 R08: 0000000000000000 R09: ffff81007113f670
R10: 0000000000000040 R11: 0000000000000000 R12: ffff8100705e54e0
R13: 000000000000007a R14: ffffffffffffffff R15: ffff8100705e55f8
FS:  00002aaaab730d70(0000) GS:ffffffff8040f940(0000) knlGS:0000000000000000
CS:  0010 DS: 0018 ES: 0018 CR0: 000000008005003b
CR2: 0000004000000004 CR3: 0000000072925000 CR4: 00000000000006e0
Process kswapd0 (pid: 136, threadinfo ffff81007f90c000, task ffff81007f906760)
Stack: ffff81007f90dcf8 ffffffff8015bca7 ffff8100705e54f0 ffffffff8015c905 
       ffff810001172200 0000000000000000 0000000000000000 0000000000000000 
       ffff81000289f678 0000004000000000 
Call Trace:<ffffffff8015bca7> pagevec_lookup+23 
           <ffffffff8015c905> invalidate_mapping_pages+245 
           <ffffffff8018a403> shrink_icache_memory+259 
           <ffffffff8012d144> recalc_task_prio+324 
           <ffffffff8015ca01> shrink_slab+193 
           <ffffffff8015dcaf> balance_pgdat+623 
           <ffffffff8015df37> kswapd+295 
           <ffffffff80144e00> autoremove_wake_function+0 
           <ffffffff8010f0f7> child_rip+8  <ffffffff8015de10> kswapd+0 
           <ffffffff8010f0ef> child_rip+0  
Code: ff 40 04 ff c2 48 83 c1 08 39 d6 75 f0 fb 5b 89 f0 c3 66 66 
RIP <ffffffff80152c54> find_get_pages+36  RSP <ffff81007f90dcc8>
CR2: 0000004000000004
Now, how does a mere mortal diagnose this? This was the third in a series of oopses, the others occurred in a find process... the machine runs a software RAID5, so it really could be anything, right?

Brett Parker: And while I'm on a random whine streak...

Why is it that people use PHP?! Why do people entrust data to this nasty language? Why run mediawiki, for example? MoinMoin is much nicer. PHP is a nasty language, it's non-thread-safe, it's got awful syntax, it's OO design is awful, and debugging it is a small nightmare. I suggest to the world that python is a much nicer language.

Brett Parker: Don't you really hate...

People that claim things in blog posts because they *think* they are right, when even the *SIMPLEST* visit to the softwares website tells you otherwise... As an example to this... Sionide says that XMMS is a port of WinAmp, you can *clearly* see from the XMMS Website that this is *not* the case, the about page clearly states """It was modeled after winamp from the Windows operating system. XMMS is not a port of Winamp but was written from scratch by Mikael and Peter Alm.""" /me slaps Sionide about the face a bit. PLEASE DO AT LEAST A TINY BIT OF RESEARCH, DAMMIT. *sigh*

Simon Richter: Packaging kernel modules

Last night I attempted to get a few more of my packages up to date, specifically, misdn-kernel was my target. This package builds, as good kernel module packages should do, a -patch and a -source package, the former being useful for patching a tree if you absolutely want to have the drivers inside a monolithic kernel, and the second for out-of-tree building. What is puzzling to me is the amount of magic and Makefile hackery required to get a -source package to build correctly. The biggest problem I have is that the Debian standard kernels all have ABI versions and "flavours" (mostly subarchitectures) that get passed along as an EXTRAVERSION (first thing I'm not really sure of) by make-kpkg (or rather indirectly, by defining a variable that contains a variable definition for EXTRAVERSION). Problem is, people are not using make-kpkg to build modules, but rather use m-a or even invoke debian/rules binary-modules manually.

Marco d'Itri: How can I stop gnome-control-center from breaking my keyboard?

The latest release of gnome-control-center contains an updated version of gnome-keyboard-properties which is even more hostile to a customised keyboard configuration. The fundamental problem has not changed: I need to customise the standard keyboard layout configured in x.org (so far I have been using xmodmap), but GNOME will override any change done in ~/.xsession. With the precedent version I was able to remove all configured layouts from the dialog (at the price of an annoying warning dialog at every login: #245460), but the new one helpfully forces me to have at least one valid layout. So, what can I do to make my keyboard configuration GNOME-compatible? Bonus points if you know how to do this without root privileges (editing the xkb database is not a valid answer).

Jonathan McDowell: Beware my study.

Rar. Beware. I've now got the M&S USB missile launcher working under Linux. I hate libusb, it's very badly documented and seems to assume you know the USB spec inside out. Anyway, usblauncher-0.0.1.tar.gz does the appropriate magic (if crudely) and includes a basic GTK2 Perl program to control it. Ian Jeffrey has also produced some code that works in much the same way, but it's only a command line example and I couldn't see a license that allowed redistribution attached to it. It looks like he went about things in much the same way as I did though.

Andrew Pollock: [life] I don't think we're in any danger of running out of Vegemite any time soon...

Vegemite bottles of various sizes Somehow we've managed to accumulate a variety of Vegemite bottles. So many, that we should have enough to last us until next time we get a chance to restock.

Junichi Uekawa: First upload for this new year.

I've uploaded new versions of whizzytex, binfmtc, cowdancer, pbuilder.I started using pbuilder-testsuite for my own packages.My scripts are set up such that unless testsuites pass, they won't be queued for upload.It took a bit of time until all those testsuites passed, but has a fuzzy warm feeling that I've tested those packages.Nice.

Uwe Hermann: My (second) Drupal article has been published

After my last Drupal article in the German + international Linux Magazin(e) from early 2005, my new Drupal-related article has been published in PHP Solutions's issue 1/2006 (13). After I was back from a short vacation without Internet access, I was surprised to see a post by Robert Douglass titled "Uwe Hermann's Drupal article in PHP Solutions is out" on the drupal.org main page. At that point I didn't even know that the article had been published ;-) Robert wrote a short review of the article which outlines the main content. In contrast to my last article which was a general introduction to Drupal, this one concentrated on some specific (probably more advanced) topics instead: multi-site install, l10n+i18n, search engine optimization, and AJAX(-like) user interfaces of the upcoming Drupal 4.7 release. The printed article should be available in multiple languages (German, French, Polish and Italian, at least). There might be a free online version as soon as the next issue of PHP Solutions is published, but I'm not entirely sure. Thanks a lot to Robert Douglass for the review and to Drupal's Benevolent Dictator for Life Dries Buytaert who reviewed an early draft of my article and provided helpful suggestions!

6 January 2006

Marco d'Itri: How the kernel firmware loader works

fEnIo learnt an important lesson about the kernel firmware loader: it (usually) does not work as expected for non-modular drivers. The reason is that the request_firmware() interface is synchronous. Since it's usually called in the initialisation section of drivers, the userspace firmware loader is not available yet if the calling driver is built-in in the kernel. The request_firmware_nowait() asynchronous interface was designed to replace it, but most drivers have not been ported yet. When a driver calls request_firmware(), a uevent is sent by the kernel to udev over a netlink(7) socket, requesting that a specific file is uploaded. udevd runs /lib/udev/firmware.agent, a simple shell script which will look for the $FIRMWARE file in a few directories and then copy it to the designated place in the driver $DEVPATH in sysfs. If the driver is initialised before userspace is started then the loader will not be available, and the request will fail. A possible solution is to run udev in the early userspace environment (initramfs), but just compiling the driver as a module is usually simpler.

Joey Hess: sleep

Gunnar, I'm pleased to inform you that I stayed up until 11 am this morning (and slept till 2 pm), and that the day before I was up until about 8 am (and again, slept till 2:30). This is the first really bad sleep schedule I've had since Oldenburg. I'm glad that this makes someone happy.

Ross Burton: Additions

New year, new colleagues: Iain Holmes and Tomas Frydrych joined Opened Hand this week. It's been great to watch Opened Hand expand over the months as when I joined I was the second employee. I think we're a pretty great team now, Matthew has done well!

Simon Richter: Diverting Google's attention

Day zero was a miserable failure (actually that is the reason I call it "day zero"). Again I slept in and accomplished only little (well, I packaged and uploaded ussp-push). But day one is tomorrow, I lie to myself. :-/ But as this is day zero, tomorrow must be day one, obviously.

Enrico Zini: Server crashes

My server has been crashing a lot, and now I'm home to do some more fixing on it. If you've been sending me mail and didn't get a reply, it's one more reason for pinging me again. Various things were crashing:
  • weird vm failures like Bad page state at free_hot_cold_page errors
  • pyblosxom going wild with memory allocation and getting OOMed
  • sata_nv driver starting to do nothing but dumping pointers on console, really fast
  • occasional kernel panics
This was on kernel 2.6.12. I did not find a way to upgrade to newer ones for sarge on amd64 and get the system to boot: seems to be because some partitions are in LVM. Yet another update of the mobo flash didn't help much. I left memtest86+ running for a night: memory seems to be perfect. I turned off swap and run badblocks on the swap partition, read and write tests: that's ok as well. I'm monitoring internal temperature, both motherboard and hard drives, and the system isn't overheating. So, it was time to upgrade to testing. Thanks to various cool people we have testing-security which makes the idea of running testing on my server a bit less scary. The upgrade brought udev, and (sigh) the random swap of the ethernet devices. I found something here. It works, I have even to say it's cool, although it doesn't work if I use 'eth0' and 'eth1' as device names: gotta rewrite a couple of scripts. Now I'm on testing, and some files are corrupted because of the various hard drive-related crashes. Ganneff and Yoe nicely pointed me at debsums, so let's have some fun:
debsums -a -c 2>&1  tee debsums-report.log
not so cool things come out. Among them, a list of packages that are not using dh_md5sums. Bad bad: people, please build packages with that: it's nice and comfy. Luckily debsums reports them and I can just apt-get install --reinstall them. Another cool thing of debsums, Ganneff pointed out, is that when it's installed and you install a package that doesn't have the md5sums inside, then debsums will compute and store the sums. So, if you don't have debsums installed, it seems to be a good idea to do it now. Ok, so now I'm on 2.6.15. As a side effect, the onboard gigabit ethernet card is now supported: cool! Now let's see if it holds up, and then, since now I'm on etch, I could as well enjoy it and start playing with Rails :) It could even be an opportunity to replace pyblosxom. Any good Rails blog around? I couldn't find any who is also available in Debian :(

Next.

Previous.