Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-75701

ReverseProxySetupMonitor results in NullPointerException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core
    • None

      running Jenkins through a reverse proxy and see the "It appears that your reverse proxy set up is broken."  All troubleshooting came up with no issues in configuration.  Ran getTestForReverseProxySetup in Groovy console and saw NullPointerException.

      This will reproduce it every time:

      import hudson.diagnosis.ReverseProxySetupMonitor;
      def monitor = new ReverseProxySetupMonitor();
      def testResult = monitor.getTestForReverseProxySetup();

      First part of output and error message is:

      java.lang.NullPointerException: Cannot invoke "String.startsWith(String)" because "rest" is null at hudson.diagnosis.ReverseProxySetupMonitor.getTestForReverseProxySetup(ReverseProxySetupMonitor.java:99) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580)

        1. nginx-conf.txt
          11 kB
          Matthew
        2. jenkins.environment
          8 kB
          Matthew
        3. curl.ReverseProxySetupMonitor.test
          72 kB
          Matthew
        4. groovy-script-console-error.txt
          12 kB
          Matthew

            Unassigned Unassigned
            jenkins_b75a71 Matthew
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: