Docker安装jcr出错

来源:9-6 搭建免费版Docker镜像仓库

Mr_yangbq

2020-11-01

页面访问报500“Artifactory failed to initialize”。。后台一直在报下面的错误
2020-11-01T12:10:21.677Z [jfac ] [INFO ] [d4d5fa23a99f771d] [o.j.a.AccessApplication:59 ] [ocalhost-startStop-2] - Started AccessApplication in 33.616 seconds (JVM running for 36.128)

2020-11-01T12:10:21.813L [tomct] [INFO ] [ ] [org.apache.catalina.startup.HostConfig] [org.apache.catalina.startup.HostConfig deployDescriptor] - Deployment of configuration descriptor [/opt/jfrog/artifactory/app/artifactory/tomcat/conf/Catalina/localhost/access.xml] has finished in [35,275] ms

2020-11-01T12:10:21.821L [tomct] [INFO ] [ ] [org.apache.catalina.startup.HostConfig] [org.apache.catalina.startup.HostConfig deployDirectory] - Deploying web application directory [/opt/jfrog/artifactory/app/artifactory/tomcat/webapps/ROOT]

2020-11-01T12:10:21.884L [tomct] [INFO ] [ ] [org.apache.catalina.startup.HostConfig] [org.apache.catalina.startup.HostConfig deployDirectory] - Deployment of web application directory [/opt/jfrog/artifactory/app/artifactory/tomcat/webapps/ROOT] has finished in [63] ms

2020-11-01T12:10:21.915L [tomct] [INFO ] [ ] [org.apache.coyote.http11.Http11NioProtocol] [org.apache.coyote.AbstractProtocol start] - Starting ProtocolHandler [“http-nio-8081”]

2020-11-01T12:10:21.944L [tomct] [INFO ] [ ] [org.apache.coyote.http11.Http11NioProtocol] [org.apache.coyote.AbstractProtocol start] - Starting ProtocolHandler [“http-nio-127.0.0.1-8091”]

2020-11-01T12:10:21.969L [tomct] [INFO ] [ ] [org.apache.coyote.http11.Http11NioProtocol] [org.apache.coyote.AbstractProtocol start] - Starting ProtocolHandler [“http-nio-127.0.0.1-8040”]

2020-11-01T12:10:23.964Z [jfmd ] [INFO ] [484c6400b4432601] [accessclient.go:51 ] [main ] - Cluster join: Retry 5: Service registry ping failed, will retry. Error: Error while trying to connect to local router at address ‘http://localhost:8046/access’: Get http://localhost:8046/access/api/v1/system/ping: dial tcp 127.0.0.1:8046: connect: connection refused [access_client]

2020-11-01T12:10:25.447Z [jfac ] [WARN ] [a8cd25a2e7ead59b] [o.j.c.ExecutionUtils:141 ] [pool-6-thread-2 ] - Retry 20 Elapsed 9.83 secs failed: Registration with router on URL http://localhost:8046 failed with error: UNAVAILABLE: io exception. Trying again

2020-11-01T12:10:26.778Z [jfrt ] [INFO ] [85e470b0c4456062] [o.a.s.d.DbServiceImpl:282 ] [art-init ] - Database: Apache Derby 10.14.2.0 - (1828579). Driver: Apache Derby Embedded JDBC Driver 10.14.2.0 - (1828579) Pool: derby

2020-11-01T12:10:26.780Z [jfrt ] [INFO ] [85e470b0c4456062] [o.a.s.d.DbServiceImpl:285 ] [art-init ] - Connection URL: jdbc:derby:/opt/jfrog/artifactory/var/data/artifactory/derby

2020-11-01T12:10:28.057Z [jfac ] [INFO ] [22c61f807505f9e4] [a.c.RefreshableScheduledJob:53] [27.0.0.1-8040-exec-1] - Scheduling federationCleanupService task to run every 1209600 seconds

2020-11-01T12:10:28.059Z [jfac ] [INFO ] [74050ef4279f59f ] [.f.FederationCleanupService:59] [jf-access-task1 ] - Running clean up of outdated Federation events

2020-11-01T12:10:28.574Z [jfac ] [INFO ] [22c61f807505f9e4] [s.r.NodeRegistryServiceImpl:68] [27.0.0.1-8040-exec-1] - Cluster join: Successfully joined jfrou@01ep1ve6hf4k7vc4xamp5xz634 with node id 2c1adb7a4f65

2020-11-01T12:10:28.736Z [jfrou] [INFO ] [791f4b072df64df ] [join_executor.go:181 ] [main ] - Cluster join: Successfully joined the cluster

2020-11-01T12:10:28.876Z [jfrou] [INFO ] [ ] [server.go:568 ] [main ] - Preparing server external &{Address::8082 TLS: Redirect: Auth: WhitelistSourceRange:[] WhiteList: Compress:false ProxyProtocol: ForwardedHeaders:0xc0002e3580} with readTimeout=0s writeTimeout=0s idleTimeout=3m0s

