Unable to Start Confluence with "cannot restore segment prot after reloc: Permission denied" Error

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Symptoms

  • You are trying to run Confluence in an OS with SELinux

The following appears in catalina.out:

1 2 Error: failed /home/test/jdk1.7/jdk1.7.0_17/jre/lib/i386/client/libjvm.so, because /home/test/jdk1.7/jdk1.7.0_17/jre/lib/i386/client/libjvm.so: cannot restore segment prot after reloc: Permission denied Error: dl failure on line 864

Cause

SELinux is installed and enabled in the OS.

Workaround

  1. Temporarily disable SELinux by running this command in the terminal:

    1 /usr/sbin/setenforce 0
  2. Restart Confluence

  3. To re-enable SELinux, run this:

1 /usr/sbin/setenforce 1
Updated on April 11, 2025

Still need help?

The Atlassian Community is here for you.