为什么 Artifactory 返回 404?

为什么 Artifactory 返回 404?

我已经在 Amazon Linux 2 上安装了 Artifactory,但是当我去

http:// domain:8081/artifactory/

它只是返回

HTTP 状态 404 – 未找到

这是一个新安装,我没有更改任何配置。我仅使用提供的 RPM 安装它并将其连接到 PostgreSQL RDS 实例。

/opt/jfrog/artifactory/var/log/console.log 包含以下内容

2023-02-03T17:25:33.664Z [jfint] [INFO ] [54433008cb1b7bc1] [security_keys.go:163          ] [main                ] - Master key is missing. Pending for 115 seconds with 2m0s timeout [startup]
2023-02-03T17:25:34.094Z [jfcon] [INFO ] [25766041ca3801f3] [security_keys.go:163          ] [main                ] - Master key is missing. Pending for 115 seconds with 2m0s timeout [startup]
2023-02-03T17:25:36.687Z [jfrou] [FATAL] [695c435436df16dd] [bootstrap.go:99               ] [main                ] [] - Failed resolving master key: failed resolving 'shared.security.masterKey' key; file does not exist: /opt/jfrog/artifactory/var/etc/security/master.key
2023-02-03T17:25:37.048Z [jfmd ] [ERROR] [                ] [keys.go:23                    ] [main                ] - Failed resolving master key: failed resolving 'shared.security.masterKey' key; file does not exist: /opt/jfrog/artifactory/var/etc/security/master.key
2023-02-03T17:26:38.891Z [jffe ] [INFO ] [                ] [                              ] [main                ] - pinging artifactory attempt number 180 failed with code : ECONNREFUSED
2023-02-03T17:26:39.893Z [jffe ] [ERROR] [                ] [                              ] [main                ] - Error starting application - Error: Failed pinging artifactory for 180connect ECONNREFUSED 127.0.0.1:8046
2023-02-03T17:26:39.894Z [jffe ] [INFO ] [                ] [                              ] [main                ] - exit detected

运行systemctl artifactory status返回以下内容。

● artifactory.service - Artifactory service
   Loaded: loaded (/usr/lib/systemd/system/artifactory.service; disabled; vendor preset: disabled)
   Active: active (running) since Fri 2023-02-03 17:23:39 UTC; 54min ago
  Process: 7325 ExecStop=/opt/jfrog/artifactory/app/bin/artifactoryManage.sh stop (code=exited, status=0/SUCCESS)
  Process: 7836 ExecStart=/opt/jfrog/artifactory/app/bin/artifactoryManage.sh start (code=exited, status=0/SUCCESS)
 Main PID: 11148 (java)
   CGroup: /system.slice/artifactory.service
           ‣ 11148 /opt/jfrog/artifactory/app/third-party/java/bin/java -Djava.util.logging.config.file=/opt/jfrog/artifactory/app/artifactory/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassL...

在运行期间systemctl restart artifactory,404 确实消失并被替换ERR_EMPTY_RESPONSE,这表明它正在尝试在服务运行时执行某些操作。

我见过 ”为什么我收到 HTTP 状态 404 - 未找到?“这看起来很相似,但我看不到它提到的文件。我做错了什么?

相关内容