function_get_testlog >> function_unpack 

Fuego 1.0 wiki

Login

Issue 0027 in split format

Summary
Error 503: Service Temporarily Unavailable during image creation (install.sh); Owner: Tim; Reporter: Mark Choi; Status: closed; Priority: medium
; Summary: Error 503: Service Temporarily Unavailable during image creation (install.sh); Owner: Tim; Reporter: Mark Choi; Status: closed; Priority: medium

Description [edit section]

= Description =Mark Choi had problems creating his Fuego docker container.
From the Fuego mailing list ( msg):{{{#!YellowBoxHi Tim,
From the Fuego mailing list ([[https://lists.linuxfoundation.org/pipermail/fuego/2017-February/000205.html| msg]]):{{{#!YellowBoxHi Tim,
I found problem was caused by update.sh. I started docker image and start /etc/init.d/jenkins then I tried as follow and get log.
I found problem was caused by update.sh. I started docker image and start /etc/init.d/jenkins then I tried as follow and get log.
root@e4fc08fb2bb0:/fuego-install/jenkins-updates# ./updates.shJenkins cache is /var/cache/jenkins/warconverted 'http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar' (ANSI_X3.4-1968) -> 'http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar' (UTF-8)--2017-02-28 08:11:07-- http://localhost:8080/fuego/jnlpJars/jenkins-cli.jarResolving localhost (localhost)... ::1, 127.0.0.1Connecting to localhost (localhost)|::1|:8080... connected.HTTP request sent, awaiting response... 200 OKLength: 605730 (592K) [application/java-archive]Saving to: 'jenkins-cli.jar'
root@e4fc08fb2bb0:/fuego-install/jenkins-updates# ./updates.shJenkins cache is /var/cache/jenkins/warconverted 'http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar' (ANSI_X3.4-1968) -> 'http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar' (UTF-8)--2017-02-28 08:11:07--  http://localhost:8080/fuego/jnlpJars/jenkins-cli.jarResolving localhost (localhost)... ::1, 127.0.0.1Connecting to localhost (localhost)|::1|:8080... connected.HTTP request sent, awaiting response... 200 OKLength: 605730 (592K) [application/java-archive]Saving to: 'jenkins-cli.jar'
jenkins-cli.jar 100%[============================================================>] 591.53K --.-KB/s in 0.05s
jenkins-cli.jar                  100%[============================================================>] 591.53K  --.-KB/s   in 0.05s
2017-02-28 08:11:07 (11.6 MB/s) - 'jenkins-cli.jar' saved [605730/605730]
2017-02-28 08:11:07 (11.6 MB/s) - 'jenkins-cli.jar' saved [605730/605730]
'./css/style1.css' -> '/var/cache/jenkins/war/css/style1.css./css/style.css' -> '/var/cache/jenkins/war/css/style.css./css/style2.css' -> '/var/cache/jenkins/war/css/style2.css./images/24x24/plot.png' -> '/var/cache/jenkins/war/images/24x24/plot.png./images/32x32/computer.gif' -> '/var/cache/jenkins/war/images/32x32/computer.gif./images/32x32/computer.png' -> '/var/cache/jenkins/war/images/32x32/computer.png./images/Renesas.png' -> '/var/cache/jenkins/war/images/Renesas.png./images/LinuxFoundation.png' -> '/var/cache/jenkins/war/images/LinuxFoundation.png./images/cogent-embedded.png' -> '/var/cache/jenkins/war/images/cogent-embedded.png./images/LTSI.png' -> '/var/cache/jenkins/war/images/LTSI.png./images/48x48/computer.gif' -> '/var/cache/jenkins/war/images/48x48/computer.gif./images/48x48/computer.png' -> '/var/cache/jenkins/war/images/48x48/computer.png./images/originals' -> '/var/cache/jenkins/war/images/originals./images/originals/linuxfoundation.png' -> '/var/cache/jenkins/war/images/originals/linuxfoundation.png./images/originals/ltsi.jpg' -> '/var/cache/jenkins/war/images/originals/ltsi.jpg./images/originals/cogent-embedded.png' -> '/var/cache/jenkins/war/images/originals/cogent-embedded.png./images/originals/Renesas_Electronics_logo.png' -> '/var/cache/jenkins/war/images/originals/Renesas_Electronics_logo.png./images/LTSI.jpg' -> '/var/cache/jenkins/war/images/LTSI.jpg'/fuego-install/jenkins-updates/en_UScopying WEB-INF/lib/jenkins-core-1.509.2.jar -> /var/cache/jenkins/war/WEB-INF/lib/jenkins-core-1.509.2.jar[ ok ] Restarting Jenkins Continuous Integration Server: jenkins.converted 'http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar' (ANSI_X3.4-1968) -> 'http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar' (UTF-8)--2017-02-28 08:11:16-- http://localhost:8080/fuego/jnlpJars/jenkins-cli.jarResolving localhost (localhost)... ::1, 127.0.0.1Connecting to localhost (localhost)|::1|:8080... failed: Connection refused.Connecting to localhost (localhost)|127.0.0.1|:8080... failed: Connection refused.Retrying wget -v --no-proxy http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar -O jenkins-cli.jar[....] Restarting Jenkins Continuous Integration Server: jenkinsThe selected http port (8080) seems to be in use by another programPlease select another port to use for jenkins failed!converted 'http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar' (ANSI_X3.4-1968) -> 'http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar' (UTF-8)--2017-02-28 08:11:46-- http://localhost:8080/fuego/jnlpJars/jenkins-cli.jarResolving localhost (localhost)... ::1, 127.0.0.1Connecting to localhost (localhost)|::1|:8080... failed: Connection refused.Connecting to localhost (localhost)|127.0.0.1|:8080... failed: Connection refused.Retrying wget -v --no-proxy http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar -O jenkins-cli.jar[ ok ] Restarting Jenkins Continuous Integration Server: jenkins.converted 'http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar' (ANSI_X3.4-1968) -> 'http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar' (UTF-8)--2017-02-28 08:11:57-- http://localhost:8080/fuego/jnlpJars/jenkins-cli.jarResolving localhost (localhost)... ::1, 127.0.0.1Connecting to localhost (localhost)|::1|:8080... connected.HTTP request sent, awaiting response... 503 Service Temporarily Unavailable2017-02-28 08:11:59 ERROR 503: Service Temporarily Unavailable.
'./css/style1.css' -> '/var/cache/jenkins/war/css/style1.css''./css/style.css' -> '/var/cache/jenkins/war/css/style.css''./css/style2.css' -> '/var/cache/jenkins/war/css/style2.css''./images/24x24/plot.png' -> '/var/cache/jenkins/war/images/24x24/plot.png''./images/32x32/computer.gif' -> '/var/cache/jenkins/war/images/32x32/computer.gif''./images/32x32/computer.png' -> '/var/cache/jenkins/war/images/32x32/computer.png''./images/Renesas.png' -> '/var/cache/jenkins/war/images/Renesas.png''./images/LinuxFoundation.png' -> '/var/cache/jenkins/war/images/LinuxFoundation.png''./images/cogent-embedded.png' -> '/var/cache/jenkins/war/images/cogent-embedded.png''./images/LTSI.png' -> '/var/cache/jenkins/war/images/LTSI.png''./images/48x48/computer.gif' -> '/var/cache/jenkins/war/images/48x48/computer.gif''./images/48x48/computer.png' -> '/var/cache/jenkins/war/images/48x48/computer.png''./images/originals' -> '/var/cache/jenkins/war/images/originals''./images/originals/linuxfoundation.png' -> '/var/cache/jenkins/war/images/originals/linuxfoundation.png''./images/originals/ltsi.jpg' -> '/var/cache/jenkins/war/images/originals/ltsi.jpg''./images/originals/cogent-embedded.png' -> '/var/cache/jenkins/war/images/originals/cogent-embedded.png''./images/originals/Renesas_Electronics_logo.png' -> '/var/cache/jenkins/war/images/originals/Renesas_Electronics_logo.png''./images/LTSI.jpg' -> '/var/cache/jenkins/war/images/LTSI.jpg'/fuego-install/jenkins-updates/en_UScopying WEB-INF/lib/jenkins-core-1.509.2.jar -> /var/cache/jenkins/war/WEB-INF/lib/jenkins-core-1.509.2.jar[ ok ] Restarting Jenkins Continuous Integration Server: jenkins.converted 'http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar' (ANSI_X3.4-1968) -> 'http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar' (UTF-8)--2017-02-28 08:11:16--  http://localhost:8080/fuego/jnlpJars/jenkins-cli.jarResolving localhost (localhost)... ::1, 127.0.0.1Connecting to localhost (localhost)|::1|:8080... failed: Connection refused.Connecting to localhost (localhost)|127.0.0.1|:8080... failed: Connection refused.Retrying wget -v --no-proxy http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar -O jenkins-cli.jar[....] Restarting Jenkins Continuous Integration Server: jenkinsThe selected http port (8080) seems to be in use by another programPlease select another port to use for jenkins failed!converted 'http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar' (ANSI_X3.4-1968) -> 'http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar' (UTF-8)--2017-02-28 08:11:46--  http://localhost:8080/fuego/jnlpJars/jenkins-cli.jarResolving localhost (localhost)... ::1, 127.0.0.1Connecting to localhost (localhost)|::1|:8080... failed: Connection refused.Connecting to localhost (localhost)|127.0.0.1|:8080... failed: Connection refused.Retrying wget -v --no-proxy http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar -O jenkins-cli.jar[ ok ] Restarting Jenkins Continuous Integration Server: jenkins.converted 'http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar' (ANSI_X3.4-1968) -> 'http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar' (UTF-8)--2017-02-28 08:11:57--  http://localhost:8080/fuego/jnlpJars/jenkins-cli.jarResolving localhost (localhost)... ::1, 127.0.0.1Connecting to localhost (localhost)|::1|:8080... connected.HTTP request sent, awaiting response... 503 Service Temporarily Unavailable2017-02-28 08:11:59 ERROR 503: Service Temporarily Unavailable.
Retrying wget -v --no-proxy http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar -O jenkins-cli.jar[ ok ] Restarting Jenkins Continuous Integration Server: jenkins.converted 'http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar' (ANSI_X3.4-1968) -> 'http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar' (UTF-8)--2017-02-28 08:12:12-- http://localhost:8080/fuego/jnlpJars/jenkins-cli.jarResolving localhost (localhost)... ::1, 127.0.0.1Connecting to localhost (localhost)|::1|:8080... connected.HTTP request sent, awaiting response... 503 Service Temporarily Unavailable2017-02-28 08:12:14 ERROR 503: Service Temporarily Unavailable.
Retrying wget -v --no-proxy http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar -O jenkins-cli.jar[ ok ] Restarting Jenkins Continuous Integration Server: jenkins.converted 'http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar' (ANSI_X3.4-1968) -> 'http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar' (UTF-8)--2017-02-28 08:12:12--  http://localhost:8080/fuego/jnlpJars/jenkins-cli.jarResolving localhost (localhost)... ::1, 127.0.0.1Connecting to localhost (localhost)|::1|:8080... connected.HTTP request sent, awaiting response... 503 Service Temporarily Unavailable2017-02-28 08:12:14 ERROR 503: Service Temporarily Unavailable.
Retrying wget -v --no-proxy http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar -O jenkins-cli.jar[ ok ] Restarting Jenkins Continuous Integration Server: jenkins.^Croot@e4fc08fb2bb0:/fuego-install/jenkins-updates#
Retrying wget -v --no-proxy http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar -O jenkins-cli.jar[ ok ] Restarting Jenkins Continuous Integration Server: jenkins.^Croot@e4fc08fb2bb0:/fuego-install/jenkins-updates#
I did cat for /var/log/jenkins/jenkins.log and captured last part of log.
I did cat for /var/log/jenkins/jenkins.log and captured last part of log.
Feb 28, 2017 8:26:21 AM org.jenkinsci.main.modules.sshd.SSHD startINFO: Started SSHD at port 39951Feb 28, 2017 8:26:21 AM jenkins.InitReactorRunner$1 onAttainedINFO: Completed initializationFeb 28, 2017 8:26:21 AM hudson.TcpSlaveAgentListener <init>INFO: JNLP slave agent listener started on TCP port 38848Feb 28, 2017 8:26:21 AM hudson.WebAppMain$2 runINFO: Jenkins is fully up and runningFeb 28, 2017 8:27:19 AM winstone.Logger logInternalWARNING: Request URL /jnlpJars/jenkins-cli.jar not found - doesn't match any webapp prefixFeb 28, 2017 8:27:36 AM winstone.Logger logInternalWARNING: Request URL /jnlpJars/jenkins-cli.jar not found - doesn't match any webapp prefixFeb 28, 2017 8:28:54 AM winstone.Logger logInternalWARNING: Request URL / not found - doesn't match any webapp prefixroot@e4fc08fb2bb0:/fuego-install#
Feb 28, 2017 8:26:21 AM org.jenkinsci.main.modules.sshd.SSHD startINFO: Started SSHD at port 39951Feb 28, 2017 8:26:21 AM jenkins.InitReactorRunner$1 onAttainedINFO: Completed initializationFeb 28, 2017 8:26:21 AM hudson.TcpSlaveAgentListener <init>INFO: JNLP slave agent listener started on TCP port 38848Feb 28, 2017 8:26:21 AM hudson.WebAppMain$2 runINFO: Jenkins is fully up and runningFeb 28, 2017 8:27:19 AM winstone.Logger logInternalWARNING: Request URL /jnlpJars/jenkins-cli.jar not found - doesn't match any webapp prefixFeb 28, 2017 8:27:36 AM winstone.Logger logInternalWARNING: Request URL /jnlpJars/jenkins-cli.jar not found - doesn't match any webapp prefixFeb 28, 2017 8:28:54 AM winstone.Logger logInternalWARNING: Request URL / not found - doesn't match any webapp prefixroot@e4fc08fb2bb0:/fuego-install#
Could you please check this log and comment?
Could you please check this log and comment?
BR,Mark
BR,Mark
2017-02-24 16:55 GMT+09:00 Mark Choi <bchoi@mvista.com <mailto:bchoi@mvista.com> >:
2017-02-24 16:55 GMT+09:00 Mark Choi <bchoi@mvista.com <mailto:bchoi@mvista.com> >:
Hi Tim,
	Hi Tim,
Thanks to your reply. :)
	Thanks to your reply. :)
1) working on using the latest Jenkins I installed jenkin on the host as https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu <https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu> Would it cause problem?
	 1) working on using the latest Jenkins	     I installed jenkin on the host as https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu <https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu>  	     Would it cause problem?
2) working on getting a pre-made docker container that people can download without having to build their own.
	 2) working on getting a pre-made docker container that people can download without having to build their own.
