Cannot expose Jenkins externally
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
add a comment |
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
Did you also try to use empty parameter forhttpListenAddress
, so e.g. something like--httpListenAddress=
?
– kristian
May 29 '17 at 9:52
add a comment |
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
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
networking windows-server-2012-r2 jenkins
asked May 25 '17 at 2:42
KarpikKarpik
63
63
Did you also try to use empty parameter forhttpListenAddress
, so e.g. something like--httpListenAddress=
?
– kristian
May 29 '17 at 9:52
add a comment |
Did you also try to use empty parameter forhttpListenAddress
, 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
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered May 29 '17 at 13:30
KarpikKarpik
63
63
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
Did you also try to use empty parameter for
httpListenAddress
, so e.g. something like--httpListenAddress=
?– kristian
May 29 '17 at 9:52