-   Linux - Newbie (
-   -   Request Tracker 4 (

y_mullah 09-28-2012 08:22 AM

Request Tracker 4

I have installed request tracker 4.0.1 on my CentOS 5 distribution. I have not been able to access the RT web interface. I get a
Not Found

The requested URL /rt was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

error when i try to connect to request tracker's web interface. Below are my /etc/httpd/conf.d/rt4 and /opt/rt4/etc/ files respectively:

<VirtualHost *:80>
ServerAdmin root@localhost
### Optional apache logs for RT
# ErrorLog /opt/rt4/var/log/apache2.error
# TransferLog /opt/rt4/var/log/apache2.access
# LogLevel debug

AddDefaultCharset UTF-8

DocumentRoot "/opt/rt4/share/html"
# RequestTracker
<Location /rt>
Order allow,deny
Allow from all

SetHandler modperl
PerlResponseHandler Plack::Handler::Apache2
PerlSetVar psgi_app /opt/rt4/sbin/rt-server
use Plack::Handler::Apache2;

# force rt over https always
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} rt
RewriteRule ^(.*)$$1 [R,L]

Set($rtname , "");
Set($Organization , "Axxentis");
Set($MinimumPasswordLength , "5");
Set($Timezone , 'US/Pacific');

Set($DatabaseType , 'mysql');
Set($DatabaseHost , 'localhost');
Set($DatabaseRTHost , 'localhost');
Set($DatabasePort , '');
Set($DatabaseUser , 'rt_user');
Set($DatabasePassword , 'mypassword');
Set($WebPath , "/rt");
#Set($WebDomain, "");

Set($WebPort , 443);
Set($WebBaseURL , "");
Set($WebURL , $WebBaseURL . $WebPath . "/");
Set($DatabaseName , 'rt4');
Set($RTAddressRegexp , '^rt(-\S+|-\S+-comment)?\@(www\.)?$');
Set($CorrespondAddress , '');
Set($CommentAddress , '');

Any ideas will be welcome!

sackboy 09-29-2012 12:35 PM


Isn't /rt supposed to point to /opt/rt4/share/html?

It looks like you've specified that as your document root.

Perhaps the server is looking for /opt/rt4/share/html/rt when you go to the URL/rt in the browser?

You can try adding an Alias directive for /rt.

y_mullah 10-01-2012 04:43 AM

I have done some editing of the rt4.conf file and this is the error I get when I restart my apache server:

Starting httpd: DBI connect('dbname=rt4;host=localhost','rt_user',...) failed: Access denied for user 'rt_user'@'localhost' (using password: YES) at /usr/lib/perl5/site_perl/5.8.8/DBIx/SearchBuilder/ line 103.

RT couldn't connect to the database where tickets are stored.
If this is a new installation of RT, you should visit the URL below
to configure RT and initialize your database.

If this is an existing RT installation, this may indicate a database
connectivity problem.

The error RT got back when trying to connect to your database was:

Connect Failed Access denied for user 'rt_user'@'localhost' (using password: YES)
at /opt/rt4/sbin/../lib/ line 164.

any ideas how to correct the issue

sackboy 10-04-2012 08:26 PM


Are you running the rt-server?

Run: /opt/rt4/sbin/rt-server &

Then restart apache and try to go to /rt (if configured correctly).

RT should use your DB admin credentials to create its db, dbuser, and dbuserpass.

Usually after you do the make install, you also run: # make initialize-database (which does the db creation part)

y_mullah 10-05-2012 04:34 AM

I followed your advice and this is what I get:

[root@localhost ~]# /opt/rt4/sbin/rt-server &
[1] 3709
[root@localhost ~]# WARNING: RT couldn't start up a web server on port 443.
This is often the case if the port is already in use or you're running /opt/rt4/sbin/rt-server
as someone other than your system's "root" user. You may also specify a
temporary port with: /opt/rt4/sbin/rt-server --port <port>

[1]+ Done /opt/rt4/sbin/rt-server

sackboy 10-05-2012 06:10 PM


It looks like apache is already running on 443.

Try this:

1. Stop apache
2. /opt/rt4/sbin/rt-server --port 1443 &
3. visit your server in a browser: https://server.ext:1443

What do you see when you do that?

All times are GMT -5. The time now is 11:16 PM.