Hi folks,<div><br></div><div>I have an Ubuntu 11.11 system that I want to install RT onto, but the MySQL database is on another system.  And this seems to be an issue even though the installer seems to think it can do this.</div>
<div><br></div><div>I found this recent thread but the OP did not report back as to how he got it to work</div><div><a href="http://lists.bestpractical.com/pipermail/rt-users/2012-January/074770.html">http://lists.bestpractical.com/pipermail/rt-users/2012-January/074770.html</a></div>
<div><br></div><div><br></div><div>So what did I do?</div><div><br></div><div>I installed the packages via apt-get</div><div><br></div><div>apt-get install request-tracker4 rt4-apache2 rt4-clients rt4-db-mysql</div><div><br>
</div><div>and then as part of that, it prompted me for a number of things.  When it came to the part where it said it wants to configure the database, I told it I would do it manually because silly me I did not think it would deal with having the DB on a separate system.  So when the install was done I went over to my other system and created a DB and user for RT, and gave the user the proper permissions for the DB.  I verified the permissions were good by doing the DB creation from the RT system.   I did this :</div>
<div><br></div><div>mysql --user-rt4 --password=rtticket --host=10.246.159.43 --database=requesttracker4 < /usr/share/request-tracker4/etc/schema.mysql</div><div><br></div><div>Where the IP shown is not my RT system, it is the system with the MySQL DB.  This command worked well and so I then went about finding all the files where I had to make changes for this to work.   I thought I had found them, but when I tried to start Apache I got this :</div>
<div><br></div><div>---snip---<br clear="all"><div><div>apachectl restart</div><div>[Tue Mar  6 21:07:39 2012] [warning]: Use of uninitialized value in concatenation (.) or string at /usr/share/request-tracker4/lib/RT/Handle.pm line 242. (/usr/share/request-tracker4/lib/RT/Handle.pm:241)</div>
<div>    </div><div>RT couldn't connect to the database where tickets are stored.</div><div>If this is a new installation of RT, you should visit the URL below</div><div>to configure RT and initialize your database.</div>
<div><br></div><div>If this is an existing RT installation, this may indicate a database</div><div>connectivity problem.</div><div><br></div><div>The error RT got back when trying to connect to your database was:</div><div>
<br></div><div>Couldn't find RT_System user in the DB ''</div><div>---snip---<br clear="all"><div></div></div></div><div><br></div><div>And when I went to the URL for it on my RT system, I got this :</div><div>
<br></div><div><div><div>---snip---<br clear="all"><div></div></div></div></div><div><span style="font-family:Times;font-size:medium">Permission denied at /usr/share/request-tracker4/html/Install/index.html line 98.</span></div>
<div><div><div>---snip---<br clear="all"><div></div></div></div></div><div><br></div><div>Then after mucking about a bit more I discovered the Ubuntu dpkg-reconfigure command, which let me re-do the installation and this time around I told it to go ahead and configure the database for me.  I answered the questions as best I could and it went ahead to try to do something useful for me, but I ended back up where I began above.  See below, where I have replaced the actual <FQDN> with the text "FQDN".   I then went over to my database and created a user "root@FQDN" and gave it full permissions to the database for RT.</div>
<div><br></div><div>I suspect what my problem is, is that this root@FQDN user needs to have full permission over my entire MySQL database in order to do a database creation.  But that makes me nervous as heck on my live database!   Maybe someone can confirm this?</div>
<div><br></div><div>Thanks for any help you can give me.  I'd be happy with being able to complete the 'dpkg-reconfigure' or with doing it manually.   I thought I had gotten all the manual stuff in place properly the first time around but that error on line 98 is what completely stumped me.  It was still lacking this "RT_System" user best I could tell, and I could find nowhere to tell me how to set that up manually.</div>
<div><br></div><div><div><div><div>---snip---<br clear="all"><div></div></div></div></div></div><div><div>root@bioinfoadmin:/etc/request-tracker4# dpkg-reconfigure request-tracker4**WARNING**  </div><div>**WARNING**  If you are using mod_perl or any form of persistent perl</div>
<div>**WARNING**  process such as FastCGI, you will need to restart your</div><div>**WARNING**  web server and any persistent processes now.</div><div>**WARNING**  </div><div>dbconfig-common: writing config to /etc/dbconfig-common/request-tracker4.conf</div>
<div>ERROR 1045 (28000): Access denied for user 'root'@'FQDN' (using password: YES).</div><div>unable to connect to mysql server.</div><div>error encountered creating user:</div><div>ERROR 1045 (28000): Access denied for user 'root'@'FQDN' (using password: YES)</div>
<div>dbconfig-common: request-tracker4 configure: trying again.</div><div>dbconfig-common: writing config to /etc/dbconfig-common/request-tracker4.conf</div><div>dbconfig-common: flushing administrative password</div><div>
root@bioinfoadmin:/etc/request-tracker4# !apa</div><div>apachectl restart</div><div>[Tue Mar  6 21:07:39 2012] [warning]: Use of uninitialized value in concatenation (.) or string at /usr/share/request-tracker4/lib/RT/Handle.pm line 242. (/usr/share/request-tracker4/lib/RT/Handle.pm:241)</div>
<div>    </div><div>RT couldn't connect to the database where tickets are stored.</div><div>If this is a new installation of RT, you should visit the URL below</div><div>to configure RT and initialize your database.</div>
<div><br></div><div>If this is an existing RT installation, this may indicate a database</div><div>connectivity problem.</div><div><br></div><div>The error RT got back when trying to connect to your database was:</div><div>
<br></div><div>Couldn't find RT_System user in the DB ''</div><div><br></div><div>apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName</div><div><div>
<div><div>---snip---<br clear="all"><div></div></div></div></div></div><div></div></div><div><br></div></div><div>Oh and one final note, I found this apache config in the Ubuntu package, and linked it in  properly :</div>
<div><br></div><div><div>cat /etc/apache2/sites-enabled/rtticket</div><div># To use RT together with mod_perl2, available in the </div><div># libapache2-mod-perl2 package, include this file with:</div><div>#</div><div>#   Include /etc/request-tracker4/apache2-modperl2.conf</div>
<div># </div><div># into your Apache configuration file, in a virtual host section.</div><div><br></div><div># You will need to enable the Apache modules: perl, actions</div><div>#</div><div># The best place for this in the Debian Apache2 default situation is</div>
<div># near the end of the VirtualHost section in the file</div><div># /etc/apache2/sites-available/default.</div><div><br></div><div># You might want to enable this line</div><div># AddDefaultCharset UTF-8</div><div><br>
</div><div>PerlSetEnv RT_SITE_CONFIG /etc/request-tracker4/RT_SiteConfig.pm</div><div><br></div><div># You might need to alter references to /rt in this file (there are</div><div># three) to match whatever base URL you are using for your RT site</div>
<div>Alias /tickets /usr/share/request-tracker4/html</div><div><br></div><div><Location /tickets></div><div>  SetHandler modperl</div><div>  PerlResponseHandler Plack::Handler::Apache2</div><div>  PerlSetVar psgi_app /usr/share/request-tracker4/libexec/rt-server</div>
<div></Location></div><div><br></div><div># Limit mail gateway access to localhost by default</div><div><Location /tickets/REST/1.0/NoAuth></div><div>    Order Allow,Deny</div><div>    Allow from 127.0.0.1</div>
<div></Location></div><div><br></div><div><Perl></div><div>  use Plack::Handler::Apache2;</div><div>  Plack::Handler::Apache2->preload("/usr/share/request-tracker4/libexec/rt-server");</div><div></Perl></div>
</div><div><br></div><div><br></div>