Cannot expose Jenkins externally












1















I'm hosting jenkins on windows (historical reasons)
Just updated it from 1.620 to 2.62



Everything works as expected, except the tiny details that I cannot access it anymore.
Only accessing it from host works.



I found numerous posts about it and they all suggested changing startup params to set:



--httpListenAddress=0.0.0.0


or



--httpListenAddress=HOST


I've tried both solutions, same result.
Jenkins works when accessed from the host by:




  • 127.0.0.1

  • 10.0.1.11 (internal ip)

  • x.x.x.x (external ip)

  • HOST


but doesn't work when accessed from any other machine.



I've checked firewall and azure settings. Other service (nexus:8081) is accessible as expected. Changing port to 8080 didn't help.



that's jenkins.xml



<service>
<id>jenkins</id>
<name>Jenkins</name>
<description>This service runs Jenkins continuous integration system.
</description>
<env name="JENKINS_HOME" value="%BASE%"/>
<env name="HTTP_HOST" value="HOST.cloudapp.net"/>
<executable>%JAVA_HOME%jrebinjava</executable>
<arguments>-Xrs -Xmx512M -Dfile.encoding=UTF8 -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "%BASE%jenkins.war" --httpPort=80 --httpListenAddress="%HTTP_HOST%" --webroot="%BASE%war"</arguments>
<logmode>rotate</logmode>
<onfailure action="restart" />
</service>


that's jenkins log



