Descriptive error messages: thread #243

Closed
opened 2021-11-13 17:56:26 +00:00 by knoflook · 6 comments
Owner

Please use this thread to dump error messages, here's a template

## Command you ran

## Why does it fail

## What's the error message

## What should it be
Please use this thread to dump error messages, here's a template ``` ## Command you ran ## Why does it fail ## What's the error message ## What should it be ```
knoflook added the
abra
label 2021-11-13 17:56:52 +00:00
Author
Owner

Command you ran

abra app deploy <app>

Why does it fail

DNS change wasn't yet propagated and the request didn't return anything

What's the error message

FATA[0000] dial tcp: lookup [my server's hostname] on [my dns server IP]:53: no such host

What should it be

it should mention there is no A/AAAA record for this domain and give the same error maybe?

## Command you ran `abra app deploy <app>` ## Why does it fail DNS change wasn't yet propagated and the request didn't return anything ## What's the error message `FATA[0000] dial tcp: lookup [my server's hostname] on [my dns server IP]:53: no such host` ## What should it be it should mention there is no A/AAAA record for this domain and give the same error maybe?
Owner

Nice.

For #243 (comment), see fix in #227 (comment). Maybe the error message could be better.

Nice. For https://git.coopcloud.tech/coop-cloud/organising/issues/243#issuecomment-10278, see fix in https://git.coopcloud.tech/coop-cloud/organising/issues/227#issuecomment-10310. Maybe the error message could be better.
Owner

Command you ran

➜ abra -n app deploy --chaos --force lab_demo_coopcloud_tech

Why does it fail

Cos I'm a clown and set COMPOSE_FILE=compose.ssh.yml, which doesn't have any images defined.

What's the error message

FATA[0003] read /home/f/.abra/apps/jupyter-lab/: is a directory 

What should it be

"This compose.yml doesn't look valid"?

## Command you ran `➜ abra -n app deploy --chaos --force lab_demo_coopcloud_tech` ## Why does it fail Cos I'm a clown and set `COMPOSE_FILE=compose.ssh.yml`, which doesn't have any images defined. ## What's the error message ``` FATA[0003] read /home/f/.abra/apps/jupyter-lab/: is a directory ``` ## What should it be "This compose.yml doesn't look valid"?
Owner

Command you ran

abra app ls

Why does it fail

Maybe I don't have the correct lines in my ssh config.

What's the error message

FATA[0010] dial tcp 148.251.xxx.xx:22: i/o timeout (redacted IP)

abra -d app ls gives:

FATA[0010] dial tcp 148.251.xxx.xx:22: i/o timeout       caller="/drone/src/cli/app/list.go:75 glob..func18" stack="/drone/src/cli/app/list.go:75                              glob..func18\n/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/command.go:163 (*Command).Run\n/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/app.go:434     (*App).RunAsSubcommand\n/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/command.go:278 (*Command).startApp\n/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/command.go:94  (*Command).Run\n/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/app.go:313     (*App).RunContext\n/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/app.go:224     RunApp\n/drone/src/cli/cli.go:119                                  RunApp\n/drone/src/cmd/abra/main.go:23                             main\n/usr/local/go/src/runtime/proc.go:255                      main\n/usr/local/go/src/runtime/asm_amd64.s:1581                 goexit"

What should it be

Normal output of abra app ls listing apps.

## Command you ran `abra app ls` ## Why does it fail Maybe I don't have the correct lines in my ssh config. ## What's the error message `FATA[0010] dial tcp 148.251.xxx.xx:22: i/o timeout` (redacted IP) `abra -d app ls` gives: ``` FATA[0010] dial tcp 148.251.xxx.xx:22: i/o timeout caller="/drone/src/cli/app/list.go:75 glob..func18" stack="/drone/src/cli/app/list.go:75 glob..func18\n/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/command.go:163 (*Command).Run\n/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/app.go:434 (*App).RunAsSubcommand\n/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/command.go:278 (*Command).startApp\n/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/command.go:94 (*Command).Run\n/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/app.go:313 (*App).RunContext\n/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/app.go:224 RunApp\n/drone/src/cli/cli.go:119 RunApp\n/drone/src/cmd/abra/main.go:23 main\n/usr/local/go/src/runtime/proc.go:255 main\n/usr/local/go/src/runtime/asm_amd64.s:1581 goexit" ``` ## What should it be Normal output of `abra app ls` listing apps.
Owner

Nice @kawaiipunk, I do like your idea of skipping over the failure and going on with the output but I also am playing with the UI/UX of bailing out and giving some help. See what you think of 1b836dbab6? I am totally down to show the normal output and then just do a warning saying "argh cant get this server at all, moving on..." but then not sure how to fit in this help text? Lemme know whatcha think!

Nice @kawaiipunk, I do like your idea of skipping over the failure and going on with the output but I also am playing with the UI/UX of bailing out and giving some help. See what you think of https://git.coopcloud.tech/coop-cloud/abra/commit/1b836dbab6c3a987aa1d4b7ecbada766b33c86d3? I am totally down to show the normal output and then just do a warning saying "argh cant get this server at all, moving on..." but then not sure how to fit in this help text? Lemme know whatcha think!
decentral1se added this to the Beta release (software) project 2021-11-19 14:58:46 +00:00
decentral1se added this to the Command-line tool sustainability milestone 2021-11-19 14:58:49 +00:00
decentral1se modified the milestone from Command-line tool sustainability to UI / UX testing 2021-11-19 14:58:54 +00:00
decentral1se added the
bug
label 2021-11-21 13:08:20 +00:00
Owner

Would rather we open separate issues since posting here seems to have slowed.

If you feel differently, please feel free to re-open!

Would rather we open separate issues since posting here seems to have slowed. If you feel differently, please feel free to re-open!
Sign in to join this conversation.
No Milestone
No Assignees
4 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#243
No description provided.