Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. First, see if SELinux is installed and enabled. Type the sestatus command.  If enabled, you will see output similar to this:SELinux status: enabled

    Code Block
    SELinuxfs mount:                /selinux
    Current mode:                   enforcing
    Mode from config file:          enforcing
    Policy version:                 24
    Policy from config file:        targeted
  2. To very quickly check whether SELinux is causing the connection error, you can temporarily switch its mode from "enforcing" to "permissive" (do this as root):

    Code Block
    setenforce Permissive

    Now test the Islandora module's connection to Fedora again. If that fixes the problem, you can then make a more permanent adjustment to SELinux to allow the connection to the Fedora server.

  3. You could completely disable SELinux, by changing its configuration in /etc/selinux/config but it's not necessary (and most often not recommended!).  The specific SELinux policy that is blocking access is likely httpd_can_network_connectFirst, change the mode back to "Enforcing", then switch on the policy http_can_network_connect.  Again, as root:

    Code Block
    setenforce Enforcing
    setsebool -P httpd_can_network_connect on

    Test the Islandora module's connection to Fedora once more.  If it works, you have adjusted the SELinux configuration to permit the needed connection without disabling it entirely.

Info

With thank thanks to the Islandora Community and the user and developer listervs for contributing issues, tests, and solutions.

...