If SELinux is active on the server that runs your TeamForge site, configure it to allow the services that
TeamForge requires.
In
case of same hardware upgrade using RHEL/CentOS, it is recommended to upgrade the OS to
RHEL/CentOS
7.3 or later versions.
Attention: Installing or upgrading TeamForge needs root privileges. You must log on as
root or use a root shell to install or upgrade TeamForge.
-
Verify SELinux mode using "getenforce" command. Do this if you have SELinux
running in "disabled" mode:
-
Stop TeamForge.
Note: Stop TeamForge on all the servers in a distributed setup.
-
Edit the file /etc/sysconfig/selinux and set
SELINUX=enforcing.
-
Turn off TeamForge startup on
boot.
-
Reboot the server and verify if SELInux is set to "enforcing"
mode.
-
Run the grep command to
get the value of rb_dir and rb_data_dir.
- grep rb_dir
/etc/reviewboard.properties
- grep rb_data_dir
/etc/reviewboard.properties
-
Run the following commands if Review Board is integrated with TeamForge.
- semanage fcontext -a -t
httpd_sys_rw_content_t
"<rb_data_dir>(/.*)?"
- restorecon -R -v
<rb_data_dir>
- semanage fcontext -a -t
httpd_sys_rw_content_t
"<rb_dir>(/.*)?"
- restorecon -R -v
<rb_dir>
- semanage fcontext -a -t
httpd_sys_rw_content_t
"/opt/collabnet/teamforge/var/home/apache(/.*)?"
- restorecon -R -v
/opt/collabnet/teamforge/var/home/apache
-
Before deploying services, remove pdk-root and
pdk-sf-admin directories.
- rm -rf /tmp/pdk-root
- rm -rf /tmp/pdk-sf-admin
-
Turn on TeamForge startup on boot.
-
Run the following command to switch SELinux to 'permissive' mode.
-
Provision
services.
Note:
TeamForge 17.4 (and later) installer expects the system locale to be
LANG=en_US.UTF-8. TeamForge "provision" command fails otherwise.
-
Start TeamForge.
-
Run the following command to switch SELinux to 'enforcing' mode.
-
Verify SELinux mode using "getenforce" command. Do this if you have SELinux
running in "permissive" mode:
-
Set SELinux to run in "enforcing" mode again.
-
Run the grep command to
get the value of httpd_user and httpd_group.
- grep rb_dir
/etc/reviewboard.properties
- grep rb_data_dir
/etc/reviewboard.properties
-
Run the following commands if Review Board is integrated with TeamForge.
- semanage fcontext -a -t
httpd_sys_rw_content_t
"<rb_data_dir>(/.*)?"
- restorecon -R -v
<rb_data_dir>
- semanage fcontext -a -t
httpd_sys_rw_content_t
"<rb_dir>(/.*)?"
- restorecon -R -v
<rb_dir>
- semanage fcontext -a -t
httpd_sys_rw_content_t
"/opt/collabnet/teamforge/var/home/apache(/.*)?"
- restorecon -R -v
/opt/collabnet/teamforge/var/home/apache
-
Restart TeamForge.