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 
     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
[sudo] password for bchoi:
Sending build context to Docker daemon 105.1 MB
Step 1 : FROM debian:jessie
 ---> 19134a8202e7
Step 2 : MAINTAINER tim.bird@am.sony.com
 ---> Using cache
 ---> 4ef47b94044b
Step 3 : ARG HTTP_PROXY
 ---> Using cache
 ---> 7e964752e35c
Step 4 : ENV INST_FUEGO_ENGINE_PATH /home/jenkins
 ---> Using cache
 ---> dde0288b5a04
Step 5 : ENV INST_FUEGO_FRONTEND_PATH /var/lib/jenkins
 ---> Using cache
 ---> 7ca695e83d33
Step 6 : ENV URL_PREFIX /fuego
 ---> Using cache
 ---> ccfbd2c42b00
Step 7 : WORKDIR /fuego-install
 ---> Using cache
 ---> edb08e19cf9f
Step 8 : RUN dpkg --add-architecture i386
 ---> Using cache
 ---> 8639734467ce
Step 9 : RUN echo deb http://ftp.us.debian.org/debian jessie main non-free >> /etc/apt/sources.list
 ---> Using cache
 ---> 461c7ff1d2b6
Step 10 : RUN if [ -n "$HTTP_PROXY" ]; then echo 'Acquire::http::proxy "'$HTTP_PROXY'";' > /etc/apt/apt.conf.d/80proxy; fi
 ---> Using cache
 ---> aed756ff978a
Step 11 : RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get -yV install apt-utils daemon gcc make python-paramiko python-lxml python-simplejson python-matplotlib libtool xmlstarlet autoconf automake rsync openjdk-7-jre openjdk-7-jdk iperf netperf netpipe-tcp texlive-latex-base sshpass wget git diffstat sudo net-tools vim openssh-server curl inotify-tools
 ---> Using cache
 ---> b36aa18cb5d1
Step 12 : RUN /bin/bash -c 'echo "dash dash/sh boolean false" | debconf-set-selections ; DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash'
 ---> Using cache
 ---> d6c7f83084c2
Step 13 : COPY frontend-install/jenkins_1.509.2_all.deb /fuego-install/
 ---> Using cache
 ---> ae0aa5e1f358
Step 14 : RUN dpkg -i /fuego-install/jenkins_1.509.2_all.deb
 ---> Using cache
 ---> b01a6c0a463a
Step 15 : RUN if [ -n "$HTTP_PROXY" ]; then echo "use_proxy = on" >> /etc/wgetrc && echo 'http_proxy =' $HTTP_PROXY >> /etc/wgetrc; fi
 ---> Using cache
 ---> 028e4805fe8d
Step 16 : RUN /bin/bash -c 'wget -nv "http://downloads.sourceforge.net/project/getfo/texml/texml-2.0.2/texml-2.0.2.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fgetfo%2F&ts=1398789654&use_mirror=jaist" -O texml.tar.gz ; tar xvf texml.tar.gz; cd texml-2.0.2 ; python setup.py install; cd -'
 ---> Using cache
 ---> 493250ccb4c3
Step 17 : RUN echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
 ---> Using cache
 ---> 8bce63c99e08
Step 18 : RUN echo deb http://emdebian.org/tools/debian/ jessie main > /etc/apt/sources.list.d/crosstools.list
 ---> Using cache
 ---> c4a09042cabc
Step 19 : RUN dpkg --add-architecture armhf
 ---> Using cache
 ---> be62180332cc
Step 20 : RUN if [ -n "$HTTP_PROXY" ]; then curl --proxy $HTTP_PROXY http://emdebian.org/tools/debian/emdebian-toolchain-archive.key | sudo apt-key add -; else curl http://emdebian.org/tools/debian/emdebian-toolchain-archive.key | sudo apt-key add -; fi
 ---> Using cache
 ---> 2b5d713beec4
Step 21 : RUN DEBIAN_FRONTEND=noninteractive apt-get update
 ---> Using cache
 ---> 3c5971aa96d5
Step 22 : RUN DEBIAN_FRONTEND=noninteractive apt-get -yV install crossbuild-essential-armhf
 ---> Using cache
 ---> 9f78584aaabf
Step 23 : ENV INST_FUEGO_CORE_GIT_REVISION c2ddbab
 ---> Using cache
 ---> 8aa835ebb580
Step 24 : RUN mkdir -p /home/jenkins
 ---> Using cache
 ---> 9811d541abce
Step 25 : RUN if [ -n "$HTTP_PROXY" ]; then git config --global http.proxy $HTTP_PROXY; fi
 ---> Using cache
 ---> d7ed36f07ec2
Step 26 : RUN git clone https://bitbucket.org/tbird20d/fuego-core.git $INST_FUEGO_ENGINE_PATH/fuego && cd $INST_FUEGO_ENGINE_PATH/fuego && git reset --hard $INST_FUEGO_CORE_NEXT_GIT_REVISION && cd /fuego-install
 ---> Using cache
 ---> 1166c682964b
Step 27 : RUN ln -s $INST_FUEGO_ENGINE_PATH/fuego/engine/* $INST_FUEGO_ENGINE_PATH/
 ---> Using cache
 ---> 0f9e924b6a9d
Step 28 : RUN ln -s $INST_FUEGO_ENGINE_PATH/fuego/jobs $INST_FUEGO_FRONTEND_PATH/jobs
 ---> Using cache
 ---> 7349d4101795
Step 29 : COPY docs $INST_FUEGO_FRONTEND_PATH/userContent/docs/
 ---> Using cache
 ---> f7ffd99f3643
Step 30 : RUN ln -s $INST_FUEGO_ENGINE_PATH/fuego/engine/scripts/ftc /usr/local/bin/
 ---> Using cache
 ---> a3ecf1216198
Step 31 : COPY fuego-scripts/maintain_config_link.sh /usr/local/bin/
 ---> Using cache
 ---> 790a7dc771a7
Step 32 : RUN ln -s /userdata/buildzone $INST_FUEGO_ENGINE_PATH/buildzone
 ---> Using cache
 ---> c763a03176bb
Step 33 : RUN ln -s /userdata/work $INST_FUEGO_ENGINE_PATH/work
 ---> Using cache
 ---> b2bbee76afe7
Step 34 : RUN ln -s /userdata/logs $INST_FUEGO_ENGINE_PATH/logs
 ---> Using cache
 ---> 72631eb4b142
Step 35 : RUN ln -s /userdata/logs $INST_FUEGO_FRONTEND_PATH/logs
 ---> Using cache
 ---> a0ac32f43928
Step 36 : RUN ln -s /userdata/conf/boards $INST_FUEGO_ENGINE_PATH/overlays/boards
 ---> Using cache
 ---> 8ef92486bf52
Step 37 : RUN ln -s /userdata/conf/config.xml $INST_FUEGO_FRONTEND_PATH/config.xml
 ---> Using cache
 ---> 5db5957ad12d
Step 38 : RUN ln -s /userdata/conf/tools.sh $INST_FUEGO_ENGINE_PATH/scripts/tools.sh
 ---> Using cache
 ---> 388d7b0042bc
Step 39 : RUN ln -s $INST_FUEGO_ENGINE_PATH/fuego/plugins-conf/scriptler $INST_FUEGO_FRONTEND_PATH/
 ---> Using cache
 ---> 07516d61482a
Step 40 : RUN ln -s $INST_FUEGO_ENGINE_PATH/fuego/plugins-conf/sidebar-link.xml $INST_FUEGO_FRONTEND_PATH/
 ---> Using cache
 ---> 1c3052a276c3
Step 41 : COPY frontend-install/jenkins.cfg /etc/default/jenkins
 ---> Using cache
 ---> f8a02e7f3793
Step 42 : COPY fuego-scripts/subsitute_jen_url_prefix.sh /fuego-install/
 ---> Using cache
 ---> 6dd4a9693178
Step 43 : RUN /fuego-install/subsitute_jen_url_prefix.sh /etc/default/jenkins
 ---> Using cache
 ---> ebaa2d2af0fb
Step 44 : RUN chown -R jenkins  $INST_FUEGO_ENGINE_PATH $INST_FUEGO_FRONTEND_PATH /var/cache/jenkins /etc/default/jenkins
 ---> Using cache
 ---> 37d7165f2169
Step 45 : COPY frontend-install/plugins $INST_FUEGO_FRONTEND_PATH/
 ---> Using cache
 ---> 678c9358cfc4
Step 46 : COPY frontend-install/jenkins-updates /fuego-install/jenkins-updates
 ---> Using cache
 ---> b3c77ee2fe76
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' (ANSI_X3.4-1968) -> 'http://localhost:8080/fuego/jnlpJars/jenkins-cli.jar' (UTF-8)
--2017-02-24 07:49: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: 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-24 07:49:28--  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 -O jenkins-cli.jar
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-24 07:49:44--  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/fuego$

BR,
Mark



2017-02-24 1:21 GMT+09:00 Bird, Timothy <Tim.Bird@sony.com>:


> -----Original Message-----
> From: Mark Choi on Tuesday, February 21, 2017 10:40 PM
>
> It is my first trip to fuego. :)
>
Hello Mark,

Thanks for trying out Fuego.  I'm sorry you are having problems.  I apologize
for the slow response.  Most of the lead Fuego developers are at
Embedded Linux Conference this week, and away from our desks.  So the response
might be a bit slow.

> I run fuego/install.sh after git clone but, I got error message continuing as
> follow:
>
> 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-22 06:35:27--  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-22 06:35:28 ERROR 503: Service Temporarily Unavailable.
>
>
> It repeatedly permanently.
>
> My host is Ubuntu-16.04.
>
> Can you help me ?

Just to double-check, you see this during install.sh, not during
docker-create_container.sh or docker-start-container.sh?

Can you please send the whole output from install.sh?  I'd like
to see what build step this is in.  I strongly suspect it's during the
Jenkins installation step.  It appears that Jenkins is not starting
up during the install into the container, and a post-install step
in the docker package itself is failing trying to put the jenkins-cli.jar
into the Docker container.  This could be either a docker bug (maybe
with networking) or a jenkins bug, with that version of Jenkins.

Just FYI we are in the process of  doing a few things that should help
eliminate these types of problems:
 1) working on using the latest Jenkins
 2) working on getting a pre-made docker container that people can
download without having to build their own.

However, these won't be ready for a while and doesn't help with
the problem at hand.   Please send the full log, and I'll try to see
if I can figure it out.

Thanks,
 -- Tim



--
=========================
Mark Choi ( 최봉규 부장 )
Customer Support Engineer
MontaVista Software, LLC

http://www.mvista.com
Tel:  +82 70 7017 3452
Fax: +82 2 403 3450
Cell: +82 10  6865 0286
Email: bchoi@mvista.com
=========================