INFO: Started w.@1750fbeb{/,file:///E:/Program%20Files%20(x86)/Jenkins/war/,AVAILABLE}{E:Program Files (x86)Jenkinswar}
May 25, 2017 2:17:51 AM org.eclipse.jetty.server.AbstractConnector doStart
INFO: Started ServerConnector@7ae0a9ec{HTTP/1.1,[http/1.1]}{HOST.cloudapp.net:80}
May 25, 2017 2:17:51 AM org.eclipse.jetty.server.Server doStart
INFO: Started @4534ms
May 25, 2017 2:17:51 AM winstone.Logger logInternal
INFO: Winstone Servlet Engine v4.0 running: controlPort=disabled
May 25, 2017 2:17:54 AM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
May 25, 2017 2:17:55 AM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
(removed few lines about ruby failing)
INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36
May 25, 2017 2:18:04 AM jenkins.InitReactorRunner$1 onTaskFailed
SEVERE: Failed Loading plugin ruby-runtime v0.12 (ruby-runtime)
May 25, 2017 2:18:40 AM hudson.WebAppMain$3 run
INFO: Jenkins is fully up and running


when httpListenAddress was 0.0.0.0 log was:



INFO: Started ServerConnector@7ae0a9ec{HTTP/1.1,[http/1.1]}{0.0.0.0:80}









share|improve this question























  • Did you also try to use empty parameter for httpListenAddress, so e.g. something like--httpListenAddress= ?

    – kristian
    May 29 '17 at 9:52
















1















I'm hosting jenkins on windows (historical reasons)
Just updated it from 1.620 to 2.62



Everything works as expected, except the tiny details that I cannot access it anymore.
Only accessing it from host works.



I found numerous posts about it and they all suggested changing startup params to set:



--httpListenAddress=0.0.0.0


or



--httpListenAddress=HOST


I've tried both solutions, same result.
Jenkins works when accessed from the host by:




  • 127.0.0.1

  • 10.0.1.11 (internal ip)

  • x.x.x.x (external ip)

  • HOST


but doesn't work when accessed from any other machine.



I've checked firewall and azure settings. Other service (nexus:8081) is accessible as expected. Changing port to 8080 didn't help.



that's jenkins.xml



<service>
<id>jenkins</id>
<name>Jenkins</name>
<description>This service runs Jenkins continuous integration system.
</description>
<env name="JENKINS_HOME" value="%BASE%"/>
<env name="HTTP_HOST" value="HOST.cloudapp.net"/>
<executable>%JAVA_HOME%jrebinjava</executable>
<arguments>-Xrs -Xmx512M -Dfile.encoding=UTF8 -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "%BASE%jenkins.war" --httpPort=80 --httpListenAddress="%HTTP_HOST%" --webroot="%BASE%war"</arguments>
<logmode>rotate</logmode>
<onfailure action="restart" />
</service>


that's jenkins log



INFO: Started w.@1750fbeb{/,file:///E:/Program%20Files%20(x86)/Jenkins/war/,AVAILABLE}{E:Program Files (x86)Jenkinswar}
May 25, 2017 2:17:51 AM org.eclipse.jetty.server.AbstractConnector doStart
INFO: Started ServerConnector@7ae0a9ec{HTTP/1.1,[http/1.1]}{HOST.cloudapp.net:80}
May 25, 2017 2:17:51 AM org.eclipse.jetty.server.Server doStart
INFO: Started @4534ms
May 25, 2017 2:17:51 AM winstone.Logger logInternal
INFO: Winstone Servlet Engine v4.0 running: controlPort=disabled
May 25, 2017 2:17:54 AM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
May 25, 2017 2:17:55 AM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
(removed few lines about ruby failing)
INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36
May 25, 2017 2:18:04 AM jenkins.InitReactorRunner$1 onTaskFailed
SEVERE: Failed Loading plugin ruby-runtime v0.12 (ruby-runtime)
May 25, 2017 2:18:40 AM hudson.WebAppMain$3 run
INFO: Jenkins is fully up and running


when httpListenAddress was 0.0.0.0 log was:



INFO: Started ServerConnector@7ae0a9ec{HTTP/1.1,[http/1.1]}{0.0.0.0:80}









share|improve this question























  • Did you also try to use empty parameter for httpListenAddress, so e.g. something like--httpListenAddress= ?

    – kristian
    May 29 '17 at 9:52














1












1








1








I'm hosting jenkins on windows (historical reasons)
Just updated it from 1.620 to 2.62



Everything works as expected, except the tiny details that I cannot access it anymore.
Only accessing it from host works.



I found numerous posts about it and they all suggested changing startup params to set:



--httpListenAddress=0.0.0.0


or



--httpListenAddress=HOST


I've tried both solutions, same result.
Jenkins works when accessed from the host by:




  • 127.0.0.1

  • 10.0.1.11 (internal ip)

  • x.x.x.x (external ip)

  • HOST


but doesn't work when accessed from any other machine.



I've checked firewall and azure settings. Other service (nexus:8081) is accessible as expected. Changing port to 8080 didn't help.



that's jenkins.xml



<service>
<id>jenkins</id>
<name>Jenkins</name>
<description>This service runs Jenkins continuous integration system.
</description>
<env name="JENKINS_HOME" value="%BASE%"/>
<env name="HTTP_HOST" value="HOST.cloudapp.net"/>
<executable>%JAVA_HOME%jrebinjava</executable>
<arguments>-Xrs -Xmx512M -Dfile.encoding=UTF8 -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "%BASE%jenkins.war" --httpPort=80 --httpListenAddress="%HTTP_HOST%" --webroot="%BASE%war"</arguments>
<logmode>rotate</logmode>
<onfailure action="restart" />
</service>


that's jenkins log



INFO: Started w.@1750fbeb{/,file:///E:/Program%20Files%20(x86)/Jenkins/war/,AVAILABLE}{E:Program Files (x86)Jenkinswar}
May 25, 2017 2:17:51 AM org.eclipse.jetty.server.AbstractConnector doStart
INFO: Started ServerConnector@7ae0a9ec{HTTP/1.1,[http/1.1]}{HOST.cloudapp.net:80}
May 25, 2017 2:17:51 AM org.eclipse.jetty.server.Server doStart
INFO: Started @4534ms
May 25, 2017 2:17:51 AM winstone.Logger logInternal
INFO: Winstone Servlet Engine v4.0 running: controlPort=disabled
May 25, 2017 2:17:54 AM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
May 25, 2017 2:17:55 AM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
(removed few lines about ruby failing)
INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36
May 25, 2017 2:18:04 AM jenkins.InitReactorRunner$1 onTaskFailed
SEVERE: Failed Loading plugin ruby-runtime v0.12 (ruby-runtime)
May 25, 2017 2:18:40 AM hudson.WebAppMain$3 run
INFO: Jenkins is fully up and running


when httpListenAddress was 0.0.0.0 log was:



INFO: Started ServerConnector@7ae0a9ec{HTTP/1.1,[http/1.1]}{0.0.0.0:80}









share|improve this question














I'm hosting jenkins on windows (historical reasons)
Just updated it from 1.620 to 2.62



Everything works as expected, except the tiny details that I cannot access it anymore.
Only accessing it from host works.



I found numerous posts about it and they all suggested changing startup params to set:



--httpListenAddress=0.0.0.0


or



--httpListenAddress=HOST


I've tried both solutions, same result.
Jenkins works when accessed from the host by:




  • 127.0.0.1

  • 10.0.1.11 (internal ip)

  • x.x.x.x (external ip)

  • HOST


but doesn't work when accessed from any other machine.



I've checked firewall and azure settings. Other service (nexus:8081) is accessible as expected. Changing port to 8080 didn't help.



that's jenkins.xml



<service>
<id>jenkins</id>
<name>Jenkins</name>
<description>This service runs Jenkins continuous integration system.
</description>
<env name="JENKINS_HOME" value="%BASE%"/>
<env name="HTTP_HOST" value="HOST.cloudapp.net"/>
<executable>%JAVA_HOME%jrebinjava</executable>
<arguments>-Xrs -Xmx512M -Dfile.encoding=UTF8 -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "%BASE%jenkins.war" --httpPort=80 --httpListenAddress="%HTTP_HOST%" --webroot="%BASE%war"</arguments>
<logmode>rotate</logmode>
<onfailure action="restart" />
</service>


that's jenkins log



INFO: Started w.@1750fbeb{/,file:///E:/Program%20Files%20(x86)/Jenkins/war/,AVAILABLE}{E:Program Files (x86)Jenkinswar}
May 25, 2017 2:17:51 AM org.eclipse.jetty.server.AbstractConnector doStart
INFO: Started ServerConnector@7ae0a9ec{HTTP/1.1,[http/1.1]}{HOST.cloudapp.net:80}
May 25, 2017 2:17:51 AM org.eclipse.jetty.server.Server doStart
INFO: Started @4534ms
May 25, 2017 2:17:51 AM winstone.Logger logInternal
INFO: Winstone Servlet Engine v4.0 running: controlPort=disabled
May 25, 2017 2:17:54 AM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
May 25, 2017 2:17:55 AM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
(removed few lines about ruby failing)
INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36
May 25, 2017 2:18:04 AM jenkins.InitReactorRunner$1 onTaskFailed
SEVERE: Failed Loading plugin ruby-runtime v0.12 (ruby-runtime)
May 25, 2017 2:18:40 AM hudson.WebAppMain$3 run
INFO: Jenkins is fully up and running


when httpListenAddress was 0.0.0.0 log was:



INFO: Started ServerConnector@7ae0a9ec{HTTP/1.1,[http/1.1]}{0.0.0.0:80}






networking windows-server-2012-r2 jenkins






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked May 25 '17 at 2:42









KarpikKarpik

63




63













  • Did you also try to use empty parameter for httpListenAddress, so e.g. something like--httpListenAddress= ?

    – kristian
    May 29 '17 at 9:52



















  • Did you also try to use empty parameter for httpListenAddress, so e.g. something like--httpListenAddress= ?

    – kristian
    May 29 '17 at 9:52

















Did you also try to use empty parameter for httpListenAddress, so e.g. something like--httpListenAddress= ?

– kristian
May 29 '17 at 9:52





Did you also try to use empty parameter for httpListenAddress, so e.g. something like--httpListenAddress= ?

– kristian
May 29 '17 at 9:52










1 Answer
1






active

oldest

votes


















0














so turns out this question has nothing to do with Jenkins. So I apologize anyone you tried answering.
(Correct setting is either using the default value for httpListenAddress or setting it to --httpListenAddress=0.0.0.0)



It was windows firewall.
For old jenkis - 1.620 firewall had a rule for Java 6 and port 80. New jenkins is using Java 8 which was blocked.



Changing firewall rules fixed the problem.






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1212645%2fcannot-expose-jenkins-externally%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    so turns out this question has nothing to do with Jenkins. So I apologize anyone you tried answering.
    (Correct setting is either using the default value for httpListenAddress or setting it to --httpListenAddress=0.0.0.0)



    It was windows firewall.
    For old jenkis - 1.620 firewall had a rule for Java 6 and port 80. New jenkins is using Java 8 which was blocked.



    Changing firewall rules fixed the problem.






    share|improve this answer




























      0














      so turns out this question has nothing to do with Jenkins. So I apologize anyone you tried answering.
      (Correct setting is either using the default value for httpListenAddress or setting it to --httpListenAddress=0.0.0.0)



      It was windows firewall.
      For old jenkis - 1.620 firewall had a rule for Java 6 and port 80. New jenkins is using Java 8 which was blocked.



      Changing firewall rules fixed the problem.






      share|improve this answer


























        0












        0








        0







        so turns out this question has nothing to do with Jenkins. So I apologize anyone you tried answering.
        (Correct setting is either using the default value for httpListenAddress or setting it to --httpListenAddress=0.0.0.0)



        It was windows firewall.
        For old jenkis - 1.620 firewall had a rule for Java 6 and port 80. New jenkins is using Java 8 which was blocked.



        Changing firewall rules fixed the problem.






        share|improve this answer













        so turns out this question has nothing to do with Jenkins. So I apologize anyone you tried answering.
        (Correct setting is either using the default value for httpListenAddress or setting it to --httpListenAddress=0.0.0.0)



        It was windows firewall.
        For old jenkis - 1.620 firewall had a rule for Java 6 and port 80. New jenkins is using Java 8 which was blocked.



        Changing firewall rules fixed the problem.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 29 '17 at 13:30









        KarpikKarpik

        63




        63






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1212645%2fcannot-expose-jenkins-externally%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Список кардиналов, возведённых папой римским Каликстом III

            Deduzione

            Mysql.sock missing - “Can't connect to local MySQL server through socket”