在 Linux 修补程序和 OCCM 服务未启动后,内部 Cloud Manager 连接器显示非活动
适用场景
- 内部 Cloud Manager 连接器
- Linux 修补程序
- OCCM 服务启动失败
- SQL error
问题描述
内部 Cloud Manager 连接器上的重新启动环路中的 OCCM 服务:
root@user[/opt/application/netapp/cloudmanager]# systemctl status occm
occm.service - OCCM
Loaded: loaded
(/usr/lib/systemd/system/occm.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2000-01-01
00:00:00 GMT; 2 days ago
Process: 27191 ExecStop=/usr/lib/systemd/scripts/occm stop (code=exited, status=0/SUCCESS)
Process:
27164 ExecStart=/usr/lib/systemd/scripts/occm start (code=exited, status=0/SUCCESS)
Process: 27162 ExecStartPre=/bin/rm -f
/tmp/occm-pid (code=exited, status=0/SUCCESS)
Main PID: 27168 (code=exited, status=143)
Jan 01 00:00:49 user occm[27164]:
Starting occm ...
Jan 01 00:00:49 user occm[27164]: occm started ...
Jan 01 00:00:49 user systemd[1]: Started OCCM.
00:00:51 user systemd[1]: Stopping OCCM...
Jan 01 00:00:51 user occm[27191]: occm stopping ...
Jan 01 00:00:51 user
occm[27191]: occm stopped ...
Jan 01 00:00:52 user systemd[1]: occm.service: main process exited, code=exited, status=143/n/a
/var/log/mysqld.log:
2021-04-12 16:25:55,930 GMT WARN [OccmMain] [Startup] [] [System] (main) [JdbcEnvironmentInitiator:132] HHH000342: Could not obtain connection to query metadata
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Could not connect to address=(host=localhost)(port=3306)(type=master) : Connection refused (Connection refused))
2021-04-12 16:25:57,514 GMT ERROR [OccmMain] [Startup ] [] [System] (main) [OccmServer:94] Failed database migrations, exiting org.flywaydb.core.internal.dbsupport.FlywaySqlException:
Unable to obtain Jdbc connection from DataSource
------------------------------------------------
SQL State : null
Error Code : 0
Message : Cannot create PoolableConnectionFactory (Could not connect to address=(host=localhost)(port=3306)(type=master) : Connection refused (Connection refused))
2000-01-01 00:00:49,326 GMT WARN [OccmMain] [Startup ] [] [System] (main) [JdbcEnvironmentInitiator:132] HHH000342: Could not obtain connection to query metadata
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Table 'performance_schema.session_variables' doesn't exist)