Request Tracker


 
Thread Tools Search this Thread
Operating Systems Solaris Request Tracker
# 1  
Old 01-10-2007
Request Tracker

Hi everyone,

I'm trying to install request tracker 3.6.3 on one of my unix box running solaris8, I already installed latest mysql, latest perl, apache2 and followed the instruction on

http://www.sun.com/bigadmin/features...q_track_1.html
http://www.sun.com/bigadmin/features...q_track_2.html

when I come to the part to make initialize-database

root:aquila:/tmp/rt-3.6.3 >make initialize-database
/usr/local/bin/perl //usr/local/rt3/sbin/rt-setup-database --action init --dba root --prompt-for-dba-password
Can't locate Locale/Maketext/Lexicon.pm in @INC (@INC contains: /usr/local/rt3/lib /usr/local/rt3/local/lib /usr/local/lib/perl5/5.8.7/sun4-solaris /usr/local/lib/perl5/5.8.7 /usr/local/lib/perl5/site_perl/5.8.7/sun4-solaris /usr/local/lib/perl5/site_perl/5.8.7 /usr/local/lib/perl5/site_perl .) at /usr/local/rt3/lib/RT/I18N.pm line 56.

BEGIN failed--compilation aborted at /usr/local/rt3/lib/RT/I18N.pm line 56.
Compilation failed in require at /usr/local/rt3/lib/RT.pm line 48.
BEGIN failed--compilation aborted at /usr/local/rt3/lib/RT.pm line 48.
Compilation failed in require at //usr/local/rt3/sbin/rt-setup-database line 58.
BEGIN failed--compilation aborted at //usr/local/rt3/sbin/rt-setup-database line
58.
*** Error code 2
make: Fatal error: Command failed for target `initialize-database'
root:aquila:/tmp/rt-3.6.3 >


anybody ever encounter this problem?
# 2  
Old 01-10-2007
Well its just perl complaining about missing module(s) like this one. It is likely you will need to add some more, go to cpan search
# 3  
Old 01-10-2007
ok thanx for the help I will check
# 4  
Old 01-10-2007
ok I managed to config cpan, then did a rt-test-dependencies to get a list of all the missing perl modules, put it into a list then did a perl -MCPAN -e 'install "<module>"' for each missing module, it hours to download and install

finally when I make initialize-database

Password:
Now creating a database for RT.
Creating mysql database rt3.
Now populating database schema.
Creating database schema.
Done setting up database schema.
Now inserting database ACLs
Done setting up database ACLs.
Now inserting RT core system objects
Checking for existing system user...not found. This appears to be a new instal
ation.
Creating system user...*** Signal 11 - core dumped
make: Fatal error: Command failed for target `initialize-database'
root:aquila:/tmp/rt-3.6.3 >


hmm ... is there any patches I need to install for mysql?
# 5  
Old 01-12-2007
I found the solution to my problem. I'm putting it here in case somebody has the same problem.

First Step
========
vi /usr/local/rt3/etc/RT_Config.pm

search for a string called LogToSyslog
it shud return with the line Set($LogToSyslog , 'debug');
"#" it off, yy --> p
unhash and change to Set($LogToFile , 'debug');

save it

then

root:aquila:/var/tmp/softwares/rt-3.6.3 >make dropdb
/usr/local/bin/perl //usr/local/rt3/sbin/rt-setup-database --action drop --d
ba root --prompt-for-dba-password
In order to create or update your RT database,this script needs to connect to yo
ur mysql instance on localhost as root.
Please specify that user's database password below. If the user has no database
password, just press return.

Password:

About to drop mysql database rt3 on localhost.
WARNING: This will erase all data in rt3.

Proceed [y/N]:y
Dropping mysql database rt3.
root:aquila:/var/tmp/softwares/rt-3.6.3 >make initialize-database
/usr/local/bin/perl //usr/local/rt3/sbin/rt-setup-database --action init --dba r
oot --prompt-for-dba-password
In order to create or update your RT database,this script needs to connect to yo
ur mysql instance on localhost as root.
Please specify that user's database password below. If the user has no database
password, just press return.