2020-11-01T12:10:28.880Z [jfrou] [INFO ] [ ] [server.go:568 ] [main ] - Preparing server internal &{Address:localhost:8046 TLS: Redirect: Auth: WhitelistSourceRange:[] WhiteList: Compress:false ProxyProtocol: ForwardedHeaders:0xc0002e34e0} with readTimeout=0s writeTimeout=0s idleTimeout=3m0s

2020-11-01T12:10:28.882Z [jfrou] [INFO ] [ ] [server.go:524 ] [main ] - Starting server on :8082

2020-11-01T12:10:28.884Z [jfrou] [INFO ] [ ] [server.go:568 ] [main ] - Preparing server api &{Address:localhost:8049 TLS: Redirect: Auth: WhitelistSourceRange:[] WhiteList: Compress:false ProxyProtocol: ForwardedHeaders:0xc0002e3560} with readTimeout=0s writeTimeout=0s idleTimeout=3m0s

2020-11-01T12:10:28.886Z [jfrou] [INFO ] [ ] [server.go:524 ] [main ] - Starting server on localhost:8046

2020-11-01T12:10:28.891Z [jfrou] [INFO ] [ ] [server.go:420 ] [main ] - Starting provider configuration.ProviderAggregator {}

2020-11-01T12:10:28.892Z [jfrou] [INFO ] [ ] [server.go:524 ] [main ] - Starting server on localhost:8049

2020-11-01T12:10:28.895Z [jfrou] [INFO ] [ ] [provider_aggregator.go:103 ] [main ] - Starting provider *file.Provider {“Watch”:true,“Filename”:"",“Constraints”:null,“Trace”:false,“TemplateVersion”:0,“DebugLogGeneratedTemplate”:false,“Directory”:"/opt/jfrog/artifactory/var/data/router/traefik/routes",“TraefikFile”:""}

2020-11-01T12:10:28.934Z [jfrou] [INFO ] [ ] [server_configuration.go:61 ] [main ] - Server configuration reloaded on localhost:8046

2020-11-01T12:10:28.936Z [jfrou] [INFO ] [ ] [server_configuration.go:61 ] [main ] - Server configuration reloaded on localhost:8049

2020-11-01T12:10:28.937Z [jfrou] [INFO ] [ ] [server_configuration.go:61 ] [main ] - Server configuration reloaded on :8082

2020-11-01T12:10:28.939Z [jfrou] [INFO ] [791f4b072df64df ] [main.go:47 ] [main ] - Router (jfrou) service initialization completed in 43.793 seconds. Listening on port: 8082

2020-11-01T12:10:28.994Z [jfmd ] [INFO ] [484c6400b4432601] [accessclient.go:51 ] [main ] - Cluster join: Retry 10: Service registry ping failed, will retry. Error: Error while trying to connect to local router at address ‘http://localhost:8046/access’: Failed to access :http://localhost:8046/access/api/v1/system/ping return status code : 404 [access_client]

2020-11-01T12:10:30.530Z [jfac ] [WARN ] [a8cd25a2e7ead59b] [o.j.c.ExecutionUtils:141 ] [pool-6-thread-2 ] - Retry 30 Elapsed 14.92 secs failed: Registration with router on URL http://localhost:8046 failed with error: UNAVAILABLE: io exception. Trying again

2020-11-01T12:10:31.012Z [jfrt ] [INFO ] [85e470b0c4456062] [o.a.s.d.DbServiceImpl:126 ] [art-init ] - Database schema created

2020-11-01T12:10:31.037Z [jfrt ] [INFO ] [85e470b0c4456062] [o.a.s.d.v.DerbyValidator:26 ] [art-init ] - Validating connection collation for derby database

2020-11-01T12:10:33.439Z [jfac ] [INFO ] [a8cd25a2e7ead59b] [.AccessWithRouterRegistrar:106] [pool-6-thread-1 ] - Access Server successfully registered on Router on URL: http://localhost:8046

2020-11-01T12:10:34.012Z [jfmd ] [INFO ] [484c6400b4432601] [accessclient.go:51 ] [main ] - Cluster join: Retry 15: Service registry ping failed, will retry. Error: Error while trying to connect to local router at address ‘http://localhost:8046/access’: Failed to access :http://localhost:8046/access/api/v1/system/ping return status code : 404 [access_client]

2020-11-01T12:10:35.695Z [jfrt ] [INFO ] [85e470b0c4456062] [ritiesStorageServiceFactory:25] [art-init ] - Initializing DB-based Priorities Storage Service

2020-11-01T12:10:39.045Z [jfmd ] [INFO ] [484c6400b4432601] [accessclient.go:51 ] [main ] - Cluster join: Retry 20: Service registry ping failed, will retry. Error: Error while trying to connect to local router at address ‘http://localhost:8046/access’: Failed to access :http://localhost:8046/access/api/v1/system/ping return status code : 404 [access_client]

