肉とビールとパンケーキ by @sotarok

少し大人になった「肉とご飯と甘いもの」

CentOS 5.3 にしたらPlaggerが動かなくなった

yum update してたら、CentOS5.3になった模様。
同時にPerlのいくつかのパッケージにアップデートがかかり、その後Plaggerが動かなくなったってかんじ。

% plagger -c trac-to-irc.yaml
Plagger::Cache [error] Can't load Cache::FileCache. Fallbacks to Plagger::Cache::Null
Plagger::Plugin::Aggregator::Simple [error] GET http://drone.strk.jp/hoge failed: 500 Can't connect to drone.strk.jp:80 (connect: 現在処理中の操作です)
Plagger [error] http://drone.strk.jp/hoge is not aggregated by any aggregator
Plagger::Plugin::Aggregator::Simple [error] GET http://pipes.yahoo.com/pipes/pipe.run?_id=1nwTMamt3RGL3ftk1L3fcQ&_render=rss failed: 500 Can't connect to pipes.yahoo.com:80 (connect: 現在処理中の操作です)
Plagger [error] http://pipes.yahoo.com/pipes/pipe.run?_id=1nwTMamt3RGL3ftk1L3fcQ&_render=rss is not aggregated by any aggregator
Plagger::Plugin::Aggregator::Simple [error] GET http://www.google.com/calendar/feeds/hoge failed: 500 Can't connect to www.google.com:80 (connect: 現在処理中の操作です)
Plagger [error] http://www.google.com/calendar/feeds/hoge is not aggregated by any aggregator


ぼけー。

わかんねーと思いながらCPANいじいじしてたら、どうやら

LWP failed with code[500] message[Errno architecture (i386-linux-thread-multi-2.6.18-53.1.14.el5pae) does not match executable architecture (i386-linux-thread-multi-2.6.18-53.el5) at /usr/lib/perl5/site_perl/5.8.8/Errno.pm line 11.

こんなエラーが出る。これが直接の原因ぽい。
で、探してたら、

んなものを見つける。


んー。
きっとそういうことなんだろうな、と思い、

% locate Errno.pm
/home/sotaro/julius/main/Tiarra/Socket/Win32Errno.pm
/home/sotaro/julius/main/Tiarra/Socket/.svn/prop-base/Win32Errno.pm.svn-base
/home/sotaro/julius/main/Tiarra/Socket/.svn/text-base/Win32Errno.pm.svn-base/usr/lib/perl5/5.8.8/i386-linux-thread-multi/Errno.pm
/usr/lib/perl5/site_perl/5.8.8/Errno.pm
% sudo mv /usr/lib/perl5/site_perl/5.8.8/Errno.pm /usr/lib/perl5/site_perl/5.8.8/Errno.pm.bak

てーことで、なおった。

これって

参考にしたサイトのとおり、rpmで入ってるものとCPANで入ってるものがあれな感じになっちゃってるのが原因だと思うんだけど、CPANってアンインストール的なものは面倒なのか?
よくわからないからmvしちゃったけど。

余談

サーバのログとか、cronのログとかを、sig.rbでIRCに流すようにしてるんだけど、そのおかげで被害は最小限で済んだ。
さすがに個人でやってるやつでalertメールとかうざすぎるから、ゆるふわな感じで情報捕まえたいーって場合は、sig.rb結構おすすめ。てか、便利だ。重宝してます。