系统是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

    docker十分钟成功了,感动

    fox 您好!从错误提示中显示,你已经静默运行过了 halo 了,再次运行将会抛出该异常。

    解决方案:

    kill 之前已经启动的 halo

      fox 对了,顺便说一下:如果只是单纯的部署 halo,可以直接用 JRE,不需要 JDK

      1 个月 后

      我也是首次安装配置出现问题,我改了java路径和jar包路径,报错是Failed at step EXEC spawning /usr/java: Permission denied

      自己解决不了这个问题,请求帮助啊

      johnniang