Tomcat 运行出错:
Caused by: liquibase.exception.LockException: Could not acquire change log lock. Currently locked by VM2019 (10.148.68.233) since 1/17/24, 5:32 PM
at liquibase.lockservice.StandardLockService.waitForLock(StandardLockService.java:270)
at liquibase.Liquibase.lambda$update
1
(
L
i
q
u
i
b
a
s
e
.
j
a
v
a
:
214
)
a
t
l
i
q
u
i
b
a
s
e
.
S
c
o
p
e
.
l
a
m
b
d
a
1(Liquibase.java:214) at liquibase.Scope.lambda
1(Liquibase.java:214)atliquibase.Scope.lambdachild$0(Scope.java:180)
at liquibase.Scope.child(Scope.java:189)
at liquibase.Scope.child(Scope.java:179)
at liquibase.Scope.child(Scope.java:158)
at liquibase.Liquibase.runInScope(Liquibase.java:2405)
at liquibase.Liquibase.update(Liquibase.java:211)
at liquibase.Liquibase.update(Liquibase.java:197)
at liquibase.Liquibase.update(Liquibase.java:193)
at liquibase.Liquibase.update(Liquibase.java:185)
解决办法:
执行以下命令
SELECT TOP (1000) [ID]
,[LOCKED]
,[LOCKGRANTED]
,[LOCKEDBY]
FROM [你的数据库].[dbo].[ACT_DE_DATABASECHANGELOGLOCK]
得到:
设置ACT_DE_DATABASECHANGELOGLOCK数据库表的值为空或删除其值√