Installation fails at point 6a)


#1

Hello, I’m installing RT on Centos 7 following https://docs.bestpractical.com/rt/4.4.3/README.html.
I get to the point 6a)

  To configure RT with the web installer, run:

      /opt/rt4/sbin/rt-server

If I try to access the server, it crashes:

[root@localhost etc]# /opt/rt4/sbin/rt-server

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:

Couldn’t find RT_System user in the DB ‘dbi:mysql:dbname=rt4;host=1.1.1.1’

HTTP::Server::PSGI: Accepting connections at http://0:80/
[3591] [Fri Oct 12 07:35:58 2018] [critical]: Something went wrong while trying to run RT’s standalone web server:
Undefined subroutine &RT::ObjectCustomFieldValues::ClearOCFVCache called at /opt/rt4/sbin/…/lib/RT/Interface/Web/Handler.pm line 202. (/opt/rt4/sbin/…/lib/RT.pm:408)
Something went wrong while trying to run RT’s standalone web server:
Undefined subroutine &RT::ObjectCustomFieldValues::ClearOCFVCache called at /opt/rt4/sbin/…/lib/RT/Interface/Web/Handler.pm line 202.

Any suggestions?
Thanks.


#2

Hello,

I have the same problem on Ubuntu 16.04.
Did you succeeded to solve it?

Thanks!


#3

Did you try the manual configuration (the second part of 6a)?

Its simple enough to just edit the config file by hand instead of use the web installer.

That error reads to me like RT is trying to do stuff that assumes configuration is complete, but you’re trying to run the web installer. I didn’t try it so I’m probably wrong, but thats the next thing to try anyways.


#4

Finally I commented out the line no. 202 in file lib/RT/Interface/Web/Handler.pm, like:
#RT::ObjectCustomFieldValues::ClearOCFVCache();
As I can see it is a new thing in 4.4.3 that’s why I dare to comment it out :slight_smile:
After that it works with web installation.
I think it is a bug.