Hello,
I need help with the final step of installing RT6 on a new server.
Environment:
- OS: Red Hat 9.6
- MariaDB: 10.5.27 (
mariadb.x86_64 3:10.5.27-1.el9_5
) - RT: 6.x (installed from source)
When I run:
make initialize-database
I get the following output:
/usr/bin/perl -I/opt/rt6/local/lib -I/opt/rt6/lib sbin/rt-setup-database --action init --prompt-for-dba-password
In order to create or update your RT database, this script needs to connect to your mysql instance on localhost (port '3306') as rt_admin
Please specify that user's database password below. If the user has no database password, just press return.
Password:
Working with:
Type: mysql
Host: localhost
Port: 3306
Name: rt6
User: rt_user
DBA: rt_admin
Now creating a mysql database rt6 for RT.
Done.
Now populating database schema.
Done.
Now inserting database ACLs.
[244845] [Wed Jun 25 10:57:42 2025] [warning]: DBD::mysql::st execute failed: Access denied for user 'rt_admin'@'localhost' to database 'rt6' at /opt/rt6/sbin/../lib/RT/Handle.pm line 480. (/opt/rt6/sbin/../lib/RT/Handle.pm:480)
[244845] [Wed Jun 25 10:57:42 2025] [critical]: DBD::mysql::st execute failed: Access denied for user 'rt_admin'@'localhost' to database 'rt6' at /opt/rt6/sbin/../lib/RT/Handle.pm line 480. (/opt/rt6/sbin/../lib/RT.pm:409)
DBD::mysql::st execute failed: Access denied for user 'rt_admin'@'localhost' to database 'rt6' at /opt/rt6/sbin/../lib/RT/Handle.pm line 480.
make: *** [Makefile:393: initialize-database] Error 11
I’ve tried many things — dropping and recreating the database, adjusting permissions for rt_admin
, etc. I’m out of ideas and still getting the same error
Relevant part of RT_SiteConfig.pm
:
use utf8;
Set($DatabaseAdmin, 'rt_admin');
Set($DatabaseUser, 'rt_user');
Set($DatabasePassword, '***');
Set($DatabaseName, 'rt6');
Set($DatabaseType, 'mysql');
Set($DatabaseHost, 'localhost');
Set($DatabasePort, '3306');
Set($LogToSyslog, 'warning');
Set($LogToSTDERR, 'warning');
Set($LogToFile, 'debug');
Set($LogToFileNamed, 'rt.abc.com.log');
Set($LogDir, '/var/log/rt6');
Set(@ReferrerWhitelist, qw(rt.abc.com:80));
Set($DisableWebConfig, 1);
Set($Organization, 'RT ABC');
Set($OwnerEmail, 'test@test.pl');
Set($SendmailPath, '/usr/bin/msmtp');
Set($WebDomain, 'rt.abc.com');
Set($WebPort, '80');
Set($rtname, 'rt.abc.com');
1;
Has anyone encountered this issue? Any ideas on what might be causing the permission error for rt_admin
?
Thanks in advance for any help!
Best regards