After installing rt-4.4.2, I logged in and logged in to access the home page, but I encountered an error while accessing other pages.

The information displayed by the browser is ‘An internal RT error has occurred. Your administrator can find more details in RT’s log files.’

I found the following error message in /etc/httpd/logs/error_log

[/usr/local/share/perl5/HTML/Mason/Interp.pm:348]
[/usr/local/share/perl5/HTML/Mason/Interp.pm:342]
[/usr/local/share/perl5/HTML/Mason/PSGIHandler.pm:59]
[/usr/local/share/perl5/HTML/Mason/PSGIHandler/Streamy.pm:52]
[/usr/local/share/perl5/Plack/Util.pm:339]
[/usr/local/share/perl5/Plack/Handler/FCGI.pm:149]
[/usr/local/share/perl5/Plack/Loader.pm:84]
[/usr/local/share/perl5/Plack/Runner.pm:277]
[/opt/rt4/sbin/…/lib/RT/PlackRunner.pm:150]
[/opt/rt4/sbin/rt-server.fcgi:162] (/opt/rt4/sbin/…/lib/RT/Interface/Web/Handler.pm:208)
[8729] [Mon Jun 4 06:03:53 2018] [error]: Couldn’t create object file /opt/rt4/var/mason_data/obj/3595297236/standard/dhandler.obj: Permission denied
Stack:
[/usr/local/share/perl5/HTML/Mason/Interp.pm:437]
[/usr/local/share/perl5/HTML/Mason/Interp.pm:773]
[/usr/local/share/perl5/HTML/Mason/Request.pm:256]
[/usr/local/share/perl5/HTML/Mason/Request.pm:212]
[/opt/rt4/sbin/…/lib/RT/Interface/Web/Request.pm:67]
[/usr/local/share/perl5/Class/Container.pm:275]
[/usr/local/share/perl5/Class/Container.pm:353]
[/usr/local/share/perl5/HTML/Mason/Interp.pm:348]
[/usr/local/share/perl5/HTML/Mason/Interp.pm:342]
[/usr/local/share/perl5/HTML/Mason/PSGIHandler.pm:59]
[/usr/local/share/perl5/HTML/Mason/PSGIHandler/Streamy.pm:52]
[/usr/local/share/perl5/Plack/Util.pm:339]
[/usr/local/share/perl5/Plack/Handler/FCGI.pm:149]
[/usr/local/share/perl5/Plack/Loader.pm:84]
[/usr/local/share/perl5/Plack/Runner.pm:277]
[/opt/rt4/sbin/…/lib/RT/PlackRunner.pm:150]
[/opt/rt4/sbin/rt-server.fcgi:162] (/opt/rt4/sbin/…/lib/RT/Interface/Web/Handler.pm:208)

Looks like the user your web server runs as doesn’t have permission to read/write to the directory tree under /opt/rt4/var/. Check the ownership/rights there. For example on our CentOS box it is all owned by the user ‘apache’ (and group ‘apache’ too).

thank for you answer,
I found that owner of folder /opt/rt4/var/ A is apache, and Running httpd is also Apache

[root@localhost var]# ll
drwxr-xr-x. 2 apache apache 6 6月 4 11:10 log
drwxrwx—. 4 apache apache 30 6月 4 14:35 mason_data

I reinstalled the centos7 system three times. It has always been such a mistake。
I don’t know how to solve it

What about the directories under /opt/rt4/var? Can you check each step in the path to /opt/rt4/var/mason_data/obj/3595297236/standard/dhandler.obj to make sure that apache can read/write to them?

Have you been able to this problem please ?

thanks in advance