Could you please recommend ? ;)
	    Could you please recommend ? ;)
I captured log for my trial as following:
	I captured log for my trial as following:
bchoi@atom2:~/work/third-party/fuego$ ./install.sh ... Step 47 : RUN /fuego-install/subsitute_jen_url_prefix.sh /fuego-install/jenkins-updates ---> Using cache ---> c26e6d5d21d6 Step 48 : WORKDIR /fuego-install/jenkins-updates ---> Using cache ---> 46cad051caf2 Step 49 : RUN echo "installing custom UI updates" ---> Using cache ---> ffbbbcc623e4 Step 50 : RUN /etc/init.d/jenkins start && ./updates.sh ---> Running in 2ddaccce07e3 Starting Jenkins Continuous Integration Server: jenkins. Jenkins cache is /var/cache/jenkins/war converted 'http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar <http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar> ' (ANSI_X3.4-1968) -> 'http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar <http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar> ' (UTF-8) --2017-02-24 07:49:16-- http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar <http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar>
	bchoi@atom2:~/work/third-party/fuego$ ./install.sh	...	Step 47 : RUN /fuego-install/subsitute_jen_url_prefix.sh /fuego-install/jenkins-updates	 ---> Using cache	 ---> c26e6d5d21d6	Step 48 : WORKDIR /fuego-install/jenkins-updates	 ---> Using cache	 ---> 46cad051caf2	Step 49 : RUN echo "installing custom UI updates"	 ---> Using cache	 ---> ffbbbcc623e4	Step 50 : RUN /etc/init.d/jenkins start && ./updates.sh	 ---> Running in 2ddaccce07e3	Starting Jenkins Continuous Integration Server: jenkins.	Jenkins cache is /var/cache/jenkins/war	converted 'http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar <http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar> ' (ANSI_X3.4-1968) -> 'http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar <http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar> ' (UTF-8)	--2017-02-24 07:49:16--  http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar <http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar> 
