Handling "permission denied" error on SELinux

EnrichVersion
6.4
6.3
6.2
6.1
6.0
5.6
EnrichProdName
Talend Big Data
Talend Data Fabric
Talend Data Management Platform
Talend MDM Platform
Talend Real-Time Big Data Platform
Talend Data Integration
Talend Integration Cloud
Talend ESB
Talend Data Services Platform
task
Installation and Upgrade
EnrichPlatform
Talend Administration Center

Handling "permission denied" error on SELinux

Using Talend Administration Center with SVN installed on a server with SELinux enabled on your operating system can produce this error: Can't open file 'db/txn-current-lock': Permission denied.

When you try to create a project in Talend Administration Center, it fails and you get an error in the log with these details:
Save failed: org.talend.exception.BusinessException: svn: E204900: Can't open file '/var/www/svn/repository/db/txn-current-lock': Permission denied
svn: E175002: PROJECTNAME of '/svn/!svn/act/283c5381-5301-0010-9f7f-495961e572c2': 500 Internal Server Error (http://SVN-URL) -- For more information see your log file

Procedure

  1. Open the terminal.
  2. Check if SELinux is enabled on your system using the sestatus.
    If SELinux is enabled on your system, the result should look like the following:
    root@ip-172-31-9-208 ~]# sestatus
    SELinux status: enabled
    SELinuxfs mount: /sys/fs/selinux
    SELinux root directory: /etc/selinux
    Loaded policy name: targeted
    Current mode: enforcing
    Mode from config file: enforcing
    Policy MLS status: enabled
    Policy deny_unknown status: allowed
    Max kernel policy version: 28
  3. Complete the installation with the following commands:
    chcon -R -t httpd_sys_content_t /var/www/svn/repository
    chcon -R -t httpd_sys_rw_content_t /var/www/svn/repository