2020-11-01T12:10:41.514Z [jfrt ] [INFO ] [85e470b0c4456062] [actorySchedulerFactoryBean:727] [art-init ] - Starting Quartz Scheduler now

2020-11-01T12:10:41.795Z [jfrt ] [INFO ] [85e470b0c4456062] [ifactoryApplicationContext:271] [art-init ] - Artifactory context starting up 45 Spring Beans…

2020-11-01T12:10:42.051Z [jfrt ] [INFO ] [85e470b0c4456062] [c.CentralConfigServiceImpl:304] [art-init ] - Loading bootstrap configuration (artifactory home dir is /opt/jfrog/artifactory).

2020-11-01T12:10:43.314Z [jfrt ] [INFO ] [85e470b0c4456062] [c.CentralConfigServiceImpl:774] [art-init ] - No Central configuration found in the database, using default configuration.

2020-11-01T12:10:43.994Z [jfrou] [ERROR] [219095fd2ac685e7] [local_topology.go:110 ] [main ] - periodic send heartbeat failed for 4 consecutive times. Last error: failed sending heartbeat information to Access: failed closing Access grpc client: rpc error: code = Unimplemented desc = Not Found: HTTP status code 404; transport: received the unexpected content-type “text/plain; charset=utf-8”

2020-11-01T12:10:44.078Z [jfmd ] [INFO ] [484c6400b4432601] [accessclient.go:51 ] [main ] - Cluster join: Retry 25: Service registry ping failed, will retry. Error: Error while trying to connect to local router at address ‘http://localhost:8046/access’: Failed to access :http://localhost:8046/access/api/v1/system/ping return status code : 404 [access_client]

2020-11-01T12:10:44.147Z [jfrt ] [INFO ] [85e470b0c4456062] [o.a.s.a.AccessServiceImpl:408 ] [art-init ] - Initialized new service id: jfrt@01ep1vf1hbb98p1mesqr440wh0

2020-11-01T12:10:44.335Z [jfrt ] [INFO ] [85e470b0c4456062] [oryAccessClientConfigStore:592] [art-init ] - Using Access Server URL: http://localhost:8046/access source: System Config

2020-11-01T12:10:46.881Z [jfrt ] [INFO ] [85e470b0c4456062] [o.j.c.ExecutionUtils:141 ] [pool-15-thread-1 ] - Cluster join: Retry 5: Service registry ping failed, will retry. Error while trying to connect to service registry (status = 404). Please review router request log for additional information

2020-11-01T12:10:48.960Z [jfrou] [ERROR] [4ac460d7fa7c70c3] [local_topology.go:110 ] [main ] - periodic send heartbeat failed for 5 consecutive times. Last error: failed sending heartbeat information to Access: failed closing Access grpc client: rpc error: code = Unimplemented desc = Not Found: HTTP status code 404; transport: received the unexpected content-type “text/plain; charset=utf-8”

2020-11-01T12:10:49.102Z [jfmd ] [INFO ] [484c6400b4432601] [accessclient.go:51 ] [main ] - Cluster join: Retry 30: Service registry ping failed, will retry. Error: Error while trying to connect to local router at address ‘http://localhost:8046/access’: Failed to access :http://localhost:8046/access/api/v1/system/ping return status code : 404 [access_client]

2020-11-01T12:10:50.759Z [jfac ] [WARN ] [a8cd25a2e7ead59b] [o.j.c.ExecutionUtils:141 ] [pool-9-thread-2 ] - Retry 20 Elapsed 17.31 secs failed: Hard error while trying to reach peer server. Servers versions match? [localhost:8046]. Status code: UNIMPLEMENTED. HTTP status code 404

invalid content-type: text/plain; charset=utf-8

headers: Metadata(:status=404,content-type=text/plain; charset=utf-8,x-content-type-options=nosniff,content-length=19,date=Sun, 01 Nov 2020 12:10:50 GMT)

DATA-----------------------------

404 page not found

. Trying again

写回答

1回答

清风

2020-11-01

在 Docker run 之前,创建了 JFROG_HOME 这些环境变量了吗?

mkdir -p $JFROG_HOME/artifactory/var/etc/

cd $JFROG_HOME/artifactory/var/etc/

touch ./system.yaml

chown -R 1030:1030 $JFROG_HOME/artifactory/var

chmod -R 777 $JFROG_HOME/artifactory/var

然后执行:

docker run --name artifactory -v $JFROG_HOME/artifactory/var/:/var/opt/jfrog/artifactory -d -p 8081:8081 -p 8082:8082 docker.bintray.io/jfrog/artifactory-jcr:latest

   



0
0

SpringCloud+Kubernetes 微服务容器化交付实战

学习业界领先的持续交付方案

661 学习 · 109 问题

查看课程