Resolving localhost (localhost)... ::1, 127.0.0.1 Connecting to localhost (localhost)|::1|:8080... failed: Connection refused. Connecting to localhost (localhost)|127.0.0.1|:8080... failed: Connection refused. Retrying wget -v --no-proxy http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar <http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar> -O jenkins-cli.jar
	Resolving localhost (localhost)... ::1, 127.0.0.1	Connecting to localhost (localhost)|::1|:8080... failed: Connection refused.	Connecting to localhost (localhost)|127.0.0.1|:8080... failed: Connection refused.	Retrying wget -v --no-proxy http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar <http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar>  -O jenkins-cli.jar
Restarting Jenkins Continuous Integration Server: jenkins. converted 'http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar <http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar> ' (ANSI_X3.4-1968) -> 'http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar <http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar> ' (UTF-8) --2017-02-24 07:49:28-- http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar <http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar>
	Restarting Jenkins Continuous Integration Server: jenkins.	converted 'http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar <http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar> ' (ANSI_X3.4-1968) -> 'http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar <http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar> ' (UTF-8)	--2017-02-24 07:49:28--  http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar <http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar> 
Resolving localhost (localhost)... ::1, 127.0.0.1 Connecting to localhost (localhost)|::1|:8080... connected. HTTP request sent, awaiting response... 503 Service Temporarily Unavailable 2017-02-24 07:49:33 ERROR 503: Service Temporarily Unavailable.
	Resolving localhost (localhost)... ::1, 127.0.0.1	Connecting to localhost (localhost)|::1|:8080... connected.	HTTP request sent, awaiting response... 503 Service Temporarily Unavailable	2017-02-24 07:49:33 ERROR 503: Service Temporarily Unavailable.
