同一台虚拟机中安装多个数据库实例时很常见的现象,多人同时使用同一台虚拟机不同的数据库时,可能会造成安装失败的情形。
INFO track_io_timing is already configured, then skip this step
INFO log_min_messages is already configured, then skip this step
INFO temp_buffers is already configured, then skip this step
INFO commit_siblings is already configured, then skip this step
INFO canopy.shard_count is already configured, then skip this step
INFO cron.database_name is already configured, then skip this step
INFO min_parallel_table_scan_size is already configured, then skip this step
2022-05-23 17:28:39 [com.hundsun.lightdb.service.deploy.AbstractCommandExecuteService]-[INFO] 开始执行:[sh, /home/lightdb/lightdb-4932-oracl/lightdb-x-13.3-22.2-4932-el7.x86_64/script/6_lightdb_start.sh, /data1/lightdb-xjh-4932/lightdb-x/13.3-22.2, /data1/lightdb-xjh-4932/lightdb-x/13.3-22.2/data/defaultCluster/]
2022-05-23 17:28:39 [com.hundsun.lightdb.util.SystemCommand]-[ERROR] 执行状态:1
2022-05-23 17:28:39 [com.hundsun.lightdb.service.deploy.AbstractCommandExecuteService]-[ERROR] 脚本命令执行异常:sh /home/lightdb/lightdb-4932-oracl/lightdb-x-13.3-22.2-4932-el7.x86_64/script/6_lightdb_start.sh :ERROR lt_ctl start failure
2022-05-23 17:28:39 [com.hundsun.lightdb.controller.InstallController]-[ERROR] SINGLE模式安装失败:
java.lang.RuntimeException: Install failed!
at com.hundsun.lightdb.service.deploy.AbstractCommandExecuteService.executeScript(AbstractCommandExecuteService.java:34)
at com.hundsun.lightdb.service.deploy.AbstractSingleService.deploy(AbstractSingleService.java:102)
at com.hundsun.lightdb.controller.InstallController$1.run(InstallController.java:82)
at java.base/java.util.TimerThread.mainLoop(Timer.java:556)
at java.base/java.util.TimerThread.run(Timer.java:506)
[lightdb@lightdb2 log]$
造成上述的场景之一:
用户A安装了单机版或分布式lightDB数据库,用户B在此基础上创建了自己的个人实例库。过了几天,A卸载了lightDB数据库未通知B,但B一直在使用第三方客户端执行个人数据库实例调试,导致后台进程lightDB一直在运行。
此时,如果任一用户在此虚拟机上直接安装lightDB单机版或分布式,就会出现上述错误。
需要检查进程执行情况:
ps aux | grep lightdb
kill -9 32456
杀掉对应进程后,用户在此虚拟机上再次安装lightDB单机版或分布式,就可以顺利执行安装。



