SVN repository does not startup

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

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:

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.

Last modified on Jan 27, 2025

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.