Retrying wget -v --no-proxy http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar <http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar> -O jenkins-cli.jar
	Retrying wget -v --no-proxy http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar <http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar>  -O jenkins-cli.jar
Restarting Jenkins Continuous Integration Server: jenkins. converted 'http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar <http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar> ' (ANSI_X3.4-1968) -> 'http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar <http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar> ' (UTF-8) --2017-02-24 07:49:44-- http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar <http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar>
	Restarting Jenkins Continuous Integration Server: jenkins.	converted 'http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar <http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar> ' (ANSI_X3.4-1968) -> 'http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar <http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar> ' (UTF-8)	--2017-02-24 07:49:44--  http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar <http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar> 
Resolving localhost (localhost)... ::1, 127.0.0.1 Connecting to localhost (localhost)|::1|:8080... connected. HTTP request sent, awaiting response... ^Cbchoi@atom2:~/work/third-party/f }}}
	Resolving localhost (localhost)... ::1, 127.0.0.1	Connecting to localhost (localhost)|::1|:8080... connected.	HTTP request sent, awaiting response... ^Cbchoi@atom2:~/work/third-party/f	}}}

Notes [edit section]

= Notes =The problem was that updates.sh was trying to access the Jenkins servertoo quickly. 
The problem is fixed by this commit 08f7d25
The problem is fixed by this commit [[https://bitbucket.org/tbird20d/fuego/commits/08f7d2545faa272f6d78b67c7394ba4eacc64083|08f7d25]]
backlink

Fuego Issues List

; backlink: [[Fuego Issues List]]
TBWiki engine 1.9.3 by Tim Bird