chengshiwen opened a new issue #5386:
URL: https://github.com/apache/dolphinscheduler/issues/5386


   **To Reproduce**
   Steps to reproduce the behavior, for example:
   1. Run `docker-compose up -d`
   2. Run `docker logs -f dolphinscheduler-alert`
   3. See error
   
   **Expected behavior**
   Bug fixed
   
   **Screenshots**
   Alert logs:
   ```
   [INFO] 2021-04-26 00:27:39.678 
org.apache.dolphinscheduler.alert.plugin.AlertPluginManager:[104] - Registering 
Alert Plugin 'DingTalk'
   [INFO] 2021-04-26 00:27:39.681 
org.apache.dolphinscheduler.alert.plugin.AlertPluginManager:[86] - -- Loaded 
Alert Plugin DingTalk --
   [INFO] 2021-04-26 00:27:41.901 com.alibaba.druid.pool.DruidDataSource:[994] 
- {dataSource-1} inited
   Exception in thread "main" java.lang.RuntimeException: load Alert Plugin 
Failed !
        at 
org.apache.dolphinscheduler.alert.AlertServer.initPlugin(AlertServer.java:104)
        at 
org.apache.dolphinscheduler.alert.AlertServer.start(AlertServer.java:145)
        at 
org.apache.dolphinscheduler.alert.AlertServer.main(AlertServer.java:161)
   Caused by: org.springframework.jdbc.BadSqlGrammarException: 
   ### Error querying database.  Cause: org.postgresql.util.PSQLException: 
ERROR: relation "t_ds_plugin_define" does not exist
     Position: 23
   ### The error may exist in 
org/apache/dolphinscheduler/dao/mapper/PluginDefineMapper.xml
   ### The error may involve defaultParameterMap
   ### The error occurred while setting parameters
   ### SQL: select *         from t_ds_plugin_define         where plugin_name 
= ? and plugin_type = ?
   ### Cause: org.postgresql.util.PSQLException: ERROR: relation 
"t_ds_plugin_define" does not exist
     Position: 23
   ; bad SQL grammar []; nested exception is org.postgresql.util.PSQLException: 
ERROR: relation "t_ds_plugin_define" does not exist
     Position: 23
        at 
org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:239)
        at 
org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:72)
        at 
org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:74)
        at 
org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:440)
        at com.sun.proxy.$Proxy11.selectList(Unknown Source)
        at 
org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:223)
        at 
com.baomidou.mybatisplus.core.override.MybatisMapperMethod.executeForMany(MybatisMapperMethod.java:158)
        at 
com.baomidou.mybatisplus.core.override.MybatisMapperMethod.execute(MybatisMapperMethod.java:76)
        at 
com.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:61)
        at com.sun.proxy.$Proxy15.queryByNameAndType(Unknown Source)
        at 
org.apache.dolphinscheduler.dao.PluginDao.addOrUpdatePluginDefine(PluginDao.java:67)
        at 
org.apache.dolphinscheduler.alert.plugin.AlertPluginManager.installPlugin(AlertPluginManager.java:111)
        at 
org.apache.dolphinscheduler.common.plugin.DolphinPluginLoader.loadPlugin(DolphinPluginLoader.java:111)
        at 
org.apache.dolphinscheduler.common.plugin.DolphinPluginLoader.loadPlugin(DolphinPluginLoader.java:99)
        at 
org.apache.dolphinscheduler.common.plugin.DolphinPluginLoader.loadPlugins(DolphinPluginLoader.java:85)
        at 
org.apache.dolphinscheduler.alert.AlertServer.initPlugin(AlertServer.java:102)
        ... 2 more
   Caused by: org.postgresql.util.PSQLException: ERROR: relation 
"t_ds_plugin_define" does not exist
     Position: 23
        at 
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2440)
        at 
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2183)
        at 
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:308)
        at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:441)
        at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365)
        at 
org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:143)
        at 
org.postgresql.jdbc.PgPreparedStatement.execute(PgPreparedStatement.java:132)
        at 
com.alibaba.druid.pool.DruidPooledPreparedStatement.execute(DruidPooledPreparedStatement.java:497)
        at 
org.apache.ibatis.executor.statement.PreparedStatementHandler.query(PreparedStatementHandler.java:64)
        at 
org.apache.ibatis.executor.statement.RoutingStatementHandler.query(RoutingStatementHandler.java:79)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:63)
        at com.sun.proxy.$Proxy23.query(Unknown Source)
        at 
com.baomidou.mybatisplus.core.executor.MybatisSimpleExecutor.doQuery(MybatisSimpleExecutor.java:67)
        at 
org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:324)
        at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156)
        at 
org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:109)
        at 
org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:83)
        at 
org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:147)
        at 
org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at 
org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:426)
        ... 14 more
   End start alert-server.
   2021-04-26 00:27:43,637 INFO exited: alert (exit status 0; expected)
   ```
   
   
   **Which version of Dolphin Scheduler:**
    -[dev]
   
   **Additional context**
   Add any other context about the problem here.
   
   **Requirement or improvement**
   - Please describe about your requirements or improvement suggestions.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to