Upgrade issues 3.0.6 -> 3.0.10

When I upgrade RT 3.0.6, it seems to go smoothly at first, but the instant I
try to pull up an actual ticket, I get:

System error
error: Can’t locate object method “Columns” via package
"RT::Attachments" at
/usr/local/rt3/share/html/Ticket/Elements/FindAttachments line 14.
context:

10:
11:
12: my $attachments = RT::Attachments->new( $session{‘CurrentUser’} );
13:
14: $attachments->Columns( qw( Id Filename ContentType Headers Subject
Parent ContentEncoding ContentType TransactionId Created));
15:
16: if ( $Ticket->CurrentUserHasRight(‘ShowTicket’) ) {
17: my $transactions = $attachments->NewAlias(‘Transactions’);
18: $attachments->Join( ALIAS1 => ‘main’,

code stack: /usr/local/rt3/share/html/Ticket/Elements/FindAttachments:14
/usr/local/rt3/share/html/Ticket/Display.html:118
/usr/local/rt3/share/html/autohandler:196
raw error

Can’t locate object method “Columns” via package
"RT::Attachments" at
/usr/local/rt3/share/html/Ticket/Elements/FindAttachments line 14.

Trace begun at
/usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/Exceptions.pm line 131
HTML::Mason::Exceptions::rethrow_exception(‘Can’t locate object method
"Columns" via package “RT::Attachments” at
/usr/local/rt3/share/html/Ticket/Elements/FindAttachments line 14.^J’)
called at /usr/local/rt3/share/html/Ticket/Elements/FindAttachments line 14
HTML::Mason::Commands::ANON(‘Ticket’, ‘RT::Ticket=HASH(0xa32b59c)’)
called at /usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/Component.pm
line 134
HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH(0xa32b62c)’,
‘Ticket’, ‘RT::Ticket=HASH(0xa32b59c)’) called at
/usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 1057
eval {…}(‘HTML::Mason::Component::FileBased=HASH(0xa32b62c)’,
‘Ticket’, ‘RT::Ticket=HASH(0xa32b59c)’) called at
/usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 1056
HTML::Mason::Request::comp(undef, undef, ‘Ticket’,
‘RT::Ticket=HASH(0xa32b59c)’) called at
/usr/local/rt3/share/html/Ticket/Display.html line 118
HTML::Mason::Commands::ANON(‘id’, 4250, ‘id’, 4250) called at
/usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/Component.pm line 134
HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH(0xa27a50c)’,
‘id’, 4250, ‘id’, 4250) called at
/usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 1062
eval {…}(‘HTML::Mason::Component::FileBased=HASH(0xa27a50c)’, ‘id’,
4250, ‘id’, 4250) called at
/usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 1056
HTML::Mason::Request::comp(undef, undef, ‘id’, 4250, ‘id’, 4250) called
at /usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 752
HTML::Mason::Request::call_next(‘HTML::Mason::Request::ApacheHandler=HASH(0xa1138a4)’,
‘id’, 4250) called at /usr/local/rt3/share/html/autohandler line 196
HTML::Mason::Commands::ANON(‘id’, 4250) called at
/usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/Component.pm line 134
HTML::Mason::Component::run(‘HTML::Mason::Component::FileBased=HASH(0xa1f7c28)’,
‘id’, 4250) called at
/usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 1057
eval {…}(‘HTML::Mason::Component::FileBased=HASH(0xa1f7c28)’, ‘id’,
4250) called at
/usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 1056
HTML::Mason::Request::comp(undef, undef, undef, ‘id’, 4250) called at
/usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 331
eval {…}(undef, undef, undef, ‘id’, 4250) called at
/usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 331
eval {…}(undef, undef, undef, ‘id’, 4250) called at
/usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/Request.pm line 290
HTML::Mason::Request::exec(‘HTML::Mason::Request::ApacheHandler=HASH(0xa1138a4)’)
called at
/usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm line 134
eval {…}(‘HTML::Mason::Request::ApacheHandler=HASH(0xa1138a4)’) called
at /usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm line 134
HTML::Mason::Request::ApacheHandler::exec(‘HTML::Mason::Request::ApacheHandler=HASH(0xa1138a4)’)
called at
/usr/local/lib/perl5/site_perl/5.8.0/HTML/Mason/ApacheHandler.pm line 792
HTML::Mason::ApacheHandler::handle_request(‘HTML::Mason::ApacheHandler=HASH(0xa115a6c)’,
‘Apache=SCALAR(0xa112e38)’) called at /usr/local/rt3/bin/webmux.pl line 138
eval {…}(‘HTML::Mason::ApacheHandler=HASH(0xa115a6c)’,
‘Apache=SCALAR(0xa112e38)’) called at /usr/local/rt3/bin/webmux.pl line 138
RT::Mason::handler(‘Apache=SCALAR(0xa112e38)’) called at /dev/null line 0
eval {…}(‘Apache=SCALAR(0xa112e38)’) called at /dev/null line 0

One other odd thing is that it’s using
/usr/local/lib/perl5/site_perl/5.8.0 when I’ve explicitly specified
that it should be using
/usr/local/rt3/perl/lib/site_perl/5.8.2/i386-freebsd for it’s perl
version.

FreeBSD 4.9-RELEASE-p4
perl-5.8.2_5
apache-1.3.28
PostgreSQL 7.3.2
rt-3.0.6

(389)[11:46am] # /usr/local/rt3/perl/bin/perl sbin/rt-test-dependencies --with-postgresql --with-fastcgi | grep -i missing
(390)[11:46am] #

(392)[11:48am] # grep PERL /usr/local/sbin/apachectl
export PERL5LIB=/usr/local/rt3/perl/lib/site_perl/5.8.2/i386-freebsd:/usr/local/rt3/perl/lib/site_perl
(393)[11:48am] # grep PERL /usr/local/etc/rc.d/apache.sh
export PERL5LIB=/usr/local/rt3/perl/lib/site_perl/5.8.2/i386-freebsd:/usr/local/rt3/perl/lib/site_perl
(394)[11:50am] #

Any ideas?

Andy Harrison

You should install latest DBIx::SearchBuilder.
When you upgrade don’t forget about test-dependencies.

		Best regards, Ruslan.

Andy Harrison wrote:

You should install latest DBIx::SearchBuilder.
When you upgrade don’t forget about test-dependencies.

I have the latest version installed, however, since it is pulling
Mason from the wrong path, it is highly likely it is pulling
DBIx::SearchBuilder from the wrong path also. I upgraded the version in
the wrong path so it least the upgrade should be able to proceed until
I can figure out why it’s pulling from the wrong path in the first
place…

Andy Harrison
(full headers for details)

I think you forgot to point that you also have upgraded perl, have you?

mod_perl binds to perl version and even if you upgrade it, mod_perl
fetch modules from old paths so you have to rebuild mod_perl against new
perl version. Or use old perl interpreter to install modules, for eg:
perl5.8.0 -e ‘install DBIx::SearchBuilder’ -MCPAN

But you want perl5.8.3, I hope you saw discussions about issues.
If you have RPM system you can try perl from Fedora. I use it in out
production and it’s good enought.

	Good luck. Ruslan.

Andy Harrison wrote:

Sorry, you have FreeBSD and I didn’t read full message til end.

I don’t know why apache/mod_perl don’t use env variable that you set.
you can try ‘use libs qw(…)’ in webmux.pl

Ruslan U. Zakirov wrote: