all in one 一键安装包:
oceanbase-all-in-one-4.3.5_bp2_hf1_20250527.el7.x86_64.tar.gz
在启动的时候,一直卡在grafana program health check,日志:
all in one 一键安装包:
oceanbase-all-in-one-4.3.5_bp2_hf1_20250527.el7.x86_64.tar.gz
在启动的时候,一直卡在grafana program health check,日志:
操作系统环境:
[root@iZ2zeao2wwgih1kmpd9p0oZ log]# free -h
total used free shared buff/cache available
Mem: 31G 2.8G 13G 604K 15G 27G
Swap: 0B 0B 0B
[root@iZ2zeao2wwgih1kmpd9p0oZ log]# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
[root@iZ2zeao2wwgih1kmpd9p0oZ log]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 50G 37G 11G 77% /
devtmpfs 16G 0 16G 0% /dev
tmpfs 16G 16K 16G 1% /dev/shm
tmpfs 16G 588K 16G 1% /run
tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/vdb1 197G 3.8G 183G 3% /data
tmpfs 3.2G 0 3.2G 0% /run/user/0
安装步骤:
https://www.oceanbase.com/docs/community-obd-cn-1000000001882001,离线安装步骤一步一步来的
下载oceanbase-all-in-one-4.3.5_bp2_hf1_20250527.el7.x86_64.tar.gz
cd oceanbase-all-in-one/bin/
./install.sh
source ~/.oceanbase-all-in-one/bin/env.sh
obd demo
我销毁了,在重新安装,还是这个问题,查看所有的进程是都在的,这个集群状态显示还是deployed
[root@iZ2zeao2wwgih1kmpd9p0oZ ~]# obd cluster list
±-------------------------------------------------+
| Cluster List |
±-----±------------------------±----------------+
| Name | Configuration Path | Status (Cached) |
±-----±------------------------±----------------+
| demo | /root/.obd/cluster/demo | deployed |
±-----±------------------------±----------------+
Trace ID: 1588246e-5885-11f0-abf0-00163e065b2e
If you want to view detailed obd logs, please run: obd display-trace 1588246e-5885-11f0-abf0-00163e065b2e
[root@iZ2zeao2wwgih1kmpd9p0oZ ~]# ps -ef | grep grafana
root 1839 1 0 10:52 ? 00:00:01 /root/grafana/bin/grafana-server --homepath=/root/grafana --config=/root/grafana/conf/obd-grafana.ini --pidfile=/root/grafana/run/grafana.pid
root 13433 13205 0 11:15 pts/0 00:00:00 grep --color=auto grafana
[root@iZ2zeao2wwgih1kmpd9p0oZ ~]# ps -ef | grep prometheus
root 1799 1 1 10:52 ? 00:00:14 /root/prometheus/prometheus --config.file=/root/prometheus/prometheus.yaml --web.listen-address=0.0.0.0:9090 --storage.tsdb.path=/root/prometheus/data --web.enable-lifecycle
root 13495 13205 0 11:15 pts/0 00:00:00 grep --color=auto prometheus
[root@iZ2zeao2wwgih1kmpd9p0oZ ~]# ps -ef | grep oceanbase-ce
root 998 1 28 10:51 ? 00:07:02 /root/oceanbase-ce/bin/observer -r 127.0.0.1:2882:2881 -p 2881 -P 2882 -z zone1 -n demo -c 1751597497 -d /root/oceanbase-ce/store -I 127.0.0.1 -o __min_full_resource_pool_memory=1073741824,enable_syslog_wf=False,max_syslog_file_count=16,memory_limit=6G,system_memory=1G,cpu_count=8,datafile_size=2G,datafile_maxsize=8G,datafile_next=2G,log_disk_size=14G,enable_record_trace_log=False,enable_syslog_recycle=1
root 1460 1 0 10:52 ? 00:00:00 /root/oceanbase-ce/bin/obshell daemon --ip 127.0.0.1 --port 2886
root 1488 1460 0 10:52 ? 00:00:03 /root/oceanbase-ce/bin/obshell server --ip 127.0.0.1 --port 2886
root 13804 13205 0 11:16 pts/0 00:00:00 grep --color=auto oceanbase-ce
[root@iZ2zeao2wwgih1kmpd9p0oZ ~]# ps -ef | grep obproxy-ce
root 1709 1 0 10:52 ? 00:00:00 bash /root/obproxy-ce/obproxyd.sh /root/obproxy-ce 127.0.0.1 2883 daemon
root 1727 1 1 10:52 ? 00:00:19 /root/obproxy-ce/bin/obproxy --listen_port 2883
root 13864 13205 0 11:16 pts/0 00:00:00 grep --color=auto obproxy-ce
[root@iZ2zeao2wwgih1kmpd9p0oZ ~]# ps -ef | grep obagent
root 1573 1 0 10:52 ? 00:00:00 /root/obagent/bin/ob_agentd -c /root/obagent/conf/agentd.yaml
root 1580 1573 0 10:52 ? 00:00:00 /root/obagent/bin/ob_mgragent
root 1581 1573 1 10:52 ? 00:00:16 /root/obagent/bin/ob_monagent
root 13905 13205 0 11:16 pts/0 00:00:00 grep --color=auto obagent
[root@iZ2zeao2wwgih1kmpd9p0oZ ~]#
从进程上看grafana已经起来了呀,
你试一下命令:grafana-server web 看看这命令有什么错误输出吗
再找一下grafana的log看看都有哪些错误信息,log名好像是grafana.log
[root@iZ2zeao2wwgih1kmpd9p0oZ ~]# grafana-server web
-bash: grafana-server: command not found
grafana.log没发现错误日志,其实服务啥的都能用,就是因为这个报错,没输出集群信息,正常部署成功之后是以表格的形式输出组件的连接,账号密码啥的,而且,你去执行obd cluster display类似的命令,显示的信息也不对,服务都正常了,状态不是显示deployed,就是stoped,就是不显示running
如果不使用grafana建议直接删掉该组件