app deploy on local server crashes #206

Closed
opened 2021-10-17 09:49:59 +00:00 by yksflip · 3 comments
Owner

Describe the current behavior

Deploying an app on a server with --local option ends in runtime error.
(Same app configuration works when deploying on a remote server)

Steps to reproduce

  1. abra server add --local
  2. abra app new traefik
  3. abra app deploy traefik_local
 $ abra server add --local
INFO[0000] local server has been added

> $ abra app new traefik
? Select app server: default
? Specify app domain traefik.local
? Specify app name: traefik_local

New 'traefik' created! Here is your new app overview:

+---------------+---------------+---------+---------+
|     NAME      |    DOMAIN     |  TYPE   | SERVER  |
+---------------+---------------+---------+---------+
| traefik_local | traefik.local | traefik | default |
+---------------+---------------+---------+---------+

You can configure this app by running the following:

    abra app config traefik_local

You can deploy this app by running the following:

    abra app deploy traefik_local


$ abra app deploy traefik_local

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xb03452]

goroutine 1 [running]:
github.com/docker/cli/cli/command.resolveDefaultDockerEndpoint(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc000010020, 0xf1b525)
        /home/yksflip/go/pkg/mod/github.com/docker/cli@v20.10.8+incompatible/cli/command/cli.go:324 +0x52
github.com/docker/cli/cli/command.ResolveDefaultContext(0x0, 0xc0004056c0, 0xf7b298, 0xc00045f8c0, 0x105d400, 0xc000010020, 0x160aee0, 0x0, 0xc0002bf478)
        /home/yksflip/go/pkg/mod/github.com/docker/cli@v20.10.8+incompatible/cli/command/defaultcontextstore.go:65 +0x19c
coopcloud.tech/abra/pkg/client.NewDefaultDockerContextStore.func1(0xe79ba0, 0xf19201, 0xc00045f8f0)
        /home/yksflip/Projekte/local-it/abra/pkg/client/context.go:124 +0x57
github.com/docker/cli/cli/command.(*ContextStoreWithDefault).GetMetadata(0xc00000f728, 0xc00043b00c, 0x7, 0x0, 0x0, 0x0, 0x0, 0x0, 0x10, 0xda1be0)
        /home/yksflip/go/pkg/mod/github.com/docker/cli@v20.10.8+incompatible/cli/command/defaultcontextstore.go:133 +0x172
coopcloud.tech/abra/pkg/client.GetContext(0xc00043b00c, 0x7, 0x0, 0x0, 0x0, 0x0, 0x0, 0xd, 0x7ffda01d3268)
        /home/yksflip/Projekte/local-it/abra/pkg/client/context.go:88 +0x96
coopcloud.tech/abra/pkg/client.New(0xc00043b00c, 0x7, 0xd, 0xc00045cc90, 0x7)
        /home/yksflip/Projekte/local-it/abra/pkg/client/client.go:14 +0x6f
coopcloud.tech/abra/cli/app.glob..func4(0xc000478100, 0x1, 0x1)
        /home/yksflip/Projekte/local-it/abra/cli/app/deploy.go:21 +0x91
github.com/urfave/cli/v2.(*Command).Run(0x15d77e0, 0xc000478040, 0x0, 0x0)
        /home/yksflip/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/command.go:163 +0x4dd
github.com/urfave/cli/v2.(*App).RunAsSubcommand(0xc000405380, 0xc000437e80, 0x0, 0x0)
        /home/yksflip/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/app.go:434 +0xa49
github.com/urfave/cli/v2.(*Command).startApp(0x15d90a0, 0xc000437e80, 0x7ffda01d325d, 0x3)
        /home/yksflip/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/command.go:278 +0x69b
github.com/urfave/cli/v2.(*Command).Run(0x15d90a0, 0xc000437e80, 0x0, 0x0)
        /home/yksflip/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/command.go:94 +0x98d
github.com/urfave/cli/v2.(*App).RunContext(0xc0004051e0, 0x1072478, 0xc00003e0d0, 0xc000032080, 0x4, 0x4, 0x0, 0x0)
        /home/yksflip/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/app.go:313 +0x810
github.com/urfave/cli/v2.(*App).Run(...)
        /home/yksflip/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/app.go:224
coopcloud.tech/abra/cli.RunApp(0xf18327, 0x3, 0x106c8e0, 0x28)
        /home/yksflip/Projekte/local-it/abra/cli/cli.go:110 +0x417
main.main()
        /home/yksflip/Projekte/local-it/abra/cmd/abra/main.go:23 +0xb4

Describe the expected behavior

app deploy should work local the same way as on a remote machine.

Additional information

  • version: dev-95e19f0
