labring / sealos

Sealos is a production-ready Kubernetes distribution. You can run any Docker image on sealos, start high availability databases like mysql/pgsql/redis/mongo, develop applications using any Programming language.
https://cloud.sealos.io
Apache License 2.0
14.14k stars 2.08k forks source link

缺陷: sealos安装kuboard报错 #571

Closed kaasia closed 3 years ago

kaasia commented 3 years ago

哪个命令或者组件 sealos install --pkg-url kuboard.tar kuboard版本为v2.0.5.1版本 描述这个缺陷 无法安装报错提示如下:

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

goroutine 1 [running]:
github.com/fanux/sealos/pkg/appmanager.InstallApp(0xc0004d7d00, 0x0, 0x0, 0xc0001ac8d0, 0xc0004d7d30)
    /home/runner/work/sealos/sealos/pkg/appmanager/installapp.go:40 +0x148
github.com/fanux/sealos/cmd.glob..func9(0x3372ce0, 0xc000494a80, 0x0, 0x2)
    /home/runner/work/sealos/sealos/cmd/install.go:50 +0x102
github.com/spf13/cobra.(*Command).execute(0x3372ce0, 0xc000494a60, 0x2, 0x2, 0x3372ce0, 0xc000494a60)
    /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:846 +0x29d
github.com/spf13/cobra.(*Command).ExecuteC(0x33734c0, 0x442faa, 0x32fb8e0, 0xc0000ec778)
    /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:950 +0x349
github.com/spf13/cobra.(*Command).Execute(...)
    /home/runner/go/pkg/mod/github.com/spf13/cobra@v1.0.0/command.go:887
github.com/fanux/sealos/cmd.Execute()
    /home/runner/work/sealos/sealos/cmd/root.go:50 +0x31
main.main()
    /home/runner/work/sealos/sealos/main.go:22 +0x20

重现步骤(如果有需要可以附加图片) sealos install --pkg-url kuboard.tar ...

测试结果 其他应用可成功安装

运行环境

cpu cores : 14

oldthreefeng commented 3 years ago

tar包在哪下载的呢? 可以提供下载地址么.

zhangguanzhang commented 3 years ago

https://github.com/fanux/sealos/blob/develop/pkg/appmanager/installapp.go#L39 需要handle这个err

kaasia commented 3 years ago

tar包在哪下载的呢? 可以提供下载地址么.

`docker pull eipwork/kuboard:latest

docker save 86eaead8421e > kuboard.tar`

oldthreefeng commented 3 years ago

这个tar包可不是docker镜像tar包. 打包镜像见文档. @zhangguanzhang 另外的确需要对这个tar包进行预判断.

image