512team / dhorse

DHorse是一个轻量级、简单易用的云应用管理平台,具有多云和多环境管理、应用管理和部署、服务治理等功能,使用该平台不需要了解容器和k8s的概念。
https://www.512.team
Apache License 2.0
405 stars 74 forks source link

Ubuntu 22.04 下启动报错 #19

Open laodouya opened 9 months ago

laodouya commented 9 months ago

下载的release中的dhorse-v1.4.2-bin.tar.gz版本

./bin/dhorse-start.sh 
: not founde-start.sh: 2: /home/plat/dhorse-v1.4.2-bin/bin/server.sh: 
: not founde-start.sh: 5: /home/plat/dhorse-v1.4.2-bin/bin/server.sh: 
: not founde-start.sh: 11: /home/plat/dhorse-v1.4.2-bin/bin/server.sh: 
: not founde-start.sh: 14: /home/plat/dhorse-v1.4.2-bin/bin/server.sh: 
       _ _                         
      | | |                        
    __| | |__   ___  _ __ ___  ___ 
   / _` | '_ \ / _ \| '__/ __|/ _ \
  | (_| | | | | (_) | |  \__ \  __/
   \__,_|_| |_|\___/|_|  |___/\___|
  :: DHorse ::             (v1.4.2)

: not founde-start.sh: 24: /home/plat/dhorse-v1.4.2-bin/bin/server.sh: }
: not founde-start.sh: 25: /home/plat/dhorse-v1.4.2-bin/bin/server.sh: 
/conf/dhorse.yml: No such file or directory
./bin/dhorse-start.sh: 30: /home/plat/dhorse-v1.4.2-bin/bin/server.sh: Syntax error: "(" unexpected (expecting "then")
laodouya commented 9 months ago

将bin目录下所有.sh文件用dos2unix bin/*转为unix格式后,依然报以下错

./bin/dhorse-start.sh 
./bin/dhorse-start.sh: 30: /home/plat/dhorse-v1.4.2-bin/bin/server.sh: Syntax error: "(" unexpected (expecting "fi")
laodouya commented 9 months ago

使用main分支代码进行mvn clean package打包会报以下错误:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.9.0:compile (default-compile) on project dhorse-infrastructure: Compilation failure: Compilation failure: 
[ERROR] /home/plat/dhorse/dhorse-infrastructure/src/main/java/org/dhorse/infrastructure/strategy/cluster/k8s/K8sClusterStrategy.java:[112,8] org.dhorse.infrastructure.strategy.cluster.k8s.K8sClusterStrategy is not abstract and does not override abstract method addNode(org.dhorse.infrastructure.repository.po.ClusterPO) in org.dhorse.infrastructure.strategy.cluster.ClusterStrategy
[ERROR] /home/plat/dhorse/dhorse-infrastructure/src/main/java/org/dhorse/infrastructure/strategy/cluster/K8sClusterStrategy.java:[165,8] org.dhorse.infrastructure.strategy.cluster.K8sClusterStrategy is not abstract and does not override abstract method addNode(org.dhorse.infrastructure.repository.po.ClusterPO) in org.dhorse.infrastructure.strategy.cluster.ClusterStrategy
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.9.0:compile (default-compile) on project dhorse-infrastructure: Compilation failure
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.compiler.CompilationFailureException: Compilation failure
    at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:1257)
    at org.apache.maven.plugin.compiler.CompilerMojo.execute (CompilerMojo.java:191)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
tiandizhiguai commented 9 months ago

下载的release中的dhorse-v1.4.2-bin.tar.gz版本

./bin/dhorse-start.sh 
: not founde-start.sh: 2: /home/plat/dhorse-v1.4.2-bin/bin/server.sh: 
: not founde-start.sh: 5: /home/plat/dhorse-v1.4.2-bin/bin/server.sh: 
: not founde-start.sh: 11: /home/plat/dhorse-v1.4.2-bin/bin/server.sh: 
: not founde-start.sh: 14: /home/plat/dhorse-v1.4.2-bin/bin/server.sh: 
       _ _                         
      | | |                        
    __| | |__   ___  _ __ ___  ___ 
   / _` | '_ \ / _ \| '__/ __|/ _ \
  | (_| | | | | (_) | |  \__ \  __/
   \__,_|_| |_|\___/|_|  |___/\___|
  :: DHorse ::             (v1.4.2)

: not founde-start.sh: 24: /home/plat/dhorse-v1.4.2-bin/bin/server.sh: }
: not founde-start.sh: 25: /home/plat/dhorse-v1.4.2-bin/bin/server.sh: 
/conf/dhorse.yml: No such file or directory
./bin/dhorse-start.sh: 30: /home/plat/dhorse-v1.4.2-bin/bin/server.sh: Syntax error: "(" unexpected (expecting "then")

以前打包存在问题,已重新打包:https://gitee.com/i512team/dhorse/releases/download/v1.4.2/dhorse-v1.4.2-bin.tar.gz

tiandizhiguai commented 9 months ago

