Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unclear messages #12

Open
aboettger-tuhh opened this issue Nov 28, 2017 · 2 comments
Open

Unclear messages #12

aboettger-tuhh opened this issue Nov 28, 2017 · 2 comments
Labels

Comments

@aboettger-tuhh
Copy link

What do I have to understand under the following messages?

$ deckschrubber -registry "${REGISTRY}" -latest 1 -repo itbh/hopon-fahrplan -repos 999 -dry
...
ERRO[0000] Could not fetch tag!                          repo=itbh/hopon-fahrplan tag=14910
ERRO[0000] Could not fetch tag!                          repo=itbh/hopon-fahrplan tag=14915
ERRO[0000] Could not fetch tag!                          repo=itbh/hopon-fahrplan tag=14913
ERRO[0000] Could not fetch tag!                          repo=itbh/hopon-fahrplan tag=14916
ERRO[0000] Could not fetch tag!                          repo=itbh/hopon-fahrplan tag=14912
ERRO[0000] Could not fetch tag!                          repo=itbh/hopon-fahrplan tag=14911
@yan-foto
Copy link
Member

A quick grep reveals the answer:

grep -nHRi 'Could not fetch tag!' -B 5 -A 5 .
Binary file ./deckschrubber matches
./main.go-159-			}
./main.go-160-
./main.go-161-			tagLogger.Debug("Fetching tag...")
./main.go-162-			desc, err := tagsService.Get(ctx, tag)
./main.go-163-			if err != nil {
./main.go:164:				tagLogger.Error("Could not fetch tag!")
./main.go-165-				continue
./main.go-166-			}
./main.go-167-
./main.go-168-			tagLogger.Debug("Fetching manifest...")
./main.go-169-			mnfst, err := manifestService.Get(ctx, desc.Digest)

We use the Docker API and from here on it can be anything from mismatching API versions to network problems. I think what you are proposing is to forward messages from Docker API.

@yan-foto
Copy link
Member

yan-foto commented Nov 28, 2017

I'll keep this open as a reminder to printout errors from Docker API. Thanks for the comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants