The HTTP server did not provide the username in the Authorization header when it forwarded the request to Gerrit Code Review.
If the HTTP server is Apache HTTPd, check the proxy configuration includes an authorization directive with the proper location, ensuring it ends with '/':
<VirtualHost localhost:8080> ServerName localhost ProxyRequests Off ProxyVia Off ProxyPreserveHost On <Proxy *> Order deny,allow Allow from all </Proxy><Location /gerrit/login/> AuthType Basic AuthName "Gerrit Code Review" Require valid-user ... </Location>AllowEncodedSlashes On ProxyPass /gerrit/ http://.../gerrit/ nodecode </VirtualHost>
type Exception report
message Missing project All-Projects
description The server encountered an internal error that prevented it from fulfilling this request.
exception
java.lang.IllegalStateException: Missing project All-Projects com.google.gerrit.server.project.ProjectCacheImpl.getAllProjects(ProjectCacheImpl.java:101) com.google.gerrit.server.account.AccountManager.create(AccountManager.java:287) com.google.gerrit.server.account.AccountManager.authenticate(AccountManager.java:116) com.google.gerrit.httpd.auth.container.HttpLoginServlet.doGet(HttpLoginServlet.java:121) javax.servlet.http.HttpServlet.service(HttpServlet.java:620) javax.servlet.http.HttpServlet.service(HttpServlet.java:727) com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:278) com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:268) com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:180) com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:93) com.google.gwtexpui.server.CacheControlFilter.doFilter(CacheControlFilter.java:70) com.google.gerrit.httpd.RunAsFilter.doFilter(RunAsFilter.java:113) com.google.gerrit.httpd.AllRequestFilter$FilterProxy$1.doFilter(AllRequestFilter.java:64) com.google.gerrit.httpd.AllRequestFilter$FilterProxy.doFilter(AllRequestFilter.java:57) com.google.gerrit.httpd.RequestContextFilter.doFilter(RequestContextFilter.java:75) com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120) com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:132) com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:129) com.google.inject.servlet.GuiceFilter$Context.call(GuiceFilter.java:206) com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:129) com.google.gerrit.httpd.WebAppInitializer.doFilter(WebAppInitializer.java:109)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.54 logs.
Did you check ‘All-Projects.git’ exists or not under ‘<site>/git/’ ?
If it exists
How about try :
cd path/to/tomcat/webapps
//Clean any package and file there
ln –s <Gerrit site>/bin/gerrit.war ./ROOT.war
//restart tomcat
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
java -jar gerrit.war init -d site_path