Docker 中的 Artifactory 在启动期间产生错误

问题描述 投票:0回答:2

我是 Jfrog Artifactory 的新手,在使用 Artifactory 启动容器时遇到问题。

它可以工作,我看到了网络界面,但我担心控制台中的错误。

这是 docker-compose:

version: "3.9"
services:
  artifactory:
    image: docker.bintray.io/jfrog/artifactory-oss
    container_name: artifactory
  environment:
    JF_SHARED_NODE_IP: "127.0.0.1"
    JF_SHARED_NODE_ID: "artifactory"
    JF_SHARED_NODE_NAME: "artifactory"
  ports:
    - 8082:8082
    - 8081:8081
  volumes:
    - ./jfrog/artifactory/var/:/var/opt/jfrog/artifactory
    - /etc/localtime:/etc/localtime:ro
  logging:
    driver: json-file
    options:
      max-size: "50m"
      max-file: "10"
  ulimits:
    nproc: 65535
    nofile:
      soft: 32000
      hard: 40000

在启动它之前,我执行以下操作:

sudo mkdir -p ./jfrog/artifactory/var/etc/
touch ./jfrog/artifactory/var/etc/system.yaml
chown -R 1030:1030 ./jfrog/artifactory/var
chmod -R 777 ./jfrog/artifactory/var

这是启动日志: artifactory_startup.log(很抱歉将日志上传到 Goggle Drive。它对于 stackoverflow 帖子来说太大了)

我担心这些字符串:

[jfac ] [WARN ] [976f1c9489fa2680] [c.z.h.u.DriverDataSource:70   ] [ocalhost-startStop-1] - Registered driver with driverClassName=org.apache.derby.jdbc.EmbeddedDriver was not found, trying direct instantiation.

[jfac ] [WARN ] [976f1c9489fa2680] [o.j.c.ExecutionUtils:165      ] [pool-8-thread-2     ] - Retry 10 Elapsed 5.22 secs failed: Registration with router on URL http://localhost:8046 failed with error: UNAVAILABLE: io exception. Trying again

[jfrt ] [ERROR] [                ] [o.j.c.w.FileWatcher:221       ] [Thread-6            ] - Unknown exception while watching for file changes: null
artifactory  | java.lang.NullPointerException: null
artifactory  |  at org.jfrog.config.watch.FileWatcher.lambda$doWatch$2(FileWatcher.java:202)
artifactory  |  at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
artifactory  |  at org.jfrog.config.watch.FileWatcher.doWatch(FileWatcher.java:201)
artifactory  |  at java.base/java.lang.Thread.run(Thread.java:829)

[jfrou] [WARN ] [6424ea6f8b2dc101] [local_topology.go:256         ] [main                ] - Readiness test failed with the following error: "required node services are missing or unhealthy"

请帮我找出这些错误的含义。或者我只需使用该服务就可以了?

artifactory
2个回答
1
投票

经过一番挖掘,我发现 Tomcat 和 JVM 无法获得足够的 CPU 线程。解决方案是为容器提供更多资源。我完全忘记阅读系统要求。


0
投票

@Konstantin 你是如何增加容器的资源的?我面临着同样的问题,而且我对 jfrog 和 docker 都是新手。

谢谢你, 阿比吉特

© www.soinside.com 2019 - 2024. All rights reserved.