系统是ubuntu18.04, openjdk ,部署的时候出了些问题,没法运行.用nohup后台时输出的文件乱码,就直接 java -jar halo-latest.jar & 执行了下 .没接触过spring,看的头大,希望大佬能帮忙看下.
简略的几个cause是这样的
org.h2.jdbc.JdbcSQLException: Database may be already in use: null. Possible solutions: close all other connection(s); use the server mode [90020-197]
WARN 26358 --- [ main] o.s.b.a.orm.jpa.DatabaseLookup : Unable to determine jdbc url from datasource
org.springframework.jdbc.support.MetaDataAccessException: Could not get Connection for extracting meta-data; nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is org.h2.jdbc.JdbcSQLException: Database may be already in use: null. Possible solutions: close all other connection(s); use the server mode [90020-197]
Caused by: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is org.h2.jdbc.JdbcSQLException: Database may be already in use: null. Possible solutions: close all other connection(s); use the server mode [90020-197]
Caused by: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is org.h2.jdbc.JdbcSQLException: Database may be already in use: null. Possible solutions: close all other connection(s); use the server mode [90020-197]
Caused by: org.h2.jdbc.JdbcSQLException: Database may be already in use: null. Possible solutions: close all other connection(s); use the server mode [90020-197]
Caused by: java.lang.IllegalStateException: The file is locked: nio:/root/.halo/db/halo.mv.db [1.4.197/7]
2019-06-02 22:18:14.662 INFO 26358 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [
name: default
...]
2019-06-02 22:18:14.902 INFO 26358 --- [ main] org.hibernate.Version : HHH000412: Hibernate Core {5.3.7.Final}
2019-06-02 22:18:14.917 INFO 26358 --- [ main] org.hibernate.cfg.Environment : HHH000206: hibernate.properties not found
2019-06-02 22:18:15.498 INFO 26358 --- [ main] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.0.4.Final}
2019-06-02 22:18:16.528 INFO 26358 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2019-06-02 22:18:17.552 ERROR 26358 --- [ main] com.zaxxer.hikari.pool.HikariPool : HikariPool-1 - Exception during pool initialization.
详细的在这个链接里
https://note.ms/errorhalo