[rt-users] make fixdeps unable to fix DBD::Oracle ...MISSING. Fails with ORA-24327

2011-02-12 Thread Tapio Tirkkola
Hi all

 

As a background, I'm quite familiar with Oracle and mostly know my way
with Linux, too, but I've no experience on PERL nor RT before.

 

What I'm trying to do is install RT 3.8.8 on Oracle Linux 5.5 and
configure it to use an existing remote Oracle 10g database. I've used
this installation document
http://requesttracker.wikia.com/wiki/CentOS5InstallPlusSome as my
guideline, with minor differences in versions etc, and the biggest
difference probably is trying to use Oracle DB instead of MySQL, as
that's my and the company's clear preference.

 

README.Oracle says "You don't need to create anything beforehead." It
seems to be partly true as there should be nothing that needs to be
created in the database before installing RT. But for using remote
database it seems that Oracle client setup needs to be done on the RT
host. Unfortunately I haven't found instructions for that, so I've been
trying to figure out the steps myself.

 

So far I've tried several Oracle client configurations. Each time I've
prepared the environment so that I could successfully tnsping the target
database and connect using sqlplus. However, no success with make
fixdeps yet:

- First tried a light Oracle client version, Oracle Instant Client v10.1
and 11.2 (11g chosen because it installs more cleanly on Oracle Linux
5.5). Failed with missing .mk files.

- Then I tried with normal Oracle Client 11.2 with same problem.

- Then I figured out from the error messages that more Oracle SW is
needed and found out that to get suitable .mk files installes I must
install either whole Oracle database locally or install Oracle demo
stuff. 

- So I installed Oracle DB demo stuff in the Instant Client home first.
The .mk problem disappeared, but still it didn't look good because of
several errors.

- I decided to try the same with standard Oracle 11.2 client home.
Again, .mk problem disappeared, but still make fixdeps is unable to
connect to the target Oracle database. This time the output starting
from the error is as follows:

 

===

...

t/10general.t ... Bailout called.  Further testing stopped:
Unable to connect to Oracle (ORA-24327: need explicit attach before
authenticating a user (DBD ERROR: OCISessionBegin))

DBI connect('','scott/tiger',...) failed: ORA-24327: need explicit
attach before authenticating a user (DBD ERROR: OCISessionBegin) at
t/10general.t line 22

FAILED--Further testing stopped: Unable to connect to Oracle (ORA-24327:
need explicit attach before authenticating a user (DBD ERROR:
OCISessionBegin))

make[1]: *** [test_dynamic] Error 255

make[1]: Leaving directory `/root/.cpan/build/DBD-Oracle-1.27-5tgtqm'

  PYTHIAN/DBD-Oracle-1.27.tar.gz

  /usr/bin/make test -- NOT OK

//hint// to see the cpan-testers results for installing this module,
try:

  reports PYTHIAN/DBD-Oracle-1.27.tar.gz

Running make install

  make test had returned bad status, won't install without force

SMTP dependencies:

Net::SMTP ...found

STANDALONE dependencies:

Net::Server ...found

HTTP::Server::Simple >= 0.34 ...found

HTTP::Server::Simple::Mason >= 0.09 ...found

 

SOME DEPENDENCIES WERE MISSING.

ORACLE missing dependencies:

DBD::Oracle ...MISSING

Can't locate DBD/Oracle.pm in @INC (@INC contains:
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8
/opt/rt3/rt-3.8.8)

make: *** [fixdeps] Error 1

===

 

1.

Any suggestions what to try next?

There's a hint above that I don't know how to apply. I probably should
know some PERL basics.

 

2.

There's probably a way to install DBD::Oracle manually somehow. Could it
solve my problem? Can anyone assist / provide steps required to do it?

 

3.

Btw, I've executed these installation steps (and basically all setup
tasks before except Oracle client installation) as root in
/etc/rt3/rt-3.8.8:

 

./configure

make testdeps

PERL_MM_USE_DEFAULT=1 make fixdeps

 

Is it ok or does it cause problems? Should I create some other account
and use it? 

 

Regards, Tapio Tirkkola

tapio.tirkk...@csolutor.fi



Re: [rt-users] dumpfile-to-rt-3.0 failed (2.0.14 - 3.8.8)

2011-02-12 Thread Daniel Schwager
> - I downloaded your migration tool from
https://github.com/bestpractical/rt2-to-rt3 and
> - created a dump directory using rt-2.0-to-dumpfile and
> - tried to import the dump using dumpfile-to-rt-3.0 to the new RT3
mysql-db but
>   I get the following errors ...
...
 
> So, only the tickets NOT assigned to any queue where merged. All
ticked
> assigned to a queue are missing.

Small correction - it seems that all the tickets are imported 
Are the errors/warning a problem ? May the import was not done 100% ?

Kind regards
Danny


[rt-users] dumpfile-to-rt-3.0 failed (2.0.14 - 3.8.8)

2011-02-12 Thread Daniel Schwager
Dear list members,

we would like to convert our 9 year old rt2 (2.0.14 from 02/2002)
to the current rt3 3.8.8.

Therefore, 
- I downloaded your migration tool from
https://github.com/bestpractical/rt2-to-rt3 and
- created a dump directory using rt-2.0-to-dumpfile and
- tried to import the dump using dumpfile-to-rt-3.0 to the new RT3
mysql-db but
  I get the following errors ...

[Fri Feb 11 23:14:14 2011] [warning]: Use of uninitialized value in
string eq at /usr/bin/dumpfile-to-rt-3.0 line 891.
(/usr/bin/dumpfile-to-rt-3.0:891)
[Fri Feb 11 23:14:14 2011] [warning]: Use of uninitialized value in
length at /opt/rt3/lib/RT/Record.pm line 753.
(/opt/rt3/lib/RT/Record.pm:753)
[Fri Feb 11 23:14:14 2011] [warning]: Use of uninitialized value in
string eq at /usr/bin/dumpfile-to-rt-3.0 line 970.
(/usr/bin/dumpfile-to-rt-3.0:970)
aattta[Fri Feb 11 23:14:14 2011] [warning]: Use of uninitialized value
in string eq at /usr/bin/dumpfile-to-rt-3.0 line 891.
(/usr/bin/dumpfile-to-rt-3.0:891)
[Fri Feb 11 23:14:14 2011] [warning]: Use of uninitialized value in
length at /opt/rt3/lib/RT/Record.pm line 753.
(/opt/rt3/lib/RT/Record.pm:753)


Importing links
l[Fri Feb 11 23:14:27 2011] [warning]: Use of uninitialized value in
concatenation (.) or string at /usr/bin/dumpfile-to-rt-3.0 line 434.
(/usr/bin/dumpfile-to-rt-3.\
0:434)
[Fri Feb 11 23:14:27 2011] [warning]: Use of uninitialized value in
concatenation (.) or string at /usr/bin/dumpfile-to-rt-3.0 line 440.
(/usr/bin/dumpfile-to-rt-3.0\
:440)

..
Could not create scrip: On Correspond Notify Requestors And Ccs with
template Correspondence_ DT N_deutsch in queue #5
 - may be due to a non-standard template, condition or action

Could not create scrip: On Comment Notify Owner As Comment with template
Admin Comment_ DT N_deutsch in queue #5
 - may be due to a non-standard template, condition or action
..

So, only the tickets NOT assigned to any queue where merged. All ticked
assigned to
a queue are missing.

Could somebody help me to track down this slight migration problem ?

Kind regards
Danny