Problems upgrading to 3.0.5

I’ve just upgraded to rt 3.0.5 from 3.0.4
The web interface works fine, but when i sent emails to create new tickets,
the MTA sais tat the RT server did not behave as expected.
I’m pasting the log from Postfix. Any idea in how to fix this?

Sep 18 15:43:33 linux postfix/local[32615]: 5FF341E6821: to=,
relay=local, delay=910, status=deferred (temporary failure. Command output:
RT server error. The RT server which handled your email did not behave as
expected. It said:

System error

error:  Can’t use string (“SessionType”) as a HASH ref while
"strict refs" in use at /opt/rt3/lib/RT/Interface/Email.pm line
406.
context:  <fo

Removing "use strict;"from Email.pm lets create the tickets but they are
created empty with no requestor, no subject, no anything.-----Original Message-----
From: Jaime Diaz [mailto:JDiaz@esabel.net]
Sent: Jueves, 18 de Septiembre de 2003 03:29 p.m.
To: rt-users@lists.fsck.com
Subject: [rt-users] Problems upgrading to 3.0.5

I’ve just upgraded to rt 3.0.5 from 3.0.4
The web interface works fine, but when i sent emails to create new tickets,
the MTA sais tat the RT server did not behave as expected.
I’m pasting the log from Postfix. Any idea in how to fix this?

Sep 18 15:43:33 linux postfix/local[32615]: 5FF341E6821: to=,
relay=local, delay=910, status=deferred (temporary failure. Command output:
RT server error. The RT server which handled your email did not behave as
expected. It said:

System error

error:  Can’t use string ("SessionType") as a HASH ref while
"strict refs" in use at /opt/rt3/lib/RT/Interface/Email.pm line
406.
context:  <fo
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

Well, making a fresh install of RT and not initializing the database and
using the old one fixed the problem.-----Original Message-----
From: Jaime Diaz [mailto:JDiaz@esabel.net]
Sent: Jueves, 18 de Septiembre de 2003 04:46 p.m.
To: rt-users@lists.fsck.com
Subject: RE: [rt-users] Problems upgrading to 3.0.5

Removing "use strict;"from Email.pm lets create the tickets but they are
created empty with no requestor, no subject, no anything.

-----Original Message-----
From: Jaime Diaz [mailto:JDiaz@esabel.net]
Sent: Jueves, 18 de Septiembre de 2003 03:29 p.m.
To: rt-users@lists.fsck.com
Subject: [rt-users] Problems upgrading to 3.0.5

I’ve just upgraded to rt 3.0.5 from 3.0.4
The web interface works fine, but when i sent emails to create new tickets,
the MTA sais tat the RT server did not behave as expected.
I’m pasting the log from Postfix. Any idea in how to fix this?

Sep 18 15:43:33 linux postfix/local[32615]: 5FF341E6821: to=,
relay=local, delay=910, status=deferred (temporary failure. Command output:
RT server error. The RT server which handled your email did not behave as
expected. It said:

System error

error:  Can’t use string ("SessionType") as a HASH ref while
"strict refs" in use at /opt/rt3/lib/RT/Interface/Email.pm line
406.
context:  <fo
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
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

I’ve just upgraded to rt 3.0.5 from 3.0.4
The web interface works fine, but when i sent emails to create new tickets,
the MTA sais tat the RT server did not behave as expected.
I’m pasting the log from Postfix. Any idea in how to fix this?

After just upgrading RT from 3.0.4 to 3.0.5 via FreeBSD port I now
am also getting this exact same error whenever rt-mailgate is used.
Web UI seems to work fine though.

Everything is built from ports on FreeBSD 4.8, using the lang/perl58
port, www/apache13, www/mod_perl etc ports.

Jaime seemed to solve this by reinstalling RT. This I have tried,
but it makes no difference. Does anyone have any ideas?

Tempted to downgrade to 3.0.4 again…

Andy Smith wrote:

After just upgrading RT from 3.0.4 to 3.0.5 via FreeBSD port I now
am also getting this exact same error whenever rt-mailgate is used.
Web UI seems to work fine though.

This is due to an HTML::Mason object cache problem. The datestamp on
the upgraded file does not trigger a rebuild of the cached generated
code. To fix, clear out the Mason object cache, or at least this
particular file. For example:

rm /opt/rt3/var/mason_data/obj/standard/REST/1.0/NoAuth/mail-gateway

Another way would be to touch the mail-gateway file (not the cached
object, the original one). I don’t believe you need to restart Apache,
but it couldn’t hurt to do so after this removal in case things still
don’t work as expected. I also made absolutely sure that no other cached
object files remained around to cause trouble by using find to remove
anything older than the timestamp on the newest batch of object files.
You could probably clear the whole thing safely, since Mason will
repopulate them as needed.

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

Andy Smith wrote:

After just upgrading RT from 3.0.4 to 3.0.5 via FreeBSD port I now
am also getting this exact same error whenever rt-mailgate is used.
Web UI seems to work fine though.

This is due to an HTML::Mason object cache problem. The datestamp on
the upgraded file does not trigger a rebuild of the cached generated
code. To fix, clear out the Mason object cache, or at least this
particular file. For example:

rm /opt/rt3/var/mason_data/obj/standard/REST/1.0/NoAuth/mail-gateway

Thank you, this worked. This really should be documented somewhere!