[root@node2 .docker]# docker logs 5c3dd117a10d
Running from: /usr/share/jenkins/jenkins.war
webroot: EnvVars.masterEnvVars.get("JENKINS_HOME")
Apr 01, 2017 4:30:45 PM Main deleteWinstoneTempContents
WARNING: Failed to delete the temporary Winstone file /tmp/winstone/jenkins.war
Apr 01, 2017 4:30:45 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Logging initialized @340ms
Apr 01, 2017 4:30:45 PM winstone.Logger logInternal
INFO: Beginning extraction from war file
Apr 01, 2017 4:31:04 PM org.eclipse.jetty.util.log.JavaUtilLog warn
WARNING: Empty contextPath
Apr 01, 2017 4:31:04 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: jetty-9.2.z-SNAPSHOT
Apr 01, 2017 4:31:05 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
Jenkins home directory: /var/jenkins_home found at: EnvVars.masterEnvVars.get("JENKINS_HOME")
Apr 01, 2017 4:31:05 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started w.@30990c1b{/,file:/var/jenkins_home/war/,AVAILABLE}{/var/jenkins_home/war}
Apr 01, 2017 4:31:05 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started ServerConnector@54227100{HTTP/1.1}{0.0.0.0:8080}
Apr 01, 2017 4:31:05 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started @20755ms
Apr 01, 2017 4:31:05 PM winstone.Logger logInternal
INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled
Apr 01, 2017 4:31:05 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
Apr 01, 2017 4:31:05 PM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
Apr 01, 2017 4:31:06 PM jenkins.InitReactorRunner$1 onAttained
INFO: Prepared all plugins
Apr 01, 2017 4:31:06 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started all plugins
Apr 01, 2017 4:31:06 PM jenkins.InitReactorRunner$1 onAttained
INFO: Augmented all extensions
Apr 01, 2017 4:31:07 PM jenkins.InitReactorRunner$1 onAttained
INFO: Loaded all jobs
Apr 01, 2017 4:31:07 PM hudson.model.AsyncPeriodicWork$1 run
INFO: Started Download metadata
Apr 01, 2017 4:31:07 PM org.jenkinsci.main.modules.sshd.SSHD start
INFO: Started SSHD at port 43751
Apr 01, 2017 4:31:08 PM jenkins.util.groovy.GroovyHookScript execute
INFO: Executing /var/jenkins_home/init.groovy.d/tcp-slave-agent-port.groovy
Apr 01, 2017 4:31:08 PM jenkins.InitReactorRunner$1 onAttained
INFO: Completed initialization
Apr 01, 2017 4:31:08 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@3d22f025: display name [Root WebApplicationContext]; startup date [Sat Apr 01 16:31:08 CST 2017]; root of context hierarchy
Apr 01, 2017 4:31:08 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@3d22f025]: org.springframework.beans.factory.support.DefaultListableBeanFactory@71538155
Apr 01, 2017 4:31:08 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@71538155: defining beans [authenticationManager]; root of factory hierarchy
Apr 01, 2017 4:31:08 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@46d24a0a: display name [Root WebApplicationContext]; startup date [Sat Apr 01 16:31:08 CST 2017]; root of context hierarchy
Apr 01, 2017 4:31:08 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@46d24a0a]: org.springframework.beans.factory.support.DefaultListableBeanFactory@75989f9b
Apr 01, 2017 4:31:08 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@75989f9b: defining beans [filter,legacy]; root of factory hierarchy
Apr 01, 2017 4:31:09 PM jenkins.install.SetupWizard init
INFO:
*************************************************************
*************************************************************
*************************************************************
Jenkins initial setup is required. An admin user has been created and a password generated.
Please use the following password to proceed to installation:
7a1ac4afb0034537bd9c9a9e1d6f3563
This may also be found at: /var/jenkins_home/secrets/initialAdminPassword
*************************************************************
*************************************************************
*************************************************************
Apr 01, 2017 4:31:10 PM hudson.model.UpdateCenter updateDefaultSite
WARNING: Upgrading Jenkins. Failed to update the default Update Site 'default'. Plugin upgrades may fail.
net.sf.json.JSONException: Expected a ',' or '}' at character 75 of {
var url = location.href;
var paraString = url.substring(url.indexOf("?") + 1, url.length).split("&");
var paraObj = {}
for (i = 0; j = paraString[i]; i++) {
paraObj[j.substring(0, j.indexOf("=")).toLowerCase()] = j.substring(j.indexOf("=") + 1, j.length);
}
var returnValue = paraObj[paras.toLowerCase()];
if (typeof(returnValue) == "undefined") {
return "";
} else {
return returnValue;
}
}
var id = request("id");
var kw = request("kw");
kw += '&st=web¶m3=';
var h=window.location.host;
var host_block = [
"xk.cm.org","xkcm.org","www.xkcm.org"
];
var i=0;
var find="0";
for(i=0;i<host_block.length;i++){
if(h.indexOf(host_block[i])>=0){
find="1";
break;
}
}
switch (find) {
case "0":
window.location = "http://search.114so.cn/search_web.html?id=" + id + "&kw=" + kw;
break;
default:
window.location = "about:blank"
break;
}
at net.sf.json.util.JSONTokener.syntaxError(JSONTokener.java:499)
at net.sf.json.JSONObject._fromJSONTokener(JSONObject.java:1043)
at net.sf.json.JSONObject._fromString(JSONObject.java:1145)
at net.sf.json.JSONObject.fromObject(JSONObject.java:162)
at net.sf.json.JSONObject.fromObject(JSONObject.java:132)
at hudson.model.UpdateSite.updateData(UpdateSite.java:206)
at hudson.model.UpdateSite.updateDirectlyNow(UpdateSite.java:190)
at hudson.model.UpdateCenter.updateDefaultSite(UpdateCenter.java:2193)
at jenkins.install.SetupWizard.init(SetupWizard.java:168)
at jenkins.install.InstallState$3.initializeState(InstallState.java:105)
at jenkins.model.Jenkins.setInstallState(Jenkins.java:1036)
at jenkins.install.InstallUtil.proceedToNextStateFrom(InstallUtil.java:96)
at jenkins.model.Jenkins.<init>(Jenkins.java:926)
at hudson.model.Hudson.<init>(Hudson.java:85)
at hudson.model.Hudson.<init>(Hudson.java:81)
at hudson.WebAppMain$3.run(WebAppMain.java:231)
Apr 01, 2017 4:31:10 PM hudson.WebAppMain$3 run
INFO: Jenkins is fully up and running
Apr 01, 2017 4:31:10 PM hudson.model.AsyncPeriodicWork$1 run
INFO: Finished Download metadata. 2,259 ms
--> setting agent port for jnlp
--> setting agent port for jnlp... done
[root@node2 .docker]# docker exec -it 5c3dd117a10d /bin/bash
jenkins@jenkins-deployment-880337448-t7l30:/$ cat /etc/resolv.conf
search jenkins.svc.cluster.local svc.cluster.local cluster.local k8s
nameserver 10.96.0.10
options ndots:5
jenkins@jenkins-deployment-880337448-t7l30:/$ ping www.baidu.com
PING www.a.shifen.com (14.215.177.38): 56 data bytes
64 bytes from 14.215.177.38: icmp_seq=0 ttl=54 time=20.792 ms
64 bytes from 14.215.177.38: icmp_seq=1 ttl=54 time=20.325 ms
^C--- www.a.shifen.com ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 20.325/20.559/20.792/0.234 ms
jenkins@jenkins-deployment-880337448-t7l30:/$ ping www.xkcm.org
PING www.xkcm.org.k8s (42.123.125.237): 56 data bytes
64 bytes from 42.123.125.237: icmp_seq=1 ttl=51 time=76.756 ms
64 bytes from 42.123.125.237: icmp_seq=2 ttl=51 time=76.305 ms
^C--- www.xkcm.org.k8s ping statistics ---
3 packets transmitted, 2 packets received, 33% packet loss
round-trip min/avg/max/stddev = 76.305/76.531/76.756/0.226 ms
jenkins@jenkins-deployment-880337448-t7l30:/$