如何调试前端服务不运行,因为无效的joinKey
这个问题
如果给出了一个无效的joinKey, Artifactory frontend将不会启动。即使在system.yaml中将记录器设置为Trace级别,它也可能不会提供任何有用的日志记录。
PS命令显示前端正在启动:Uid pid ppid c stime tty time CMD
根1 0 20:55 ?00:00:00 /bin/bash /entrypoint-unified.sh
根19 10 20:55 ?就是/usr/sbin/sshd
根3537 1 18 20:55 ?00:02:03 / opt / jfrog / artifactory / app /路由器/ bin / jf-router
根3730 10 20:55 ?00:00:06 / opt / jfrog / / bin / jf-metadata artifactory / app /元数据
根3878 10 20:55 ?就是/ opt / jfrog / artifactory / app /事件/ bin / jf-event
根4027 10 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 .js /opt/jfrog/artifactory/app/frontend .js
根4171 10 20:55 ?就是/ opt / jfrog / artifactory / app /可观测性/ bin / jf-observability
根4323 10 20: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. log .log .log .file=/opt/jfrog/artifactory/app/artifactory/tomcat/conf/logging. sh属性-Djava.util.logging
根4497 10 20:55 ?00:00:00 tail -f /dev/null
根4899 19 0 20:56 ?00:00:00 sshd: root@pts/0
Root 4934 4899 0 20:56 pts/0 00:00:00 -bash
根8448 19 0 21:05 ?00:00:00 sshd: root@pts/1 .使用实例
Root 8492 8448 0 21:05 pts/1 00:00:00 -bash
根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-元数据
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 . xml
tcp 0 0 127.0.0.1:8047 0.0.0.0:* LISTEN 3537/jf-router . xml
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 . xml
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-party/node/bin/node /opt/jfrog/artifactory/app/frontend/bin/server/dist/bundle.js
2022-03-24T20:50:00.282Z [jffe] [ERROR] [] [] [main] - ERROR: could 't get access client instance, ERROR: [Cluster join: Failed init access client;错误:[JoinKey小于32字符]]
at Promise (/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
