在docker上启动期间出现Artifactory OSS错误

时间:2018-10-18 10:29:27

标签: docker tomcat artifactory

我在docker容器内使用tomcat运行人工OS时遇到问题。 我当前正在使用人工版本6.5。 我的基本映像来自带有jre8的tomcat 9.0。 我已经将缺少的德比罐子添加到了tomcat中。

启动docker容器如下所示:

    > 18-Oct-2018 10:09:20.064 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/usr/local/tomcat/webapps/ROOT.war] has finished in [6,162] ms
18-Oct-2018 10:09:20.068 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
18-Oct-2018 10:09:20.081 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
18-Oct-2018 10:09:20.083 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 6307 ms
2018-10-18 10:09:20,303 [art-init] [INFO ] (o.a.s.ArtifactoryApplicationContext:495) - Artifactory application context set to NOT READY by refresh
2018-10-18 10:09:20,305 [art-init] [INFO ] (o.a.s.ArtifactoryApplicationContext:236) - Refreshing : startup date [Thu Oct 18 10:09:20 UTC 2018]; root of context hierarchy
2018-10-18 10:09:30,601 [art-init] [INFO ] (o.a.s.d.DbServiceImpl:242) - Database: Apache Derby 10.14.2.0 - (1828579). Driver: Apache Derby Embedded JDBC Driver 10.14.2.0 - (1828579) Pool: derby
2018-10-18 10:09:30,602 [art-init] [INFO ] (o.a.s.d.DbServiceImpl:245) - Connection URL: jdbc:derby:/artifactory/data/derby
2018-10-18 10:09:31,854 [art-init] [INFO ] (o.j.s.b.p.t.BinaryProviderClassScanner:76) - Added 'empty, external-file, external-wrapper, file-system, cache-fs, retry' from jar:file:/usr/local/tomcat/webapps/ROOT/WEB-INF/lib/binary-store-core-3.1.8.jar!/
2018-10-18 10:09:31,861 [art-init] [INFO ] (o.j.s.b.p.t.BinaryProviderClassScanner:76) - Added 'blob' from jar:file:/usr/local/tomcat/webapps/ROOT/WEB-INF/lib/artifactory-storage-db-6.5.0.jar!/
2018-10-18 10:09:37,124 [art-init] [INFO ] (o.a.s.ArtifactorySchedulerFactoryBean:647) - Starting Quartz Scheduler now
2018-10-18 10:09:37,241 [art-init] [INFO ] (o.a.s.ArtifactoryApplicationContext:243) - Artifactory context starting up 39 Spring Beans...
2018-10-18 10:09:38,038 [art-init] [INFO ] (o.a.s.a.AccessServiceImpl:370) - Initialized new service id: jfrt@01ct3adtnrmhz109ee5wrk0djr
2018-10-18 10:09:38,455 [art-init] [INFO ] (o.a.s.a.ArtifactoryAccessClientConfigStore:643) - Using Access Server URL: http://localhost:8080/access (bundled) source: detected
2018-10-18 10:09:39,050 [art-init] [INFO ] (o.a.s.a.AccessServiceImpl:308) - Waiting for access server...
2018-10-18 10:11:09,614 [art-init] [ERROR] (o.a.w.s.ArtifactoryContextConfigListener:92) - Application could not be initialized: Waiting for access server to respond timed-out
java.lang.reflect.InvocationTargetException: null
        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:488)
        at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.configure(ArtifactoryContextConfigListener.java:207)
        at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.access$200(ArtifactoryContextConfigListener.java:63)
        at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener$1.run(ArtifactoryContextConfigListener.java:88)
Caused by: org.springframework.beans.factory.BeanInitializationException: Failed to initialize bean 'org.artifactory.security.access.AccessService'.; nested exception is java.lang.IllegalStateException: Waiting for access server to respond timed-out
        at org.artifactory.spring.ArtifactoryApplicationContext.refresh(ArtifactoryApplicationContext.java:253)
        at org.artifactory.spring.ArtifactoryApplicationContext.<init>(ArtifactoryApplicationContext.java:136)
        ... 7 common frames omitted
Caused by: java.lang.IllegalStateException: Waiting for access server to respond timed-out
        at org.artifactory.security.access.AccessServiceImpl.waitForAccessServer(AccessServiceImpl.java:324)
        at org.artifactory.security.access.AccessServiceImpl.waitForAccessServer(AccessServiceImpl.java:298)
        at org.artifactory.security.access.AccessServiceImpl.bootstrapAccessClient(AccessServiceImpl.java:1076)
        at org.artifactory.security.access.AccessServiceImpl.initAccessService(AccessServiceImpl.java:275)
        at org.artifactory.security.access.AccessServiceImpl.initAccessClientIfNeeded(AccessServiceImpl.java:265)
        at org.artifactory.security.access.AccessServiceImpl.init(AccessServiceImpl.java:259)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:564)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
        at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
        at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
        at org.artifactory.storage.fs.lock.aop.LockingAdvice.invoke(LockingAdvice.java:76)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
        at com.sun.proxy.$Proxy37.init(Unknown Source)
        at org.artifactory.spring.ArtifactoryApplicationContext.refresh(ArtifactoryApplicationContext.java:251)
        ... 8 common frames omitted

tomcat访问日志的锁定如下:

127.0.0.1 - - [18/Oct/2018:10:20:04 +0000] "GET /access/api/v1/system/ping HTTP/1.1" 503 1257

我已禁用SSL支持-> SSLEngine =“ off”

如果我尝试卷曲端点,则会收到以下响应:

.....
            margin: 0;
            padding: 0;
            font-family: Arial, Myriad, Helvetica, clean, sans-serif;
            font-size: 13px;
            text-align: center;
            background: #2b2b2b;
        }

        .wrapper {
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;

            text-align: center;
        }

        .wrapper img {
            height: 95%;
        }
    </style>

</head>
<body>

<div class="wrapper">
    <img src="artifactory-splash.gif"/>
</div>

<script type="text/javascript">
    var xhr = new XMLHttpRequest();
    setInterval(function () {
        xhr.open('GET', window.location, true);
        xhr.onreadystatechange = function () {
            if (xhr.readyState == 4 && xhr.status == 200) {
                location.reload();
            }
        };
        xhr.send();
    }, 2000)
</script>
</body>
</html>

因此,我不知道为什么无法访问访问检查点。 任何建议都会有所帮助。

谢谢

最良好的祝愿 琼恩

0 个答案:

没有答案