github-actions[bot] commented on issue #13889:
URL: 
https://github.com/apache/dolphinscheduler/issues/13889#issuecomment-1500151851

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   2023-04-07 10:06:19.352  INFO 4407 --- [           main] 
o.a.d.common.utils.ScriptRunner          : sql: CALL 
add_t_ds_alert_col_project_code 
   2023-04-07 10:06:20.346 ERROR 4407 --- [           main] 
o.a.d.common.utils.ScriptRunner          : SQLException
   
   java.sql.SQLSyntaxErrorException: Duplicate column name 'alert_type'
           at 
com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:120) 
~[mysql-connector-java-8.0.28.jar:8.0.28]
           at 
com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
 ~[mysql-connector-java-8.0.28.jar:8.0.28]
           at 
com.mysql.cj.jdbc.StatementImpl.executeInternal(StatementImpl.java:763) 
~[mysql-connector-java-8.0.28.jar:8.0.28]
           at com.mysql.cj.jdbc.StatementImpl.execute(StatementImpl.java:648) 
~[mysql-connector-java-8.0.28.jar:8.0.28]
           at 
com.zaxxer.hikari.pool.ProxyStatement.execute(ProxyStatement.java:94) 
~[HikariCP-4.0.3.jar:na]
           at 
com.zaxxer.hikari.pool.HikariProxyStatement.execute(HikariProxyStatement.java) 
~[HikariCP-4.0.3.jar:na]
           at 
org.apache.dolphinscheduler.common.utils.ScriptRunner.runScript(ScriptRunner.java:118)
 [dolphinscheduler-common-3.1.5.jar:3.1.5]
           at 
org.apache.dolphinscheduler.common.utils.ScriptRunner.runScript(ScriptRunner.java:73)
 [dolphinscheduler-common-3.1.5.jar:3.1.5]
           at 
org.apache.dolphinscheduler.tools.datasource.dao.UpgradeDao.upgradeDolphinSchedulerDDL(UpgradeDao.java:380)
 [dolphinscheduler-tools-3.1.5.jar:3.1.5]
           at 
org.apache.dolphinscheduler.tools.datasource.dao.UpgradeDao.upgradeDolphinScheduler(UpgradeDao.java:150)
 [dolphinscheduler-tools-3.1.5.jar:3.1.5]
           at 
org.apache.dolphinscheduler.tools.datasource.DolphinSchedulerManager.upgradeDolphinScheduler(DolphinSchedulerManager.java:109)
 [dolphinscheduler-tools-3.1.5.jar:3.1.5]
           at 
org.apache.dolphinscheduler.tools.datasource.UpgradeDolphinScheduler$UpgradeRunner.run(UpgradeDolphinScheduler.java:48)
 [dolphinscheduler-tools-3.1.5.jar:3.1.5]
           at 
org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:771)
 [spring-boot-2.7.3.jar:2.7.3]
           at 
org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:755)
 [spring-boot-2.7.3.jar:2.7.3]
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:315) 
[spring-boot-2.7.3.jar:2.7.3]
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1306) 
[spring-boot-2.7.3.jar:2.7.3]
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1295) 
[spring-boot-2.7.3.jar:2.7.3]
           at 
org.apache.dolphinscheduler.tools.datasource.UpgradeDolphinScheduler.main(UpgradeDolphinScheduler.java:31)
 [dolphinscheduler-tools-3.1.5.jar:3.1.5]
   
   2023-04-07 10:06:20.346 ERROR 4407 --- [           main] 
o.a.d.common.utils.ScriptRunner          : Error executing: CALL 
add_t_ds_alert_col_project_code 
   2023-04-07 10:06:20.353 ERROR 4407 --- [           main] 
o.a.d.tools.datasource.dao.UpgradeDao    : Duplicate column name 'alert_type'
   
   java.sql.SQLSyntaxErrorException: Duplicate column name 'alert_type'
           at 
com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:120) 
~[mysql-connector-java-8.0.28.jar:8.0.28]
           at 
com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
 ~[mysql-connector-java-8.0.28.jar:8.0.28]
           at 
com.mysql.cj.jdbc.StatementImpl.executeInternal(StatementImpl.java:763) 
~[mysql-connector-java-8.0.28.jar:8.0.28]
           at com.mysql.cj.jdbc.StatementImpl.execute(StatementImpl.java:648) 
~[mysql-connector-java-8.0.28.jar:8.0.28]
           at 
com.zaxxer.hikari.pool.ProxyStatement.execute(ProxyStatement.java:94) 
~[HikariCP-4.0.3.jar:na]
           at 
com.zaxxer.hikari.pool.HikariProxyStatement.execute(HikariProxyStatement.java) 
~[HikariCP-4.0.3.jar:na]
           at 
org.apache.dolphinscheduler.common.utils.ScriptRunner.runScript(ScriptRunner.java:118)
 ~[dolphinscheduler-common-3.1.5.jar:3.1.5]
           at 
org.apache.dolphinscheduler.common.utils.ScriptRunner.runScript(ScriptRunner.java:73)
 ~[dolphinscheduler-common-3.1.5.jar:3.1.5]
           at 
org.apache.dolphinscheduler.tools.datasource.dao.UpgradeDao.upgradeDolphinSchedulerDDL(UpgradeDao.java:380)
 [dolphinscheduler-tools-3.1.5.jar:3.1.5]
           at 
org.apache.dolphinscheduler.tools.datasource.dao.UpgradeDao.upgradeDolphinScheduler(UpgradeDao.java:150)
 [dolphinscheduler-tools-3.1.5.jar:3.1.5]
           at 
org.apache.dolphinscheduler.tools.datasource.DolphinSchedulerManager.upgradeDolphinScheduler(DolphinSchedulerManager.java:109)
 [dolphinscheduler-tools-3.1.5.jar:3.1.5]
           at 
org.apache.dolphinscheduler.tools.datasource.UpgradeDolphinScheduler$UpgradeRunner.run(UpgradeDolphinScheduler.java:48)
 [dolphinscheduler-tools-3.1.5.jar:3.1.5]
           at 
org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:771)
 [spring-boot-2.7.3.jar:2.7.3]
           at 
org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:755)
 [spring-boot-2.7.3.jar:2.7.3]
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:315) 
[spring-boot-2.7.3.jar:2.7.3]
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1306) 
[spring-boot-2.7.3.jar:2.7.3]
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1295) 
[spring-boot-2.7.3.jar:2.7.3]
           at 
org.apache.dolphinscheduler.tools.datasource.UpgradeDolphinScheduler.main(UpgradeDolphinScheduler.java:31)
 [dolphinscheduler-tools-3.1.5.jar:3.1.5]
   
   2023-04-07 10:06:20.356  INFO 4407 --- [           main] 
ConditionEvaluationReportLoggingListener : 
   
   Error starting ApplicationContext. To display the conditions report re-run 
your application with 'debug' enabled.
   2023-04-07 10:06:20.373 ERROR 4407 --- [           main] 
o.s.boot.SpringApplication               : Application run failed
   
   ![截屏2023-04-07 18 15 
15](https://user-images.githubusercontent.com/49302071/230591538-148e34ed-3ced-4054-8a1e-cba4935c464d.png)
   
   
   ### What you expected to happen
   
   normal operation
   
   ### How to reproduce
   
   upgrade-schema.sh
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   3.1.x
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)


-- 
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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to