You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2017/12/06 08:07:25 UTC
[GitHub] saurabh1284 opened a new issue #3066: gradle build failed with Error response from daemon: no such id: scala
saurabh1284 opened a new issue #3066: gradle build failed with Error response from daemon: no such id: scala
URL: https://github.com/apache/incubator-openwhisk/issues/3066
## Environment details:
Distributed ubuntu14.04 env
docker version
Version: 1.12.0
API version: 1.24
Go version: go1.6.3
Git commit: 8eab29e
Built: Thu Jul 28 22:00:36 2016
OS/Arch: linux/amd64
## Steps to reproduce the issue:
1. gradle build fails while building for scala as below:
./gradlew distDocker -PdockerHost=100.100.100.91:4243 -PdockerRegistry=100.100.100.91:5000
.
.
Sending build context to Docker daemon 479.2 kB
Step 1 : FROM buildpack-deps:trusty-curl
---> dd89f3a8227b
Step 2 : ENV DEBIAN_FRONTEND noninteractive
---> Running in 90a85dd4ff25
---> b0bad491b7e7
Removing intermediate container 90a85dd4ff25
Step 3 : RUN locale-gen en_US.UTF-8
---> Running in 858c587074eb
Generating locales...
en_US.UTF-8... done
Generation complete.
---> 10925676ce68
Removing intermediate container 858c587074eb
Step 4 : ENV LANG en_US.UTF-8
---> Running in ce567f0892e6
---> dc74d7cba2a9
Removing intermediate container ce567f0892e6
Step 5 : ENV LANGUAGE en_US:en
---> Running in 4049f8aa8d16
---> 9b56e6feadfa
Removing intermediate container 4049f8aa8d16
Step 6 : ENV LC_ALL en_US.UTF-8
---> Running in 21520a916c33
> Task :common:scala:distDocker
Wed Dec 06 07:40:38 UTC 2017: Executing 'docker --host 100.100.100.91:4243 build -t scala /root/openwhisk/common/scala'
---> a0810f08e455
Removing intermediate container 21520a916c33
Step 7 : ENV VERSION 8
---> Running in 42b183ee95ab
---> 1ec97a8b361c
Removing intermediate container 42b183ee95ab
Step 8 : ENV UPDATE 141
---> Running in 5f2c82c4b2a3
---> 7c5b37147de6
Removing intermediate container 5f2c82c4b2a3
Step 9 : ENV BUILD 15
---> Running in 91af5eacc13c
---> bf681366e625
Removing intermediate container 91af5eacc13c
Step 10 : ENV SIG 336fa29ff2bb4ef291e347e091f7f4a7
---> Running in ac76a06ba91f
---> 7d37a12523aa
Removing intermediate container ac76a06ba91f
Step 11 : ENV JAVA_HOME /usr/lib/jvm/java-${VERSION}-oracle
---> Running in e823c44a0595
---> 6829e7b06f88
Removing intermediate container e823c44a0595
Step 12 : ENV JRE_HOME ${JAVA_HOME}/jre
---> Running in de3a92dca11e
---> 2987a7c66322
Removing intermediate container de3a92dca11e
Step 13 : ENV PATH $JAVA_HOME/bin:$PATH
---> Running in 0fca14db6955
---> 17562397b05d
Removing intermediate container 0fca14db6955
Step 14 : RUN curl --silent --location --retry 3 --cacert /etc/ssl/certs/GeoTrust_Global_CA.pem --header "Cookie: oraclelicense=accept-securebackup-cookie;" http://download.oracle.com/otn-pub/java/jdk/"${VERSION}"u"${UPDATE}"-b"${BUILD}"/"${SIG}"/jdk-"${VERSION}"u"${UPDATE}"-linux-x64.tar.gz | tar xz -C /tmp && mkdir -p /usr/lib/jvm && mv /tmp/jdk1.${VERSION}.0_${UPDATE} "${JAVA_HOME}" && apt-get autoclean && apt-get --purge -y autoremove && rm -rf /tmp/* /var/tmp/*
---> Running in 0b7cfcc2e940
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
The command '/bin/sh -c curl --silent --location --retry 3 --cacert /etc/ssl/certs/GeoTrust_Global_CA.pem --header "Cookie: oraclelicense=accept-securebackup-cookie;" http://download.oracle.com/otn-pub/java/jdk/"${VERSION}"u"${UPDATE}"-b"${BUILD}"/"${SIG}"/jdk-"${VERSION}"u"${UPDATE}"-linux-x64.tar.gz | tar xz -C /tmp && mkdir -p /usr/lib/jvm && mv /tmp/jdk1.${VERSION}.0_${UPDATE} "${JAVA_HOME}" && apt-get autoclean && apt-get --purge -y autoremove && rm -rf /tmp/* /var/tmp/*' returned a non-zero code: 2
Sending build context to Docker daemon 479.2 kB
> Task :common:scala:distDocker
Wed Dec 06 07:42:11 UTC 2017: Command 'docker --host 100.100.100.91:4243 build -t scala /root/openwhisk/common/scala' failed with exitCode 2, 2 retries left, retrying...
Wed Dec 06 07:42:11 UTC 2017: Executing 'docker --host 100.100.100.91:4243 build -t scala /root/openwhisk/common/scala'
Step 1 : FROM buildpack-deps:trusty-curl
---> dd89f3a8227b
Step 2 : ENV DEBIAN_FRONTEND noninteractive
---> Using cache
---> b0bad491b7e7
Step 3 : RUN locale-gen en_US.UTF-8
---> Using cache
---> 10925676ce68
Step 4 : ENV LANG en_US.UTF-8
---> Using cache
---> dc74d7cba2a9
Step 5 : ENV LANGUAGE en_US:en
---> Using cache
---> 9b56e6feadfa
Step 6 : ENV LC_ALL en_US.UTF-8
---> Using cache
---> a0810f08e455
Step 7 : ENV VERSION 8
---> Using cache
---> 1ec97a8b361c
Step 8 : ENV UPDATE 141
---> Using cache
---> 7c5b37147de6
Step 9 : ENV BUILD 15
---> Using cache
---> bf681366e625
Step 10 : ENV SIG 336fa29ff2bb4ef291e347e091f7f4a7
---> Using cache
---> 7d37a12523aa
Step 11 : ENV JAVA_HOME /usr/lib/jvm/java-${VERSION}-oracle
---> Using cache
---> 6829e7b06f88
Step 12 : ENV JRE_HOME ${JAVA_HOME}/jre
---> Using cache
---> 2987a7c66322
Step 13 : ENV PATH $JAVA_HOME/bin:$PATH
---> Using cache
---> 17562397b05d
Step 14 : RUN curl --silent --location --retry 3 --cacert /etc/ssl/certs/GeoTrust_Global_CA.pem --header "Cookie: oraclelicense=accept-securebackup-cookie;" http://download.oracle.com/otn-pub/java/jdk/"${VERSION}"u"${UPDATE}"-b"${BUILD}"/"${SIG}"/jdk-"${VERSION}"u"${UPDATE}"-linux-x64.tar.gz | tar xz -C /tmp && mkdir -p /usr/lib/jvm && mv /tmp/jdk1.${VERSION}.0_${UPDATE} "${JAVA_HOME}" && apt-get autoclean && apt-get --purge -y autoremove && rm -rf /tmp/* /var/tmp/*
---> Running in 07a905979251
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
The command '/bin/sh -c curl --silent --location --retry 3 --cacert /etc/ssl/certs/GeoTrust_Global_CA.pem --header "Cookie: oraclelicense=accept-securebackup-cookie;" http://download.oracle.com/otn-pub/java/jdk/"${VERSION}"u"${UPDATE}"-b"${BUILD}"/"${SIG}"/jdk-"${VERSION}"u"${UPDATE}"-linux-x64.tar.gz | tar xz -C /tmp && mkdir -p /usr/lib/jvm && mv /tmp/jdk1.${VERSION}.0_${UPDATE} "${JAVA_HOME}" && apt-get autoclean && apt-get --purge -y autoremove && rm -rf /tmp/* /var/tmp/*' returned a non-zero code: 2
Sending build context to Docker daemon 479.2 kB
> Task :common:scala:distDocker
Wed Dec 06 07:43:33 UTC 2017: Command 'docker --host 100.100.100.91:4243 build -t scala /root/openwhisk/common/scala' failed with exitCode 2, 1 retries left, retrying...
Wed Dec 06 07:43:33 UTC 2017: Executing 'docker --host 100.100.100.91:4243 build -t scala /root/openwhisk/common/scala'
Step 1 : FROM buildpack-deps:trusty-curl
---> dd89f3a8227b
Step 2 : ENV DEBIAN_FRONTEND noninteractive
---> Using cache
---> b0bad491b7e7
Step 3 : RUN locale-gen en_US.UTF-8
---> Using cache
---> 10925676ce68
Step 4 : ENV LANG en_US.UTF-8
---> Using cache
---> dc74d7cba2a9
Step 5 : ENV LANGUAGE en_US:en
---> Using cache
---> 9b56e6feadfa
Step 6 : ENV LC_ALL en_US.UTF-8
---> Using cache
---> a0810f08e455
Step 7 : ENV VERSION 8
---> Using cache
---> 1ec97a8b361c
Step 8 : ENV UPDATE 141
---> Using cache
---> 7c5b37147de6
Step 9 : ENV BUILD 15
---> Using cache
---> bf681366e625
Step 10 : ENV SIG 336fa29ff2bb4ef291e347e091f7f4a7
---> Using cache
---> 7d37a12523aa
Step 11 : ENV JAVA_HOME /usr/lib/jvm/java-${VERSION}-oracle
---> Using cache
---> 6829e7b06f88
Step 12 : ENV JRE_HOME ${JAVA_HOME}/jre
---> Using cache
---> 2987a7c66322
Step 13 : ENV PATH $JAVA_HOME/bin:$PATH
---> Using cache
---> 17562397b05d
Step 14 : RUN curl --silent --location --retry 3 --cacert /etc/ssl/certs/GeoTrust_Global_CA.pem --header "Cookie: oraclelicense=accept-securebackup-cookie;" http://download.oracle.com/otn-pub/java/jdk/"${VERSION}"u"${UPDATE}"-b"${BUILD}"/"${SIG}"/jdk-"${VERSION}"u"${UPDATE}"-linux-x64.tar.gz | tar xz -C /tmp && mkdir -p /usr/lib/jvm && mv /tmp/jdk1.${VERSION}.0_${UPDATE} "${JAVA_HOME}" && apt-get autoclean && apt-get --purge -y autoremove && rm -rf /tmp/* /var/tmp/*
---> Running in 35f8c2fe3cbf
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
The command '/bin/sh -c curl --silent --location --retry 3 --cacert /etc/ssl/certs/GeoTrust_Global_CA.pem --header "Cookie: oraclelicense=accept-securebackup-cookie;" http://download.oracle.com/otn-pub/java/jdk/"${VERSION}"u"${UPDATE}"-b"${BUILD}"/"${SIG}"/jdk-"${VERSION}"u"${UPDATE}"-linux-x64.tar.gz | tar xz -C /tmp && mkdir -p /usr/lib/jvm && mv /tmp/jdk1.${VERSION}.0_${UPDATE} "${JAVA_HOME}" && apt-get autoclean && apt-get --purge -y autoremove && rm -rf /tmp/* /var/tmp/*' returned a non-zero code: 2
> Task :common:scala:distDocker
Wed Dec 06 07:44:54 UTC 2017: Command 'docker --host 100.100.100.91:4243 build -t scala /root/openwhisk/common/scala' failed with exitCode 2, no more retries left, aborting...
Error response from daemon: no such id: scala
Error response from daemon: no such id: scala
Error response from daemon: no such id: scala
> Task :common:scala:tagImage
Wed Dec 06 07:44:54 UTC 2017: Executing 'docker --host 100.100.100.91:4243 tag scala 100.100.100.91:5000/whisk/scala:latest'
Wed Dec 06 07:44:54 UTC 2017: Command 'docker --host 100.100.100.91:4243 tag scala 100.100.100.91:5000/whisk/scala:latest' failed with exitCode 1, 2 retries left, retrying...
Wed Dec 06 07:44:54 UTC 2017: Executing 'docker --host 100.100.100.91:4243 tag scala 100.100.100.91:5000/whisk/scala:latest'
Wed Dec 06 07:44:54 UTC 2017: Command 'docker --host 100.100.100.91:4243 tag scala 100.100.100.91:5000/whisk/scala:latest' failed with exitCode 1, 1 retries left, retrying...
Wed Dec 06 07:44:54 UTC 2017: Executing 'docker --host 100.100.100.91:4243 tag scala 100.100.100.91:5000/whisk/scala:latest'
Wed Dec 06 07:44:54 UTC 2017: Command 'docker --host 100.100.100.91:4243 tag scala 100.100.100.91:5000/whisk/scala:latest' failed with exitCode 1, no more retries left, aborting...
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* Where:
Script '/root/openwhisk/gradle/docker.gradle' line: 96
* What went wrong:
Execution failed for task ':common:scala:distDocker'.
> Wed Dec 06 07:44:54 UTC 2017: Command 'docker --host 100.100.100.91:4243 build -t scala /root/openwhisk/common/scala' failed with exitCode 2
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
===================================================================
2: Task failed with an exception.
-----------
* Where:
Script '/root/openwhisk/gradle/docker.gradle' line: 96
* What went wrong:
Execution failed for task ':common:scala:tagImage'.
> Wed Dec 06 07:44:54 UTC 2017: Command 'docker --host 100.100.100.91:4243 tag scala 100.100.100.91:5000/whisk/scala:latest' failed with exitCode 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
===================================================================
## Additional information you deem important:
* I am on the head.. cloned recently.
* common/scala/Dockerfile looks like ==
FROM buildpack-deps:trusty-curl
ENV DEBIAN_FRONTEND noninteractive
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV VERSION 8
ENV UPDATE 141
ENV BUILD 15
ENV SIG 336fa29ff2bb4ef291e347e091f7f4a7
ENV JAVA_HOME /usr/lib/jvm/java-${VERSION}-oracle
ENV JRE_HOME ${JAVA_HOME}/jre
ENV PATH $JAVA_HOME/bin:$PATH
RUN curl --silent --location --retry 3 --cacert /etc/ssl/certs/GeoTrust_Global_CA.pem \
--header "Cookie: oraclelicense=accept-securebackup-cookie;" \
http://download.oracle.com/otn-pub/java/jdk/"${VERSION}"u"${UPDATE}"-b"${BUILD}"/"${SIG}"/jdk-"${VERSION}"u"${UPDATE}"-linux-x64.tar.gz \
| tar xz -C /tmp && \
mkdir -p /usr/lib/jvm && mv /tmp/jdk1.${VERSION}.0_${UPDATE} "${JAVA_HOME}" && \
apt-get autoclean && apt-get --purge -y autoremove && \
rm -rf /tmp/* /var/tmp/*
RUN update-alternatives --install "/usr/bin/java" "java" "${JRE_HOME}/bin/java" 1 && \
update-alternatives --install "/usr/bin/javac" "javac" "${JAVA_HOME}/bin/javac" 1 && \
update-alternatives --set java "${JRE_HOME}/bin/java" && \
update-alternatives --set javac "${JAVA_HOME}/bin/javac" && \
mkdir /logs
COPY transformEnvironment.sh /
RUN chmod +x transformEnvironment.sh
* Tried running same curl command on VM, as
VERSION=8
BUILD=15
UPDATE=141
-> curl --silent --location --retry 3 --cacert /etc/ssl/certs/GeoTrust_Global_CA.pem --header "Cookie: oraclelicense=accept-securebackup-cookie;" http://download.oracle.com/otn-pub/java/jdk/"${VERSION}"u"${UPDATE}"-b"${BUILD}"/"${SIG}"/jdk-"${VERSION}"u"${UPDATE}"-linux-x64.tar.gz -O
It took time. but able to download.
Thinking same..tried to increase "dockerTimeout" in docker.gradle file if in case curl take time to download. But changing "dockerTimeout" does not coming into effect.
* I had successfully deployed it 4 months back and still that setup is working fine. However, This is a new setup which I am trying to deploy.
Please suggest.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services