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

添加主机时,如果主机与em是同一台会提示主机初始化失败 #33

Open
wzqiang1332 opened this issue May 9, 2023 · 4 comments

Comments

@wzqiang1332
Copy link

版本号:1.1.1
OS:Centos7.9
3台主机,其中一台安装了em,然后通过界面创建集群,添加这三台服务器到集群里面,安装了em这台在主机agent在初始化完成之后报错了,错误原因应该是ntpd(systemctl restart ntpd)启动失败,emserver有一个进程已经使用了ntpd。
image
image

主机初始化失败,+ STATIC_HOST=http://192.168.21.40:8864
+ NTP_SERVER=192.168.21.40
++ dirname /tmp/exec-script-258327147
+ cd /tmp
++ pwd
+ PWD=/tmp
++ ps -ef
++ grep easyagent
++ grep -v grep
++ awk '{print $2}'
+ AGENT_PID=52881
+ check_linux_os
+ '[' -f /etc/redhat-release ']'
+ DistroBasedOn=RedHat
++ cat /etc/redhat-release
++ sed 's/ release.*//'
++ awk -F ' ' '{print $1}'
+ DIST=CentOS
++ cat /etc/redhat-release
++ sed 's/.*release //'
++ sed 's/ .*//'
++ awk -F . '{print $1}'
+ MAJOR_VERSION=7
++ cat /etc/redhat-release
++ sed 's/.*release //'
++ sed 's/ .*//'
++ awk -F . '{print $2}'
+ MINOR_VERSION=9
+ CHECK_OS=CentOS_7_9
++ uname -m
+ CHECK_ARCH=x86_64
+ check_data_dir
+ sudo mkdir -p /data
++ whoami
++ whoami
+ sudo chown admin:admin /data
+ installyum
+ yellow '\
\
===========================Yum install=====================================\
'
+ CONTENT='\
\
===========================Yum install=====================================\
'
+ case \"$CHECK_OS\" in
+ set_centos_repo_high_version
+ echo 'installyu"

虽然集群那边一直标记Error,但是部署包可以正常部署,如果server和agent的ntpd冲突,希望能去除这个错误提示

@wzqiang1332
Copy link
Author

在集群命令界面,几个命令一直在执行中,时间持续增长。
image
其中zookeeper部署完成后,又使用界面卸载了,但是这边还在持续,点击时提示“该组件已从该集群中卸载”
主机初始化的几个命令点击,会跳转到主机界面,什么都没有
image

@wangqi811
Copy link
Collaborator

这个问题已经有几个人提过了,我抽空排查下是不是放出去的包有问题

@wangqi811
Copy link
Collaborator

版本号:1.1.1 OS:Centos7.9 3台主机,其中一台安装了em,然后通过界面创建集群,添加这三台服务器到集群里面,安装了em这台在主机agent在初始化完成之后报错了,错误原因应该是ntpd(systemctl restart ntpd)启动失败,emserver有一个进程已经使用了ntpd。 image image

主机初始化失败,+ STATIC_HOST=http://192.168.21.40:8864
+ NTP_SERVER=192.168.21.40
++ dirname /tmp/exec-script-258327147
+ cd /tmp
++ pwd
+ PWD=/tmp
++ ps -ef
++ grep easyagent
++ grep -v grep
++ awk '{print $2}'
+ AGENT_PID=52881
+ check_linux_os
+ '[' -f /etc/redhat-release ']'
+ DistroBasedOn=RedHat
++ cat /etc/redhat-release
++ sed 's/ release.*//'
++ awk -F ' ' '{print $1}'
+ DIST=CentOS
++ cat /etc/redhat-release
++ sed 's/.*release //'
++ sed 's/ .*//'
++ awk -F . '{print $1}'
+ MAJOR_VERSION=7
++ cat /etc/redhat-release
++ sed 's/.*release //'
++ sed 's/ .*//'
++ awk -F . '{print $2}'
+ MINOR_VERSION=9
+ CHECK_OS=CentOS_7_9
++ uname -m
+ CHECK_ARCH=x86_64
+ check_data_dir
+ sudo mkdir -p /data
++ whoami
++ whoami
+ sudo chown admin:admin /data
+ installyum
+ yellow '\
\
===========================Yum install=====================================\
'
+ CONTENT='\
\
===========================Yum install=====================================\
'
+ case \"$CHECK_OS\" in
+ set_centos_repo_high_version
+ echo 'installyu"

虽然集群那边一直标记Error,但是部署包可以正常部署,如果server和agent的ntpd冲突,希望能去除这个错误提示

chengying当前设计是这样的,自带ntpserver,后面可以优化这个部署架构

@wzqiang1332
Copy link
Author

这个问题已经有几个人提过了,我抽空排查下是不是放出去的包有问题

感谢,处理好麻烦通知一下

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