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

error Applied to cluster error: read admin.conf error in guest: open /root/.sealos/default/etc/admin.conf: no such file or directory #2548

Closed
zexin123 opened this issue Feb 10, 2023 · 9 comments

Comments

@zexin123
Copy link

zexin123 commented Feb 10, 2023

Detailed description of the question.

sealos run 报错
error Applied to cluster error: read admin.conf error in guest: open /root/.sealos/default/etc/admin.conf: no such file or directory
image

sealos version
{"gitVersion":"4.1.4","gitCommit":"bf121904","buildDate":"2023-01-06T08:51:53Z","goVersion":"go1.19.4","compiler":"gc","platform":"linux/arm64"}
K8S version 1.22 一个master 一个node

看到原先有个提问也是这个错误 修复到sealos 4.2.0 分支
这是sealos版本 和k8s版本 不对应吗

Some reference materials you see.

No response

@cuisongliu
Copy link
Collaborator

麻烦写一下复现步骤,我看一下

@zexin123
Copy link
Author

zexin123 commented Feb 10, 2023

麻烦写一下复现步骤,我看一下

按官网的操作步骤

sealos pull labring/kubernetes:v1.22.0
sealos save -o kubernetes.tar labring/kubernetes:v1.22.0
sealos load -i kubernetes.tar

然后执行run
sealos run labring/kubernetes:v1.22.0 labring/helm:v3.8.2 labring/calico:v3.24.1
--masters 10.6.10.95 -u username -p 'paasword'
--nodes 10.6.10.101 -u username -p 'paasword'
结果如图
image

@cuisongliu
Copy link
Collaborator

ls -l /root/.sealos/default/etc

@zexin123
Copy link
Author

ls -l /root/.sealos/default/etc

文件不存在
image

@cuisongliu
Copy link
Collaborator

tree /root/.sealos/default

@dinoallo
Copy link
Contributor

无法复现
Couldn't reproduce.

@cuisongliu
Copy link
Collaborator

image
override ????

@cuisongliu
Copy link
Collaborator

看样子好像是使用方式有点问题,这个有点像是操作已经装好的集群?麻烦把全部日志贴一下。

@fanux
Copy link
Member

fanux commented Feb 12, 2023

尝试 4.1.5 rc 版本 应该已经解决了这个问题了

@fanux fanux closed this as completed Feb 12, 2023
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

No branches or pull requests

4 participants