登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
轻量养虾,开箱即用!低 Token + 稳定算力,Gitee & 模力方舟联合出品的 PocketClaw 正式开售!点击了解详情~
代码拉取完成,页面将自动刷新
开源项目
>
DevOps/运维/网管
>
DevOps工具
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
218
Star
2.4K
Fork
687
GVP
开源建木
/
建木
代码
Issues
81
Pull Requests
1
统计
流水线
服务
JavaDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
开发画像分析
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
CentOS使用docker-compose安装错误
已完成
#I4K3PQ
Kevin Zhang
成员
创建于
2021-11-27 19:38
### 重现环境信息 部署环境信息: ``` [root@localhost ~]# uname -a Linux localhost.localdomain 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux [root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) [root@localhost ~]# docker version Client: Version: 1.13.1 API version: 1.26 Package version: docker-1.13.1-208.git7d71120.el7_9.x86_64 Go version: go1.10.3 Git commit: 7d71120/1.13.1 Built: Mon Jun 7 15:36:09 2021 OS/Arch: linux/amd64 Server: Version: 1.13.1 API version: 1.26 (minimum version 1.12) Package version: docker-1.13.1-208.git7d71120.el7_9.x86_64 Go version: go1.10.3 Git commit: 7d71120/1.13.1 Built: Mon Jun 7 15:36:09 2021 OS/Arch: linux/amd64 Experimental: false [root@localhost ~]# docker-compose --version docker-compose version 1.29.2, build 5becea4c ``` ### 部署文件 ``` version: '3' services: jianmu-mysql: image: mysql:8 command: --init-connect='SET NAMES utf8' --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=1200 --max-user-connections=1000 ports: - "3306:3306" environment: MYSQL_ROOT_PASSWORD: 123456 MYSQL_DATABASE: "jianmu" TZ: "Asia/Shanghai" ci-server: image: jianmudev/jianmu-ci-server:v2.0.0-beta.2 environment: SPRING_PROFILES_ACTIVE: dev SPRING_DATASOURCE_URL: jdbc:mysql://jianmu-mysql:3306/jianmu?useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true SPRING_DATASOURCE_USERNAME: root SPRING_DATASOURCE_PASSWORD: 123456 EMBEDDED_DOCKER-WORKER_DOCKER-HOST: unix:///var/run/docker.sock EMBEDDED_DOCKER-WORKER_SOCK-FILE: /var/run/docker.sock JIANMU_API_ADMINPASSWD: 123456 # REGISTRY_AK: # REGISTRY_SK: volumes: - /var/run/docker.sock:/var/run/docker.sock - /mnt/jianmu/ci/task_log:/task_log depends_on: - jianmu-mysql entrypoint: ["/wait-for-it.sh", "jianmu-mysql:3306", "-t", "0", "--", "java", "-Duser.timezone=Asia/Shanghai", "-cp", "/app/resources:/app/classes:/app/libs/*", "dev.jianmu.api.SpringbootApp"] web: image: jianmudev/jianmu-ci-ui:v2.0.0-beta.2 ports: - "80:80" - "443:443" depends_on: - jianmu-mysql ``` ### 重现步骤 ``` [root@localhost ~]# docker-compose up -d root_jianmu-mysql_1 is up-to-date Starting root_ci-server_1 ... done root_web_1 is up-to-date [root@localhost ~]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES b2d78c3e77d9 jianmudev/jianmu-ci-ui:v2.0.0-beta.2 "/docker-entrypoin..." 40 minutes ago Up 40 minutes 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp root_web_1 18d64a04c001 jianmudev/jianmu-ci-server:v2.0.0-beta.2 "/wait-for-it.sh j..." 40 minutes ago Up 3 seconds root_ci-server_1 4e9930faff00 mysql:8 "docker-entrypoint..." 40 minutes ago Up 40 minutes 0.0.0.0:3306->3306/tcp, 33060/tcp root_jianmu-mysql_1 [root@localhost ~]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES b2d78c3e77d9 jianmudev/jianmu-ci-ui:v2.0.0-beta.2 "/docker-entrypoin..." 40 minutes ago Up 40 minutes 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp root_web_1 4e9930faff00 mysql:8 "docker-entrypoint..." 40 minutes ago Up 40 minutes 0.0.0.0:3306->3306/tcp, 33060/tcp root_jianmu-mysql_1 ``` 其中`jianmudev/jianmu-ci-server`容器无法启动。 安装启动错误信息: ``` [root@localhost ~]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES b2d78c3e77d9 jianmudev/jianmu-ci-ui:v2.0.0-beta.2 "/docker-entrypoin..." 42 minutes ago Up 42 minutes 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp root_web_1 4e9930faff00 mysql:8 "docker-entrypoint..." 42 minutes ago Up 42 minutes 0.0.0.0:3306->3306/tcp, 33060/tcp root_jianmu-mysql_1 [root@localhost ~]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES b2d78c3e77d9 jianmudev/jianmu-ci-ui:v2.0.0-beta.2 "/docker-entrypoin..." 42 minutes ago Up 42 minutes 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp root_web_1 18d64a04c001 jianmudev/jianmu-ci-server:v2.0.0-beta.2 "/wait-for-it.sh j..." 42 minutes ago Exited (1) About a minute ago root_ci-server_1 4e9930faff00 mysql:8 "docker-entrypoint..." 42 minutes ago Up 42 minutes 0.0.0.0:3306->3306/tcp, 33060/tcp root_jianmu-mysql_1 [root@localhost ~]# docker logs 18d64a04c001 wait-for-it.sh: waiting for jianmu-mysql:3306 without a timeout wait-for-it.sh: jianmu-mysql:3306 is available after 10 seconds 2021-11-27 18:55:11.937 INFO 1 --- [ main] dev.jianmu.api.SpringbootApp : Starting SpringbootApp using Java 11.0.11 on 18d64a04c001 with PID 1 (/app/classes started by root in /) 2021-11-27 18:55:11.946 INFO 1 --- [ main] dev.jianmu.api.SpringbootApp : The following profiles are active: dev 2021-11-27 18:55:13.133 INFO 1 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'appConfig' of type [dev.jianmu.infrastructure.AppConfig$$EnhancerBySpringCGLIB$$9954581b] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2021-11-27 18:55:13.449 INFO 1 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8081 (http) 2021-11-27 18:55:13.458 INFO 1 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2021-11-27 18:55:13.459 INFO 1 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.54] 2021-11-27 18:55:13.551 INFO 1 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2021-11-27 18:55:13.551 INFO 1 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1504 ms 2021-11-27 18:55:14.417 INFO 1 --- [ main] o.f.c.internal.license.VersionPrinter : Flyway Community Edition 7.7.3 by Redgate 2021-11-27 18:55:14.422 INFO 1 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting... 2021-11-27 18:55:14.570 INFO 1 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed. 2021-11-27 18:55:14.615 INFO 1 --- [ main] o.f.c.i.database.base.DatabaseType : Database: jdbc:mysql://jianmu-mysql:3306/jianmu (MySQL 8.0) 2021-11-27 18:55:14.653 INFO 1 --- [ main] o.f.core.internal.command.DbValidate : Successfully validated 1 migration (execution time 00:00.014s) 2021-11-27 18:55:14.671 INFO 1 --- [ main] o.f.c.i.s.JdbcTableSchemaHistory : Creating Schema History table `jianmu`.`flyway_schema_history` ... 2021-11-27 18:55:14.709 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:14.737 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:14.750 INFO 1 --- [ main] o.f.core.internal.command.DbMigrate : Current version of schema `jianmu`: << Empty Schema >> 2021-11-27 18:55:14.775 INFO 1 --- [ main] o.f.core.internal.command.DbMigrate : Migrating schema `jianmu` to version "1.0.0 - INIT Tables" 2021-11-27 18:55:14.806 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:14.831 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:14.858 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:14.880 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:14.896 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:14.921 WARN 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : DB: Integer display width is deprecated and will be removed in a future release. (SQL State: HY000 - Error Code: 1681) 2021-11-27 18:55:14.922 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:14.943 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:14.962 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:14.980 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:15.001 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:15.016 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:15.032 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:15.053 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:15.071 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:15.088 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:15.109 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:15.122 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:15.144 INFO 1 --- [ main] o.f.core.internal.command.DbMigrate : Successfully applied 1 migration to schema `jianmu`, now at version v1.0.0 (execution time 00:00.397s) 2021-11-27 18:55:15.188 INFO 1 --- [ main] org.quartz.impl.StdSchedulerFactory : Using default implementation for ThreadExecutor 2021-11-27 18:55:15.200 INFO 1 --- [ main] org.quartz.core.SchedulerSignalerImpl : Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl 2021-11-27 18:55:15.201 INFO 1 --- [ main] org.quartz.core.QuartzScheduler : Quartz Scheduler v.2.3.2 created. 2021-11-27 18:55:15.201 INFO 1 --- [ main] org.quartz.simpl.RAMJobStore : RAMJobStore initialized. 2021-11-27 18:55:15.202 INFO 1 --- [ main] org.quartz.core.QuartzScheduler : Scheduler meta-data: Quartz Scheduler (v2.3.2) 'quartzScheduler' with instanceId 'NON_CLUSTERED' Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally. NOT STARTED. Currently in standby mode. Number of jobs executed: 0 Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads. Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered. 2021-11-27 18:55:15.202 INFO 1 --- [ main] org.quartz.impl.StdSchedulerFactory : Quartz scheduler 'quartzScheduler' initialized from an externally provided properties instance. 2021-11-27 18:55:15.202 INFO 1 --- [ main] org.quartz.impl.StdSchedulerFactory : Quartz scheduler version: 2.3.2 2021-11-27 18:55:15.202 INFO 1 --- [ main] org.quartz.core.QuartzScheduler : JobFactory set to: org.springframework.scheduling.quartz.SpringBeanJobFactory@3b56947a 2021-11-27 18:55:15.494 INFO 1 --- [ main] o.a.h.c.h.i.c.HttpRequestRetryExec : Recoverable I/O exception (java.io.IOException) caught when processing request to {}->unix://localhost:2375 2021-11-27 18:55:15.496 WARN 1 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'workerEventHandler' defined in file [/app/classes/dev/jianmu/api/eventhandler/WorkerEventHandler.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'embeddedWorkerApplication' defined in URL [jar:file:/app/libs/application-2.0.0-beta.2.jar!/dev/jianmu/application/service/internal/EmbeddedWorkerApplication.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'embeddedDockerWorker' defined in URL [jar:file:/app/libs/infrastructure-2.0.0-beta.2.jar!/dev/jianmu/infrastructure/docker/EmbeddedDockerWorker.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.jianmu.infrastructure.docker.EmbeddedDockerWorker]: Constructor threw exception; nested exception is java.lang.RuntimeException: java.io.IOException: com.sun.jna.LastErrorException: [13] Permission denied 2021-11-27 18:55:15.497 INFO 1 --- [ main] o.s.s.quartz.SchedulerFactoryBean : Shutting down Quartz Scheduler 2021-11-27 18:55:15.497 INFO 1 --- [ main] org.quartz.core.QuartzScheduler : Scheduler quartzScheduler_$_NON_CLUSTERED shutting down. 2021-11-27 18:55:15.497 INFO 1 --- [ main] org.quartz.core.QuartzScheduler : Scheduler quartzScheduler_$_NON_CLUSTERED paused. 2021-11-27 18:55:15.497 INFO 1 --- [ main] org.quartz.core.QuartzScheduler : Scheduler quartzScheduler_$_NON_CLUSTERED shutdown complete. 2021-11-27 18:55:15.499 INFO 1 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated... 2021-11-27 18:55:15.518 INFO 1 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed. 2021-11-27 18:55:15.521 INFO 1 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat] 2021-11-27 18:55:15.538 INFO 1 --- [ main] ConditionEvaluationReportLoggingListener : Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2021-11-27 18:55:15.553 ERROR 1 --- [ main] o.s.boot.SpringApplication : Application run failed org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'workerEventHandler' defined in file [/app/classes/dev/jianmu/api/eventhandler/WorkerEventHandler.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'embeddedWorkerApplication' defined in URL [jar:file:/app/libs/application-2.0.0-beta.2.jar!/dev/jianmu/application/service/internal/EmbeddedWorkerApplication.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'embeddedDockerWorker' defined in URL [jar:file:/app/libs/infrastructure-2.0.0-beta.2.jar!/dev/jianmu/infrastructure/docker/EmbeddedDockerWorker.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.jianmu.infrastructure.docker.EmbeddedDockerWorker]: Constructor threw exception; nested exception is java.lang.RuntimeException: java.io.IOException: com.sun.jna.LastErrorException: [13] Permission denied at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222) 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:208) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:944) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:434) at org.springframework.boot.SpringApplication.run(SpringApplication.java:338) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1343) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1332) at dev.jianmu.api.SpringbootApp.main(SpringbootApp.java:54) Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'embeddedWorkerApplication' defined in URL [jar:file:/app/libs/application-2.0.0-beta.2.jar!/dev/jianmu/application/service/internal/EmbeddedWorkerApplication.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'embeddedDockerWorker' defined in URL [jar:file:/app/libs/infrastructure-2.0.0-beta.2.jar!/dev/jianmu/infrastructure/docker/EmbeddedDockerWorker.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.jianmu.infrastructure.docker.EmbeddedDockerWorker]: Constructor threw exception; nested exception is java.lang.RuntimeException: java.io.IOException: com.sun.jna.LastErrorException: [13] Permission denied at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222) 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:208) at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1380) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1300) at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887) at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791) ... 19 common frames omitted Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'embeddedDockerWorker' defined in URL [jar:file:/app/libs/infrastructure-2.0.0-beta.2.jar!/dev/jianmu/infrastructure/docker/EmbeddedDockerWorker.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.jianmu.infrastructure.docker.EmbeddedDockerWorker]: Constructor threw exception; nested exception is java.lang.RuntimeException: java.io.IOException: com.sun.jna.LastErrorException: [13] Permission denied at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:315) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:296) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222) 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:208) at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1380) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1300) at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887) at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791) ... 33 common frames omitted Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.jianmu.infrastructure.docker.EmbeddedDockerWorker]: Constructor threw exception; nested exception is java.lang.RuntimeException: java.io.IOException: com.sun.jna.LastErrorException: [13] Permission denied at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:224) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:117) at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:311) ... 47 common frames omitted Caused by: java.lang.RuntimeException: java.io.IOException: com.sun.jna.LastErrorException: [13] Permission denied at com.github.dockerjava.httpclient5.ApacheDockerHttpClientImpl.execute(ApacheDockerHttpClientImpl.java:187) at com.github.dockerjava.httpclient5.ApacheDockerHttpClient.execute(ApacheDockerHttpClient.java:9) at com.github.dockerjava.core.DefaultInvocationBuilder.execute(DefaultInvocationBuilder.java:228) at com.github.dockerjava.core.DefaultInvocationBuilder.get(DefaultInvocationBuilder.java:202) at com.github.dockerjava.core.exec.PingCmdExec.execute(PingCmdExec.java:26) at com.github.dockerjava.core.exec.PingCmdExec.execute(PingCmdExec.java:12) at com.github.dockerjava.core.exec.AbstrSyncDockerCmdExec.exec(AbstrSyncDockerCmdExec.java:21) at com.github.dockerjava.core.command.AbstrDockerCmd.exec(AbstrDockerCmd.java:35) at dev.jianmu.infrastructure.docker.EmbeddedDockerWorker.connect(EmbeddedDockerWorker.java:91) at dev.jianmu.infrastructure.docker.EmbeddedDockerWorker.<init>(EmbeddedDockerWorker.java:75) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:211) ... 49 common frames omitted Caused by: java.io.IOException: com.sun.jna.LastErrorException: [13] Permission denied at com.github.dockerjava.transport.DomainSocket.<init>(DomainSocket.java:63) at com.github.dockerjava.transport.LinuxDomainSocket.<init>(LinuxDomainSocket.java:41) at com.github.dockerjava.transport.DomainSocket.get(DomainSocket.java:140) at com.github.dockerjava.transport.UnixSocket.get(UnixSocket.java:27) at com.github.dockerjava.httpclient5.ApacheDockerHttpClientImpl$2.createSocket(ApacheDockerHttpClientImpl.java:145) at org.apache.hc.client5.http.impl.io.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:125) at org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:409) at org.apache.hc.client5.http.impl.classic.InternalExecRuntime.connectEndpoint(InternalExecRuntime.java:168) at org.apache.hc.client5.http.impl.classic.InternalExecRuntime.connectEndpoint(InternalExecRuntime.java:178) at org.apache.hc.client5.http.impl.classic.ConnectExec.execute(ConnectExec.java:135) at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51) at org.apache.hc.client5.http.impl.classic.ExecChainElement$1.proceed(ExecChainElement.java:57) at org.apache.hc.client5.http.impl.classic.ProtocolExec.execute(ProtocolExec.java:172) at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51) at org.apache.hc.client5.http.impl.classic.ExecChainElement$1.proceed(ExecChainElement.java:57) at org.apache.hc.client5.http.impl.classic.HttpRequestRetryExec.execute(HttpRequestRetryExec.java:93) at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51) at org.apache.hc.client5.http.impl.classic.ExecChainElement$1.proceed(ExecChainElement.java:57) at org.apache.hc.client5.http.impl.classic.ContentCompressionExec.execute(ContentCompressionExec.java:128) at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51) at org.apache.hc.client5.http.impl.classic.ExecChainElement$1.proceed(ExecChainElement.java:57) at org.apache.hc.client5.http.impl.classic.RedirectExec.execute(RedirectExec.java:116) at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51) at org.apache.hc.client5.http.impl.classic.InternalHttpClient.doExecute(InternalHttpClient.java:178) at org.apache.hc.client5.http.impl.classic.CloseableHttpClient.execute(CloseableHttpClient.java:67) at com.github.dockerjava.httpclient5.ApacheDockerHttpClientImpl.execute(ApacheDockerHttpClientImpl.java:183) ... 63 common frames omitted Caused by: com.sun.jna.LastErrorException: [13] Permission denied at com.github.dockerjava.transport.LinuxDomainSocket.connect(Native Method) at com.github.dockerjava.transport.LinuxDomainSocket.connect(LinuxDomainSocket.java:49) at com.github.dockerjava.transport.DomainSocket.open(DomainSocket.java:69) at com.github.dockerjava.transport.DomainSocket.<init>(DomainSocket.java:59) ... 88 common frames omitted ```
### 重现环境信息 部署环境信息: ``` [root@localhost ~]# uname -a Linux localhost.localdomain 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux [root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) [root@localhost ~]# docker version Client: Version: 1.13.1 API version: 1.26 Package version: docker-1.13.1-208.git7d71120.el7_9.x86_64 Go version: go1.10.3 Git commit: 7d71120/1.13.1 Built: Mon Jun 7 15:36:09 2021 OS/Arch: linux/amd64 Server: Version: 1.13.1 API version: 1.26 (minimum version 1.12) Package version: docker-1.13.1-208.git7d71120.el7_9.x86_64 Go version: go1.10.3 Git commit: 7d71120/1.13.1 Built: Mon Jun 7 15:36:09 2021 OS/Arch: linux/amd64 Experimental: false [root@localhost ~]# docker-compose --version docker-compose version 1.29.2, build 5becea4c ``` ### 部署文件 ``` version: '3' services: jianmu-mysql: image: mysql:8 command: --init-connect='SET NAMES utf8' --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=1200 --max-user-connections=1000 ports: - "3306:3306" environment: MYSQL_ROOT_PASSWORD: 123456 MYSQL_DATABASE: "jianmu" TZ: "Asia/Shanghai" ci-server: image: jianmudev/jianmu-ci-server:v2.0.0-beta.2 environment: SPRING_PROFILES_ACTIVE: dev SPRING_DATASOURCE_URL: jdbc:mysql://jianmu-mysql:3306/jianmu?useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true SPRING_DATASOURCE_USERNAME: root SPRING_DATASOURCE_PASSWORD: 123456 EMBEDDED_DOCKER-WORKER_DOCKER-HOST: unix:///var/run/docker.sock EMBEDDED_DOCKER-WORKER_SOCK-FILE: /var/run/docker.sock JIANMU_API_ADMINPASSWD: 123456 # REGISTRY_AK: # REGISTRY_SK: volumes: - /var/run/docker.sock:/var/run/docker.sock - /mnt/jianmu/ci/task_log:/task_log depends_on: - jianmu-mysql entrypoint: ["/wait-for-it.sh", "jianmu-mysql:3306", "-t", "0", "--", "java", "-Duser.timezone=Asia/Shanghai", "-cp", "/app/resources:/app/classes:/app/libs/*", "dev.jianmu.api.SpringbootApp"] web: image: jianmudev/jianmu-ci-ui:v2.0.0-beta.2 ports: - "80:80" - "443:443" depends_on: - jianmu-mysql ``` ### 重现步骤 ``` [root@localhost ~]# docker-compose up -d root_jianmu-mysql_1 is up-to-date Starting root_ci-server_1 ... done root_web_1 is up-to-date [root@localhost ~]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES b2d78c3e77d9 jianmudev/jianmu-ci-ui:v2.0.0-beta.2 "/docker-entrypoin..." 40 minutes ago Up 40 minutes 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp root_web_1 18d64a04c001 jianmudev/jianmu-ci-server:v2.0.0-beta.2 "/wait-for-it.sh j..." 40 minutes ago Up 3 seconds root_ci-server_1 4e9930faff00 mysql:8 "docker-entrypoint..." 40 minutes ago Up 40 minutes 0.0.0.0:3306->3306/tcp, 33060/tcp root_jianmu-mysql_1 [root@localhost ~]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES b2d78c3e77d9 jianmudev/jianmu-ci-ui:v2.0.0-beta.2 "/docker-entrypoin..." 40 minutes ago Up 40 minutes 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp root_web_1 4e9930faff00 mysql:8 "docker-entrypoint..." 40 minutes ago Up 40 minutes 0.0.0.0:3306->3306/tcp, 33060/tcp root_jianmu-mysql_1 ``` 其中`jianmudev/jianmu-ci-server`容器无法启动。 安装启动错误信息: ``` [root@localhost ~]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES b2d78c3e77d9 jianmudev/jianmu-ci-ui:v2.0.0-beta.2 "/docker-entrypoin..." 42 minutes ago Up 42 minutes 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp root_web_1 4e9930faff00 mysql:8 "docker-entrypoint..." 42 minutes ago Up 42 minutes 0.0.0.0:3306->3306/tcp, 33060/tcp root_jianmu-mysql_1 [root@localhost ~]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES b2d78c3e77d9 jianmudev/jianmu-ci-ui:v2.0.0-beta.2 "/docker-entrypoin..." 42 minutes ago Up 42 minutes 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp root_web_1 18d64a04c001 jianmudev/jianmu-ci-server:v2.0.0-beta.2 "/wait-for-it.sh j..." 42 minutes ago Exited (1) About a minute ago root_ci-server_1 4e9930faff00 mysql:8 "docker-entrypoint..." 42 minutes ago Up 42 minutes 0.0.0.0:3306->3306/tcp, 33060/tcp root_jianmu-mysql_1 [root@localhost ~]# docker logs 18d64a04c001 wait-for-it.sh: waiting for jianmu-mysql:3306 without a timeout wait-for-it.sh: jianmu-mysql:3306 is available after 10 seconds 2021-11-27 18:55:11.937 INFO 1 --- [ main] dev.jianmu.api.SpringbootApp : Starting SpringbootApp using Java 11.0.11 on 18d64a04c001 with PID 1 (/app/classes started by root in /) 2021-11-27 18:55:11.946 INFO 1 --- [ main] dev.jianmu.api.SpringbootApp : The following profiles are active: dev 2021-11-27 18:55:13.133 INFO 1 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'appConfig' of type [dev.jianmu.infrastructure.AppConfig$$EnhancerBySpringCGLIB$$9954581b] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2021-11-27 18:55:13.449 INFO 1 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8081 (http) 2021-11-27 18:55:13.458 INFO 1 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2021-11-27 18:55:13.459 INFO 1 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.54] 2021-11-27 18:55:13.551 INFO 1 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2021-11-27 18:55:13.551 INFO 1 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1504 ms 2021-11-27 18:55:14.417 INFO 1 --- [ main] o.f.c.internal.license.VersionPrinter : Flyway Community Edition 7.7.3 by Redgate 2021-11-27 18:55:14.422 INFO 1 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting... 2021-11-27 18:55:14.570 INFO 1 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed. 2021-11-27 18:55:14.615 INFO 1 --- [ main] o.f.c.i.database.base.DatabaseType : Database: jdbc:mysql://jianmu-mysql:3306/jianmu (MySQL 8.0) 2021-11-27 18:55:14.653 INFO 1 --- [ main] o.f.core.internal.command.DbValidate : Successfully validated 1 migration (execution time 00:00.014s) 2021-11-27 18:55:14.671 INFO 1 --- [ main] o.f.c.i.s.JdbcTableSchemaHistory : Creating Schema History table `jianmu`.`flyway_schema_history` ... 2021-11-27 18:55:14.709 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:14.737 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:14.750 INFO 1 --- [ main] o.f.core.internal.command.DbMigrate : Current version of schema `jianmu`: << Empty Schema >> 2021-11-27 18:55:14.775 INFO 1 --- [ main] o.f.core.internal.command.DbMigrate : Migrating schema `jianmu` to version "1.0.0 - INIT Tables" 2021-11-27 18:55:14.806 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:14.831 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:14.858 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:14.880 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:14.896 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:14.921 WARN 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : DB: Integer display width is deprecated and will be removed in a future release. (SQL State: HY000 - Error Code: 1681) 2021-11-27 18:55:14.922 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:14.943 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:14.962 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:14.980 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:15.001 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:15.016 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:15.032 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:15.053 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:15.071 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:15.088 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:15.109 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:15.122 INFO 1 --- [ main] o.f.c.i.s.DefaultSqlScriptExecutor : 0 rows affected 2021-11-27 18:55:15.144 INFO 1 --- [ main] o.f.core.internal.command.DbMigrate : Successfully applied 1 migration to schema `jianmu`, now at version v1.0.0 (execution time 00:00.397s) 2021-11-27 18:55:15.188 INFO 1 --- [ main] org.quartz.impl.StdSchedulerFactory : Using default implementation for ThreadExecutor 2021-11-27 18:55:15.200 INFO 1 --- [ main] org.quartz.core.SchedulerSignalerImpl : Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl 2021-11-27 18:55:15.201 INFO 1 --- [ main] org.quartz.core.QuartzScheduler : Quartz Scheduler v.2.3.2 created. 2021-11-27 18:55:15.201 INFO 1 --- [ main] org.quartz.simpl.RAMJobStore : RAMJobStore initialized. 2021-11-27 18:55:15.202 INFO 1 --- [ main] org.quartz.core.QuartzScheduler : Scheduler meta-data: Quartz Scheduler (v2.3.2) 'quartzScheduler' with instanceId 'NON_CLUSTERED' Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally. NOT STARTED. Currently in standby mode. Number of jobs executed: 0 Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads. Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered. 2021-11-27 18:55:15.202 INFO 1 --- [ main] org.quartz.impl.StdSchedulerFactory : Quartz scheduler 'quartzScheduler' initialized from an externally provided properties instance. 2021-11-27 18:55:15.202 INFO 1 --- [ main] org.quartz.impl.StdSchedulerFactory : Quartz scheduler version: 2.3.2 2021-11-27 18:55:15.202 INFO 1 --- [ main] org.quartz.core.QuartzScheduler : JobFactory set to: org.springframework.scheduling.quartz.SpringBeanJobFactory@3b56947a 2021-11-27 18:55:15.494 INFO 1 --- [ main] o.a.h.c.h.i.c.HttpRequestRetryExec : Recoverable I/O exception (java.io.IOException) caught when processing request to {}->unix://localhost:2375 2021-11-27 18:55:15.496 WARN 1 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'workerEventHandler' defined in file [/app/classes/dev/jianmu/api/eventhandler/WorkerEventHandler.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'embeddedWorkerApplication' defined in URL [jar:file:/app/libs/application-2.0.0-beta.2.jar!/dev/jianmu/application/service/internal/EmbeddedWorkerApplication.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'embeddedDockerWorker' defined in URL [jar:file:/app/libs/infrastructure-2.0.0-beta.2.jar!/dev/jianmu/infrastructure/docker/EmbeddedDockerWorker.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.jianmu.infrastructure.docker.EmbeddedDockerWorker]: Constructor threw exception; nested exception is java.lang.RuntimeException: java.io.IOException: com.sun.jna.LastErrorException: [13] Permission denied 2021-11-27 18:55:15.497 INFO 1 --- [ main] o.s.s.quartz.SchedulerFactoryBean : Shutting down Quartz Scheduler 2021-11-27 18:55:15.497 INFO 1 --- [ main] org.quartz.core.QuartzScheduler : Scheduler quartzScheduler_$_NON_CLUSTERED shutting down. 2021-11-27 18:55:15.497 INFO 1 --- [ main] org.quartz.core.QuartzScheduler : Scheduler quartzScheduler_$_NON_CLUSTERED paused. 2021-11-27 18:55:15.497 INFO 1 --- [ main] org.quartz.core.QuartzScheduler : Scheduler quartzScheduler_$_NON_CLUSTERED shutdown complete. 2021-11-27 18:55:15.499 INFO 1 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated... 2021-11-27 18:55:15.518 INFO 1 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed. 2021-11-27 18:55:15.521 INFO 1 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat] 2021-11-27 18:55:15.538 INFO 1 --- [ main] ConditionEvaluationReportLoggingListener : Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2021-11-27 18:55:15.553 ERROR 1 --- [ main] o.s.boot.SpringApplication : Application run failed org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'workerEventHandler' defined in file [/app/classes/dev/jianmu/api/eventhandler/WorkerEventHandler.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'embeddedWorkerApplication' defined in URL [jar:file:/app/libs/application-2.0.0-beta.2.jar!/dev/jianmu/application/service/internal/EmbeddedWorkerApplication.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'embeddedDockerWorker' defined in URL [jar:file:/app/libs/infrastructure-2.0.0-beta.2.jar!/dev/jianmu/infrastructure/docker/EmbeddedDockerWorker.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.jianmu.infrastructure.docker.EmbeddedDockerWorker]: Constructor threw exception; nested exception is java.lang.RuntimeException: java.io.IOException: com.sun.jna.LastErrorException: [13] Permission denied at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222) 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:208) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:944) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:434) at org.springframework.boot.SpringApplication.run(SpringApplication.java:338) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1343) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1332) at dev.jianmu.api.SpringbootApp.main(SpringbootApp.java:54) Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'embeddedWorkerApplication' defined in URL [jar:file:/app/libs/application-2.0.0-beta.2.jar!/dev/jianmu/application/service/internal/EmbeddedWorkerApplication.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'embeddedDockerWorker' defined in URL [jar:file:/app/libs/infrastructure-2.0.0-beta.2.jar!/dev/jianmu/infrastructure/docker/EmbeddedDockerWorker.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.jianmu.infrastructure.docker.EmbeddedDockerWorker]: Constructor threw exception; nested exception is java.lang.RuntimeException: java.io.IOException: com.sun.jna.LastErrorException: [13] Permission denied at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222) 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:208) at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1380) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1300) at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887) at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791) ... 19 common frames omitted Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'embeddedDockerWorker' defined in URL [jar:file:/app/libs/infrastructure-2.0.0-beta.2.jar!/dev/jianmu/infrastructure/docker/EmbeddedDockerWorker.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.jianmu.infrastructure.docker.EmbeddedDockerWorker]: Constructor threw exception; nested exception is java.lang.RuntimeException: java.io.IOException: com.sun.jna.LastErrorException: [13] Permission denied at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:315) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:296) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222) 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:208) at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1380) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1300) at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887) at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791) ... 33 common frames omitted Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [dev.jianmu.infrastructure.docker.EmbeddedDockerWorker]: Constructor threw exception; nested exception is java.lang.RuntimeException: java.io.IOException: com.sun.jna.LastErrorException: [13] Permission denied at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:224) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:117) at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:311) ... 47 common frames omitted Caused by: java.lang.RuntimeException: java.io.IOException: com.sun.jna.LastErrorException: [13] Permission denied at com.github.dockerjava.httpclient5.ApacheDockerHttpClientImpl.execute(ApacheDockerHttpClientImpl.java:187) at com.github.dockerjava.httpclient5.ApacheDockerHttpClient.execute(ApacheDockerHttpClient.java:9) at com.github.dockerjava.core.DefaultInvocationBuilder.execute(DefaultInvocationBuilder.java:228) at com.github.dockerjava.core.DefaultInvocationBuilder.get(DefaultInvocationBuilder.java:202) at com.github.dockerjava.core.exec.PingCmdExec.execute(PingCmdExec.java:26) at com.github.dockerjava.core.exec.PingCmdExec.execute(PingCmdExec.java:12) at com.github.dockerjava.core.exec.AbstrSyncDockerCmdExec.exec(AbstrSyncDockerCmdExec.java:21) at com.github.dockerjava.core.command.AbstrDockerCmd.exec(AbstrDockerCmd.java:35) at dev.jianmu.infrastructure.docker.EmbeddedDockerWorker.connect(EmbeddedDockerWorker.java:91) at dev.jianmu.infrastructure.docker.EmbeddedDockerWorker.<init>(EmbeddedDockerWorker.java:75) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:211) ... 49 common frames omitted Caused by: java.io.IOException: com.sun.jna.LastErrorException: [13] Permission denied at com.github.dockerjava.transport.DomainSocket.<init>(DomainSocket.java:63) at com.github.dockerjava.transport.LinuxDomainSocket.<init>(LinuxDomainSocket.java:41) at com.github.dockerjava.transport.DomainSocket.get(DomainSocket.java:140) at com.github.dockerjava.transport.UnixSocket.get(UnixSocket.java:27) at com.github.dockerjava.httpclient5.ApacheDockerHttpClientImpl$2.createSocket(ApacheDockerHttpClientImpl.java:145) at org.apache.hc.client5.http.impl.io.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:125) at org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:409) at org.apache.hc.client5.http.impl.classic.InternalExecRuntime.connectEndpoint(InternalExecRuntime.java:168) at org.apache.hc.client5.http.impl.classic.InternalExecRuntime.connectEndpoint(InternalExecRuntime.java:178) at org.apache.hc.client5.http.impl.classic.ConnectExec.execute(ConnectExec.java:135) at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51) at org.apache.hc.client5.http.impl.classic.ExecChainElement$1.proceed(ExecChainElement.java:57) at org.apache.hc.client5.http.impl.classic.ProtocolExec.execute(ProtocolExec.java:172) at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51) at org.apache.hc.client5.http.impl.classic.ExecChainElement$1.proceed(ExecChainElement.java:57) at org.apache.hc.client5.http.impl.classic.HttpRequestRetryExec.execute(HttpRequestRetryExec.java:93) at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51) at org.apache.hc.client5.http.impl.classic.ExecChainElement$1.proceed(ExecChainElement.java:57) at org.apache.hc.client5.http.impl.classic.ContentCompressionExec.execute(ContentCompressionExec.java:128) at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51) at org.apache.hc.client5.http.impl.classic.ExecChainElement$1.proceed(ExecChainElement.java:57) at org.apache.hc.client5.http.impl.classic.RedirectExec.execute(RedirectExec.java:116) at org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51) at org.apache.hc.client5.http.impl.classic.InternalHttpClient.doExecute(InternalHttpClient.java:178) at org.apache.hc.client5.http.impl.classic.CloseableHttpClient.execute(CloseableHttpClient.java:67) at com.github.dockerjava.httpclient5.ApacheDockerHttpClientImpl.execute(ApacheDockerHttpClientImpl.java:183) ... 63 common frames omitted Caused by: com.sun.jna.LastErrorException: [13] Permission denied at com.github.dockerjava.transport.LinuxDomainSocket.connect(Native Method) at com.github.dockerjava.transport.LinuxDomainSocket.connect(LinuxDomainSocket.java:49) at com.github.dockerjava.transport.DomainSocket.open(DomainSocket.java:69) at com.github.dockerjava.transport.DomainSocket.<init>(DomainSocket.java:59) ... 88 common frames omitted ```
评论 (
1
)
登录
后才可以发表评论
状态
已完成
待办的
进行中
已完成
已关闭
负责人
未设置
Kevin Zhang
topshare
负责人
协作者
+负责人
+协作者
标签
未设置
标签管理
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (
-
)
标签 (
-
)
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
参与者(1)
Java
1
https://gitee.com/jianmu-dev/jianmu.git
git@gitee.com:jianmu-dev/jianmu.git
jianmu-dev
jianmu
建木
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册