Password:
Now creating a database for RT.
Creating mysql database rt3.
Now populating database schema.
Creating database schema.
Done setting up database schema.
Now inserting database ACLs
Done setting up database ACLs.
Now inserting RT core system objects
Checking for existing system user...not found. This appears to be a new install
ation.
Creating system user...done.
Now inserting RT data
Creating Superuser ACL...done.
Creating groups...3.4.5.6.7.8.9.done.
Creating users...10.12.done.
Creating queues...1.2.done.
Creating ACL...2.3.done.
Creating ScripActions...1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.done.
Creating ScripConditions...1.2.3.4.5.6.7.8.9.10.done.
Creating templates...1.2.3.4.5.6.7.8.9.10.11.12.done.
Creating scrips...1.2.3.4.5.6.7.8.9.10.11.12.13.14.done.
Creating predefined searches...1.2.3.done.
Done setting up database content.
root:aquila:/var/tmp/softwares/rt-3.6.3 >
# 6  
Old 08-21-2008
I am also trying to to run RT 3.6.7 on Solaris 10. I am using Sendmail v. 8.13.8. I'm using the above guide from Sun as well.

SunOS HOSTNAME 5.10 Generic_127111-11 sun4u sparc SUNW,Sun-Fire-V215

I have RT installed and running, using Apache, MySQL, OpenSSL. However my problem lies with RT receiving mail from Sendmail.

I send mail via the command line:

"sendmail -v General" (General is the name of an alias in /etc/mail/aliases)

and the mail doesn't get piped to RT. /var/adm/messages shows:

Aug 21 14:26:16 vpd1tst1no sm-mta[8091]: [ID 801593 mail.info] m7LKQGhW008090: Warning: program /usr/lib/smrsh unsafe: No such file or directory
Aug 21 14:26:16 vpd1tst1no last message repeated 1 time
Aug 21 14:26:16 vpd1tst1no sm-mta[8091]: [ID 801593 mail.crit] m7LKQGhW008090: SYSERR(root): Cannot exec /usr/lib/smrsh : No such file or directory
Aug 21 14:26:16 vpd1tst1no last message repeated 1 time


Now I understand sendmail uses its restricted shell when an alias instructs it to pipe to a program. Sendmail is configured to use smrsh, and I have placed a symlink and/or copy of rt-mailgate in /var/adm/sm.bin....([ z a z z y b o b . c o m ] FEATURE(`smrsh', `/usr/lib/smrsh')dnl) which is sendmail's authorized programs directory. But still the above error occurs.

I'm stumped. I've reconfigured sendmail.cf to use /bin/bash instead of /usr/lib/smrsh instead, without success. Permissions on smrsh look okay as far as I know.

Any ideas? I've exhausted Google, RT's mailing lists, and now have an OReilly sendmail book that I'm leafing through. I'm at a loss.

The guide above uses Solaris 9, which may not have sendmail configured to use smrsh by default. I will try removing smrsh configuration from sendmail to see, but in the mean time.... does anyone have any ideas or have come across this before themselves?

Any feedback would be greatly appreciated. Thanks!
# 7  
Old 08-21-2008
Also, I removed the smrsh functionality from Sendmail, and replaced it just with /bin/sh to execute the piped programs, and I still get the same result...just now with the different shell reference:

Aug 21 15:15:43 vpd1tst1no sm-mta[8171]: [ID 801593 mail.info] m7LLFgpJ008170: Warning: program /bin/sh unsafe: No such file or directory
Aug 21 15:15:43 vpd1tst1no last message repeated 1 time
Aug 21 15:15:43 vpd1tst1no sm-mta[8171]: [ID 801593 mail.crit] m7LLFgpJ008170: SYSERR(root): Cannot exec /bin/sh : No such file or directory
Aug 21 15:15:43 vpd1tst1no last message repeated 1 time


Also, I removed all references and copies of rt-mailgate from the /var/adm/sm.bin dir, just to see if smrsh or sh actually makes it to the check of that dir, and it does not give me any errors relating to rejecting rt-mailgate because its not in the proper dir.

(That error is usually: smrsh: /var/adm/sm.bin/rt-mailgate: not found)

It seems it's an error before any of that happens. I've checked my $PATH to make sure it can find /bin/sh or /bin/bash (even though its pretty hard to miss those).... and I'm out of ideas.

Other than trying Solaris 9, with an earlier version of sendmail that doesn't include smrsh, I am tapped out for ideas.

Any thoughts?
Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

GPS-Tracker script [Android]

Hi UNIX-Forum! I don't know if this is the right Forum for my question, but since Android technically is a UNIX-based system... I have a rooted Android and a Terminal emulator and bash installed. I wanted to write a little script for my android that activates GPS, gets the location and sends... (3 Replies)
Discussion started by: al0x
3 Replies

2. Shell Programming and Scripting

event scheduler/tracker script

Dear All, I am writing an event tracker shell script as part of a personal project. I am trying 2 write a sort of date math function using the GNU date command. This function would allow 2 search 4 future events, like looking 4 events 1 or 2 days ahead 4 instance. I've used the date command b4... (1 Reply)
Discussion started by: theangrybeaver
1 Replies
Login or Register to Ask a Question