Multiple errors after upgrading to 5.0.4

Halp. We upgraded from 5.0.1 to 5.0.4 (and also moved from RedHat7 to RedHat8) and got some problems.

CPU usage goes to 100% once in an hour.

Some of the errors:

[14008] [Mon May 27 00:04:57 2024] [debug]: Converting ‘utf-8’ to ‘utf-8’ for text/plain - Subjectless message (/usr/share/perl5/vendor_perl/RT/I18N.pm:294)
[14008] [Mon May 27 00:04:57 2024] [debug]: Converting ‘utf-8’ to ‘utf-8’ for text/html - Subjectless message (/usr/share/perl5/vendor_perl/RT/I18N.pm:294)
[14008] [Mon May 27 00:04:57 2024] [debug]: Encode::Guess guessed encoding: ascii (/usr/share/perl5/vendor_perl/RT/I18N.pm:583)
[14008] [Mon May 27 00:04:57 2024] [debug]: Encode::Guess guessed encoding: ascii (/usr/share/perl5/vendor_perl/RT/I18N.pm:583)
[14008] [Mon May 27 00:04:57 2024] [debug]: Mail from user #15164164 (newsletter@junkmail.org) (/usr/share/perl5/vendor_perl/RT/Interface/Email/Auth/MailFrom.pm:94)
[14008] [Mon May 27 00:04:57 2024] [debug]: Tried to load a bogus ticket id: ‘’ (/usr/share/perl5/vendor_perl/RT/Ticket.pm:185)
[14008] [Mon May 27 00:04:57 2024] [debug]: About to prepare scrips for transaction #59353139 (/usr/share/perl5/vendor_perl/RT/Transaction.pm:189)
[14008] [Mon May 27 00:04:57 2024] [debug]: Found 14 scrips for TransactionCreate stage with applicable type(s) Create for txn #59353139 on ticket #3398487 (/usr/share/perl5/vendor_perl/RT/Scrips.pm:482)
[14008] [Mon May 27 00:04:57 2024] [warning]: Use of uninitialized value $_ in concatenation (.) or string at /usr/share/perl5/vendor_perl/HTML/FormatText/WithLinks/AndTables.pm line 215. (/usr/share/perl5/vendor_perl/HTML/FormatText/WithLinks/AndTables.pm:215)
[14008] [Mon May 27 00:04:57 2024] [warning]: Use of uninitialized value $_ in concatenation (.) or string at /usr/share/perl5/vendor_perl/HTML/FormatText/WithLinks/AndTables.pm line 215. (/usr/share/perl5/vendor_perl/HTML/FormatText/WithLinks/AndTables.pm:215)

[10212] [Wed May 29 04:06:14 2024] [debug]: Tried to load a bogus ticket id: ‘’ (/usr/share/perl5/vendor_perl/RT/Ticket.pm:185)

[Wed May 29 07:17:48 2024] [debug]: Converting ‘utf-8’ to ‘utf-8’ for text/plain - Subjectless message (/usr/share/perl5/vendor_perl/RT/I18N.pm:294)
[77679] [Wed May 29 07:17:48 2024] [debug]: Converting ‘utf-8’ to ‘utf-8’ for text/html - Subjectless message (/usr/share/perl5/vendor_perl/RT/I18N.pm:294)

These errors we got lots of in logs:
May 29 04:04:31 xx RT[65395]: [65395] Use of uninitialized value $_ in concatenation (.) or string at /usr/share/perl5/vendor_perl/HTML/FormatText/WithLinks/AndTables.pm line 215.

May 29 04:04:31 xx RT[65395]: [65395] Use of uninitialized value $ptag in string eq at /usr/share/perl5/vendor_perl/HTML/Element.pm line 711.
May 29 04:04:31 xx RT[65395]: [65395] Use of uninitialized value $ptag in hash element at /usr/share/perl5/vendor_perl/HTML/Element.pm line 711.

May 29 04:04:32 xx RT[65395]: [65395] Use of uninitialized value $tag in string eq at /usr/share/perl5/vendor_perl/HTML/Element.pm line 2658.

May 29 04:04:32 xx RT[65395]: [65395] Use of uninitialized value $tag in concatenation (.) or string at /usr/share/perl5/vendor_perl/HTML/Formatter.pm line 150.

May 29 04:30:33 xx RT[65384]: [65384] Use of uninitialized value $_ in concatenation (.) or string at /usr/share/perl5/vendor_perl/HTML/FormatText/WithLinks/AndTables.pm line 215.

May 29 07:28:46 rtbe01-rh8 RT[66179]: [66179] Use of uninitialized value in pattern match (m//) at /usr/share/perl5/vendor_perl/HTML/Scrubber.pm line 223.

Any idea what can cause all of these errors??

Yesterday wo found that one junkmail with very large HTML content was causing CPU to go high. We disabled that particular user (cannot create tickets anymore) and it worked for that case.

I’m guessing that as the message doesn’t have a subject, you’re seeing Perl whinging that variables usually created from the subject line aren’t defined. Perl complains about these but then usually proceeds as though they were the empty string.

Thanks for reply! Any suggestions to other errors? Or where to start solving those?

We have 3 separate RT installations and our Test and QA are working well. But broken one is our production env

Which errors exactly? Most of the log are just warnings from Perl about uninitialized strings (so see above) or RT telling you what it is doing.

You can fix

[14008] [Mon May 27 00:04:57 2024] [warning]: Use of uninitialized value $_ in concatenation (.) or string at /usr/share/perl5/vendor_perl/HTML/FormatText/WithLinks/AndTables.pm line 215. (/usr/share/perl5/vendor_perl/HTML/FormatText/WithLinks/AndTables.pm:215)

by upgrading HTML::FormatText::WithLinks::AndTables to v0.08 - it looks like you’re running 0.07.

Cheers,
<°}}}>«<