HTTPステータス404 - 見つかりませんが表示されるのはなぜですか?

HTTPステータス404 - 見つかりませんが表示されるのはなぜですか?

私はArtifactoryを初めて使用します。私はRHEL 7を使ってWebサーバーでArtifactory Tomcatを起動しました。私のページにアクセスしようとすると:http://myPage:8081/artifactory/webapp/#/home、私は得る:

    HTTP Status 404 – Not Found

    Type Status Report

    Message /artifactory/webapp/

    Description The origin server did not find a current representation for 
    the target resource or is not willing to disclose that one exists.

    Apache Tomcat/8.5.32

周りを見て、一つの解決策はhttpをhttpdに変更することでしたが、成功しませんでした。私はどこに行くべきですか?どのログを確認する必要がありますか? catalina.outログを確認しましたが、私が見たのは警告だけでした。助けてくれてありがとう!追加情報を提供する必要がある場合はお知らせください。

編集する:この警告を受けた場合:

    WARNING: Failed to create work directory 
    [/opt/jfrog/artifactory/tomcat/work/Catalina/localhost/artifactory] for 
    context [/artifactory]. 

Artifactory.system.propertiesの権限を変更しましたが、問題はありません。私のログファイルには、catalinaを除いて警告やエラーは表示されません。

カタリナの日記:

    16-Sep-2019 10:52:32.221 SEVERE [localhost-startStop-1] 
    org.apache.catalina.core.StandardContext.startInternal One or more                 
    listeners failed to start. Full details will be found in the appropriate 
    container log file
    16-Sep-2019 10:52:32.222 SEVERE [localhost-startStop-1] 
    org.apache.catalina.core.StandardContext.startInternal Context 
    [/artifactory] startup failed due to previous errors
    16-Sep-2019 10:52:32.260 WARNING [localhost-startStop-1] 
    org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The 
    web application [artifactory] registered the JDBC driver 
    [org.postgresql.Driver] but failed to unregister it when the web 
    application was stopped. To prevent a memory leak, the JDBC Driver has 
    been forcibly unregistered.
    16-Sep-2019 10:52:32.265 WARNING [localhost-startStop-1] 
    org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads 
    The web application [artifactory] appears to have started a thread named 
    [Thread-4] but has failed to stop it. This is very likely to create a 
    memory leak.

私が見たものから:https://stackoverflow.com/questions/36617732/how-to-check-container-log-of-tomcat「詳細については、対応するコンテナログで確認できます。」については、localhost.logファイルを確認するように指示されています。 localhost.log ファイルを確認すると、次のエラーが表示されます。 java.lang.RuntimeException:属性ファイルアーティファクト属性(artifactory.properties)が存在しません。

ベストアンサー1

これらの警告メッセージは、実際には HTTP 状態 404 エラーとは関係ありません。

この問題を解決するには、

  1. /var/opt/jfrog/artifactory/tomcat/conf/Catalina/localhost/アクセスバックアップファイルをインポートしてaccess.xmlにコピーして、ここにあるaccess.xmlファイルを復元しました。
  2. その後、Join.keyファイルが見つからないと文句を言います。この問題を解決するには、$ARTIFACTORY_HOMEjfrog.join.key.paths変数を下部のパス変数aと一致させる必要があります/var/opt/jfrog/artifactory/etc/default

この手順を完了すると、問題のホームページが表示されます。

おすすめ記事