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

检测 ks 安装 fail #216

Open
MrYourM opened this issue Aug 21, 2020 · 10 comments
Open

检测 ks 安装 fail #216

MrYourM opened this issue Aug 21, 2020 · 10 comments

Comments

@MrYourM
Copy link
Contributor

MrYourM commented Aug 21, 2020

https://github.com/QingCloudAppcenter/QKE/blob/master/ansible/roles/app-role-client/files/opt/app/current/bin/node/client.sh#L72 该位置在 ks 安装完毕时,最终报错

#####################################################
###              Welcome to KubeSphere!           ###
#####################################################

Console: http://172.22.4.12:30880
Account: admin
Password: P@88w0rd

NOTES<EF><BC><9A>
  1. After logging into the console, please check the
     monitoring status of service components in
     the "Cluster Management". If any service is not
     ready, please wait patiently until all components 
     are ready.
  2. Please modify the default password after login.

#####################################################
https://kubesphere.io             2020-08-21 11:11:45
#####################################################'
+ return 132
+ retCode=132
+ [[ ,130,132, == *\,\1\3\2\,* ]]
+ log ''\''checkKsInstallerDone'\'' returned with stop code '\''132'\''. Stopping ...'
+ '[' ''\''checkKsInstallerDone'\'' returned with stop code '\''132'\''. Stopping ...' == --debug ']'
+ logger -S 5000 -t appctl --id=5907 -- '[cmd=upgrade args='\'''\''] '\''checkKsInstallerDone'\'' returned with stop code '\''132'\''. Stopping ...'
+ return 132
@hlwanghl
Copy link
Contributor

日志再往上截一些,看看报的什么错。

@MrYourM
Copy link
Contributor Author

MrYourM commented Aug 21, 2020

上面没什么 ks 的异常报错,ks 已经升级完成了,手动执行 appctl checkKsInstallerDone;echo $? ,也是返回 132

@hlwanghl
Copy link
Contributor

#####################################################
###              Welcome to KubeSphere!           ###
#####################################################

这个上面的部分

@MrYourM
Copy link
Contributor Author

MrYourM commented Aug 21, 2020

#####################################################
https://kubesphere.io             2020-08-21 11:11:45
#####################################################'
+ grep -oF 'Welcome to KubeSphere!'
+ echo 'localhost                  : ok=12   changed=11   unreachable=0    failed=0    skipped=5    rescued=0    ignored=0   ^M

#####################################################
###              Welcome to KubeSphere!           ###
#####################################################

Console: http://172.22.4.12:30880
Account: admin
Password: P@88w0rd

NOTES?~Z
  1. After logging into the console, please check the
     monitoring status of service components in
     the "Cluster Management". If any service is not
     ready, please wait patiently until all components
     are ready.
  2. Please modify the default password after login.

#####################################################
https://kubesphere.io             2020-08-21 11:11:45
#####################################################'
Welcome to KubeSphere!
+ grep -oF 'total: 1     completed:1'
+ echo 'localhost                  : ok=12   changed=11   unreachable=0    failed=0    skipped=5    rescued=0    ignored=0   ^M

#####################################################
###              Welcome to KubeSphere!           ###
#####################################################

Console: http://172.22.4.12:30880
Account: admin
Password: P@88w0rd

NOTES?~Z
  1. After logging into the console, please check the
     monitoring status of service components in
     the "Cluster Management". If any service is not
     ready, please wait patiently until all components
     are ready.
  2. Please modify the default password after login.

#####################################################
https://kubesphere.io             2020-08-21 11:11:45
#####################################################'
+ return 132
+ retCode=132
+ [[ ,130,132, == *\,\1\3\2\,* ]]
+ log ''\''checkKsInstallerDone'\'' returned with stop code '\''132'\''. Stopping ...'
+ '[' ''\''checkKsInstallerDone'\'' returned with stop code '\''132'\''. Stopping ...' == --debug ']'
+ logger -S 5000 -t appctl --id=5907 -- '[cmd=upgrade args='\'''\''] '\''checkKsInstallerDone'\'' returned with stop code '\''132'\''. Stopping ...'
+ return 132

@hlwanghl
Copy link
Contributor

多截一些,50 行左右

@hlwanghl
Copy link
Contributor

+ grep -oF 'total: 1     completed:1'

这个不是最新代码,最新的是从 2 起步了,这里还是 1

@hlwanghl
Copy link
Contributor

@MrYourM
Copy link
Contributor Author

MrYourM commented Aug 21, 2020

好的,提交之后 merge 一下吧,现在使用的是 master 的代码

@hlwanghl
Copy link
Contributor

你先看下 PR

@hlwanghl
Copy link
Contributor

没问题的话可以加上 label 让他自动 merge

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

2 participants