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

kraft cloud deploy panic when docker is not running #2180

Open
mmatczuk opened this issue Feb 18, 2025 · 2 comments
Open

kraft cloud deploy panic when docker is not running #2180

mmatczuk opened this issue Feb 18, 2025 · 2 comments
Labels
kind/bug Something isn't working

Comments

@mmatczuk
Copy link

mmatczuk commented Feb 18, 2025

Describe the bug

On macOS when docker is installed but not running calling command from example kraft cloud deploy --metro fra0 -M 1024 -e POSTGRES_PASSWORD=unikraft -p 5432:5432/tls . panics

Caught panic:

runtime error: invalid memory address or nil pointer dereference

Restoring terminal...

goroutine 226 [running]:
runtime/debug.Stack()
	/usr/local/go/src/runtime/debug/stack.go:26 +0x64
runtime/debug.PrintStack()
	/usr/local/go/src/runtime/debug/stack.go:18 +0x1c
[github.com/charmbracelet/bubbletea.(*Program).recoverFromPanic(0x14000273180)](http://github.com/charmbracelet/bubbletea.(*Program).recoverFromPanic(0x14000273180))
	/go/pkg/mod/[github.com/charmbracelet/bubbletea@v1.3.3/tea.go:733](http://github.com/charmbracelet/bubbletea@v1.3.3/tea.go:733) +0x80
panic({0x101f13f20?, 0x1034c1190?})
	/usr/local/go/src/runtime/panic.go:787 +0x124
[kraftkit.sh/initrd.(*dockerfile).Build.func2()](http://kraftkit.sh/initrd.(*dockerfile).Build.func2())
	/__w/kraftkit/kraftkit/initrd/dockerfile.go:346 +0x30
panic({0x101f13f20?, 0x1034c1190?})
	/usr/local/go/src/runtime/panic.go:787 +0x124
[kraftkit.sh/initrd.(*dockerfile).Build(0x1400056b9e0](http://kraftkit.sh/initrd.(*dockerfile).Build(0x1400056b9e0), {0x1022f0658, 0x140008d3800})
	/__w/kraftkit/kraftkit/initrd/dockerfile.go:364 +0x794
[kraftkit.sh/internal/cli/kraft/utils.BuildRootfs.func1({0x1022f0658](http://kraftkit.sh/internal/cli/kraft/utils.BuildRootfs.func1(%7B0x1022f0658)?, 0x140008d3800?})
	/__w/kraftkit/kraftkit/internal/cli/kraft/utils/rootfs.go:56 +0x64
[kraftkit.sh/tui/processtree.(*ProcessTree).Init.(*ProcessTree).waitForProcessCmd.func2()](http://kraftkit.sh/tui/processtree.(*ProcessTree).Init.(*ProcessTree).waitForProcessCmd.func2())
	/__w/kraftkit/kraftkit/tui/processtree/processtree.go:334 +0xec
[github.com/charmbracelet/bubbletea.(*Program).handleCommands.func1.1()](http://github.com/charmbracelet/bubbletea.(*Program).handleCommands.func1.1())
	/go/pkg/mod/[github.com/charmbracelet/bubbletea@v1.3.3/tea.go:348](http://github.com/charmbracelet/bubbletea@v1.3.3/tea.go:348) +0x64
created by [github.com/charmbracelet/bubbletea.(*Program).handleCommands.func1](http://github.com/charmbracelet/bubbletea.(*Program).handleCommands.func1) in goroutine 208
	/go/pkg/mod/[github.com/charmbracelet/bubbletea@v1.3.3/tea.go:342](http://github.com/charmbracelet/bubbletea@v1.3.3/tea.go:342) +0x10c
 E  could not prepare deployment: could not package: could not package: could not build rootfs: program was killed: context canceled
@mmatczuk mmatczuk added the kind/bug Something isn't working label Feb 18, 2025
@mmatczuk
Copy link
Author

I wonder would it be possible to add podman to the list of dependencies and use it for image building instead.

@nderjung
Copy link
Member

Hi @mmatczuk! Thanks for the issue.

First of, which version of kraft are you running and if you're not running 0.11.1, can you please upgrade and try again?

With regard to podman/buildah (and this ecosystem) we are working internally to provide better support on this front. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants