1 Reply Latest reply on Aug 8, 2016 12:34 PM by fsimorbrian

    Why does this openshift route succeed in CDK but fail in RHEL7 Atomic?

    fsimorbrian

      My complete configuration and test approach is described on GitHub:

      https://github.com/fsimorbrian/openshift-secure-routes

      When I create a simple route to an TLS enabled nginx container in OpenShift using the Red Hat provided CDK, I am able to see nginx provided error pages.

      When I create the same simple route using the same container configuration in OpenShift running on RHEL Atomic, the browser receives ERR_CONNECTION_CLOSED.

      Any answers or tips on how to troubleshoot this are greatly appreciated!

      P.S. before finding this Red Hat forum I also posted the same question to StackOverflow:

      nginx - Why does this openshift route succeed in CDK but fail in RHEL7 Atomic? - Stack Overflow

        • 1. Re: Why does this openshift route succeed in CDK but fail in RHEL7 Atomic?
          fsimorbrian

          It turns out we had a file permissions issue due to the random users on OpenShift.

           

          We corrected the following line to allow NGINX to read the configuration file and the problem was resolved:

           

          # this chmod line is required on atomic but not on CDK - researching why (moriarty)
          RUN chmod -R 777 /var/log/nginx /var/cache/nginx/ \

             && chmod -R 777 /var/run \

             && chmod -R 777 /etc/nginx/*