蓝鲸:安装SaaS组件bk_monitor失败分析解决
使用./bk_install saas-o 安装发现bk_monitor(蓝鲸监控)组件报错“ERROR deploy failed: timeout”。
单独尝试安装各个组件:
#故障自愈
[root@rbtnode1 install]# ./bk_install saas-o bk_fta_solutions
#日志检索
[root@rbtnode1 install]# ./bk_install saas-o bk_log_search
#节点管理
[root@rbtnode1 install]# ./bk_install saas-o bk_nodeman
#标准运维
[root@rbtnode1 install]# ./bk_install saas-o bk_sops
#蓝鲸监控
[root@rbtnode1 install]# ./bk_install saas-o bk_monitor
发现前面几个bk_fta_solutions、bk_log_search、bk_nodeman、bk_sops都可以安装成功,唯独对bk_monitor安装,依然报错如下:
[root@rbtnode1 install]# ./bk_install saas-o bk_monitor
省略输出..
2020-03-09 13:27:36 125 INFO check deploy result. retry 132
2020-03-09 13:27:39 125 INFO check deploy result. retry 133
2020-03-09 13:27:39 134 ERROR deploy failed: timeout
[192.168.1.6]20200309-132739 153 Deploy saas bk_monitor failed.
[192.168.1.6]20200309-132739 47 Abort
进一步查看agent日志(/data/bkce/logs/paas_agent/agent.log),最终因为部署任务timeout而终止,未见其他明显报错:
2020/03/09 13:24:57 job.go:279: Building wheels for collected packages: gevent, netifaces, arrow, msgpack-python, wrapt, itypes, backports.shutil-get-terminal-size, simplegeneric, scandir
2020/03/09 13:24:57 job.go:279: Running setup.py bdist_wheel for gevent: started
2020/03/09 13:27:32 job.go:279: Running setup.py bdist_wheel for gevent: still running...
2020/03/09 13:27:38 job.go:297: Deployment task execution timeout
查了些网上资料,说是因为机器配置不够,增加核数为6即可解决,但实际我测试无效,报错不变;
在蓝鲸官方群咨询,客服给出一个解决方案:
但是实际这个Case和我这里遇到的情况并不一样,因为我这没有看到那个error。
晚上重新整理下思路,借鉴案例中清理环境的方式,然后重新部署,这次agent.log看到报错信息了:
2020/03/10 02:29:54 job.go:279: File "/opt/py27_e/lib/python2.7/site-packages/pymysql/connections.py", line 906, in _read_packet
2020/03/10 02:29:54 job.go:279: packet.check_error()
2020/03/10 02:29:54 job.go:279: File "/opt/py27_e/lib/python2.7/site-packages/pymysql/connections.py", line 367, in check_error
2020/03/10 02:29:54 job.go:279: err.raise_mysql_exception(self._data)
2020/03/10 02:29:54 job.go:279: File "/opt/py27_e/lib/python2.7/site-packages/pymysql/err.py", line 120, in raise_mysql_exception
2020/03/10 02:29:54 job.go:279: _check_mysql_exception(errinfo)
2020/03/10 02:29:54 job.go:279: File "/opt/py27_e/lib/python2.7/site-packages/pymysql/err.py", line 115, in _check_mysql_exception
2020/03/10 02:29:54 job.go:279: raise InternalError(errno, errorvalue)
2020/03/10 02:29:54 job.go:279: django.db.utils.InternalError: (1049, u"Unknown database 'bkdata_monitor_alert'")
2020/03/10 02:29:55 job.go:304: error waiting for Cmd exit status 1
这提示居然是没有这个名称为bkdata_monitor_alert的数据库??
结合之前的agent日志是确认有建表操作成功的,说明是环境清理操作很可能把对应组件的库也给删除了。
这里先不深究,直接查看当前的数据库列表:
MySQL [(none)]> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| bk_fta_solutions |
| bk_log_search |
| bk_monitor |
| bk_nodeman |
| bk_sops |
| bksuite_common |
| job |
| jobLog |
| mysql |
| open_paas |
| performance_schema |
| sys |
+--------------------+
13 rows in set (0.00 sec)
果然没有这个bkdata_monitor_alert库,这里先直接尝试创建一个空库试下:
MySQL [(none)]> create database bkdata_monitor_alert character set utf8;
Query OK, 1 row affected (0.01 sec)
再次尝试bk_monitor的安装:
# 再次安装bk_monitor
[root@rbtnode1 install]# ./bk_install saas-o bk_monitor
# 监控agent.log
[root@rbtnode1 paas_agent]# pwd
/data/bkce/logs/paas_agent
[root@rbtnode1 paas_agent]# tail -20f agent.log
发现这次agent.log日志最终显示Job正常完成了:
省略部分日志..
2020/03/10 02:45:38 job.go:279: Applying sessions.0001_initial... OK
2020/03/10 02:45:38 job.go:279: ------change db success------
2020/03/10 02:47:25 job.go:279: ------ start app server ------
2020/03/10 02:47:25 job.go:279: su: ignore --preserve-environment, it's mutually exclusive to --login.
2020/03/10 02:47:25 job.go:279: /etc/profile: line 77: ulimit: open files: cannot modify limit: Operation not permitted
2020/03/10 02:47:25 job.go:279: /etc/profile: line 78: ulimit: open files: cannot modify limit: Operation not permitted
2020/03/10 02:47:25 job.go:279: /etc/profile: line 79: ulimit: open files: cannot modify limit: Operation not permitted
2020/03/10 02:47:25 job.go:279: /etc/profile: line 80: ulimit: open files: cannot modify limit: Operation not permitted
2020/03/10 02:47:26 job.go:279: Last login: Mon Mar 9 14:01:54 CST 2020
2020/03/10 02:47:28 job.go:279: Job Done
2020/03/10 02:47:28 job.go:306: RunJob end ... ...
赶紧去看下安装的窗口,发现这次bk_monitor终于安装成功了:
[root@rbtnode1 install]# ./bk_install saas-o bk_monitor
省略部分日志..
2020-03-10 02:47:24 125 INFO check deploy result. retry 107
2020-03-10 02:47:26 125 INFO check deploy result. retry 108
2020-03-10 02:47:29 125 INFO check deploy result. retry 109
2020-03-10 02:47:30 131 INFO bk_monitor have been deployed successfully
[192.168.1.6]20200310-024730 151 SaaS application bk_monitor has been deployed successfully
[192.168.1.6]20200310-024730 56 install saas-o(bk_monitor) done
登陆蓝鲸的工作台,也确认这次蓝鲸监控组件已经安装成功,可以正常操作了。
蓝鲸:安装SaaS组件bk_monitor失败分析解决的更多相关文章
- 阿里云的云虚拟主机安装dede提示数据库连接失败的解决办法
问题描述 阿里云的云虚拟主机安装dede提示数据库连接失败 问题分析 连接数据库失败,可能数据库密码不对或数据库服务器出错! 解决方案 1.通过ftp软件查看htdocs/data/common.in ...
- window 7上安装Visual Studio 2017失败的解决方法
今天在办公电脑上windows 7系统上装Visual Studio 2017企业版的时候遇到了一个让人懵逼的错误. 为啥说懵逼呢,因为昨天楼主在台式机上同样安装2017没有任何问题啊,台式机上是wi ...
- Xshell安装教程及Xshell安装程序集组件时出错的解决方法
部分小伙伴在安装Xshell的时候可能会遇到这个问题:“Xshell5安装程序集组件{0D7E67F6-1A6A-3A26-AF95-B8E83DDCCC3F}时出错.HRESULT0x80070BC ...
- 安装SQL Sever数据库失败的解决办法
视频链接:https://www.bilibili.com/video/av12651739/ 我安装了SQL Sever2014.遇到了好多好多问题啊,整的我都快疯了.大致遇到的问题和解决办法如下. ...
- Windows下安装sass和compass失败的解决办法
sass依赖Ruby,所以,首先得先安装个Ruby sass的安装步骤: 在安装的时候,请勾选Add Ruby executables to your PATH这个选项,添加环境变量,不然以后使用编译 ...
- VMware安装Ghost版Win10 失败的解决方法
第一个失败点,是分区之后,重启,提示alt+ctrl+del要求重启,然后就是无限提示,解决方案:在重启读条的时候,按Esc,或者F2调整系统启动优先级读取位置,设置为CD的那个,就可以进入到安装系统 ...
- STM32cubeMX安装FW_F4容易出错失败的解决办法
在CUBEMXV5.30安装F4的支持包V1.241的反复失败,无法自动生成代码.后来发现了一种办法: 在stm32的官网下载V1.24.0和en.patch_cubefw_f4.zip(V1.24. ...
- npm 安装或更新模块失败的解决办法
头一次关注npm,在刚刚安装的机子上使用更新指令却报错,我还以为是SHA512有什么问题,后来发现是因为一些网络原因,所以,如果出现错误,务必修改默认配置为国内镜像,但是在publish之前,记得要改 ...
- GitHub安装缓慢甚至下载失败的解决办法
1.打开控制面板→ Internet 选项→“安全”选项卡. 2.选择“受信任的站点”→点击“站点”按钮. 3.弹出的窗口中的文本框中输入点击“添加” https://github-windows.s ...
- Microsoft Visual Studio Web 创作组件安装失败的解决方法
在网上查一下说是Office2007的问题.我把Office2007卸载了还是不行. 然后用Windows Install Clean Up工具清理,还是不行. 郁闷了.然后在安装包中的下面路径下找到 ...
随机推荐
- vue tabBar导航栏设计实现2-抽取tab-bar
系列导航 一.vue tabBar导航栏设计实现1-初步设计 二.vue tabBar导航栏设计实现2-抽取tab-bar 三.vue tabBar导航栏设计实现3-进一步抽取tab-item 四.v ...
- package.json文件中版本号
"5.0.3"表示安装指定的5.0.3版本,"-5.0.3"表示安装5.0.X中最新的版本,"^5.0.3"表示安装5.X.X中最新的版本.
- vue配置proxy实现跨域
- ThreadLocal应用及理解
转载请注明出处: 1. 先展示threadLocal的一个简单封装,该封装用来在不同的请求线程中解析用户参数.在请求经过过滤器时, 对用户的信息进行设置入 ThreadLocalContext 中,可 ...
- AHB-SRAMC Design-03
SRAMC SRAM CORE 8块memory进行广播信号,例化8片memory
- Hexo中引入另一个文件内容
有的时候博客内容会有变动,首发博客是最新的,其他博客地址可能会未同步,认准https://blog.zysicyj.top 首发博客地址 安装插件 npm install hexo-include-m ...
- [转帖]事务上的等待事件 —— enq: TX - contention
TX锁是保护事务的,事务结束时便会释放.因此,为获得TX锁为等待的会话,要等到拥有锁的会话的事务结束为止. SQL> select name,parameter1,parameter2,para ...
- [转帖]TiDB的系统变量
TiDB 系统变量的行为与 MySQL 相似但有一些不同,变量的作用范围可以是全局范围有效 (Global Scope).实例级别有效 (Instance Scope) 或会话级别有效 (Sessio ...
- [转帖]ethtool 命令介绍
https://www.jianshu.com/p/f456e73a0437 name ethtool - query or control network driver and hardware s ...
- [转帖]sendfile“零拷贝”、mmap内存映射、DMA
https://www.jianshu.com/p/7863667d5fa7 KAFKA推送消息用到了sendfile,落盘技术用到了mmap,DMA贯穿其中. 先说说零拷贝 零拷贝并不是不需要拷贝, ...