retry failed connections during abra catalogue generate #257

Closed
opened 2021-11-22 12:43:08 +00:00 by 3wordchant · 2 comments
Owner

Describe the problem to be solved

FATA[0027] Get "https://index.docker.io/v2/portainer/portainer/manifests/1.23.2": dial tcp: lookup index.docker.io: no such host caller="/home/user/Projects/Autonomic/CoopCloud/abra/cli/catalogue/generate.go:171 glob..func1" stack="/home/user/Projects/Autonomic/CoopCloud/abra/cli/catalogue/generate.go:171 glob..func1\n/home/user/.go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/command.go:163 (*Command).Run\n/home/user/.go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/app.go:434 (*App).RunAsSubcommand\n/home/user/.go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/command.go:278 (*Command).startApp\n/home/user/.go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/command.go:94 (*Command).Run\n/home/user/.go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/app.go:313 (*App).RunContext\n/home/user/.go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/app.go:224 RunApp\n/home/user/Projects/Autonomic/CoopCloud/abra/cli/cli.go:107 RunApp\n/home/user/Projects/Autonomic/CoopCloud/abra/cmd/abra/main.go:23 main\n/usr/lib/golang/src/runtime/proc.go:225 main\n/usr/lib/golang/src/runtime/asm_amd64.s:1371 goexit"

Describe the solution you would like

Retry connections a few times for internet-unlucky people like myself.

## Describe the problem to be solved `FATA[0027] Get "https://index.docker.io/v2/portainer/portainer/manifests/1.23.2": dial tcp: lookup index.docker.io: no such host caller="/home/user/Projects/Autonomic/CoopCloud/abra/cli/catalogue/generate.go:171 glob..func1" stack="/home/user/Projects/Autonomic/CoopCloud/abra/cli/catalogue/generate.go:171 glob..func1\n/home/user/.go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/command.go:163 (*Command).Run\n/home/user/.go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/app.go:434 (*App).RunAsSubcommand\n/home/user/.go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/command.go:278 (*Command).startApp\n/home/user/.go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/command.go:94 (*Command).Run\n/home/user/.go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/app.go:313 (*App).RunContext\n/home/user/.go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/app.go:224 RunApp\n/home/user/Projects/Autonomic/CoopCloud/abra/cli/cli.go:107 RunApp\n/home/user/Projects/Autonomic/CoopCloud/abra/cmd/abra/main.go:23 main\n/usr/lib/golang/src/runtime/proc.go:225 main\n/usr/lib/golang/src/runtime/asm_amd64.s:1371 goexit"` ## Describe the solution you would like Retry connections a few times for internet-unlucky people like myself.
3wordchant added the
enhancement
abra
labels 2021-11-22 12:43:08 +00:00
Owner

I've tested this and it seems to be doing the job in most places 🙏

If you run with --debug you'll see everything it is doing.

I've tested this and it seems to be doing the job in most places 🙏 If you run with `--debug` you'll see everything it is doing.
Author
Owner

Working beautifully, nice one! 🥳

DEBU[0013] [ERR] GET https://index.docker.io/v2/library/wordpress/manifests/5.8.1 request failed: Get "https://index.docker.io/v2/library/wordpress/manifests/5.8.1": dial tcp: lookup index.docker.io: no such host  caller="/home/f/Projects/Autonomic/CoopCloud/abra/pkg/web/client.go:15 customLeveledLogger.Printf"
DEBU[0013] [DEBUG] GET https://index.docker.io/v2/library/wordpress/manifests/5.8.1: retrying in 1s (4 left)  caller="/home/f/Projects/Autonomic/CoopCloud/abra/pkg/web/client.go:15 customLeveledLogger.Printf"
Working beautifully, nice one! 🥳 ``` DEBU[0013] [ERR] GET https://index.docker.io/v2/library/wordpress/manifests/5.8.1 request failed: Get "https://index.docker.io/v2/library/wordpress/manifests/5.8.1": dial tcp: lookup index.docker.io: no such host caller="/home/f/Projects/Autonomic/CoopCloud/abra/pkg/web/client.go:15 customLeveledLogger.Printf" DEBU[0013] [DEBUG] GET https://index.docker.io/v2/library/wordpress/manifests/5.8.1: retrying in 1s (4 left) caller="/home/f/Projects/Autonomic/CoopCloud/abra/pkg/web/client.go:15 customLeveledLogger.Printf" ```
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/organising#257
No description provided.