RT attachment corruption on RedHat 9

Howdy guys,

I’ve been reading your postings from a few weeks back relating to
attachment corruption on RedHat 9.

Have you managed to nail-down the problem yet? I’m having exactly the
same problems you’re experiencing, and also only on RH9 - my Gentoo box
is fine. LANG=C doesn’t completely fix the problem.

Seems like I should bite the bullet and nuke the RH9 box…

Thanks,
G

Graeme Pyle wrote:

Howdy guys,

I’ve been reading your postings from a few weeks back relating to
attachment corruption on RedHat 9.

Have you managed to nail-down the problem yet? I’m having exactly the
same problems you’re experiencing, and also only on RH9 - my Gentoo box
is fine. LANG=C doesn’t completely fix the problem.

Seems like I should bite the bullet and nuke the RH9 box…

Thanks,
G

The attached patch seems to clear up all problems here. Both RH9
installations and Fedora Core 1.

-Tim
Programmer, Outsource Financial Services, LLC.
tgerla@outsourcefinancial.com

attachment.patch (654 Bytes)

There is a bug in certain mod-perl version (I don´t remember the number, but
it comes with both RH8 and RH9) that prevents mod-perl posting more than 2.8
KB, you should check that too and I´m sure somebody post it to the list a
few months back, by the time 3.0.6 was released.-----Original Message-----
From: Graeme Pyle
To: danie.marais@attix5.com; myk_lists@yahoo.ca; iain.price@post.serco.com
Cc: rt-users@lists.fsck.com; Paul Kane
Sent: 18/11/2003 07:17 p.m.
Subject: [rt-users] RT attachment corruption on RedHat 9

Howdy guys,

I’ve been reading your postings from a few weeks back relating to
attachment corruption on RedHat 9.

Have you managed to nail-down the problem yet? I’m having exactly the
same problems you’re experiencing, and also only on RH9 - my Gentoo box
is fine. LANG=C doesn’t completely fix the problem.

Seems like I should bite the bullet and nuke the RH9 box…

Thanks,
G

rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

Tim Gerla wrote:

The attached patch seems to clear up all problems here. Both RH9
installations and Fedora Core 1.

I applied this patch to our RT instance and it fixes the broken
attachment issue I reported yesterday. Thanks!

Hi folks,

Thanks for all your help - I’ve finally managed to solve my problem :slight_smile:

I still have attachment corruption problems running FastCGI under RH9
after trying everything suggested, but under ModPerl it works just fine.
My LANG environment variable was set incorrectly when I built
mod_fastcgi, so I suspect that that may also have something to do with
it (I just don’t have the energy to rebuild mod_fastcgi again ;-).

I also noticed that if I look at /proc/123/environ (where 123 is the PID
of the fastcgi process), it is empty. I expected to see a LANG=C in
there somewhere - which I do see for the Apache processes - but I don’t.
I’m not sure how to change that.

Anyhow, I’ll just go with ModPerl on RH9. FastCGI works fine on my
Gentoo box.

Thanks,

Graeme

Florian Weimer wrote:

Graeme Pyle wrote:

I’ve been reading your postings from a few weeks back relating to
attachment corruption on RedHat 9.

Have you managed to nail-down the problem yet? I’m having exactly the
same problems you’re experiencing, and also only on RH9 - my Gentoo
box is fine. LANG=C doesn’t completely fix the problem.

Seems like I should bite the bullet and nuke the RH9 box…

Same feeling here – what I finally ended up doing was to build an
OpenPKG instance with only the exact items I needed to run Apache 1.3,
mod_perl, MySQL, etc. OpenPKG is available at www.openpkg.org. Doing
this effectively keeps the various bad things in RH 9 separated from my
RT requirements – I really only care that the kernel and supporting
processes are running correctly (we hope that is true at least). Sad
thing is we originally upgraded to RH 9 to ensure we had perl 5.8
available; had I considered the OpenPKG route before, we could have kept
things at the much more stable RH 7.3.

The actual installed package list in that instance is:

apache-1.3.28-1.3.1
binutils-2.14-1.3.0
bzip2-1.0.2-1.3.0
db-4.1.25.1-1.3.0
expat-1.95.6-1.3.0
freetype-2.1.4-1.3.0
gcc-3.3-1.3.0
gd-2.0.15-1.3.0
jpeg-6b-1.3.0
lzo-1.08-1.3.0
m4-1.4o-1.3.0
mm-1.3.0-1.3.0
mysql-4.0.14-1.3.2
openpkg-1.3.1-1.3.1
openpkg-tool-1.3.0-1.3.0
openssl-0.9.7b-1.3.2
perl-5.8.0-1.3.2
perl-comp-1.3.0-1.3.0
perl-conv-1.3.0-1.3.0
perl-crypto-1.3.0-1.3.0
perl-db-1.3.0-1.3.0
perl-dbi-1.3.0-1.3.0
perl-dbix-1.3.0-1.3.0
perl-ds-1.3.0-1.3.0
perl-gd-1.3.0-1.3.0
perl-gfx-1.3.0-1.3.0
perl-mail-1.3.0-1.3.0
perl-net-1.3.0-1.3.0
perl-openpkg-1.3.0-1.3.0
perl-parse-1.3.0-1.3.0
perl-ssl-1.3.0-1.3.0
perl-sys-1.3.0-1.3.0
perl-term-1.3.0-1.3.0
perl-text-1.3.0-1.3.0
perl-time-1.3.0-1.3.0
perl-util-1.3.0-1.3.0
perl-www-1.3.2-1.3.2
perl-xml-1.3.0-1.3.0
png-1.2.5-1.3.0
readline-4.3-1.3.0
zlib-1.1.4-1.3.0

Then, I used CPAN to add/update the modules needed to bring the instance
to RT compliance, then upgraded RT to use this instance of Perl and
transferred the database. Nary a hiccup since, but it’s only been a few
days. This is more or less following the advice of “build your own
isolated environment” that others have voiced. I just chose to use
OpenPKG to do this since it is much easier to maintain than manual
compilation of the necessary components. One word of warning – OpenPKG
statically links everything – the virtual memory for Apache tends to be
in the 130MB range, so make sure you have plenty of RAM and swap.

Hope this helps someone – it’s definitely helped me!

Regards,
MarkMark D. Nagel, CCIE #3177 mnagel@willingminds.com
Principal Consultant, Willing Minds LLC
tel/fax: 949-623-9853, web: http://www.willingminds.com/

Thanks Iain. I’ll let you know if I make any further discoveries. I
really appreciate your help!

Graeme

Iain Price wrote: