Issue_0027 

Fuego wiki

Login or create account

Issue 0027

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

Description [edit section]

Mark Choi had problems creating his Fuego docker container.

From the Fuego mailing list ( msg):

    Hi 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.
    
    root@e4fc08fb2bb0:/fuego-install/jenkins-updates# ./updates.sh
    Jenkins cache is /var/cache/jenkins/war
    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:07--  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... 200 OK
    Length: 605730 (592K) [application/java-archive]
    Saving to: 'jenkins-cli.jar'
    
    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]
    
    './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_US
    copying 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.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 -O jenkins-cli.jar
    [....] Restarting Jenkins Continuous Integration Server: jenkinsThe selected http port (8080) seems to be in use by another program
    Please 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.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 -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.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-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.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-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.
    ^C
    root@e4fc08fb2bb0:/fuego-install/jenkins-updates#
    
    
    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 start
    INFO: Started SSHD at port 39951
    Feb 28, 2017 8:26:21 AM jenkins.InitReactorRunner$1 onAttained
    INFO: Completed initialization
    Feb 28, 2017 8:26:21 AM hudson.TcpSlaveAgentListener <init>
    INFO: JNLP slave agent listener started on TCP port 38848
    Feb 28, 2017 8:26:21 AM hudson.WebAppMain$2 run
    INFO: Jenkins is fully up and running
    Feb 28, 2017 8:27:19 AM winstone.Logger logInternal
    WARNING: Request URL /jnlpJars/jenkins-cli.jar not found - doesn't match any webapp prefix
    Feb 28, 2017 8:27:36 AM winstone.Logger logInternal
    WARNING: Request URL /jnlpJars/jenkins-cli.jar not found - doesn't match any webapp prefix
    Feb 28, 2017 8:28:54 AM winstone.Logger logInternal
    WARNING: Request URL / not found - doesn't match any webapp prefix
    root@e4fc08fb2bb0:/fuego-install#
    
    
    Could you please check this log and comment?
    
    BR,
    Mark
    
    2017-02-24 16:55 GMT+09:00 Mark Choi <bchoi@mvista.com <mailto:bchoi@mvista.com> >:
    
    
    	Hi Tim,
    
    	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?
    
    
    	 2) working on getting a pre-made docker container that people can download without having to build their own.
    
    	    Could you please recommend ? ;)
    
    	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>
    
    	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>
    
    	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
    
    	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

Notes [edit section]

The problem was that updates.sh was trying to access the Jenkins server too quickly.

The problem is fixed by this commit 08f7d25

backlink

Fuego Issues List

TBWiki engine 1.8.3 by Tim Bird