Skip to content

Improve log output of docker pull errors#880

Merged
eseliger merged 2 commits into
mainfrom
es/docker-pull-error-logs
Nov 7, 2022
Merged

Improve log output of docker pull errors#880
eseliger merged 2 commits into
mainfrom
es/docker-pull-error-logs

Conversation

@eseliger

@eseliger eseliger commented Nov 5, 2022

Copy link
Copy Markdown
Member

Recently a customer ran into some issue but we weren't able to tell WHAT the issue was. This adds additional log output.

Before

✅ Parsing batch spec
✅ Resolving namespace
⠸  Preparing container images                                                                                                                                                 0%

❌ Error:
   pulling image "ubunootu:18.04": pulling image: exit status 1

💡 The troubleshooting documentation can help to narrow down the cause of the errors:
   https://docs.sourcegraph.com/batch_changes/references/troubleshooting

After

✅ Parsing batch spec
✅ Resolving namespace
⠏  Preparing container images                                                                                                                                                 0%

❌ Error:
   pulling image "ubunootu:18.04": failed to pull image: Error response from daemon: failed to resolve reference "docker.io/library/ubunootu:18.04": pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
   docker pull exited with code 1

💡 The troubleshooting documentation can help to narrow down the cause of the errors:
   https://docs.sourcegraph.com/batch_changes/references/troubleshooting

Test plan

Verified output looks good.

Recently a customer ran into _some_ issue but we weren't able to tell WHAT the issue was. This adds additional log output.

*Before*

```
✅ Parsing batch spec
✅ Resolving namespace
⠸  Preparing container images                                                                                                                                                 0%

❌ Error:
   pulling image "ubunootu:18.04": pulling image: exit status 1

💡 The troubleshooting documentation can help to narrow down the cause of the errors:
   https://docs.sourcegraph.com/batch_changes/references/troubleshooting
```

*After*

```
✅ Parsing batch spec
✅ Resolving namespace
⠏  Preparing container images                                                                                                                                                 0%

❌ Error:
   pulling image "ubunootu:18.04": failed to pull image: Error response from daemon: failed to resolve reference "docker.io/library/ubunootu:18.04": pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
   docker pull exited with code 1

💡 The troubleshooting documentation can help to narrow down the cause of the errors:
   https://docs.sourcegraph.com/batch_changes/references/troubleshooting
```
@eseliger eseliger requested a review from a team November 5, 2022 00:22

@courier-new courier-new left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great improvement. 🙂

@eseliger eseliger enabled auto-merge (squash) November 7, 2022 12:16
@eseliger eseliger merged commit c908e51 into main Nov 7, 2022
@eseliger eseliger deleted the es/docker-pull-error-logs branch November 7, 2022 12:17
scjohns pushed a commit that referenced this pull request Apr 24, 2023
Recently a customer ran into _some_ issue but we weren't able to tell WHAT the issue was. This adds additional log output.

*Before*

```
✅ Parsing batch spec
✅ Resolving namespace
⠸  Preparing container images                                                                                                                                                 0%

❌ Error:
   pulling image "ubunootu:18.04": pulling image: exit status 1

💡 The troubleshooting documentation can help to narrow down the cause of the errors:
   https://docs.sourcegraph.com/batch_changes/references/troubleshooting
```

*After*

```
✅ Parsing batch spec
✅ Resolving namespace
⠏  Preparing container images                                                                                                                                                 0%

❌ Error:
   pulling image "ubunootu:18.04": failed to pull image: Error response from daemon: failed to resolve reference "docker.io/library/ubunootu:18.04": pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
   docker pull exited with code 1

💡 The troubleshooting documentation can help to narrow down the cause of the errors:
   https://docs.sourcegraph.com/batch_changes/references/troubleshooting
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants