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

缺陷: sealos安装kuboard报错 #571

Closed
kaasia opened this issue Jan 4, 2021 · 4 comments
Closed

缺陷: sealos安装kuboard报错 #571

kaasia opened this issue Jan 4, 2021 · 4 comments

Comments

@kaasia
Copy link

kaasia commented Jan 4, 2021

哪个命令或者组件
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
...

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

运行环境

  • Docker版本: 19.03
Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.0", GitCommit:"e19964183377d0ec2052d1f1fa930c4d7575bd50", GitTreeState:"clean", BuildDate:"2020-08-26T14:30:33Z", GoVersion:"go1.15", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.0", GitCommit:"e19964183377d0ec2052d1f1fa930c4d7575bd50", GitTreeState:"clean", BuildDate:"2020-08-26T14:23:04Z", GoVersion:"go1.15", Compiler:"gc", Platform:"linux/amd64"}
  • sealos版本:
sealos version v0.0.0-next, build 113605b go1.14.13, Build Time : 2020-12-21T15:49:36Z
  • 操作系统: Linux master1 3.10.0-1127.el7.x86_64 #1 SMP Tue Mar 31 23:36:51 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux CentOS7.8

cpu cores : 14

  • 运行模式: 物理机 (内存 32g, cpu 14核 ,存储 1t)
  • 集群规模: 1master 2node
@oldthreefeng
Copy link
Collaborator

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

@zhangguanzhang
Copy link
Collaborator

@kaasia
Copy link
Author

kaasia commented Jan 4, 2021

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

`docker pull eipwork/kuboard:latest

docker save 86eaead8421e > kuboard.tar`

@oldthreefeng
Copy link
Collaborator

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

image

