darkz1984 commented on issue #9068:
URL:
https://github.com/apache/dolphinscheduler/issues/9068#issuecomment-1074837865
The error logs durning upgrade the database and I rerun the upgrade scripts:
May be caused by the t_ds_version.
I the 2.0.1, the db version is 1.4.0
```
2022-03-22 11:23:23.867 INFO 19063 --- [ main]
o.a.d.dao.upgrade.UpgradeDao : sqlSQLFilePathclass path resource
[sql/upgrade/2.0.0_schema/postgresql/dolphinscheduler_dml.sql]
2022-03-22 11:23:23.970 ERROR 19063 --- [ main]
o.a.d.dao.upgrade.ProcessDefinitionDao : ERROR: column
"process_definition_json" does not exist
Position: 11
org.postgresql.util.PSQLException: ERROR: column "process_definition_json"
does not exist
Position: 11
at
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2440)
~[postgresql-42.2.5.jar:42.2.5]
at
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2183)
~[postgresql-42.2.5.jar:42.2.5]
at
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:308)
~[postgresql-42.2.5.jar:42.2.5]
at
org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:441)
~[postgresql-42.2.5.jar:42.2.5]
at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365)
~[postgresql-42.2.5.jar:42.2.5]
at
org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:143)
~[postgresql-42.2.5.jar:42.2.5]
at
org.postgresql.jdbc.PgPreparedStatement.executeQuery(PgPreparedStatement.java:106)
~[postgresql-42.2.5.jar:42.2.5]
at
com.zaxxer.hikari.pool.ProxyPreparedStatement.executeQuery(ProxyPreparedStatement.java:52)
~[HikariCP-4.0.3.jar:na]
at
com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeQuery(HikariProxyPreparedStatement.java)
~[HikariCP-4.0.3.jar:na]
at
org.apache.dolphinscheduler.dao.upgrade.ProcessDefinitionDao.queryAllProcessDefinition(ProcessDefinitionDao.java:58)
~[dolphinscheduler-dao-2.0.5.jar:2.0.5]
at
org.apache.dolphinscheduler.dao.upgrade.UpgradeDao.processDefinitionJsonSplit(UpgradeDao.java:400)
[dolphinscheduler-dao-2.0.5.jar:2.0.5]
at
org.apache.dolphinscheduler.dao.upgrade.UpgradeDao.upgradeDolphinSchedulerTo200(UpgradeDao.java:149)
[dolphinscheduler-dao-2.0.5.jar:2.0.5]
at
org.apache.dolphinscheduler.dao.upgrade.DolphinSchedulerManager.upgradeDolphinScheduler(DolphinSchedulerManager.java:111)
[dolphinscheduler-dao-2.0.5.jar:2.0.5]
at
org.apache.dolphinscheduler.dao.upgrade.shell.UpgradeDolphinScheduler$UpgradeRunner.run(UpgradeDolphinScheduler.java:55)
[dolphinscheduler-dao-2.0.5.jar:2.0.5]
at
org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:791)
[spring-boot-2.5.6.jar:2.5.6]
at
org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:775)
[spring-boot-2.5.6.jar:2.5.6]
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:345)
[spring-boot-2.5.6.jar:2.5.6]
at
org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:143)
[spring-boot-2.5.6.jar:2.5.6]
at
org.apache.dolphinscheduler.dao.upgrade.shell.UpgradeDolphinScheduler.main(UpgradeDolphinScheduler.java:39)
[dolphinscheduler-dao-2.0.5.jar:2.0.5]
2022-03-22 11:23:23.977 ERROR 19063 --- [ main]
o.a.d.dao.upgrade.UpgradeDao : json split error
java.lang.RuntimeException: sql: SELECT id,process_definition_json FROM
t_ds_process_definition
at
org.apache.dolphinscheduler.dao.upgrade.ProcessDefinitionDao.queryAllProcessDefinition(ProcessDefinitionDao.java:68)
~[dolphinscheduler-dao-2.0.5.jar:2.0.5]
at
org.apache.dolphinscheduler.dao.upgrade.UpgradeDao.processDefinitionJsonSplit(UpgradeDao.java:400)
[dolphinscheduler-dao-2.0.5.jar:2.0.5]
at
org.apache.dolphinscheduler.dao.upgrade.UpgradeDao.upgradeDolphinSchedulerTo200(UpgradeDao.java:149)
[dolphinscheduler-dao-2.0.5.jar:2.0.5]
at
org.apache.dolphinscheduler.dao.upgrade.DolphinSchedulerManager.upgradeDolphinScheduler(DolphinSchedulerManager.java:111)
[dolphinscheduler-dao-2.0.5.jar:2.0.5]
at
org.apache.dolphinscheduler.dao.upgrade.shell.UpgradeDolphinScheduler$UpgradeRunner.run(UpgradeDolphinScheduler.java:55)
[dolphinscheduler-dao-2.0.5.jar:2.0.5]
at
org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:791)
[spring-boot-2.5.6.jar:2.5.6]
at
org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:775)
[spring-boot-2.5.6.jar:2.5.6]
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:345)
[spring-boot-2.5.6.jar:2.5.6]
at
org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:143)
[spring-boot-2.5.6.jar:2.5.6]
at
org.apache.dolphinscheduler.dao.upgrade.shell.UpgradeDolphinScheduler.main(UpgradeDolphinScheduler.java:39)
[dolphinscheduler-dao-2.0.5.jar:2.0.5]
Caused by: org.postgresql.util.PSQLException: ERROR: column
"process_definition_json" does not exist
Position: 11
at
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2440)
~[postgresql-42.2.5.jar:42.2.5]
at
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2183)
~[postgresql-42.2.5.jar:42.2.5]
at
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:308)
~[postgresql-42.2.5.jar:42.2.5]
at
org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:441)
~[postgresql-42.2.5.jar:42.2.5]
at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365)
~[postgresql-42.2.5.jar:42.2.5]
at
org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:143)
~[postgresql-42.2.5.jar:42.2.5]
at
org.postgresql.jdbc.PgPreparedStatement.executeQuery(PgPreparedStatement.java:106)
~[postgresql-42.2.5.jar:42.2.5]
at
com.zaxxer.hikari.pool.ProxyPreparedStatement.executeQuery(ProxyPreparedStatement.java:52)
~[HikariCP-4.0.3.jar:na]
at
com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeQuery(HikariProxyPreparedStatement.java)
~[HikariCP-4.0.3.jar:na]
at
org.apache.dolphinscheduler.dao.upgrade.ProcessDefinitionDao.queryAllProcessDefinition(ProcessDefinitionDao.java:58)
~[dolphinscheduler-dao-2.0.5.jar:2.0.5]
... 9 common frames omitted
2022-03-22 11:23:23.978 INFO 19063 --- [ main]
o.a.d.dao.upgrade.UpgradeDao : dolphinscheduler
2022-03-22 11:23:23.979 INFO 19063 --- [ main]
o.a.d.common.utils.ScriptRunner : sql: /* * Licensed to the Apache
Software Foundation (ASF) under one or more * contributor license agreements.
See the NOTICE file distributed with * this work for additional information
regarding copyright ownership. * The ASF licenses this file to You under the
Apache License, Version 2.0 * (the "License"); you may not use this file
except in compliance with * the License. You may obtain a copy of the License
at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by
applicable law or agreed to in writing, software * distributed under the
License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS
OF ANY KIND, either express or implied. * See the License for the specific
language governing permissions and * limitations under the License. */ ALTER
TABLE "t_ds_process_definition" DROP CONSTRAINT "t_ds_process_definition_pkey"
2022-03-22 11:23:24.049 INFO 19063 --- [ main]
o.a.d.common.utils.ScriptRunner : sql: ALTER TABLE
"t_ds_process_definition" ADD CONSTRAINT "t_ds_process_definition_pkey" PRIMARY
KEY ("id","code")
2022-03-22 11:23:24.071 INFO 19063 --- [ main]
o.a.d.common.utils.ScriptRunner : sql: ALTER TABLE
"t_ds_process_definition" DROP CONSTRAINT "process_definition_unique"
2022-03-22 11:23:24.087 INFO 19063 --- [ main]
o.a.d.common.utils.ScriptRunner : sql: DROP INDEX
"process_definition_index"
2022-03-22 11:23:24.103 INFO 19063 --- [ main]
o.a.d.common.utils.ScriptRunner : sql: ALTER TABLE
"t_ds_process_definition" DROP "process_definition_json"
2022-03-22 11:23:24.109 ERROR 19063 --- [ main]
o.a.d.common.utils.ScriptRunner : SQLException
org.postgresql.util.PSQLException: ERROR: column "process_definition_json"
of relation "t_ds_process_definition" does not exist
at
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2440)
~[postgresql-42.2.5.jar:42.2.5]
at
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2183)
~[postgresql-42.2.5.jar:42.2.5]
at
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:308)
~[postgresql-42.2.5.jar:42.2.5]
at
org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:441)
~[postgresql-42.2.5.jar:42.2.5]
at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365)
~[postgresql-42.2.5.jar:42.2.5]
at
org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:307)
~[postgresql-42.2.5.jar:42.2.5]
at
org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:293)
~[postgresql-42.2.5.jar:42.2.5]
at
org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:270)
~[postgresql-42.2.5.jar:42.2.5]
at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:266)
~[postgresql-42.2.5.jar:42.2.5]
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:117)
[dolphinscheduler-common-2.0.5.jar:2.0.5]
at
org.apache.dolphinscheduler.common.utils.ScriptRunner.runScript(ScriptRunner.java:72)
[dolphinscheduler-common-2.0.5.jar:2.0.5]
at
org.apache.dolphinscheduler.dao.upgrade.UpgradeDao.upgradeDolphinSchedulerDDL(UpgradeDao.java:333)
[dolphinscheduler-dao-2.0.5.jar:2.0.5]
at
org.apache.dolphinscheduler.dao.upgrade.UpgradeDao.upgradeDolphinSchedulerTo200(UpgradeDao.java:150)
[dolphinscheduler-dao-2.0.5.jar:2.0.5]
at
org.apache.dolphinscheduler.dao.upgrade.DolphinSchedulerManager.upgradeDolphinScheduler(DolphinSchedulerManager.java:111)
[dolphinscheduler-dao-2.0.5.jar:2.0.5]
at
org.apache.dolphinscheduler.dao.upgrade.shell.UpgradeDolphinScheduler$UpgradeRunner.run(UpgradeDolphinScheduler.java:55)
[dolphinscheduler-dao-2.0.5.jar:2.0.5]
at
org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:791)
[spring-boot-2.5.6.jar:2.5.6]
at
org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:775)
[spring-boot-2.5.6.jar:2.5.6]
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:345)
[spring-boot-2.5.6.jar:2.5.6]
at
org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:143)
[spring-boot-2.5.6.jar:2.5.6]
at
org.apache.dolphinscheduler.dao.upgrade.shell.UpgradeDolphinScheduler.main(UpgradeDolphinScheduler.java:39)
[dolphinscheduler-dao-2.0.5.jar:2.0.5]
2022-03-22 11:23:24.110 ERROR 19063 --- [ main]
o.a.d.common.utils.ScriptRunner : Error executing: ALTER TABLE
"t_ds_process_definition" DROP "process_definition_json"
2022-03-22 11:23:24.111 ERROR 19063 --- [ main]
o.a.d.dao.upgrade.UpgradeDao : ERROR: column
"process_definition_json" of relation "t_ds_process_definition" does not exist
org.postgresql.util.PSQLException: ERROR: column "process_definition_json"
of relation "t_ds_process_definition" does not exist
at
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2440)
~[postgresql-42.2.5.jar:42.2.5]
at
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2183)
~[postgresql-42.2.5.jar:42.2.5]
at
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:308)
~[postgresql-42.2.5.jar:42.2.5]
at
org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:441)
~[postgresql-42.2.5.jar:42.2.5]
at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365)
~[postgresql-42.2.5.jar:42.2.5]
at
org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:307)
~[postgresql-42.2.5.jar:42.2.5]
at
org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:293)
~[postgresql-42.2.5.jar:42.2.5]
at
org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:270)
~[postgresql-42.2.5.jar:42.2.5]
at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:266)
~[postgresql-42.2.5.jar:42.2.5]
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:117)
~[dolphinscheduler-common-2.0.5.jar:2.0.5]
at
org.apache.dolphinscheduler.common.utils.ScriptRunner.runScript(ScriptRunner.java:72)
~[dolphinscheduler-common-2.0.5.jar:2.0.5]
at
org.apache.dolphinscheduler.dao.upgrade.UpgradeDao.upgradeDolphinSchedulerDDL(UpgradeDao.java:333)
[dolphinscheduler-dao-2.0.5.jar:2.0.5]
at
org.apache.dolphinscheduler.dao.upgrade.UpgradeDao.upgradeDolphinSchedulerTo200(UpgradeDao.java:150)
[dolphinscheduler-dao-2.0.5.jar:2.0.5]
at
org.apache.dolphinscheduler.dao.upgrade.DolphinSchedulerManager.upgradeDolphinScheduler(DolphinSchedulerManager.java:111)
[dolphinscheduler-dao-2.0.5.jar:2.0.5]
at
org.apache.dolphinscheduler.dao.upgrade.shell.UpgradeDolphinScheduler$UpgradeRunner.run(UpgradeDolphinScheduler.java:55)
[dolphinscheduler-dao-2.0.5.jar:2.0.5]
at
org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:791)
[spring-boot-2.5.6.jar:2.5.6]
at
org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:775)
[spring-boot-2.5.6.jar:2.5.6]
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:345)
[spring-boot-2.5.6.jar:2.5.6]
at
org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:143)
[spring-boot-2.5.6.jar:2.5.6]
at
org.apache.dolphinscheduler.dao.upgrade.shell.UpgradeDolphinScheduler.main(UpgradeDolphinScheduler.java:39)
[dolphinscheduler-dao-2.0.5.jar:2.0.5]
2022-03-22 11:23:24.116 INFO 19063 --- [ main]
ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run
your application with 'debug' enabled.
2022-03-22 11:23:24.170 ERROR 19063 --- [ main]
o.s.boot.SpringApplication : Application run failed
java.lang.IllegalStateException: Failed to execute CommandLineRunner
at
org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:794)
~[spring-boot-2.5.6.jar:2.5.6]
at
org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:775)
~[spring-boot-2.5.6.jar:2.5.6]
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:345)
~[spring-boot-2.5.6.jar:2.5.6]
at
org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:143)
[spring-boot-2.5.6.jar:2.5.6]
at
org.apache.dolphinscheduler.dao.upgrade.shell.UpgradeDolphinScheduler.main(UpgradeDolphinScheduler.java:39)
[dolphinscheduler-dao-2.0.5.jar:2.0.5]
Caused by: java.lang.RuntimeException: ERROR: column
"process_definition_json" of relation "t_ds_process_definition" does not exist
at
org.apache.dolphinscheduler.dao.upgrade.UpgradeDao.upgradeDolphinSchedulerDDL(UpgradeDao.java:341)
~[dolphinscheduler-dao-2.0.5.jar:2.0.5]
at
org.apache.dolphinscheduler.dao.upgrade.UpgradeDao.upgradeDolphinSchedulerTo200(UpgradeDao.java:150)
~[dolphinscheduler-dao-2.0.5.jar:2.0.5]
at
org.apache.dolphinscheduler.dao.upgrade.DolphinSchedulerManager.upgradeDolphinScheduler(DolphinSchedulerManager.java:111)
~[dolphinscheduler-dao-2.0.5.jar:2.0.5]
at
org.apache.dolphinscheduler.dao.upgrade.shell.UpgradeDolphinScheduler$UpgradeRunner.run(UpgradeDolphinScheduler.java:55)
~[dolphinscheduler-dao-2.0.5.jar:2.0.5]
at
org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:791)
~[spring-boot-2.5.6.jar:2.5.6]
... 4 common frames omitted
Caused by: org.postgresql.util.PSQLException: ERROR: column
"process_definition_json" of relation "t_ds_process_definition" does not exist
at
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2440)
~[postgresql-42.2.5.jar:42.2.5]
at
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2183)
~[postgresql-42.2.5.jar:42.2.5]
at
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:308)
~[postgresql-42.2.5.jar:42.2.5]
at
org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:441)
~[postgresql-42.2.5.jar:42.2.5]
at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365)
~[postgresql-42.2.5.jar:42.2.5]
at
org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:307)
~[postgresql-42.2.5.jar:42.2.5]
at
org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:293)
~[postgresql-42.2.5.jar:42.2.5]
at
org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:270)
~[postgresql-42.2.5.jar:42.2.5]
at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:266)
~[postgresql-42.2.5.jar:42.2.5]
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:117)
~[dolphinscheduler-common-2.0.5.jar:2.0.5]
at
org.apache.dolphinscheduler.common.utils.ScriptRunner.runScript(ScriptRunner.java:72)
~[dolphinscheduler-common-2.0.5.jar:2.0.5]
at
org.apache.dolphinscheduler.dao.upgrade.UpgradeDao.upgradeDolphinSchedulerDDL(UpgradeDao.java:333)
~[dolphinscheduler-dao-2.0.5.jar:2.0.5]
... 8 common frames omitted
2022-03-22 11:23:24.183 INFO 19063 --- [ main]
com.zaxxer.hikari.HikariDataSource : DolphinScheduler - Shutdown
initiated...
2022-03-22 11:23:24.196 INFO 19063 --- [ main]
com.zaxxer.hikari.HikariDataSource : DolphinScheduler - Shutdown
completed.
```
--
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]