[Rtir] RTIR Installation - [ERROR] detected in Apache config (line 19)
Brian Hardy
bhardy.security at gmail.com
Sun Jan 26 22:11:27 EST 2014
Hello,
I've installed RT 4.0.19 and RTIR 3.0 on Ubuntu Server 12.04 in a VM. When
I installed RT and rebooted to test, Apache/MySql both came up and I could
connect to the web server. However, once I installed RTIR 3 and rebooted, I
could not connect to the web server and apache is not running. It appears
that apache boots before mysql and this causes an error. I'm getting the
following syslog error as well, any assistance would be appreciated.
Thanks,
Brian
*This is my boot.log that shows apache failing because of line 19 of my
apache config file (which is a copy/paste from the RT documentation):*
*boot.log*
fsck from util-linux 2.20.1
/dev/sda1: clean, 84217/1245184 files, 509249/4980480 blocks
Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
* Starting AppArmor profiles [
OK ]
[1087] [Mon Jan 27 02:59:21 2014] [warning]: DBI
connect('dbname=rt4;host=localhost','rt_user',...) failed: Can't connect to
local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at
/usr/local/share/perl/5.14.2/DBIx/SearchBuilder/Handle.pm line 105.
(/usr/local/share/perl/5.14.2/Carp.pm:168)
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 Can't connect to local MySQL server through socket
'/var/run/mysqld/mysqld.sock' (2)
at /opt/rt4/sbin/../lib/RT.pm line 211.
[1087] [Mon Jan 27 02:59:21 2014] [warning]: DBI
connect('dbname=rt4;host=localhost','rt_user',...) failed: Can't connect to
local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at
/usr/local/share/perl/5.14.2/DBIx/SearchBuilder/Handle.pm line 105.
(/usr/local/share/perl/5.14.2/Carp.pm:168)
Syntax error on line 19 of /etc/apache2/sites-enabled/rt:
Can't call method "CaseSensitive" on an undefined value at
/opt/rt4/sbin/../lib/RT/Record.pm line 375.\nCompilation failed in require
at /opt/rt4/sbin/../lib/RT.pm line 732.\n
Action 'start' failed.
The Apache error log may have more information.
* Starting web server apache2 [
fail]
*/etc/apache2/sites-available/rt*
<VirtualHost *:80>
### 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"
<Location />
Order allow,deny
Allow from all
SetHandler modperl
PerlResponseHandler Plack::Handler::Apache2
PerlSetVar psgi_app /opt/rt4/sbin/rt-server
</Location>
<Perl>
use Plack::Handler::Apache2;
Plack::Handler::Apache2->preload("/opt/rt4/sbin/rt-server");
</Perl>
</VirtualHost>
*/var/log/syslog*
syslog:Jan 26 21:59:21 ubuntu *RT:* [1087] DBI
connect('dbname=rt4;host=localhost','rt_user',...) failed: Can't connect to
local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at
/usr/local/share/perl/5.14.2/DBIx/SearchBuilder/Handle.pm line 105.
syslog:Jan 26 21:59:21 ubuntu *RT:* [1087] DBI
connect('dbname=rt4;host=localhost','rt_user',...) failed: Can't connect to
local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at
/usr/local/share/perl/5.14.2/DBIx/SearchBuilder/Handle.pm line 105.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rtir/attachments/20140126/ca89c051/attachment.html>
More information about the rtir
mailing list