hub-feedback icon indicating copy to clipboard operation
hub-feedback copied to clipboard

"Logs are not available yet" but build actually runs

Open pokrovskyy opened this issue 5 years ago • 12 comments

When building, status shows IN PROGRESS, but Build Logs tab keeps saying "Logs are not available yet" (after multiple refreshes)

1 hour later I just cancelled the build assuming it's stuck. To my surprise, once it was cancelled, I saw the logs! From the very beginning and until the moment it was aborted. So I had no other choice but to restart the build. It's in-progress now, same as before - but this time I'll be sure to give it enough time to complete. Build status right now:

image

I'm new to DockerHub, not sure if it's the way it works or not, but I believe it definitely should not be this way. I literally wasted an hour of my time and also an hour of DockerHub's computational resources.

Please let me know if this is my specific problem or something related to DockerHub. See attached Dockerfile for reference:

# Base from anaconda3
FROM continuumio/anaconda3

# Update APT and install necessary system packages / prerequisites
RUN apt-get update -y
RUN apt-get install -y build-essential
RUN apt-get install -y autoconf automake gdb git libffi-dev zlib1g-dev libssl-dev curl libcurl4-openssl-dev libxml2-dev orca xvfb wget r-base r-base-dev libnss3 unzip chromium libgtk2.0 libgtk2.0-dev libgconf-2-4

# Install chromedriver
RUN wget -q "https://chromedriver.storage.googleapis.com/79.0.3945.36/chromedriver_linux64.zip" -O /tmp/chromedriver.zip \
    && unzip /tmp/chromedriver.zip -d /usr/bin/ \
    && rm /tmp/chromedriver.zip && chown root:root /usr/bin/chromedriver && chmod +x /usr/bin/chromedriver

# Install Google Chrome
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
RUN apt install -y ./google-chrome-stable_current_amd64.deb

# Install Python packages
RUN pip install docopt numpy pandas sklearn statsmodels xgboost lightgbm plotly altair selenium psutil requests plotly orca flask pygments

# Install orca with plotly
RUN conda install -y -c plotly plotly-orca

# Install R packages
RUN Rscript -e "install.packages(c('tidyverse', 'docopt', 'kableExtra'))"

pokrovskyy avatar Feb 08 '20 03:02 pokrovskyy

UPDATE: build completed (2nd attempt) - with the complete log showing up:

image

Why couldn't it update in real-time? (like eg. Heroku does)

pokrovskyy avatar Feb 08 '20 03:02 pokrovskyy

I faced the same problem @pokrovskyy!

aasifkhan7 avatar Jul 25 '20 14:07 aasifkhan7

any updates?

PabloSzx avatar Aug 22 '20 01:08 PabloSzx

same here and I'm wondering what happens

btw I'm using the build hook, but as described once the build is finished I can see the full log

totti4ever avatar Oct 12 '20 14:10 totti4ever

I got the same problem. It looks like something hang on and make me consider there is someting wrong, but what's the fact?

shanezhiu avatar Oct 30 '20 03:10 shanezhiu

I am also using hooks/build, very frustrating to not see logs at all until the end, very poor experience.

PhilCoggins avatar Mar 26 '21 16:03 PhilCoggins

I faced the same problem.The log was disappear at building step but with the complete build job log showing up.

Nick16061 avatar Apr 21 '21 03:04 Nick16061

Same here, any info/update about this issue is appreciated..

kevinadhiguna avatar Jul 02 '21 03:07 kevinadhiguna

image

And this is still a thing :(

aviadhahami avatar Mar 06 '22 14:03 aviadhahami

Can someone at hub say something? I just had the same thing happen. This is ridiculous.

mathemaphysics avatar Sep 08 '22 04:09 mathemaphysics

Look, I paid a year's subscription to be able to build image remote on dockerhub. It gives no feedback at all if there's an error. If it's queued, it would be nice to see it. That would be fine. But it says it's "in progress". I see no logs at all. I do see that it has the Dockerfile.

I've also tested this build locally. It runs fine. I just need it to run remotely and finish because I carry my machines with me and they can't be building all the time. Could someone just give us an idea of what might be happening?

mathemaphysics avatar Sep 08 '22 04:09 mathemaphysics

And now I'm angry. Finally got a log over night. Not a single error in it. Canceled. Why? No log until hours go by. No error reported. Nothing. I need to cancel this dockerhub subscription. I'm sick of this lazy garbage.

Cloning into '.'...
Warning: Permanently added the RSA host key for IP address 'XXX.XXX.XXX.XXX' to the list of known hosts.
Reset branch 'main'
Your branch is up to date with 'origin/main'.
KernelVersion: 5.4.0-1068-aws
Components: [{u'Version': u'20.10.15', u'Name': u'Engine', u'Details': {u'KernelVersion': u'5.4.0-1068-aws', u'Os': u'linux', u'BuildTime': u'2022-05-05T13:17:24.000000000+00:00', u'ApiVersion': u'1.41', u'MinAPIVersion': u'1.12', u'GitCommit': u'4433bf6', u'Arch': u'amd64', u'Experimental': u'false', u'GoVersion': u'go1.17.9'}}, {u'Version': u'1.6.4', u'Name': u'containerd', u'Details': {u'GitCommit': u'212e8b6fa2f44b9c21b2798135fc6fb7c53efc16'}}, {u'Version': u'1.1.1', u'Name': u'runc', u'Details': {u'GitCommit': u'v1.1.1-0-g52de29d'}}, {u'Version': u'0.19.0', u'Name': u'docker-init', u'Details': {u'GitCommit': u'de40ad0'}}]
Arch: amd64
BuildTime: 2022-05-05T13:17:24.000000000+00:00
ApiVersion: 1.41
Platform: {u'Name': u'Docker Engine - Community'}
Version: 20.10.15
MinAPIVersion: 1.12
GitCommit: 4433bf6
Os: linux
GoVersion: go1.17.9
Buildkit: Starting build for index.docker.io/mathemaphysics/spatial-gpu:latest...
Build canceled.

mathemaphysics avatar Sep 08 '22 12:09 mathemaphysics