HTTP 상태 404 - 찾을 수 없음이 나타나는 이유는 무엇입니까?

HTTP 상태 404 - 찾을 수 없음이 나타나는 이유는 무엇입니까?

저는 Artifactory를 처음 사용합니다. 방금 RHEL 7을 사용하여 웹 서버에서 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.

이 단계를 완료하면 이제 이슈 홈 페이지가 표시됩니다.

관련 정보