将bin目录下所有.sh文件用dos2unix bin/*转为unix格式后,依然报以下错

./bin/dhorse-start.sh 
./bin/dhorse-start.sh: 30: /home/plat/dhorse-v1.4.2-bin/bin/server.sh: Syntax error: "(" unexpected (expecting "fi")

这也许是ubuntu默认dash的问题,请确保支持sh。

tiandizhiguai commented 9 months ago

使用main分支代码进行mvn clean package打包会报以下错误:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.9.0:compile (default-compile) on project dhorse-infrastructure: Compilation failure: Compilation failure: 
[ERROR] /home/plat/dhorse/dhorse-infrastructure/src/main/java/org/dhorse/infrastructure/strategy/cluster/k8s/K8sClusterStrategy.java:[112,8] org.dhorse.infrastructure.strategy.cluster.k8s.K8sClusterStrategy is not abstract and does not override abstract method addNode(org.dhorse.infrastructure.repository.po.ClusterPO) in org.dhorse.infrastructure.strategy.cluster.ClusterStrategy
[ERROR] /home/plat/dhorse/dhorse-infrastructure/src/main/java/org/dhorse/infrastructure/strategy/cluster/K8sClusterStrategy.java:[165,8] org.dhorse.infrastructure.strategy.cluster.K8sClusterStrategy is not abstract and does not override abstract method addNode(org.dhorse.infrastructure.repository.po.ClusterPO) in org.dhorse.infrastructure.strategy.cluster.ClusterStrategy
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.9.0:compile (default-compile) on project dhorse-infrastructure: Compilation failure
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.compiler.CompilationFailureException: Compilation failure
    at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:1257)
    at org.apache.maven.plugin.compiler.CompilerMojo.execute (CompilerMojo.java:191)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)

已提交最新代码,无报错。

laodouya commented 9 months ago

将bin目录下所有.sh文件用dos2unix bin/*转为unix格式后,依然报以下错

./bin/dhorse-start.sh 
./bin/dhorse-start.sh: 30: /home/plat/dhorse-v1.4.2-bin/bin/server.sh: Syntax error: "(" unexpected (expecting "fi")

这也许是ubuntu默认dash的问题,请确保支持sh。

确实是dash的问题。可以考虑脚本中先检查sh的版本,如果不是bash就提示并退出

laodouya commented 9 months ago

下载的release中的dhorse-v1.4.2-bin.tar.gz版本

./bin/dhorse-start.sh 
: not founde-start.sh: 2: /home/plat/dhorse-v1.4.2-bin/bin/server.sh: 
: not founde-start.sh: 5: /home/plat/dhorse-v1.4.2-bin/bin/server.sh: 
: not founde-start.sh: 11: /home/plat/dhorse-v1.4.2-bin/bin/server.sh: 
: not founde-start.sh: 14: /home/plat/dhorse-v1.4.2-bin/bin/server.sh: 
       _ _                         
      | | |                        
    __| | |__   ___  _ __ ___  ___ 
   / _` | '_ \ / _ \| '__/ __|/ _ \
  | (_| | | | | (_) | |  \__ \  __/
   \__,_|_| |_|\___/|_|  |___/\___|
  :: DHorse ::             (v1.4.2)

: not founde-start.sh: 24: /home/plat/dhorse-v1.4.2-bin/bin/server.sh: }
: not founde-start.sh: 25: /home/plat/dhorse-v1.4.2-bin/bin/server.sh: 
/conf/dhorse.yml: No such file or directory
./bin/dhorse-start.sh: 30: /home/plat/dhorse-v1.4.2-bin/bin/server.sh: Syntax error: "(" unexpected (expecting "then")

以前打包存在问题,已重新打包:https://gitee.com/i512team/dhorse/releases/download/v1.4.2/dhorse-v1.4.2-bin.tar.gz

新的1.4.2已经可以跑起来

laodouya commented 9 months ago

https://gitee.com/i512team/dhorse/releases/download/v1.4.2/dhorse-v1.4.2-bin.tar.gz

使用main分支代码进行mvn clean package打包会报以下错误:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.9.0:compile (default-compile) on project dhorse-infrastructure: Compilation failure: Compilation failure: 
[ERROR] /home/plat/dhorse/dhorse-infrastructure/src/main/java/org/dhorse/infrastructure/strategy/cluster/k8s/K8sClusterStrategy.java:[112,8] org.dhorse.infrastructure.strategy.cluster.k8s.K8sClusterStrategy is not abstract and does not override abstract method addNode(org.dhorse.infrastructure.repository.po.ClusterPO) in org.dhorse.infrastructure.strategy.cluster.ClusterStrategy
[ERROR] /home/plat/dhorse/dhorse-infrastructure/src/main/java/org/dhorse/infrastructure/strategy/cluster/K8sClusterStrategy.java:[165,8] org.dhorse.infrastructure.strategy.cluster.K8sClusterStrategy is not abstract and does not override abstract method addNode(org.dhorse.infrastructure.repository.po.ClusterPO) in org.dhorse.infrastructure.strategy.cluster.ClusterStrategy
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.9.0:compile (default-compile) on project dhorse-infrastructure: Compilation failure
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.compiler.CompilationFailureException: Compilation failure
    at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:1257)
    at org.apache.maven.plugin.compiler.CompilerMojo.execute (CompilerMojo.java:191)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)

已提交最新代码,无报错。

打包确实无报错了,但是跑不起来,脚本没有监控到对应的Java进程

手工跑了一下nohup那部分的java启动命令,报错如下:

/usr/lib/jvm/java-8-openjdk-amd64/bin/java -server -Xms256m -Xmx256m -Xmn96m -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -jar /home/plat/dhorse-v1.5.0-bin/lib/dhorse-rest-1.4.2.jar --spring.config.location=/home/plat/dhorse-v1.5.0-bin/conf/dhorse.yml
  _____  _    _                     
 |  __ \| |  | |                    
 | |  | | |__| | ___  _ __ ___  ___ 
 | |  | |  __  |/ _ \| '__/ __|/ _ \
 | |__| | |  | | (_) | |  \__ \  __/
 |_____/|_|  |_|\___/|_|  |___/\___|
 :: DHorse ::             (v1.4.2)
2023-11-27 12:33:32.095 [main] INFO  org.dhorse.rest.DHorseBootstrap:55  - Starting DHorseBootstrap using Java 1.8.0_382 on plat-ci with PID 388815 (/home/plat/dhorse-v1.5.0-bin/lib/dhorse-rest-1.4.2.jar started by root in /home/plat/dhorse-v1.5.0-bin)
2023-11-27 12:33:32.097 [main] INFO  org.dhorse.rest.DHorseBootstrap:632 - No active profile set, falling back to 1 default profile: "default"
2023-11-27 12:33:32.933 [main] INFO  org.springframework.boot.web.embedded.tomcat.TomcatWebServer:108 - Tomcat initialized with port(s): 8100 (http)
2023-11-27 12:33:32.938 [main] INFO  org.apache.coyote.http11.Http11NioProtocol:173 - Initializing ProtocolHandler ["http-nio-8100"]
2023-11-27 12:33:32.939 [main] INFO  org.apache.catalina.core.StandardService:173 - Starting service [Tomcat]
2023-11-27 12:33:32.940 [main] INFO  org.apache.catalina.core.StandardEngine:173 - Starting Servlet engine: [Apache Tomcat/9.0.82]
2023-11-27 12:33:32.970 [main] INFO  org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring embedded WebApplicationContext
2023-11-27 12:33:32.970 [main] INFO  org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext:292 - Root WebApplicationContext: initialization completed in 843 ms
2023-11-27 12:33:33.636 [main] INFO  com.zaxxer.hikari.HikariDataSource:110 - HikariPool-1 - Starting...
2023-11-27 12:33:33.714 [main] INFO  com.zaxxer.hikari.HikariDataSource:123 - HikariPool-1 - Start completed.
2023-11-27 12:33:33.766 [main] ERROR org.springframework.boot.web.embedded.tomcat.TomcatStarter:61  - Error starting Tomcat context. Exception: org.springframework.beans.factory.BeanCreationException. Message: Error creating bean with name 'authFilterRegistration' defined in class path resource [org/dhorse/rest/component/CasConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.web.servlet.FilterRegistrationBean]: Factory method 'authFilterRegistration' threw exception; nested exception is org.springframework.jdbc.UncategorizedSQLException: 
### Error querying database.  Cause: org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (no such table: GLOBAL_CONFIG)
### The error may exist in org/dhorse/infrastructure/repository/mapper/GlobalConfigMapper.java (best guess)
### The error may involve org.dhorse.infrastructure.repository.mapper.GlobalConfigMapper.selectList
### The error occurred while executing a query
### SQL: SELECT  id,item_type,item_value,remark,creation_time,update_time,deletion_status  FROM GLOBAL_CONFIG      WHERE  (item_type = ? AND deletion_status = ?)
### Cause: org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (no such table: GLOBAL_CONFIG)
; uncategorized SQLException; SQL state [null]; error code [1]; [SQLITE_ERROR] SQL error or missing database (no such table: GLOBAL_CONFIG); nested exception is org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (no such table: GLOBAL_CONFIG)
2023-11-27 12:33:33.783 [main] INFO  org.apache.catalina.core.StandardService:173 - Stopping service [Tomcat]
2023-11-27 12:33:33.785 [main] WARN  org.apache.catalina.loader.WebappClassLoaderBase:173 - The web application [ROOT] appears to have started a thread named [HikariPool-1 housekeeper] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 sun.misc.Unsafe.park(Native Method)
 java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
 java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
 java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093)
 java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)
 java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
 java.lang.Thread.run(Thread.java:750)
2023-11-27 12:33:33.786 [main] WARN  org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext:591 - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
2023-11-27 12:33:33.786 [main] INFO  com.zaxxer.hikari.HikariDataSource:350 - HikariPool-1 - Shutdown initiated...
2023-11-27 12:33:33.787 [main] INFO  com.zaxxer.hikari.HikariDataSource:352 - HikariPool-1 - Shutdown completed.
2023-11-27 12:33:33.795 [main] INFO  org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener:136 - 

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2023-11-27 12:33:33.807 [main] ERROR org.springframework.boot.SpringApplication:818 - Application run failed
org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:165)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:577)
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147)
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:732)
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:409)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:308)
    at org.dhorse.rest.DHorseBootstrap.main(DHorseBootstrap.java:32)
Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
    at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:142)
    at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.<init>(TomcatWebServer.java:104)
    at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:481)
    at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:211)
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:184)
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:162)
    ... 6 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authFilterRegistration' defined in class path resource [org/dhorse/rest/component/CasConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.web.servlet.FilterRegistrationBean]: Factory method 'authFilterRegistration' threw exception; nested exception is org.springframework.jdbc.UncategorizedSQLException: 
### Error querying database.  Cause: org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (no such table: GLOBAL_CONFIG)
### The error may exist in org/dhorse/infrastructure/repository/mapper/GlobalConfigMapper.java (best guess)
### The error may involve org.dhorse.infrastructure.repository.mapper.GlobalConfigMapper.selectList
### The error occurred while executing a query
### SQL: SELECT  id,item_type,item_value,remark,creation_time,update_time,deletion_status  FROM GLOBAL_CONFIG      WHERE  (item_type = ? AND deletion_status = ?)
### Cause: org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (no such table: GLOBAL_CONFIG)
; uncategorized SQLException; SQL state [null]; error code [1]; [SQLITE_ERROR] SQL error or missing database (no such table: GLOBAL_CONFIG); nested exception is org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (no such table: GLOBAL_CONFIG)
    at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)
    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:481)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:213)
    at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:213)
    at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:204)
    at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addServletContextInitializerBeans(ServletContextInitializerBeans.java:98)
    at org.springframework.boot.web.servlet.ServletContextInitializerBeans.<init>(ServletContextInitializerBeans.java:86)
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getServletContextInitializerBeans(ServletWebServerApplicationContext.java:262)
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.selfInitialize(ServletWebServerApplicationContext.java:236)
    at org.springframework.boot.web.embedded.tomcat.TomcatStarter.onStartup(TomcatStarter.java:53)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4904)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1332)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1322)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
    at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:866)
    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:794)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1332)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1322)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
    at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:866)
    at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:248)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
    at org.apache.catalina.core.StandardService.startInternal(StandardService.java:433)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
    at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:921)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
    at org.apache.catalina.startup.Tomcat.start(Tomcat.java:489)
    at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:123)
    ... 11 common frames omitted
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.web.servlet.FilterRegistrationBean]: Factory method 'authFilterRegistration' threw exception; nested exception is org.springframework.jdbc.UncategorizedSQLException: 
### Error querying database.  Cause: org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (no such table: GLOBAL_CONFIG)
### The error may exist in org/dhorse/infrastructure/repository/mapper/GlobalConfigMapper.java (best guess)
### The error may involve org.dhorse.infrastructure.repository.mapper.GlobalConfigMapper.selectList
### The error occurred while executing a query
### SQL: SELECT  id,item_type,item_value,remark,creation_time,update_time,deletion_status  FROM GLOBAL_CONFIG      WHERE  (item_type = ? AND deletion_status = ?)
### Cause: org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (no such table: GLOBAL_CONFIG)
; uncategorized SQLException; SQL state [null]; error code [1]; [SQLITE_ERROR] SQL error or missing database (no such table: GLOBAL_CONFIG); nested exception is org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (no such table: GLOBAL_CONFIG)
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
    at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:648)
    ... 51 common frames omitted
Caused by: org.springframework.jdbc.UncategorizedSQLException: 
### Error querying database.  Cause: org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (no such table: GLOBAL_CONFIG)
### The error may exist in org/dhorse/infrastructure/repository/mapper/GlobalConfigMapper.java (best guess)
### The error may involve org.dhorse.infrastructure.repository.mapper.GlobalConfigMapper.selectList
### The error occurred while executing a query
### SQL: SELECT  id,item_type,item_value,remark,creation_time,update_time,deletion_status  FROM GLOBAL_CONFIG      WHERE  (item_type = ? AND deletion_status = ?)
### Cause: org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (no such table: GLOBAL_CONFIG)
; uncategorized SQLException; SQL state [null]; error code [1]; [SQLITE_ERROR] SQL error or missing database (no such table: GLOBAL_CONFIG); nested exception is org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (no such table: GLOBAL_CONFIG)
    at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:93)
    at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:439)
    at com.sun.proxy.$Proxy73.selectList(Unknown Source)
    at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:224)
    at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.executeForMany(MybatisMapperMethod.java:166)
    at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.execute(MybatisMapperMethod.java:77)
    at com.baomidou.mybatisplus.core.override.MybatisMapperProxy$PlainMethodInvoker.invoke(MybatisMapperProxy.java:152)
    at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:89)
    at com.sun.proxy.$Proxy80.selectList(Unknown Source)
    at org.dhorse.infrastructure.repository.GlobalConfigRepository.queryAgg(GlobalConfigRepository.java:47)
    at org.dhorse.infrastructure.repository.GlobalConfigRepository$$FastClassBySpringCGLIB$$9bf31f3.invoke(<generated>)
    at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
    at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:792)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
    at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:762)
    at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:137)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
    at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:762)
    at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:707)
    at org.dhorse.infrastructure.repository.GlobalConfigRepository$$EnhancerBySpringCGLIB$$9d97a2bb.queryAgg(<generated>)
    at org.dhorse.application.service.ApplicationService.queryCas(ApplicationService.java:178)
    at org.dhorse.rest.component.CasConfig.authFilterRegistration(CasConfig.java:35)
    at org.dhorse.rest.component.CasConfig$$EnhancerBySpringCGLIB$$8c1bf8f.CGLIB$authFilterRegistration$0(<generated>)
    at org.dhorse.rest.component.CasConfig$$EnhancerBySpringCGLIB$$8c1bf8f$$FastClassBySpringCGLIB$$7de72856.invoke(<generated>)
    at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)
    at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331)
    at org.dhorse.rest.component.CasConfig$$EnhancerBySpringCGLIB$$8c1bf8f.authFilterRegistration(<generated>)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
    ... 52 common frames omitted
Caused by: org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (no such table: GLOBAL_CONFIG)
    at org.sqlite.core.DB.newSQLException(DB.java:1179)
    at org.sqlite.core.DB.newSQLException(DB.java:1190)
    at org.sqlite.core.DB.throwex(DB.java:1150)
    at org.sqlite.core.NativeDB.prepare_utf8(Native Method)
    at org.sqlite.core.NativeDB.prepare(NativeDB.java:126)
    at org.sqlite.core.DB.prepare(DB.java:264)
    at org.sqlite.core.CorePreparedStatement.<init>(CorePreparedStatement.java:46)
    at org.sqlite.jdbc3.JDBC3PreparedStatement.<init>(JDBC3PreparedStatement.java:32)
    at org.sqlite.jdbc4.JDBC4PreparedStatement.<init>(JDBC4PreparedStatement.java:25)
    at org.sqlite.jdbc4.JDBC4Connection.prepareStatement(JDBC4Connection.java:34)
    at org.sqlite.jdbc3.JDBC3Connection.prepareStatement(JDBC3Connection.java:226)
    at org.sqlite.jdbc3.JDBC3Connection.prepareStatement(JDBC3Connection.java:206)
    at com.zaxxer.hikari.pool.ProxyConnection.prepareStatement(ProxyConnection.java:337)
    at com.zaxxer.hikari.pool.HikariProxyConnection.prepareStatement(HikariProxyConnection.java)
    at org.apache.ibatis.executor.statement.PreparedStatementHandler.instantiateStatement(PreparedStatementHandler.java:86)
    at org.apache.ibatis.executor.statement.BaseStatementHandler.prepare(BaseStatementHandler.java:88)
    at org.apache.ibatis.executor.statement.RoutingStatementHandler.prepare(RoutingStatementHandler.java:59)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.apache.ibatis.plugin.Invocation.proceed(Invocation.java:49)
    at com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor.intercept(MybatisPlusInterceptor.java:106)
    at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:62)
    at com.sun.proxy.$Proxy100.prepare(Unknown Source)
    at org.apache.ibatis.executor.SimpleExecutor.prepareStatement(SimpleExecutor.java:87)
    at org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:62)
    at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:325)
    at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156)
    at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:109)
    at com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor.intercept(MybatisPlusInterceptor.java:81)
    at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:62)
    at com.sun.proxy.$Proxy99.query(Unknown Source)
    at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:151)
    at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:145)
    at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:425)
    ... 82 common frames omitted
laodouya commented 9 months ago

期待早日正式发布1.5版本

tiandizhiguai commented 9 months ago

https://gitee.com/i512team/dhorse/releases/download/v1.4.2/dhorse-v1.4.2-bin.tar.gz

使用main分支代码进行mvn clean package打包会报以下错误:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.9.0:compile (default-compile) on project dhorse-infrastructure: Compilation failure: Compilation failure: 
[ERROR] /home/plat/dhorse/dhorse-infrastructure/src/main/java/org/dhorse/infrastructure/strategy/cluster/k8s/K8sClusterStrategy.java:[112,8] org.dhorse.infrastructure.strategy.cluster.k8s.K8sClusterStrategy is not abstract and does not override abstract method addNode(org.dhorse.infrastructure.repository.po.ClusterPO) in org.dhorse.infrastructure.strategy.cluster.ClusterStrategy
[ERROR] /home/plat/dhorse/dhorse-infrastructure/src/main/java/org/dhorse/infrastructure/strategy/cluster/K8sClusterStrategy.java:[165,8] org.dhorse.infrastructure.strategy.cluster.K8sClusterStrategy is not abstract and does not override abstract method addNode(org.dhorse.infrastructure.repository.po.ClusterPO) in org.dhorse.infrastructure.strategy.cluster.ClusterStrategy
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.9.0:compile (default-compile) on project dhorse-infrastructure: Compilation failure
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.compiler.CompilationFailureException: Compilation failure
    at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:1257)
    at org.apache.maven.plugin.compiler.CompilerMojo.execute (CompilerMojo.java:191)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)

已提交最新代码,无报错。

打包确实无报错了,但是跑不起来,脚本没有监控到对应的Java进程

手工跑了一下nohup那部分的java启动命令,报错如下:

/usr/lib/jvm/java-8-openjdk-amd64/bin/java -server -Xms256m -Xmx256m -Xmn96m -XX:MetaspaceSize=64m -XX:MaxMetaspaceSize=128m -jar /home/plat/dhorse-v1.5.0-bin/lib/dhorse-rest-1.4.2.jar --spring.config.location=/home/plat/dhorse-v1.5.0-bin/conf/dhorse.yml
  _____  _    _                     
 |  __ \| |  | |                    
 | |  | | |__| | ___  _ __ ___  ___ 
 | |  | |  __  |/ _ \| '__/ __|/ _ \
 | |__| | |  | | (_) | |  \__ \  __/
 |_____/|_|  |_|\___/|_|  |___/\___|
 :: DHorse ::             (v1.4.2)
2023-11-27 12:33:32.095 [main] INFO  org.dhorse.rest.DHorseBootstrap:55  - Starting DHorseBootstrap using Java 1.8.0_382 on plat-ci with PID 388815 (/home/plat/dhorse-v1.5.0-bin/lib/dhorse-rest-1.4.2.jar started by root in /home/plat/dhorse-v1.5.0-bin)
2023-11-27 12:33:32.097 [main] INFO  org.dhorse.rest.DHorseBootstrap:632 - No active profile set, falling back to 1 default profile: "default"
2023-11-27 12:33:32.933 [main] INFO  org.springframework.boot.web.embedded.tomcat.TomcatWebServer:108 - Tomcat initialized with port(s): 8100 (http)
2023-11-27 12:33:32.938 [main] INFO  org.apache.coyote.http11.Http11NioProtocol:173 - Initializing ProtocolHandler ["http-nio-8100"]
2023-11-27 12:33:32.939 [main] INFO  org.apache.catalina.core.StandardService:173 - Starting service [Tomcat]
2023-11-27 12:33:32.940 [main] INFO  org.apache.catalina.core.StandardEngine:173 - Starting Servlet engine: [Apache Tomcat/9.0.82]
2023-11-27 12:33:32.970 [main] INFO  org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring embedded WebApplicationContext
2023-11-27 12:33:32.970 [main] INFO  org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext:292 - Root WebApplicationContext: initialization completed in 843 ms
2023-11-27 12:33:33.636 [main] INFO  com.zaxxer.hikari.HikariDataSource:110 - HikariPool-1 - Starting...
2023-11-27 12:33:33.714 [main] INFO  com.zaxxer.hikari.HikariDataSource:123 - HikariPool-1 - Start completed.
2023-11-27 12:33:33.766 [main] ERROR org.springframework.boot.web.embedded.tomcat.TomcatStarter:61  - Error starting Tomcat context. Exception: org.springframework.beans.factory.BeanCreationException. Message: Error creating bean with name 'authFilterRegistration' defined in class path resource [org/dhorse/rest/component/CasConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.web.servlet.FilterRegistrationBean]: Factory method 'authFilterRegistration' threw exception; nested exception is org.springframework.jdbc.UncategorizedSQLException: 
### Error querying database.  Cause: org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (no such table: GLOBAL_CONFIG)
### The error may exist in org/dhorse/infrastructure/repository/mapper/GlobalConfigMapper.java (best guess)
### The error may involve org.dhorse.infrastructure.repository.mapper.GlobalConfigMapper.selectList
### The error occurred while executing a query
### SQL: SELECT  id,item_type,item_value,remark,creation_time,update_time,deletion_status  FROM GLOBAL_CONFIG      WHERE  (item_type = ? AND deletion_status = ?)
### Cause: org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (no such table: GLOBAL_CONFIG)
; uncategorized SQLException; SQL state [null]; error code [1]; [SQLITE_ERROR] SQL error or missing database (no such table: GLOBAL_CONFIG); nested exception is org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (no such table: GLOBAL_CONFIG)
2023-11-27 12:33:33.783 [main] INFO  org.apache.catalina.core.StandardService:173 - Stopping service [Tomcat]
2023-11-27 12:33:33.785 [main] WARN  org.apache.catalina.loader.WebappClassLoaderBase:173 - The web application [ROOT] appears to have started a thread named [HikariPool-1 housekeeper] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 sun.misc.Unsafe.park(Native Method)
 java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
 java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
 java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093)
 java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)
 java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
 java.lang.Thread.run(Thread.java:750)
2023-11-27 12:33:33.786 [main] WARN  org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext:591 - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
2023-11-27 12:33:33.786 [main] INFO  com.zaxxer.hikari.HikariDataSource:350 - HikariPool-1 - Shutdown initiated...
2023-11-27 12:33:33.787 [main] INFO  com.zaxxer.hikari.HikariDataSource:352 - HikariPool-1 - Shutdown completed.
2023-11-27 12:33:33.795 [main] INFO  org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener:136 - 

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2023-11-27 12:33:33.807 [main] ERROR org.springframework.boot.SpringApplication:818 - Application run failed
org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
  at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:165)
  at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:577)
  at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147)
  at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:732)
  at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:409)
  at org.springframework.boot.SpringApplication.run(SpringApplication.java:308)
  at org.dhorse.rest.DHorseBootstrap.main(DHorseBootstrap.java:32)
Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
  at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:142)
  at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.<init>(TomcatWebServer.java:104)
  at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:481)
  at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:211)
  at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:184)
  at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:162)
  ... 6 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authFilterRegistration' defined in class path resource [org/dhorse/rest/component/CasConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.web.servlet.FilterRegistrationBean]: Factory method 'authFilterRegistration' threw exception; nested exception is org.springframework.jdbc.UncategorizedSQLException: 
### Error querying database.  Cause: org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (no such table: GLOBAL_CONFIG)
### The error may exist in org/dhorse/infrastructure/repository/mapper/GlobalConfigMapper.java (best guess)
### The error may involve org.dhorse.infrastructure.repository.mapper.GlobalConfigMapper.selectList
### The error occurred while executing a query
### SQL: SELECT  id,item_type,item_value,remark,creation_time,update_time,deletion_status  FROM GLOBAL_CONFIG      WHERE  (item_type = ? AND deletion_status = ?)
### Cause: org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (no such table: GLOBAL_CONFIG)
; uncategorized SQLException; SQL state [null]; error code [1]; [SQLITE_ERROR] SQL error or missing database (no such table: GLOBAL_CONFIG); nested exception is org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (no such table: GLOBAL_CONFIG)
  at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)
  at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:481)
  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352)
  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195)
  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
  at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
  at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
  at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
  at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:213)
  at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:213)
  at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:204)
  at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addServletContextInitializerBeans(ServletContextInitializerBeans.java:98)
  at org.springframework.boot.web.servlet.ServletContextInitializerBeans.<init>(ServletContextInitializerBeans.java:86)
  at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getServletContextInitializerBeans(ServletWebServerApplicationContext.java:262)
  at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.selfInitialize(ServletWebServerApplicationContext.java:236)
  at org.springframework.boot.web.embedded.tomcat.TomcatStarter.onStartup(TomcatStarter.java:53)
  at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4904)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1332)
  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1322)
  at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
  at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
  at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:866)
  at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:794)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1332)
  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1322)
  at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
  at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
  at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:866)
  at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:248)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
  at org.apache.catalina.core.StandardService.startInternal(StandardService.java:433)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
  at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:921)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
  at org.apache.catalina.startup.Tomcat.start(Tomcat.java:489)
  at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:123)
  ... 11 common frames omitted
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.web.servlet.FilterRegistrationBean]: Factory method 'authFilterRegistration' threw exception; nested exception is org.springframework.jdbc.UncategorizedSQLException: 
### Error querying database.  Cause: org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (no such table: GLOBAL_CONFIG)
### The error may exist in org/dhorse/infrastructure/repository/mapper/GlobalConfigMapper.java (best guess)
### The error may involve org.dhorse.infrastructure.repository.mapper.GlobalConfigMapper.selectList
### The error occurred while executing a query
### SQL: SELECT  id,item_type,item_value,remark,creation_time,update_time,deletion_status  FROM GLOBAL_CONFIG      WHERE  (item_type = ? AND deletion_status = ?)
### Cause: org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (no such table: GLOBAL_CONFIG)
; uncategorized SQLException; SQL state [null]; error code [1]; [SQLITE_ERROR] SQL error or missing database (no such table: GLOBAL_CONFIG); nested exception is org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (no such table: GLOBAL_CONFIG)
  at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
  at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:648)
  ... 51 common frames omitted
Caused by: org.springframework.jdbc.UncategorizedSQLException: 
### Error querying database.  Cause: org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (no such table: GLOBAL_CONFIG)
### The error may exist in org/dhorse/infrastructure/repository/mapper/GlobalConfigMapper.java (best guess)
### The error may involve org.dhorse.infrastructure.repository.mapper.GlobalConfigMapper.selectList
### The error occurred while executing a query
### SQL: SELECT  id,item_type,item_value,remark,creation_time,update_time,deletion_status  FROM GLOBAL_CONFIG      WHERE  (item_type = ? AND deletion_status = ?)
### Cause: org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (no such table: GLOBAL_CONFIG)
; uncategorized SQLException; SQL state [null]; error code [1]; [SQLITE_ERROR] SQL error or missing database (no such table: GLOBAL_CONFIG); nested exception is org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (no such table: GLOBAL_CONFIG)
  at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:93)
  at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:439)
  at com.sun.proxy.$Proxy73.selectList(Unknown Source)
  at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:224)
  at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.executeForMany(MybatisMapperMethod.java:166)
  at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.execute(MybatisMapperMethod.java:77)
  at com.baomidou.mybatisplus.core.override.MybatisMapperProxy$PlainMethodInvoker.invoke(MybatisMapperProxy.java:152)
  at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:89)
  at com.sun.proxy.$Proxy80.selectList(Unknown Source)
  at org.dhorse.infrastructure.repository.GlobalConfigRepository.queryAgg(GlobalConfigRepository.java:47)
  at org.dhorse.infrastructure.repository.GlobalConfigRepository$$FastClassBySpringCGLIB$$9bf31f3.invoke(<generated>)
  at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
  at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:792)
  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
  at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:762)
  at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:137)
  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
  at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:762)
  at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:707)
  at org.dhorse.infrastructure.repository.GlobalConfigRepository$$EnhancerBySpringCGLIB$$9d97a2bb.queryAgg(<generated>)
  at org.dhorse.application.service.ApplicationService.queryCas(ApplicationService.java:178)
  at org.dhorse.rest.component.CasConfig.authFilterRegistration(CasConfig.java:35)
  at org.dhorse.rest.component.CasConfig$$EnhancerBySpringCGLIB$$8c1bf8f.CGLIB$authFilterRegistration$0(<generated>)
  at org.dhorse.rest.component.CasConfig$$EnhancerBySpringCGLIB$$8c1bf8f$$FastClassBySpringCGLIB$$7de72856.invoke(<generated>)
  at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)
  at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331)
  at org.dhorse.rest.component.CasConfig$$EnhancerBySpringCGLIB$$8c1bf8f.authFilterRegistration(<generated>)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:498)
  at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
  ... 52 common frames omitted
Caused by: org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (no such table: GLOBAL_CONFIG)
  at org.sqlite.core.DB.newSQLException(DB.java:1179)
  at org.sqlite.core.DB.newSQLException(DB.java:1190)
  at org.sqlite.core.DB.throwex(DB.java:1150)
  at org.sqlite.core.NativeDB.prepare_utf8(Native Method)
  at org.sqlite.core.NativeDB.prepare(NativeDB.java:126)
  at org.sqlite.core.DB.prepare(DB.java:264)
  at org.sqlite.core.CorePreparedStatement.<init>(CorePreparedStatement.java:46)
  at org.sqlite.jdbc3.JDBC3PreparedStatement.<init>(JDBC3PreparedStatement.java:32)
  at org.sqlite.jdbc4.JDBC4PreparedStatement.<init>(JDBC4PreparedStatement.java:25)
  at org.sqlite.jdbc4.JDBC4Connection.prepareStatement(JDBC4Connection.java:34)
  at org.sqlite.jdbc3.JDBC3Connection.prepareStatement(JDBC3Connection.java:226)
  at org.sqlite.jdbc3.JDBC3Connection.prepareStatement(JDBC3Connection.java:206)
  at com.zaxxer.hikari.pool.ProxyConnection.prepareStatement(ProxyConnection.java:337)
  at com.zaxxer.hikari.pool.HikariProxyConnection.prepareStatement(HikariProxyConnection.java)
  at org.apache.ibatis.executor.statement.PreparedStatementHandler.instantiateStatement(PreparedStatementHandler.java:86)
  at org.apache.ibatis.executor.statement.BaseStatementHandler.prepare(BaseStatementHandler.java:88)
  at org.apache.ibatis.executor.statement.RoutingStatementHandler.prepare(RoutingStatementHandler.java:59)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:498)
  at org.apache.ibatis.plugin.Invocation.proceed(Invocation.java:49)
  at com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor.intercept(MybatisPlusInterceptor.java:106)
  at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:62)
  at com.sun.proxy.$Proxy100.prepare(Unknown Source)
  at org.apache.ibatis.executor.SimpleExecutor.prepareStatement(SimpleExecutor.java:87)
  at org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:62)
  at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:325)
  at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156)
  at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:109)
  at com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor.intercept(MybatisPlusInterceptor.java:81)
  at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:62)
  at com.sun.proxy.$Proxy99.query(Unknown Source)
  at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:151)
  at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:145)
  at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:498)
  at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:425)
  ... 82 common frames omitted

打包之后,需要通过bin目录下的脚本启动,脚本里初始化了系统需要的变量工作,参考:https://gitee.com/i512team/dhorse-doc/blob/main/guide/%E6%89%93%E5%8C%85%E8%AF%B4%E6%98%8E.md

laodouya commented 9 months ago
root@plat-ci:/home/plat/dhorse/target# cd dhorse-v1.4.2-bin && bin/dhorse-start.sh
  _____  _    _                     
 |  __ \| |  | |                    
 | |  | | |__| | ___  _ __ ___  ___ 
 | |  | |  __  |/ _ \| '__/ __|/ _ \
 | |__| | |  | | (_) | |  \__ \  __/
 |_____/|_|  |_|\___/|_|  |___/\___|
  :: DHorse ::             (v1.4.2)

Starting dhorse service, please wait a moment...
The dhorse service startup failure

打包之后,通过bin目录下的脚本启动的结果

tiandizhiguai commented 9 months ago

main分支处于开发状态,不稳定,现在重新下载代码可以跑通了。