Fisheye throws "Exception getting annotation" when indexing a Perforce repository

Still need help?

The Atlassian Community is here for you.

Ask the community

Problem

Fisheye does not complete the indexing of a Perforce repository, and the content of the files is not searchable in Fisheye.

When performing the following action:

  • retrieving the annotations for a file

 

The following appears in the atlassian-fisheye-YYYY-MM-DD.log:

WARN  [IncrPing1 repository_name ] fisheye RepositoryConfig-isOfIndexableSize - [repository_name] pathtofile/filename exceeds indexing size limit (10M, limit is 5M).  The contents of this file won't be searchable in FishEye.
ERROR [IncrPing1 repository_name ] fisheye P4Cache-getBlameFallback - Exception getting annotation for pathtofile/filename@revision
com.cenqua.fisheye.perforce.client.P4ClientException: com.atlassian.utils.process.ProcessException:Non-zero exit code: 1 | File size exceeds dm.annotate.maxsize (10485760 bytes).
	at com.cenqua.fisheye.perforce.client.P4Client.getBlame(P4Client.java:510) [fisheye.jar:?]
	at com.cenqua.fisheye.perforce.P4Cache.getBlameFallback(P4Cache.java:366) [fisheye.jar:?]
	at com.cenqua.fisheye.rep.BaseBlameAndLinecountCalculator.calcBlameFromScm(BaseBlameAndLinecountCalculator.java:392) [fisheye.jar:?]
...
WARN  [IncrPing1 repository_name ] fisheye BaseRepositoryScanner-handleSlurpException - Problem processing revisions from repo repository_name due to class com.cenqua.fisheye.rep.DbException - java.io.IOException: Exception getting annotation blame: com.atlassian.utils.process.ProcessException:Non-zero exit code: 1 | File size exceeds dm.annotate.maxsize (10485760 bytes).   
com.cenqua.fisheye.rep.DbException: java.io.IOException: Exception getting annotation blame: com.atlassian.utils.process.ProcessException:Non-zero exit code: 1 | File size exceeds dm.annotate.maxsize (10485760 bytes).
	at com.cenqua.fisheye.rep.BaseBlameAndLinecountCalculator.calcBlameFromScm(BaseBlameAndLinecountCalculator.java:445) [fisheye.jar:?]
	at com.cenqua.fisheye.rep.BaseBlameAndLinecountCalculator.calcBlame(BaseBlameAndLinecountCalculator.java:281) [fisheye.jar:?]
	at com.cenqua.fisheye.rep.BaseBlameAndLinecountCalculator.calculateRevisionData(BaseBlameAndLinecountCalculator.java:177) [fisheye.jar:?]
...
Caused by: java.io.IOException: Exception getting annotation blame: com.atlassian.utils.process.ProcessException:Non-zero exit code: 1 | File size exceeds dm.annotate.maxsize (10485760 bytes).
	at com.cenqua.fisheye.perforce.P4Cache.getBlameFallback(P4Cache.java:370) [fisheye.jar:?]
	at com.cenqua.fisheye.rep.BaseBlameAndLinecountCalculator.calcBlameFromScm(BaseBlameAndLinecountCalculator.java:392) [fisheye.jar:?]

Cause

The Perforce p4 annotate command fails due to a file exceeding the dm.annotate.size setting.

Resolution

  • Set or Increase the value of the dm.annotate.maxsize to be higher than the limit reported in the log file. More information regarding this setting are available on the Perforce annotate page.
Last modified on Jul 31, 2018

Was this helpful?

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