SVN repository does not startup

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Symptoms

SVN repository unable to startup.

The following appears in the atlassian-fisheye-<date>.log:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2013-08-16 11:36:41,850 WARN [qtp20978984-20503 ] / ContextHandler$Context-log - Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract void com.atlassian.fecru.gwt.admin.client.RepositoryAdminRpcService.startRepository(java.lang.String) throws com.atlassian.fecru.gwt.admin.shared.InvalidRepositoryStateException,com.atlassian.fecru.gwt.admin.shared.AuthorizationException,com.atlassian.fecru.gwt.admin.shared.OperationFailureException,com.atlassian.fecru.gwt.admin.shared.NoSuchRepositoryException' threw an unexpected exception: java.lang.NullPointerException at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:389) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:579) at com.atlassian.fecru.gwt.servlet.GwtRPCRoutingServlet.invokeRequest(GwtRPCRoutingServlet.java:73) at com.atlassian.fecru.gwt.servlet.GwtRPCRoutingServlet.processCall(GwtRPCRoutingServlet.java:51) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:755) … Caused by: java.lang.NullPointerException at com.atlassian.fisheye.svn.Svn2RepositoryEngine.getEarliestInState(Svn2RepositoryEngine.java:162) at com.atlassian.fisheye.svn.Svn2RepositoryEngine.initialiseRepositoryStatus(Svn2RepositoryEngine.java:140) at com.cenqua.fisheye.rep.RepositoryEngine.start(RepositoryEngine.java:227) at com.cenqua.fisheye.rep.RepositoryHandle.run(RepositoryHandle.java:409) at com.cenqua.fisheye.config.DefaultRepositoryManager.runRepository(DefaultRepositoryManager.java:346) at com.atlassian.fisheye.spi.admin.impl.DefaultRepositoryAdminService.start(DefaultRepositoryAdminService.java:1228)

Cause

Bug report FE-5370 - A spurious FileLockException is thrown when a repository throws an exception on startup

Resolution

Upgrade to Fisheye 3.7.1, 3.8.0 or later where the bug has been fixed or completely re-index the repository:

  1. Stop the repository.

  2. Backup and delete the index folder at FISHEYE_INST/var/cache/<reponame>

  3. Start the repository.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.