适用版本
以 Docker 容器化启动的 OceanBase 集群
问题现象
observer 进程启动失败报错:
ERROR: current user(uid=0) that starts observer is not the same with the original one(uid=500), observer starts failed!
问题原因
安装 OceanBase 集群时使用的是 root 用户,当前 Docker 容器内的 /home/admin/oceanbase 目录及子目录/文件的 owner:group 因为误操作发生了变化,不再是 root:root 了,进而导致 observer 进程启动失败。
解决方法
检查一下 /home/admin/oceanbase 目录的 owner:group 是不是还是 root:root,如果不是,需要将 /home/admin/oceanbase/ 整个目录重置为 root:root。
# chown -R root:root /home/admin/oceanbase/