## Describe the current behavior Deploying an app on a server with --local option ends in runtime error. (Same app configuration works when deploying on a remote server) ## Steps to reproduce 1. abra server add --local 2. abra app new traefik 3. abra app deploy traefik_local ``` $ abra server add --local INFO[0000] local server has been added > $ abra app new traefik ? Select app server: default ? Specify app domain traefik.local ? Specify app name: traefik_local New 'traefik' created! Here is your new app overview: +---------------+---------------+---------+---------+ | NAME | DOMAIN | TYPE | SERVER | +---------------+---------------+---------+---------+ | traefik_local | traefik.local | traefik | default | +---------------+---------------+---------+---------+ You can configure this app by running the following: abra app config traefik_local You can deploy this app by running the following: abra app deploy traefik_local $ abra app deploy traefik_local panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xb03452] goroutine 1 [running]: github.com/docker/cli/cli/command.resolveDefaultDockerEndpoint(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc000010020, 0xf1b525) /home/yksflip/go/pkg/mod/github.com/docker/cli@v20.10.8+incompatible/cli/command/cli.go:324 +0x52 github.com/docker/cli/cli/command.ResolveDefaultContext(0x0, 0xc0004056c0, 0xf7b298, 0xc00045f8c0, 0x105d400, 0xc000010020, 0x160aee0, 0x0, 0xc0002bf478) /home/yksflip/go/pkg/mod/github.com/docker/cli@v20.10.8+incompatible/cli/command/defaultcontextstore.go:65 +0x19c coopcloud.tech/abra/pkg/client.NewDefaultDockerContextStore.func1(0xe79ba0, 0xf19201, 0xc00045f8f0) /home/yksflip/Projekte/local-it/abra/pkg/client/context.go:124 +0x57 github.com/docker/cli/cli/command.(*ContextStoreWithDefault).GetMetadata(0xc00000f728, 0xc00043b00c, 0x7, 0x0, 0x0, 0x0, 0x0, 0x0, 0x10, 0xda1be0) /home/yksflip/go/pkg/mod/github.com/docker/cli@v20.10.8+incompatible/cli/command/defaultcontextstore.go:133 +0x172 coopcloud.tech/abra/pkg/client.GetContext(0xc00043b00c, 0x7, 0x0, 0x0, 0x0, 0x0, 0x0, 0xd, 0x7ffda01d3268) /home/yksflip/Projekte/local-it/abra/pkg/client/context.go:88 +0x96 coopcloud.tech/abra/pkg/client.New(0xc00043b00c, 0x7, 0xd, 0xc00045cc90, 0x7) /home/yksflip/Projekte/local-it/abra/pkg/client/client.go:14 +0x6f coopcloud.tech/abra/cli/app.glob..func4(0xc000478100, 0x1, 0x1) /home/yksflip/Projekte/local-it/abra/cli/app/deploy.go:21 +0x91 github.com/urfave/cli/v2.(*Command).Run(0x15d77e0, 0xc000478040, 0x0, 0x0) /home/yksflip/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/command.go:163 +0x4dd github.com/urfave/cli/v2.(*App).RunAsSubcommand(0xc000405380, 0xc000437e80, 0x0, 0x0) /home/yksflip/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/app.go:434 +0xa49 github.com/urfave/cli/v2.(*Command).startApp(0x15d90a0, 0xc000437e80, 0x7ffda01d325d, 0x3) /home/yksflip/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/command.go:278 +0x69b github.com/urfave/cli/v2.(*Command).Run(0x15d90a0, 0xc000437e80, 0x0, 0x0) /home/yksflip/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/command.go:94 +0x98d github.com/urfave/cli/v2.(*App).RunContext(0xc0004051e0, 0x1072478, 0xc00003e0d0, 0xc000032080, 0x4, 0x4, 0x0, 0x0) /home/yksflip/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/app.go:313 +0x810 github.com/urfave/cli/v2.(*App).Run(...) /home/yksflip/go/pkg/mod/github.com/urfave/cli/v2@v2.3.0/app.go:224 coopcloud.tech/abra/cli.RunApp(0xf18327, 0x3, 0x106c8e0, 0x28) /home/yksflip/Projekte/local-it/abra/cli/cli.go:110 +0x417 main.main() /home/yksflip/Projekte/local-it/abra/cmd/abra/main.go:23 +0xb4 ``` ## Describe the expected behavior app deploy should work local the same way as on a remote machine. ## Additional information - version: dev-95e19f0
yksflip added the
bug
abra
labels 2021-10-17 09:49:59 +00:00
Owner

Thank you for the report! 🙏 I will look at this as soon as I can.

Thank you for the report! 🙏 I will look at this as soon as I can.
decentral1se added this to the Beta release (software) project 2021-10-17 20:18:01 +00:00
Owner

I think I may have fixed this on latest 😅

Can you give it another try @yksflip?

Thanks for reporting and for doing alpha testing 🚀

I think I *may* have fixed this on latest 😅 Can you give it another try @yksflip? Thanks for reporting and for doing alpha testing 🚀
Author
Owner

wow,, that was quick, thanks! works for me now :)

wow,, that was quick, thanks! works for me now :)
Sign in to join this conversation.
No Milestone
No Assignees
3 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#206
No description provided.