目录
QAQ./bkcec initdata gse初始化失败,提示request cc get_app_list failed!
至少要16g内存,40g存储,要不安装会卡住。所以要提前做好资源规划。
./bk_install bkdata
报错failed with error code 1 in /tmp/pip-build-8g97ci/MySQL-python/
install python package for bdata(monitor) failed pip optin: --no-index --find-links=/data/src/bkdata/support-fileds/pkgs
1.确保 mysql-devel 已经安装
yum install mysql-devel
rpm -qa | grep mariadb-devel
2.建立软连接
ln -s /usr/lib64/mysql/libmysqlclient_r.so /usr/lib/libmysqlclient_r.so ln -s /usr/lib64/mysql/libmysqlclient.so /usr/lib/libmysqlclient.so ln -s /usr/lib64/mysql/libmysqlclient.so.18 /usr/lib/libmysqlclient.so.18 ln -s /usr/lib64/mysql/libmysqlclient.so.18.0.0 /usr/lib/libmysqlclient.so.18.0.0
3.重新执行命令部署 BKDATA 即可恢复
./bkcec install bkdata
启动 bkdata 报错:dataapi.service.consul start failed ERROR
: init_snapshot_config (databus.tests.DatabusHealthTestCase)
解决方案
# 登陆到 databus 所在机器查看
cd /data/bkce/etc/consul.d/ ls <<列出文件名
查看是否生成: bkdata.json(社区版 5.1 为 bkdata-databus.json,bkdata-dataapi.jsonbkdata-monitor.json)
确认生成对应json,直接启动bkdata就行
# 启动 bkdata
./bkcec start bkdata
# 若无则重装 consul
./bkcec stop consul
./bkcec install consul 1
./bkcec start consul
./bkcec status consul
[192.168.0.109]20200302-161906 56 install gse(allproject) done
[root@localhost install]# ./bkcec initdata gse
initdata for gse()
[192.168.0.109]20200302-161913 172 exec initdata_gse on 192.168.0.109
[192.168.0.109]20200302-161914 104 start to make migration for gse ...
[192.168.0.109]20200302-161914 112 on-migrate ... /data/bkce/gse/server/bin/on_migrate
[192.168.0.109]20200302-161914 53 init gse zk base path
[192.168.0.109]20200302-161914 59 init redis zk config
[192.168.0.109]20200302-161914 69 get app_code=bk_paas_kibana, app_token=0da52a0e-b223-49a6-8605-63ce6f577af2
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:13 --:--:-- 0curl: (6) Could not resolve host: paas.service.consul; Unknown error
[192.168.0.109]20200302-161929 85 request cc get_app_list failed!
[192.168.0.109]20200302-161929 153 migrate failed for gse(server)
[192.168.0.109]20200302-161929 179 Abort
[root@localhost install]#
确认paas是否能正常解析?
#dig paas.service.consul
确认nginx是否正常启动
#./bkcec status nginx <<此处提示nginx exit,故重装nginx
重装nginx
#./bkcec install nginx 1
[192.168.0.109]20200302-163010 56 install nginx(allproject) done
[root@localhost install]# ./bkcec start nginx
[192.168.0.109]20200302-163115 98 starting nginx(ALL) on host: 192.168.0.109
nginx: [emerg] no host in upstream ":8010" in /data/bkce/etc/nginx/paas.conf:23
#vim /data/bkce/etc/nginx/paas.conf
找到23行,修改配置缺失的host
重启nginx。