【 使用环境 】 测试环境
【 OB or 其他组件 】oms
【 使用版本 】社区版默认下载版本
【问题描述】初始化失败,当前命令: python -m omsflow.scripts.units.oms_init_manager --init-db
应该是数据库问题
【复现路径】
【附件及日志】
Waiting docker_cmd.sh to finished , supervisor process count : 0
Waiting docker_cmd.sh to finished , supervisor process count : 0
--------------------------------------------------------------------------------
# 【步骤一】校验 config.yaml 配置文件
--------------------------------------------------------------------------------
python -m omsflow.scripts.units.oms_cluster_config --check /home/admin/conf/config.yaml
/root/omsflow
2025-10-22 22:28:55,681-Oms-DEBUG oms_cluster_config.main.946 :load config file /home/admin/conf/config.yaml
`master_cm_endpoint` is http://192.168.230.200:8088
`master_oms_endpoint` is http://192.168.230.200:8082
`role` is master
success: config file is verification ok ...
master_drc_rm_meta_uri is accessible
cm_location is 0
--------------------------------------------------------------------------------
# 【步骤二】创建 OMS 元信息库
--------------------------------------------------------------------------------
python -m omsflow.scripts.units.oms_init_manager --init-db
/root/omsflow
use config /home/admin/conf/config.yaml
no drop task
no init task
query {'charset': 'utf8'} {'username': 'oms_u@oms', 'database': 'oms_cm', 'host': '192.168.230.200', 'password_original': '+u+vOVJolDXvyy', 'drivername': 'mysql+pymysql', 'query': {'charset': 'utf8'}, 'port': 2881}
2025-10-22 22:29:00,440-Oms-DEBUG units.create_engine_wrapper.70 :create a new sqlalchemy engine wrapped Engine(mysql+pymysql://oms_u%40oms:***@192.168.230.200:2881/oms_cm?charset=utf8)
query {'charset': 'utf8'} {'username': 'oms_u@oms', 'database': 'oms_rm', 'host': '192.168.230.200', 'password_original': '+u+vOVJolDXvyy', 'drivername': 'mysql+pymysql', 'query': {'charset': 'utf8'}, 'port': 2881}
2025-10-22 22:29:51,594-Oms-DEBUG units.create_engine_wrapper.70 :create a new sqlalchemy engine wrapped Engine(mysql+pymysql://oms_u%40oms:***@192.168.230.200:2881/oms_rm?charset=utf8)
query {'charset': 'utf8'} {'username': 'oms_u@oms', 'database': 'oms_cm_hb', 'host': '192.168.230.200', 'password_original': '+u+vOVJolDXvyy', 'drivername': 'mysql+pymysql', 'query': {'charset': 'utf8'}, 'port': 2881}
2025-10-22 22:29:51,739-Oms-DEBUG units.create_engine_wrapper.70 :create a new sqlalchemy engine wrapped Engine(mysql+pymysql://oms_u%40oms:***@192.168.230.200:2881/oms_cm_hb?charset=utf8)
query {'charset': 'utf8'} {'username': 'oms_u@oms', 'database': 'oms_rm', 'host': '192.168.230.200', 'password_original': '+u+vOVJolDXvyy', 'drivername': 'mysql+pymysql', 'query': {'charset': 'utf8'}, 'port': 2881}
2025-10-22 22:29:51,953-Oms-DEBUG units.create_engine_wrapper.70 :create a new sqlalchemy engine wrapped Engine(mysql+pymysql://oms_u%40oms:***@192.168.230.200:2881/oms_rm?charset=utf8)
2025-10-22 22:29:52,236-Oms-DEBUG oms_init_manager._import_sql_file_by_engine.98 :Engine(mysql+pymysql://oms_u%40oms:***@192.168.230.200:2881/oms_rm?charset=utf8)
import /root/omsflow/meta_init/drc_rm_schema.sql
mysql -h'192.168.230.200' -P2881 -u 'oms_u@oms' --password='+u+vOVJolDXvyy' -f -D 'oms_rm' < /root/omsflow/meta_init/drc_rm_schema.sql
ERROR 4550 (HY000) at line 825: rootservice is shutdown
ERROR 4638 (HY000) at line 838: The RootServer is not the master
ERROR 4638 (HY000) at line 849: The RootServer is not the master
ERROR 4638 (HY000) at line 877: The RootServer is not the master
ERROR 4638 (HY000) at line 886: The RootServer is not the master
ERROR 4638 (HY000) at line 895: The RootServer is not the master
ERROR 4638 (HY000) at line 913: The RootServer is not the master
ERROR 4638 (HY000) at line 922: The RootServer is not the master
ERROR 4638 (HY000) at line 938: The RootServer is not the master
ERROR 4638 (HY000) at line 953: The RootServer is not the master
ERROR 4638 (HY000) at line 969: The RootServer is not the master
ERROR 4638 (HY000) at line 979: The RootServer is not the master
ERROR 4638 (HY000) at line 999: The RootServer is not the master
ERROR 4638 (HY000) at line 1016: The RootServer is not the master
ERROR 4638 (HY000) at line 1033: The RootServer is not the master
ERROR 4638 (HY000) at line 1044: The RootServer is not the master
ERROR 4638 (HY000) at line 1071: The RootServer is not the master
ERROR 4638 (HY000) at line 1090: The RootServer is not the master
ERROR 4638 (HY000) at line 1115: The RootServer is not the master
ERROR 4638 (HY000) at line 1124: The RootServer is not the master
ERROR 4638 (HY000) at line 1138: The RootServer is not the master
ERROR 4638 (HY000) at line 1158: The RootServer is not the master
ERROR 4638 (HY000) at line 1177: The RootServer is not the master
ERROR 4638 (HY000) at line 1179: The RootServer is not the master
ERROR 4638 (HY000) at line 1193: The RootServer is not the master
ERROR 4638 (HY000) at line 1213: The RootServer is not the master
ERROR 4638 (HY000) at line 1228: The RootServer is not the master
ERROR 4638 (HY000) at line 1245: The RootServer is not the master
ERROR 4638 (HY000) at line 1278: The RootServer is not the master
ERROR 4638 (HY000) at line 1313: The RootServer is not the master
ERROR 4638 (HY000) at line 1339: The RootServer is not the master
ERROR 4638 (HY000) at line 1365: The RootServer is not the master
ERROR 4638 (HY000) at line 1379: The RootServer is not the master
ERROR 4638 (HY000) at line 1401: The RootServer is not the master
ERROR 4638 (HY000) at line 1417: The RootServer is not the master
ERROR 4638 (HY000) at line 1429: The RootServer is not the master
ERROR 4638 (HY000) at line 1448: The RootServer is not the master
ERROR 4638 (HY000) at line 1478: The RootServer is not the master
ERROR 4638 (HY000) at line 1489: The RootServer is not the master
ERROR 4638 (HY000) at line 1513: The RootServer is not the master
ERROR 4638 (HY000) at line 1539: The RootServer is not the master
ERROR 4638 (HY000) at line 1570: The RootServer is not the master
ERROR 4638 (HY000) at line 1587: The RootServer is not the master
ERROR 4638 (HY000) at line 1605: The RootServer is not the master
ERROR 4638 (HY000) at line 1622: The RootServer is not the master
ERROR 4638 (HY000) at line 1639: The RootServer is not the master
ERROR 4638 (HY000) at line 1653: The RootServer is not the master
ERROR 4638 (HY000) at line 1669: The RootServer is not the master
ERROR 4638 (HY000) at line 1681: The RootServer is not the master
ERROR 4638 (HY000) at line 1691: The RootServer is not the master
ERROR 4638 (HY000) at line 1708: The RootServer is not the master
ERROR 4638 (HY000) at line 1720: The RootServer is not the master
ERROR 4638 (HY000) at line 1735: The RootServer is not the master
ERROR 4638 (HY000) at line 1752: The RootServer is not the master
ERROR 4638 (HY000) at line 1769: The RootServer is not the master
ERROR 4638 (HY000) at line 1785: The RootServer is not the master
ERROR 4638 (HY000) at line 1805: The RootServer is not the master
ERROR 4638 (HY000) at line 1821: The RootServer is not the master
ERROR 4638 (HY000) at line 1834: The RootServer is not the master
ERROR 4638 (HY000) at line 1847: The RootServer is not the master
ERROR 4638 (HY000) at line 1861: The RootServer is not the master
ERROR 4638 (HY000) at line 1886: The RootServer is not the master
ERROR 4638 (HY000) at line 1900: The RootServer is not the master
ERROR 4638 (HY000) at line 1907: The RootServer is not the master
ERROR 4638 (HY000) at line 1922: The RootServer is not the master
ERROR 4638 (HY000) at line 1932: The RootServer is not the master
ERROR 4638 (HY000) at line 1950: The RootServer is not the master
ERROR 4638 (HY000) at line 1993: The RootServer is not the master
ERROR 4638 (HY000) at line 2015: The RootServer is not the master
ERROR 4638 (HY000) at line 2029: The RootServer is not the master
ERROR 4638 (HY000) at line 2047: The RootServer is not the master
ERROR 4638 (HY000) at line 2062: The RootServer is not the master
ERROR 4638 (HY000) at line 2079: The RootServer is not the master
ERROR 4638 (HY000) at line 2091: The RootServer is not the master
ERROR 4638 (HY000) at line 2103: The RootServer is not the master
ERROR 4638 (HY000) at line 2116: The RootServer is not the master
ERROR 1146 (42S02) at line 2130: Table 'oms_rm.oms_network_tunnel' doesn't exist
ERROR 4638 (HY000) at line 2133: The RootServer is not the master
ERROR 1146 (42S02) at line 2139: Table 'oms_rm.oms_version' doesn't exist
ERROR 1146 (42S02) at line 2141: Table 'oms_rm.oms_version' doesn't exist
ERROR 8001 (08004) at line 2143: Server is initializing
ERROR 8001 (08004) at line 2155: Server is initializing
ERROR 8001 (08004) at line 2156: Server is initializing
ERROR 8001 (08004) at line 2157: Server is initializing
ERROR 8001 (08004) at line 2158: Server is initializing
ERROR 1146 (42S02) at line 2159: Table 'oms_rm.oms_alarm_event' doesn't exist
ERROR 1146 (42S02) at line 2160: Table 'oms_rm.oms_sync_project' doesn't exist
ERROR 1146 (42S02) at line 2161: Table 'oms_rm.oms_worker_grade_bind' doesn't exist
ERROR 1146 (42S02) at line 2162: Table 'oms_rm.project' doesn't exist
ERROR 1146 (42S02) at line 2163: Table 'oms_rm.compute_platform' doesn't exist
2025-10-22 22:31:23,205-Oms-DEBUG oms_init_manager._import_sql_file_by_engine.98 :Engine(mysql+pymysql://oms_u%40oms:***@192.168.230.200:2881/oms_rm?charset=utf8)
import /root/omsflow/meta_init/drc_rm_data.sql
mysql -h'192.168.230.200' -P2881 -u 'oms_u@oms' --password='+u+vOVJolDXvyy' -f -D 'oms_rm' < /root/omsflow/meta_init/drc_rm_data.sql
ERROR 1146 (42S02) at line 50: Table 'oms_rm.oms_instance_type' doesn't exist
ERROR 1146 (42S02) at line 56: Table 'oms_rm.oms_user' doesn't exist
ERROR 1146 (42S02) at line 58: Table 'oms_rm.oms_user' doesn't exist
ERROR 1146 (42S02) at line 64: Table 'oms_rm.oms_user' doesn't exist
ERROR 1146 (42S02) at line 67: Table 'oms_rm.oms_department' doesn't exist
ERROR 1146 (42S02) at line 69: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 80: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 91: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 103: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 116: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 127: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 138: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 149: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 161: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 172: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 186: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 197: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 208: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 219: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 230: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 241: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 252: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 263: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 274: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 285: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 293: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 304: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 315: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 323: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 326: Table 'oms_rm.oms_user' doesn't exist
ERROR 1146 (42S02) at line 336: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 343: Table 'oms_rm.oms_user' doesn't exist
ERROR 1146 (42S02) at line 344: Table 'oms_rm.oms_user' doesn't exist
ERROR 1146 (42S02) at line 345: Table 'oms_rm.oms_user' doesn't exist
ERROR 1146 (42S02) at line 348: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 360: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 370: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 380: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 391: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 403: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 411: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 426: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 438: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 449: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 459: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 465: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 471: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 479: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 497: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 500: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 506: Table 'oms_rm.oms_api_permission' doesn't exist
ERROR 1146 (42S02) at line 510: Table 'oms_rm.spring_session' doesn't exist
2025-10-22 22:31:27,152-Oms-DEBUG oms_init_manager.init_rm.724 :REPLACE INTO `user` (`id`, `name`, `password`, `type`, `linkman`, `linkman_cn`, `reason`, `product`, `gmt_modify`) VALUES(1, 'RM_oms', 'MjAyNS0xMC0yMg==', 3, 'oms', 'oms', 'oms', 'oms', now());
query {'charset': 'utf8'} {'username': 'oms_u@oms', 'database': 'oms_cm', 'host': '192.168.230.200', 'password_original': '+u+vOVJolDXvyy', 'drivername': 'mysql+pymysql', 'query': {'charset': 'utf8'}, 'port': 2881}
2025-10-22 22:31:28,521-Oms-DEBUG units.create_engine_wrapper.70 :create a new sqlalchemy engine wrapped Engine(mysql+pymysql://oms_u%40oms:***@192.168.230.200:2881/oms_cm?charset=utf8)
drc_cm_schema
2025-10-22 22:31:28,561-Oms-DEBUG oms_init_manager._import_sql_file_by_engine.98 :Engine(mysql+pymysql://oms_u%40oms:***@192.168.230.200:2881/oms_cm?charset=utf8)
import /root/omsflow/meta_init/drc_cm_schema.sql
mysql -h'192.168.230.200' -P2881 -u 'oms_u@oms' --password='+u+vOVJolDXvyy' -f -D 'oms_cm' < /root/omsflow/meta_init/drc_cm_schema.sql
ERROR 4550 (HY000) at line 267: rootservice is shutdown
ERROR 4638 (HY000) at line 286: The RootServer is not the master
ERROR 4638 (HY000) at line 302: The RootServer is not the master
ERROR 4638 (HY000) at line 322: The RootServer is not the master
ERROR 4638 (HY000) at line 340: The RootServer is not the master
ERROR 4638 (HY000) at line 359: The RootServer is not the master
ERROR 4638 (HY000) at line 375: The RootServer is not the master
ERROR 4638 (HY000) at line 395: The RootServer is not the master
ERROR 4638 (HY000) at line 414: The RootServer is not the master
ERROR 4638 (HY000) at line 428: The RootServer is not the master
ERROR 4638 (HY000) at line 467: The RootServer is not the master
ERROR 4638 (HY000) at line 490: The RootServer is not the master
ERROR 4638 (HY000) at line 510: The RootServer is not the master
ERROR 4638 (HY000) at line 525: The RootServer is not the master
ERROR 4638 (HY000) at line 539: The RootServer is not the master
ERROR 4638 (HY000) at line 555: The RootServer is not the master
ERROR 4638 (HY000) at line 571: The RootServer is not the master
ERROR 4638 (HY000) at line 587: The RootServer is not the master
ERROR 4638 (HY000) at line 605: The RootServer is not the master
ERROR 4638 (HY000) at line 627: The RootServer is not the master
ERROR 4638 (HY000) at line 648: The RootServer is not the master
ERROR 4638 (HY000) at line 663: The RootServer is not the master
ERROR 4638 (HY000) at line 688: The RootServer is not the master
ERROR 4638 (HY000) at line 708: The RootServer is not the master
ERROR 4638 (HY000) at line 728: The RootServer is not the master
ERROR 4638 (HY000) at line 755: The RootServer is not the master
ERROR 4638 (HY000) at line 773: The RootServer is not the master
ERROR 4638 (HY000) at line 814: The RootServer is not the master
ERROR 4638 (HY000) at line 846: The RootServer is not the master
ERROR 4638 (HY000) at line 872: The RootServer is not the master
ERROR 4638 (HY000) at line 895: The RootServer is not the master
ERROR 4638 (HY000) at line 913: The RootServer is not the master
ERROR 4638 (HY000) at line 927: The RootServer is not the master
ERROR 4638 (HY000) at line 938: The RootServer is not the master
ERROR 4638 (HY000) at line 966: The RootServer is not the master
ERROR 4638 (HY000) at line 1002: The RootServer is not the master
ERROR 4638 (HY000) at line 1017: The RootServer is not the master
ERROR 4638 (HY000) at line 1038: The RootServer is not the master
ERROR 4638 (HY000) at line 1066: The RootServer is not the master
ERROR 4638 (HY000) at line 1091: The RootServer is not the master
ERROR 8001 (08004) at line 1115: Server is initializing
ERROR 8001 (08004) at line 1137: Server is initializing
ERROR 8001 (08004) at line 1168: Server is initializing
ERROR 8001 (08004) at line 1191: Server is initializing
ERROR 8001 (08004) at line 1208: Server is initializing
ERROR 8001 (08004) at line 1224: Server is initializing
ERROR 8001 (08004) at line 1250: Server is initializing
ERROR 8001 (08004) at line 1276: Server is initializing
ERROR 8001 (08004) at line 1292: Server is initializing
ERROR 8001 (08004) at line 1312: Server is initializing
ERROR 8001 (08004) at line 1329: Server is initializing
ERROR 8001 (08004) at line 1349: Server is initializing
ERROR 8001 (08004) at line 1362: Server is initializing
ERROR 1061 (42000) at line 1596: Duplicate key name 'uniq_module_range'
ERROR 1061 (42000) at line 1663: Duplicate key name 'uk_old_task_name'
drc_cm_data
2025-10-22 22:32:51,705-Oms-DEBUG oms_init_manager._import_sql_file_by_engine.98 :Engine(mysql+pymysql://oms_u%40oms:***@192.168.230.200:2881/oms_cm?charset=utf8)
import /root/omsflow/meta_init/drc_cm_data.sql
mysql -h'192.168.230.200' -P2881 -u 'oms_u@oms' --password='+u+vOVJolDXvyy' -f -D 'oms_cm' < /root/omsflow/meta_init/drc_cm_data.sql
ERROR 1146 (42S02) at line 717: Table 'oms_cm.task_step_template' doesn't exist
ERROR 1146 (42S02) at line 744: Table 'oms_cm.task_type' doesn't exist
ERROR 1146 (42S02) at line 755: Table 'oms_cm.resource_tag' doesn't exist
ERROR 1146 (42S02) at line 865: Table 'oms_cm.connector_config_template' doesn't exist
ERROR 1146 (42S02) at line 1001: Table 'oms_cm.resource_group' doesn't exist
ERROR 1146 (42S02) at line 1013: Table 'oms_cm.task_step_template' doesn't exist
ERROR 1146 (42S02) at line 1014: Table 'oms_cm.task_step_template' doesn't exist
ERROR 1146 (42S02) at line 1015: Table 'oms_cm.resource_tag' doesn't exist
ERROR 1146 (42S02) at line 1016: Table 'oms_cm.task_type' doesn't exist
2025-10-22 22:33:07,134-Oms-DEBUG oms_init_manager.init_cm.744 :
INSERT INTO `resource_group`
(`name`, `store_limit`, `congo_limit`, `jdbc_writer_limit`, `metaq_writer_limit`, `full_check_limit`, `cpu_limit`, `cpu_unit`,`gmt_modified`, `gmt_create`, `description`, `level`, `creator`)
VALUES('0', 50, 50, 50, 0, 50, 50, 1, now(), now(), '默认地域', 'GENERAL', 'oms') ON DUPLICATE KEY UPDATE `name` = '0';
Traceback (most recent call last):
File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/root/omsflow/scripts/units/oms_init_manager.py", line 1230, in <module>
main()
File "/root/omsflow/scripts/units/oms_init_manager.py", line 1209, in main
init_manager.init_data()
File "/root/omsflow/scripts/units/oms_init_manager.py", line 692, in init_data
self.init_cm()
File "/root/omsflow/scripts/units/oms_init_manager.py", line 745, in init_cm
cm_engine.execute(sql)
File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 2166, in execute
return connection.execute(statement, *multiparams, **params)
File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 982, in execute
return self._execute_text(object_, multiparams, params)
File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 1155, in _execute_text
parameters,
File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 1248, in _execute_context
e, statement, parameters, cursor, context
File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 1466, in _handle_dbapi_exception
util.raise_from_cause(sqlalchemy_exception, exc_info)
File "/usr/lib64/python2.7/site-packages/sqlalchemy/util/compat.py", line 383, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 1244, in _execute_context
cursor, statement, parameters, context
File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/default.py", line 552, in do_execute
cursor.execute(statement, parameters)
File "/usr/lib/python2.7/site-packages/pymysql/cursors.py", line 163, in execute
result = self._query(query)
File "/usr/lib/python2.7/site-packages/pymysql/cursors.py", line 321, in _query
conn.query(q)
File "/usr/lib/python2.7/site-packages/pymysql/connections.py", line 505, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File "/usr/lib/python2.7/site-packages/pymysql/connections.py", line 724, in _read_query_result
result.read()
File "/usr/lib/python2.7/site-packages/pymysql/connections.py", line 1069, in read
first_packet = self.connection._read_packet()
File "/usr/lib/python2.7/site-packages/pymysql/connections.py", line 676, in _read_packet
packet.raise_for_error()
File "/usr/lib/python2.7/site-packages/pymysql/protocol.py", line 223, in raise_for_error
err.raise_mysql_exception(self._data)
File "/usr/lib/python2.7/site-packages/pymysql/err.py", line 107, in raise_mysql_exception
raise errorclass(errno, errval)
sqlalchemy.exc.ProgrammingError: (pymysql.err.ProgrammingError) (1146, u"Table 'oms_cm.resource_group' doesn't exist")
[SQL:
INSERT INTO `resource_group`
(`name`, `store_limit`, `congo_limit`, `jdbc_writer_limit`, `metaq_writer_limit`, `full_check_limit`, `cpu_limit`, `cpu_unit`,`gmt_modified`, `gmt_create`, `description`, `level`, `creator`)
VALUES('0', 50, 50, 50, 0, 50, 50, 1, now(), now(), '默认地域', 'GENERAL', 'oms') ON DUPLICATE KEY UPDATE `name` = '0';
]
(Background on this error at: http://sqlalche.me/e/f405)
--------------------------------------------------------------------------------
# 【结束】初始化失败,当前命令: python -m omsflow.scripts.units.oms_init_manager --init-db
--------------------------------------------------------------------------------