| Issue 1475: | Gerrit Crashes when user logs in for the first time. | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Affected Version: 2.4.2
What steps will reproduce the problem?
download gerrit version 2.4.2.
Execute the following command:
java -jar gerrit-2.4.2.war init -d .
[gerrit]
basePath = /opt/git/
canonicalWebUrl = http://example.com/gerrit
[database]
type = MYSQL
hostname = localhost
database = databsdb
username = user
port = 3306
[auth]
type = HTTP
logoutUrl = /gerrit
[sendemail]
smtpServer = localhost
[container]
user = www-data
javaHome = /usr/lib/jvm/java-6-openjdk-amd64/jre
[sshd]
listenAddress = *:29418
[httpd]
listenUrl = proxy-http://*:9091/
[cache]
directory = cache
Now deploy the war to tomcat - ensure you define a META-INF/context.html file with the relevant connection details for the MySQL database.
What is the expected output? What do you see instead?
The first time I login to a fresh Gerrit 2.4.2 installation I get the following crash - a user with admin privileges should have been created but instead the crash below happens:
java.util.NoSuchElementException
java.util.ArrayList$Itr.next(ArrayList.java:794)
com.google.gerrit.server.account.AccountManager.create(AccountManager.java:291)
com.google.gerrit.server.account.AccountManager.authenticate(AccountManager.java:122)
com.google.gerrit.httpd.auth.container.HttpLoginServlet.doGet(HttpLoginServlet.java:123)
javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263)
com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178)
com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)
com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62)
com.google.gwtexpui.server.CacheControlFilter.doFilter(CacheControlFilter.java:76)
com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
com.google.gerrit.httpd.RequestCleanupFilter.doFilter(RequestCleanupFilter.java:54)
com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:168)
com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)
com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)
Subsequent logins are fine. But the problem this crash causes is that Gerrit fails to add that first user as an administrator - leaving me with no way to administer the system - since only the first user to login is granted admin privileges.
Please provide any additional information below.
Jul 16, 2012
Project Member
#1
edwin.ke...@gmail.com
Jul 17, 2012
Thanks for your response. Your response gave me a hint. I deleted the existing All projects repository and re-installed gerrit. This time when I logged in I was presented with the registration screen and my user was granted admin privileges. I think the issue must have been caused by a directory permissions issue. Thank you very much for your help.
Jul 17, 2012
Good to hear that you were able to solve the problem.
Status:
Invalid
|
|
| ► Sign in to add a comment |