ARTIFACTORY:如何调试前端服务不运行,因为无效的joinKey

保罗•潘
2022-03-31十一27

这个问题

如果指定了无效的joinKey,人工前端将不会启动。即使在system.yaml中将日志记录器设置为跟踪级别,它也可能不会提供任何有用的日志记录。

PS命令显示前端正在启动:Uid pid ppid c stime tty time CMD
根1 0 0 20:55 ?00:00:00 /bin/bash /entrypoint-unified.sh
Root 19 0 20:55 ?就是/usr/sbin/sshd
根3537 1 18 20:55 ?00:02:03 / opt / jfrog / artifactory / app /路由器/ bin / jf-router
根3730 1 0 20:55 ?00:00:06 / opt / jfrog / / bin / jf-metadata artifactory / app /元数据
Root 3878 10:20 55 ?就是/ opt / jfrog / artifactory / app /事件/ bin / jf-event
Root 4027 1 0 20:55 ?00:00:04 /opt/jfrog/artifactory/app/third-party/node/bin/node /opt/jfrog/artifactory/app/frontend/bin/server/dist/startup.js /opt/jfrog/artifactory/app/frontend
Root 4171 1 0 20:55 ?就是/ opt / jfrog / artifactory / app /可观测性/ bin / jf-observability
Root 43231020:55 ?00:00:01 / opt / jfrog / artifactory / app /集成/ bin / jf-integration
Root 4496 1 38 20:55 ?[00:04:11] /opt/jfrog/artifactory/app/third-party/java/bin/java -Djava.util.logging.config.file=/opt/jfrog/artifactory/app/artifactory/tomcat/conf/logging. conf。属性-Djava.util.logging
Root 4497 1 0 20:55 ?00:00:00 tail -f /dev/null
Root 4899 19 0 20:56 ?00:00:00 sshd: root@pts/0
Root 4934 4899 0 20:56 pts/0 00:00:00 -bash
Root 8448 19 0 21:05 ?00:00:00 sshd: root@pts/1
Root 8492 8448 0 21:05 pts/1 00:00:00 -bash
Root 9153 4027 99 21:06 ?00:00:01 /opt/jfrog/artifactory/app/third-party/node/bin/node /opt/jfrog/artifactory/app/frontend/bin/server/dist/bundle.js
Root 9164 8492 0 21:06 pts/1 00:00:00 ps -ef

8070端口正在监听:tcp 0 0 127.0.0.1:8086 0.0.0.0:* LISTEN 3730/jf-metadata
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 19/sshd
tcp 0 0 127.0.0.1:8091 0.0.0.0:* LISTEN 4496/java
tcp 0 0 127.0.0.1:8061 0.0.0.0:* LISTEN 3878/jf-event
tcp 0 0 127.0.0.1:8062 0.0.0.0:* LISTEN 3878/jf-event
tcp 0 0 127.0.0.1:8036 0.0.0.0:* LISTEN 4171/jf-observabili
tcp 0 0 127.0.0.1:8071 0.0.0.0:* LISTEN 4323/jf-integration
tcp 0 0 127.0.0.1:8072 0.0.0.0:* LISTEN 4323/jf-integration
tcp 0 0 127.0.0.1:8040 0.0.0.0:* LISTEN 4496/java
tcp 0 0 0.0.0.0:8045 0.0.0.0:* LISTEN 4496/java
tcp 0 0 127.0.0.1:8046 0.0.0.0:* LISTEN 3537/jf-router
tcp 0 0 127.0.0.1:8047 0.0.0.0:* LISTEN 3537/jf-router
tcp 0 0 127.0.0.1:8015 0.0.0.0:* LISTEN 4496/java
tcp 0 0 127.0.0.1:8049 0.0.0.0:* LISTEN 3537/jf-router
tcp 0 0 0.0.0.0:8081 0.0.0.0:* LISTEN 4496/java
tcp 0 0 127.0.0.11:44211 0.0.0.0:* LISTEN -
tcp6 0 0:::22:::* LISTEN 19/sshd
tcp6 0 0:::8082:::* LISTEN 3537/jf-router

解决方案

尝试运行以下命令以调试模式启动前端服务,它将提供更多信息:DEBUG=true /opt/jfrog/artifactory/app/third /node/bin/node /opt/jfrog/artifactory/app/frontend/bin/server/dist/bundle.js

[jffe] [] [main] - ERROR: cannot get access client instance, ERROR: [Cluster join: Failed init access client;错误:[JoinKey小于32个字符]]
(/opt/jfrog/artifactory/app/frontend/bin/server/dist/webpack:/src/Access/AccessAdminClient.ts:37:18)
在过程。_tickCallback(内部/过程/ next_tick.js 68:7):

在这种情况下,要修复joinKey问题,只需确保它是16位(32个字符长)或32位(64个字符长)
Openssl rand -hex 16