Apache archiva returns http error 503

坚强是说给别人听的谎言 提交于 2019-12-11 06:38:49

问题


I am using apache Archiva v. 2.2.0 under Windows Server 2012 R2, Java version 1.8.0_60 inside VirtualBox. It used to work for quite a long time before Windows autoupdate.

After Windows autoupdate I am getting an error message when going to archiva url: HTTP ERROR: 503 . Problem accessing /. Reason: Service Unavailable, Powered by Jetty://.

The Apache Archiva service is running. No error logs are generated. Restarting or even reinstalling of the service has no impact.

After rolling back of Windows update I restore the normal operation of Archiva, but mysteriously, just once, i.e. stopping and restarting of Archiva will cause the same HTTP ERROR 503.

The log file do not indicate any problem or error cuase.

Thank you for any tips.


回答1:


I faced a similar issue. I restarted archiva using ./path/to/archiva/apache-archiva-2.2.0/bin/archiva console

for you, since you are using windows .\bin\archiva.bat console




回答2:


In my case I've found out that the jetty configuration file jetty.xml in ARCHIVA_BASE\conf got corrupted.

Solution:

  1. Stop archiva service
  2. Replace jetty.xml with either a fresh one or from last known working backup. A fresh copy of jetty.xml can be downloaded from archiva web site as an apache-archiva-2.2.0-bin.zip. File location within the zip file is apache-archiva-2.2.1\conf\jetty.xml
  3. Start archiva service


来源:https://stackoverflow.com/questions/38828454/apache-archiva-returns-http-error-503

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!