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

Improve log output of docker pull errors #880

Merged
merged 2 commits into from
Nov 7, 2022
Merged

Conversation

eseliger
Copy link
Member

@eseliger eseliger commented Nov 5, 2022

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
Copy link
Contributor

@courier-new courier-new left a comment

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