<div dir="ltr">Hi Changcheng,<div><br></div><div>It looks like it might be a network issue or (possibly?) you happened to run the command when the Fedora repo was being updated (I'm not sure if their repo updates are atomic).</div><div><br></div><div>Could you try re-running and if that doesn't work, raising an issue with the output of `sudo kata-collect-data.sh` pasted into the github issue?<br></div><div><br></div><div>- <a href="https://github.com/kata-containers/osbuilder/issues/new">https://github.com/kata-containers/osbuilder/issues/new</a></div><div><br></div><div>Cheers,</div><div><br></div><div>James</div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-06-06 13:12 GMT+01:00 Liu, Changcheng <span dir="ltr"><<a href="mailto:changcheng.liu@intel.com" target="_blank">changcheng.liu@intel.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div class="m_-7559646469845782467WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Bookman Old Style",serif;color:#1f497d">Hi all,<u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:12.0pt"><span style="font-size:10.0pt;font-family:"Bookman Old Style",serif;color:#1f497d">I fail to build rootfs on ubuntu host after following the “<a href="http://rootfs-builder/README.md" target="_blank">rootfs-builder/README.md</a>” guide.<u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:12.0pt"><span style="font-size:10.0pt;font-family:"Bookman Old Style",serif;color:#1f497d">Could anyone give me some idea to do further check?<u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:12.0pt"><span style="font-size:10.0pt;font-family:"Bookman Old Style",serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-indent:12.0pt"><b><span style="font-size:10.0pt;font-family:"Bookman Old Style",serif;color:#1f497d">Issue:<u></u><u></u></span></b></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">sudo -E ./rootfs-builder/rootfs.sh -r "${PWD}/fedora_rootfs" fedora<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">~/LINUX/go_repo/osbuilder/<wbr>rootfs-builder/fedora ~/LINUX/go_repo/osbuilder<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">#<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d"># Copyright (c) 2018 Intel Corporation<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">#<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d"># SPDX-License-Identifier: Apache-2.0<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d"><u></u> <u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">From fedora:27<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d"><u></u> <u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">RUN dnf -y update && dnf install -y git redhat-release systemd pkgconfig gcc coreutils<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d"><u></u> <u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d"># This will install the proper golang to build Kata components<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d"><u></u> <u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">ADD <a href="https://storage.googleapis.com/golang/go1.9.2.linux-amd64.tar.gz" target="_blank">https://storage.googleapis.<wbr>com/golang/go1.9.2.linux-<wbr>amd64.tar.gz</a> /tmp<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">RUN tar -C /usr/ -xzf /tmp/go1.9.2.linux-amd64.tar.<wbr>gz<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">ENV GOROOT=/usr/go<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">ENV PATH=$PATH:$GOROOT/bin:$<wbr>GOPATH/bin<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d"><u></u> <u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">Dockerfile: /usr/share/man/man5/<wbr>Dockerfile.5.gz<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">~/LINUX/go_repo/osbuilder<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">Sending build context to Docker daemon  4.096kB<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><b><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">Step 1/6 : From fedora:27<u></u><u></u></span></i></b></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">27: Pulling from library/fedora<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">2176639d844b: Pull complete<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">Digest: sha256:<wbr>ec588fc80b05e19d3006bf2e8aa325<wbr>f0a2e2ff1f609b7afb39176ca8e3e1<wbr>3467<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">Status: Downloaded newer image for fedora:27<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">---> 9110ae7f579f<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><b><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">Step 2/6 : RUN dnf -y update && dnf install -y git redhat-release systemd pkgconfig gcc coreutils<u></u><u></u></span></i></b></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">---> Running in d367d5572325<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><b><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">Error: Failed to synchronize cache for repo 'updates'<u></u><u></u></span></i></b></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><b><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">The command '/bin/sh -c dnf -y update && dnf install -y git redhat-release systemd pkgconfig gcc coreutils' returned
 a non-zero code: 1<u></u><u></u></span></i></b></p>
<p class="MsoNormal" style="text-indent:12.0pt"><span style="font-size:10.0pt;font-family:"Bookman Old Style",serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-indent:12.0pt"><b><span style="font-size:10.0pt;font-family:"Bookman Old Style",serif;color:#1f497d">Environment:<u></u><u></u></span></b></p>
<p class="MsoNormal" style="text-indent:12.0pt"><span style="font-size:10.0pt;font-family:"Bookman Old Style",serif;color:#1f497d">1. Host info:<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">lsb_release -a<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">LSB Version:  core-9.20160110ubuntu0.2-<wbr>amd64:core-9.20160110ubuntu0.<wbr>2-noarch:security-9.<wbr>20160110ubuntu0.2-amd64:<wbr>security-9.20160110ubuntu0.2-<wbr>noarch<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">Distributor ID:     Ubuntu<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">Description:  Ubuntu 16.04.1 LTS<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">Release:      16.04<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">Codename:     xenial<u></u><u></u></span></i></p>
<p class="MsoNormal"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d"><u></u> <u></u></span></i></p>
<p class="MsoNormal" style="text-indent:12.0pt"><span style="font-size:10.0pt;font-family:"Bookman Old Style",serif;color:#1f497d">2. Docker info:<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">sudo -E docker info 2>/dev/null | grep -i 'proxy\|runtime\|version'<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">Server Version: 18.03.1-ce<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">Runtimes: runc<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">Default Runtime: runc<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">containerd version: 773c489c9c1b21a6d78b5c538cd395<wbr>416ec50f88<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">runc version: 4fc53a81fb7c994640722ac585fa9c<wbr>a548971871<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">init version: 949e6fa<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">Kernel Version: 4.4.0-31-generic<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">HTTP Proxy: http://*********:913/<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">HTTPS Proxy: https://******:913/<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">No Proxy: localhost,<a href="http://127.0.0.0/8" target="_blank">127.0.0.0/8</a><u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d"><u></u> <u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">sudo docker version<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">Client:<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">Version:      18.03.1-ce<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">API version:  1.37<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">Go version:   go1.9.5<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">Git commit:   9ee9f40<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">Built:        Thu Apr 26 07:17:20 2018<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">OS/Arch:      linux/amd64<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">Experimental: false<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">Orchestrator: swarm<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d"><u></u> <u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">Server:<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">Engine:<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">  Version:      18.03.1-ce<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">  API version:  1.37 (minimum version 1.12)<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">  Go version:   go1.9.5<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">  Git commit:   9ee9f40<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">  Built:        Thu Apr 26 07:15:30 2018<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">  OS/Arch:      linux/amd64<u></u><u></u></span></i></p>
<p class="MsoNormal" style="margin-left:12.0pt;text-indent:12.0pt"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d">  Experimental: false<u></u><u></u></span></i></p>
<p class="MsoNormal"><i><span style="font-size:10.0pt;font-family:"Courier New";color:#1f497d"><u></u> <u></u></span></i></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Bookman Old Style",serif;color:#1f497d">Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Bookman Old Style",serif;color:#1f497d">Changcheng<u></u><u></u></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

<br>______________________________<wbr>_________________<br>
kata-dev mailing list<br>
<a href="mailto:kata-dev@lists.katacontainers.io">kata-dev@lists.katacontainers.<wbr>io</a><br>
<a href="http://lists.katacontainers.io/cgi-bin/mailman/listinfo/kata-dev" rel="noreferrer" target="_blank">http://lists.katacontainers.<wbr>io/cgi-bin/mailman/listinfo/<wbr>kata-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font color="#888888"><span style="font-family:monospace,monospace"><span style="font-family:monospace,monospace">James<br>---</span></span></font></div><div dir="ltr"><a href="https://katacontainers.io/" style="color:rgb(17,85,204);font-family:monospace,monospace" target="_blank">https://katacontainers.io/</a><span style="color:rgb(136,136,136);font-family:monospace,monospace"> | <a href="https://github.com/clearcontainers" target="_blank">https://github.com/clearcontainers</a></span><font color="#888888"><span style="font-family:monospace,monospace"><span style="font-family:monospace,monospace"><br></span></span></font></div><div dir="ltr"><font color="#888888"><font face="monospace, monospace">Open Source Technology Center</font><br><font face="monospace, monospace">Intel Corporation (UK) Ltd. - Co. Reg. #1134945 - Pipers Way, Swindon SN3 1RJ.</font></font><br></div></div></div></div></div></div></div></div></div>
</div>