oldthreefeng added a commit to oldthreefeng/sealos that referenced this issue Jan 4, 2021
fanux added a commit that referenced this issue Jan 5, 2021
cuisongliu added a commit that referenced this issue Dec 9, 2021
* rewrite install and delete for app, app.tar don't send if already exist
* read byte to remote file by sftp
* add etcd health check
* restore only one node to local
* use subcommad instead Flag
* single node save, healthcheck and restore test ok
* recovery kube system when err happend by restore
* use tar to compress instead of zip.
* slove in docker use with save.
* add --docker bool flag , if true , this will auto add unix timestamp to your snapshot suffix.
* add save snapshot to oss. sealos config add oss-conf
* feat(develop): 修复 #430
* fix ETCD CaCert or key file is not exist occurs panic,  #427
* add kubernetes cronjob example yaml file
* fix #441
* fix issue #443
* implementaion for sealos exec #429
* fix bug --label & --node will exec cmd twice and add example exec cmd
* support exec scp local dir to remote
* refactor exec command and use get ip  by node name & by labelselector method to avoid for loop
* fix sealos etcd health check for mutil master
* add bash/zsh completion for sealos. from kubectl
* fix kubeadm not found on old sealos package && fix port in exec cmd #469  && fix --service-cidr on old version && delete route cmd
* fix 1.19.1 kube-controller-manager and kube-scheduler use the LocalAPIEndpoint instead of the ControlPlaneEndpoint.
* add sealos route cmd docs
* rm original sealos in old package to aviod some problem.
add multi network install docs stage
add upx in dockerfile, add upx in drone. change image to golang:15.2-alpine
* dockerfile add upx stage build
* fix versiontointall when version like v1.16.14 >= 1191
* add test record for upgrade cmd
* when init , do not send twice, if valid copy md5 success ,do not logger
* sepreate install master0 and other master when send ca and key and kubeconfig
* fix --config when use customer config.
* validate copy kubetarball
* fix #499
* fix #509.
* fix #534 only for 1.19.1 and 1.19.2
* /root/.kube/config设置为600,否则默认其它组有r权限,导致helm工具执行有警告
* when kubernetes gt 1.20, use Containerd instead of docker, #540 suport 1.20 containerd
* fix #566, sealos clean --node 不小心写了 masterip  add cleanCmd example
* fix #571. handle unexpected error
* fix #577, join node use config file, fix ipformat
comment to oss when push to develop, only to  tag to release
Fix 1.14.x has no kubeadm.k8s.io/v1beta2 by use cli kubeadm join --xxxx.
* fix #586,  drain node is too danger for prod use; do not drain nodes
drain worker node is too danger for prod use; do not drain nodes if worker nodes~
* fix build status (#610)
* fix arm64 tags
* fix #613, delete -i for cp command
* fix #621. join node or master should not exsit in kubernetes.
* feat(develop): fix  ipip param not set false (#653)
* # 决绝路径取消拼接,防止出错。 (#654)
* feat(develop): fix cni config too long (#655)
* fix version 3.19.1 yaml file lint error. (#656)
* fix calico (#657)
* fix calico version nil yaml file retrun null. (#658)
* Update upgrade.md (#665)
* use new const for kubeletconfig (#589)
Signed-off-by: oldthreefeng <louisehong4168@gmail.com>
* [WIP]Sealos kubeadm 1.23 v1beta3 (#673)
* fix #671
* feat(develop): fix ci dir for sealos (#735)
* fix  bootstrapToken (#737)
* feat(develop): rc6 release (#738)
* ci(develop) fix golint for code and lic (#736)

Co-authored-by: steven <fhtjob@hotmail.com>
Co-authored-by: oldthreefeng <louisehong4168@gmail.com>
Co-authored-by: 中弈 <zhongyi.fht@alibaba-inc.com>
Co-authored-by: Ryan <yangchuansheng33@gmail.com>
Co-authored-by: Louis <38313565+oldthreefeng@users.noreply.github.com>
Co-authored-by: ysicing <i@ysicing.me>
Co-authored-by: huizhi.szh <huizhi.szh@alibaba-inc.com>
Co-authored-by: aiyijing <aiyijing@live.com>
Co-authored-by: scott lewis <33612882+dk-lockdown@users.noreply.github.com>
Co-authored-by: wenshihong <wsh@justep.com>
Co-authored-by: wisheen <wisheen@163.com>
Co-authored-by: Cluas <Cluas@live.cn>
Co-authored-by: currycan <ansandyzzt@gmail.com>
Co-authored-by: zhangzhitao <zhangzhitao@lakala.com>
Co-authored-by: rick <rick@jenkins-zh.cn>
Co-authored-by: panda-lab <64345457+panda-lab@users.noreply.github.com>
Co-authored-by: 付亮 <48649837+hellolittlewei@users.noreply.github.com>
Co-authored-by: SorryMaker <41097970+CodeSorryMaker@users.noreply.github.com>
cuisongliu added a commit that referenced this issue Dec 29, 2021
* ci(develop) fix golint for code and lic (#736)

* merge to master (#739)

* rewrite install and delete for app, app.tar don't send if already exist
* read byte to remote file by sftp
* add etcd health check
* restore only one node to local
* use subcommad instead Flag
* single node save, healthcheck and restore test ok
* recovery kube system when err happend by restore
* use tar to compress instead of zip.
* slove in docker use with save.
* add --docker bool flag , if true , this will auto add unix timestamp to your snapshot suffix.
* add save snapshot to oss. sealos config add oss-conf
* feat(develop): 修复 #430
* fix ETCD CaCert or key file is not exist occurs panic,  #427
* add kubernetes cronjob example yaml file
* fix #441
* fix issue #443
* implementaion for sealos exec #429
* fix bug --label & --node will exec cmd twice and add example exec cmd
* support exec scp local dir to remote
* refactor exec command and use get ip  by node name & by labelselector method to avoid for loop
* fix sealos etcd health check for mutil master
* add bash/zsh completion for sealos. from kubectl
* fix kubeadm not found on old sealos package && fix port in exec cmd #469  && fix --service-cidr on old version && delete route cmd
* fix 1.19.1 kube-controller-manager and kube-scheduler use the LocalAPIEndpoint instead of the ControlPlaneEndpoint.
* add sealos route cmd docs
* rm original sealos in old package to aviod some problem.
add multi network install docs stage
add upx in dockerfile, add upx in drone. change image to golang:15.2-alpine
* dockerfile add upx stage build
* fix versiontointall when version like v1.16.14 >= 1191
* add test record for upgrade cmd
* when init , do not send twice, if valid copy md5 success ,do not logger
* sepreate install master0 and other master when send ca and key and kubeconfig
* fix --config when use customer config.
* validate copy kubetarball
* fix #499
* fix #509.
* fix #534 only for 1.19.1 and 1.19.2
* /root/.kube/config设置为600,否则默认其它组有r权限,导致helm工具执行有警告
* when kubernetes gt 1.20, use Containerd instead of docker, #540 suport 1.20 containerd
* fix #566, sealos clean --node 不小心写了 masterip  add cleanCmd example
* fix #571. handle unexpected error
* fix #577, join node use config file, fix ipformat
comment to oss when push to develop, only to  tag to release
Fix 1.14.x has no kubeadm.k8s.io/v1beta2 by use cli kubeadm join --xxxx.
* fix #586,  drain node is too danger for prod use; do not drain nodes
drain worker node is too danger for prod use; do not drain nodes if worker nodes~
* fix build status (#610)
* fix arm64 tags
* fix #613, delete -i for cp command
* fix #621. join node or master should not exsit in kubernetes.
* feat(develop): fix  ipip param not set false (#653)
* # 决绝路径取消拼接,防止出错。 (#654)
* feat(develop): fix cni config too long (#655)
* fix version 3.19.1 yaml file lint error. (#656)
* fix calico (#657)
* fix calico version nil yaml file retrun null. (#658)
* Update upgrade.md (#665)
* use new const for kubeletconfig (#589)
Signed-off-by: oldthreefeng <louisehong4168@gmail.com>
* [WIP]Sealos kubeadm 1.23 v1beta3 (#673)
* fix #671
* feat(develop): fix ci dir for sealos (#735)
* fix  bootstrapToken (#737)
* feat(develop): rc6 release (#738)
* ci(develop) fix golint for code and lic (#736)

Co-authored-by: steven <fhtjob@hotmail.com>
Co-authored-by: oldthreefeng <louisehong4168@gmail.com>
Co-authored-by: 中弈 <zhongyi.fht@alibaba-inc.com>
Co-authored-by: Ryan <yangchuansheng33@gmail.com>
Co-authored-by: Louis <38313565+oldthreefeng@users.noreply.github.com>
Co-authored-by: ysicing <i@ysicing.me>
Co-authored-by: huizhi.szh <huizhi.szh@alibaba-inc.com>
Co-authored-by: aiyijing <aiyijing@live.com>
Co-authored-by: scott lewis <33612882+dk-lockdown@users.noreply.github.com>
Co-authored-by: wenshihong <wsh@justep.com>
Co-authored-by: wisheen <wisheen@163.com>
Co-authored-by: Cluas <Cluas@live.cn>
Co-authored-by: currycan <ansandyzzt@gmail.com>
Co-authored-by: zhangzhitao <zhangzhitao@lakala.com>
Co-authored-by: rick <rick@jenkins-zh.cn>
Co-authored-by: panda-lab <64345457+panda-lab@users.noreply.github.com>
Co-authored-by: 付亮 <48649837+hellolittlewei@users.noreply.github.com>
Co-authored-by: SorryMaker <41097970+CodeSorryMaker@users.noreply.github.com>

* Revert "merge to master (#739)" (#741)

This reverts commit c8349b0.

* Update README.md

* ci(master): add dockerfile

* hotfix(master): clean panic fix by lock (#750)

* refactor(ci): add auto invite (#762)

* refactor(ci): add auto invite (#763)

* refactor(ci): add auto invite

* docs: readme align

* refactor(dev): fix docs site (#773)

* refactor(master): cloud,app feature close (#774)

* refactor(master): cloud,app feature close

* 缺陷: 最新版本sealos init 安装k8s 失败 (#778)

Fixes #691

* refactor(master): release rc.8 (#782)

* refactor(master): changelog (#784)

* update changelog to master (#785)

* refactor(master): changelog

Co-authored-by: steven <fhtjob@hotmail.com>
Co-authored-by: oldthreefeng <louisehong4168@gmail.com>
Co-authored-by: 中弈 <zhongyi.fht@alibaba-inc.com>
Co-authored-by: Ryan <yangchuansheng33@gmail.com>
Co-authored-by: Louis <38313565+oldthreefeng@users.noreply.github.com>
Co-authored-by: ysicing <i@ysicing.me>
Co-authored-by: huizhi.szh <huizhi.szh@alibaba-inc.com>
Co-authored-by: aiyijing <aiyijing@live.com>
Co-authored-by: scott lewis <33612882+dk-lockdown@users.noreply.github.com>
Co-authored-by: wenshihong <wsh@justep.com>
Co-authored-by: wisheen <wisheen@163.com>
Co-authored-by: Cluas <Cluas@live.cn>
Co-authored-by: currycan <ansandyzzt@gmail.com>
Co-authored-by: zhangzhitao <zhangzhitao@lakala.com>
Co-authored-by: rick <rick@jenkins-zh.cn>
Co-authored-by: panda-lab <64345457+panda-lab@users.noreply.github.com>
Co-authored-by: 付亮 <48649837+hellolittlewei@users.noreply.github.com>
Co-authored-by: SorryMaker <41097970+CodeSorryMaker@users.noreply.github.com>
Co-authored-by: jiangyanfei <749985146@qq.com>
Co-authored-by: ldseraph <ld.seraph@163.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants