Uploaded image for project: 'FishEye'
  1. FishEye
  2. FE-5148

indexing empty git/hg repositories results in logged warnings and fake errors/warnings in UI

    • Icon: Suggestion Suggestion
    • Resolution: Fixed
    • 3.5.0
    • None
    • None
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      When indexing empty git repository warnings like this are logged:

      [2014-04-10 01:34:20,744] WARN  fisheye
      Empty remote heads list returned, which makes no sense. Skipping this fetch.
      

      This is perfectly valid scenario when someone creates an empty repo in stash or bitbucket and starts indexing it before first changes are pushed. Especially with stash integration introduced in 3.4.

      Also, see the comment below, indexing empty hg repository results in red error logged in the Admin / Repositories screen:

      Repository index failed due to error com.cenqua.fisheye.rep.RepositoryClientException: com.atlassian.fisheye.dvcs.handler.DvcsProcessException: Error while communicating with VCS: com.atlassian.fisheye.dvcs.handler.DvcsProcessException: Error while communicating with VCS: com.atlassian.utils.process.ProcessException: While executing: "hg --config extensions.felog=/Users/piotrs/dev/fe/output/dist/python/hg/hgfelog/hgfelog.py --config ui.verbose=false felog 0000000000000000000000000000000000000000 -p -m" in [/Users/piotrs/dev/fe/output/dist_inst/var/cache/bb-empty-hg/clone] com.atlassian.utils.process.ProcessException: java.lang.RuntimeException: Match failed: string [R:-1], pattern [R:([0-9]*)] java.lang.RuntimeException: Match failed: string [R:-1], pattern [R:([0-9]*)]
      

      Also noticed on the search /qsearch page I get the following message:

      Results might be incomplete
      The following repository is still indexing, and might therefore deliver incomplete results:
      DOX-virtual
      

      for repositories which are empty

            [FE-5148] indexing empty git/hg repositories results in logged warnings and fake errors/warnings in UI

            Piotr Swiecicki added a comment - - edited

            Few more messages found (used empty stash repo (git), empty bb repo (git and hg) and empty local svn repo):

            2014-04-10 21:20:48,251 INFO  [InitPing1 stash-empty-test ] fisheye LoggingProcessMonitor-onAfterFinished - Exception executing command "git ls-tree HEAD -- .mailmap" Non-zero exit code: 128
            com.atlassian.utils.process.ProcessException: Non-zero exit code: 128                                                                                                                                                                         Error executing command "git ls-tree HEAD -- .mailmap": fatal: Not a valid object name HEAD
            
            2014-04-10 21:20:48,252 WARN  [InitPing1 stash-empty-test ] fisheye GitScanner-updateMailMap - Could not create .mailmap file for git repository 'stash-empty-test'. Committers will not be mapped.                                           com.atlassian.fisheye.dvcs.handler.DvcsProcessException: Error while communicating with VCS: fatal: Not a valid object name HEAD
                                                                                                                                                                                                                                                                  at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(DvcsContext.java:221)
                    at com.atlassian.fisheye.git.GitScanner.updateMailMap(GitScanner.java:303)                                                                                                                                                                    at com.atlassian.fisheye.git.GitScanner.performClone(GitScanner.java:266)
                    at com.atlassian.fisheye.dvcs.DvcsScanner.cloneRepo(DvcsScanner.java:161)
                    at com.atlassian.fisheye.dvcs.DvcsScanner.updateClone(DvcsScanner.java:137)
                    at com.atlassian.fisheye.dvcs.DvcsScanner.updateLocalRepoCache(DvcsScanner.java:131)
                    at com.cenqua.fisheye.rep.BaseRepositoryScanner.ping(BaseRepositoryScanner.java:70)
                    at com.cenqua.fisheye.rep.BaseRepositoryEngine.doSlurp(BaseRepositoryEngine.java:86)
                    at com.cenqua.fisheye.rep.RepositoryEngine.slurp(RepositoryEngine.java:409)
                    at com.cenqua.fisheye.rep.ping.IndexingPingRequest.doRequest(IndexingPingRequest.java:26)
                    at com.cenqua.fisheye.rep.ping.IncrementalPingRequest.doRequest(IncrementalPingRequest.java:30)                                                                                                                                               at com.cenqua.fisheye.rep.ping.PingRequest$1.run(PingRequest.java:55)
                    at com.cenqua.fisheye.util.NamedExecution.run(NamedExecution.java:23)                                                                                                                                                                         at com.cenqua.fisheye.rep.ping.PingRequest.process(PingRequest.java:52)
                    at com.cenqua.fisheye.rep.RepositoryHandle.processPingRequests(RepositoryHandle.java:220)
                    at com.cenqua.fisheye.rep.RepositoryHandle.access$100(RepositoryHandle.java:56)
                    at com.cenqua.fisheye.rep.RepositoryHandle$2.run(RepositoryHandle.java:176)
                    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
                    at java.lang.Thread.run(Thread.java:724)
            Caused by: com.atlassian.utils.process.ProcessException: While executing: "git ls-tree HEAD -- .mailmap" in [/Users/piotrs/dev/fe/output/dist_inst/var/cache/stash-empty-test/clone]
                    at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(DvcsContext.java:271)
                    at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(DvcsContext.java:261)
                    at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(DvcsContext.java:219)                                                                                                                                                         ... 19 more
            Caused by: com.atlassian.utils.process.ProcessException: Non-zero exit code: 128
                    at com.atlassian.utils.process.PluggableProcessHandler.complete(PluggableProcessHandler.java:69)
                    at com.atlassian.utils.process.ExternalProcessImpl.wrapUpProcess(ExternalProcessImpl.java:509)
                    at com.atlassian.utils.process.ExternalProcessImpl.finish(ExternalProcessImpl.java:423)
                    at com.atlassian.utils.process.ExternalProcessImpl.execute(ExternalProcessImpl.java:378)
                    at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(DvcsContext.java:268)
                    ... 21 more
            ....
            2014-04-10 21:22:06,915 INFO  [InitPing3 bb-empty-hg ] fisheye LoggingProcessMonitor-onAfterFinished - Exception executing command "hg --config extensions.felog=/Users/piotrs/dev/fe/output/dist/python/hg/hgfelog/hgfelog.py --config ui.verbose=false felog 0000000000000000000000000000000000000000 -p -m" java.lang.RuntimeException: Match failed: string [R:-1], pattern [R:([0-9]*)]
            com.atlassian.utils.process.ProcessException: java.lang.RuntimeException: Match failed: string [R:-1], pattern [R:([0-9]*)]
            
            2014-04-10 21:22:06,916 ERROR [InitPing3 bb-empty-hg ] fisheye BaseRepositoryScanner-handleSlurpException - Problem processing revisions from repo bb-empty-hg due to class com.cenqua.fisheye.rep.RepositoryClientException - com.atlassian.fisheye.dvcs.handler.DvcsProcessException: Error while communicating with VCS:
            com.cenqua.fisheye.rep.RepositoryClientException: com.atlassian.fisheye.dvcs.handler.DvcsProcessException: Error while communicating with VCS:
                    at com.atlassian.fisheye.dvcs.DvcsScanner.processRevisions(DvcsScanner.java:315)
                    at com.cenqua.fisheye.rep.LifecycleRepositoryScanner.slurpRepository(LifecycleRepositoryScanner.java:78)
                    at com.cenqua.fisheye.rep.LifecycleRepositoryScanner.doSlurpTransaction(LifecycleRepositoryScanner.java:47)
                    at com.cenqua.fisheye.rep.BaseRepositoryScanner.ping(BaseRepositoryScanner.java:74)
                    at com.cenqua.fisheye.rep.BaseRepositoryEngine.doSlurp(BaseRepositoryEngine.java:86)                                                                                                                                                                                                  at com.cenqua.fisheye.rep.RepositoryEngine.slurp(RepositoryEngine.java:409)
                    at com.cenqua.fisheye.rep.ping.IndexingPingRequest.doRequest(IndexingPingRequest.java:26)
                    at com.cenqua.fisheye.rep.ping.IncrementalPingRequest.doRequest(IncrementalPingRequest.java:30)
                    at com.cenqua.fisheye.rep.ping.PingRequest$1.run(PingRequest.java:55)
                    at com.cenqua.fisheye.util.NamedExecution.run(NamedExecution.java:23)
                    at com.cenqua.fisheye.rep.ping.PingRequest.process(PingRequest.java:52)
                    at com.cenqua.fisheye.rep.RepositoryHandle.processPingRequests(RepositoryHandle.java:220)
                    at com.cenqua.fisheye.rep.RepositoryHandle.access$100(RepositoryHandle.java:56)
                    at com.cenqua.fisheye.rep.RepositoryHandle$2.run(RepositoryHandle.java:176)
                    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
                    at java.lang.Thread.run(Thread.java:724)
            Caused by: com.atlassian.fisheye.dvcs.handler.DvcsProcessException: Error while communicating with VCS:
                    at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(DvcsContext.java:221)
                    at com.atlassian.fisheye.hg.HgScanner.processChange(HgScanner.java:229)
                    at com.atlassian.fisheye.hg.HgScanner.slurpCommits(HgScanner.java:218)
                    at com.atlassian.fisheye.dvcs.DvcsScanner.processBranch(DvcsScanner.java:429)
                    at com.atlassian.fisheye.hg.HgScanner.processBranch(HgScanner.java:311)
                    at com.atlassian.fisheye.dvcs.DvcsScanner.processRevisions(DvcsScanner.java:253)
                    ... 16 more
            Caused by: com.atlassian.utils.process.ProcessException: While executing: "hg --config extensions.felog=/Users/piotrs/dev/fe/output/dist/python/hg/hgfelog/hgfelog.py --config ui.verbose=false felog 0000000000000000000000000000000000000000 -p -m" in [/Users/piotrs/dev/fe/output/dist_inst/var/cache/bb-empty-hg/clone]
                    at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(DvcsContext.java:271)
                    at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(DvcsContext.java:261)
                    at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(DvcsContext.java:219)
                    ... 21 more
            Caused by: com.atlassian.utils.process.ProcessException: java.lang.RuntimeException: Match failed: string [R:-1], pattern [R:([0-9]*)]
                    at com.atlassian.utils.process.ExternalProcessImpl.handleHandlerError(ExternalProcessImpl.java:273)
                    at com.atlassian.utils.process.ExternalProcessImpl.access$300(ExternalProcessImpl.java:18)
                    at com.atlassian.utils.process.ExternalProcessImpl$3.doTask(ExternalProcessImpl.java:317)
                    at com.atlassian.utils.process.LatchedRunnable.run(LatchedRunnable.java:36)
                    ... 3 more
            Caused by: java.lang.RuntimeException: Match failed: string [R:-1], pattern [R:([0-9]*)]
                    at com.atlassian.fisheye.hg.client.HgChangeParser.processLine(HgChangeParser.java:247)
                    at com.atlassian.utils.process.LineOutputHandler.process(LineOutputHandler.java:70)
                    at com.atlassian.utils.process.LineOutputHandler.process(LineOutputHandler.java:33)
                    at com.atlassian.fisheye.dvcs.client.DvcsLineOutputHandler.process(DvcsLineOutputHandler.java:61)
                    at com.atlassian.utils.process.PluggableProcessHandler.processOutput(PluggableProcessHandler.java:127)
                    at com.atlassian.utils.process.ExternalProcessImpl$3.doTask(ExternalProcessImpl.java:315)
                    ... 4 more
            

            Piotr Swiecicki added a comment - - edited Few more messages found (used empty stash repo (git), empty bb repo (git and hg) and empty local svn repo): 2014-04-10 21:20:48,251 INFO [InitPing1 stash-empty-test ] fisheye LoggingProcessMonitor-onAfterFinished - Exception executing command "git ls-tree HEAD -- .mailmap" Non-zero exit code: 128 com.atlassian.utils.process.ProcessException: Non-zero exit code: 128 Error executing command "git ls-tree HEAD -- .mailmap": fatal: Not a valid object name HEAD 2014-04-10 21:20:48,252 WARN [InitPing1 stash-empty-test ] fisheye GitScanner-updateMailMap - Could not create .mailmap file for git repository 'stash-empty-test'. Committers will not be mapped. com.atlassian.fisheye.dvcs.handler.DvcsProcessException: Error while communicating with VCS: fatal: Not a valid object name HEAD at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(DvcsContext.java:221) at com.atlassian.fisheye.git.GitScanner.updateMailMap(GitScanner.java:303) at com.atlassian.fisheye.git.GitScanner.performClone(GitScanner.java:266) at com.atlassian.fisheye.dvcs.DvcsScanner.cloneRepo(DvcsScanner.java:161) at com.atlassian.fisheye.dvcs.DvcsScanner.updateClone(DvcsScanner.java:137) at com.atlassian.fisheye.dvcs.DvcsScanner.updateLocalRepoCache(DvcsScanner.java:131) at com.cenqua.fisheye.rep.BaseRepositoryScanner.ping(BaseRepositoryScanner.java:70) at com.cenqua.fisheye.rep.BaseRepositoryEngine.doSlurp(BaseRepositoryEngine.java:86) at com.cenqua.fisheye.rep.RepositoryEngine.slurp(RepositoryEngine.java:409) at com.cenqua.fisheye.rep.ping.IndexingPingRequest.doRequest(IndexingPingRequest.java:26) at com.cenqua.fisheye.rep.ping.IncrementalPingRequest.doRequest(IncrementalPingRequest.java:30) at com.cenqua.fisheye.rep.ping.PingRequest$1.run(PingRequest.java:55) at com.cenqua.fisheye.util.NamedExecution.run(NamedExecution.java:23) at com.cenqua.fisheye.rep.ping.PingRequest.process(PingRequest.java:52) at com.cenqua.fisheye.rep.RepositoryHandle.processPingRequests(RepositoryHandle.java:220) at com.cenqua.fisheye.rep.RepositoryHandle.access$100(RepositoryHandle.java:56) at com.cenqua.fisheye.rep.RepositoryHandle$2.run(RepositoryHandle.java:176) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Caused by: com.atlassian.utils.process.ProcessException: While executing: "git ls-tree HEAD -- .mailmap" in [/Users/piotrs/dev/fe/output/dist_inst/var/cache/stash-empty-test/clone] at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(DvcsContext.java:271) at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(DvcsContext.java:261) at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(DvcsContext.java:219) ... 19 more Caused by: com.atlassian.utils.process.ProcessException: Non-zero exit code: 128 at com.atlassian.utils.process.PluggableProcessHandler.complete(PluggableProcessHandler.java:69) at com.atlassian.utils.process.ExternalProcessImpl.wrapUpProcess(ExternalProcessImpl.java:509) at com.atlassian.utils.process.ExternalProcessImpl.finish(ExternalProcessImpl.java:423) at com.atlassian.utils.process.ExternalProcessImpl.execute(ExternalProcessImpl.java:378) at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(DvcsContext.java:268) ... 21 more .... 2014-04-10 21:22:06,915 INFO [InitPing3 bb-empty-hg ] fisheye LoggingProcessMonitor-onAfterFinished - Exception executing command "hg --config extensions.felog=/Users/piotrs/dev/fe/output/dist/python/hg/hgfelog/hgfelog.py --config ui.verbose=false felog 0000000000000000000000000000000000000000 -p -m" java.lang.RuntimeException: Match failed: string [R:-1], pattern [R:([0-9]*)] com.atlassian.utils.process.ProcessException: java.lang.RuntimeException: Match failed: string [R:-1], pattern [R:([0-9]*)] 2014-04-10 21:22:06,916 ERROR [InitPing3 bb-empty-hg ] fisheye BaseRepositoryScanner-handleSlurpException - Problem processing revisions from repo bb-empty-hg due to class com.cenqua.fisheye.rep.RepositoryClientException - com.atlassian.fisheye.dvcs.handler.DvcsProcessException: Error while communicating with VCS: com.cenqua.fisheye.rep.RepositoryClientException: com.atlassian.fisheye.dvcs.handler.DvcsProcessException: Error while communicating with VCS: at com.atlassian.fisheye.dvcs.DvcsScanner.processRevisions(DvcsScanner.java:315) at com.cenqua.fisheye.rep.LifecycleRepositoryScanner.slurpRepository(LifecycleRepositoryScanner.java:78) at com.cenqua.fisheye.rep.LifecycleRepositoryScanner.doSlurpTransaction(LifecycleRepositoryScanner.java:47) at com.cenqua.fisheye.rep.BaseRepositoryScanner.ping(BaseRepositoryScanner.java:74) at com.cenqua.fisheye.rep.BaseRepositoryEngine.doSlurp(BaseRepositoryEngine.java:86) at com.cenqua.fisheye.rep.RepositoryEngine.slurp(RepositoryEngine.java:409) at com.cenqua.fisheye.rep.ping.IndexingPingRequest.doRequest(IndexingPingRequest.java:26) at com.cenqua.fisheye.rep.ping.IncrementalPingRequest.doRequest(IncrementalPingRequest.java:30) at com.cenqua.fisheye.rep.ping.PingRequest$1.run(PingRequest.java:55) at com.cenqua.fisheye.util.NamedExecution.run(NamedExecution.java:23) at com.cenqua.fisheye.rep.ping.PingRequest.process(PingRequest.java:52) at com.cenqua.fisheye.rep.RepositoryHandle.processPingRequests(RepositoryHandle.java:220) at com.cenqua.fisheye.rep.RepositoryHandle.access$100(RepositoryHandle.java:56) at com.cenqua.fisheye.rep.RepositoryHandle$2.run(RepositoryHandle.java:176) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Caused by: com.atlassian.fisheye.dvcs.handler.DvcsProcessException: Error while communicating with VCS: at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(DvcsContext.java:221) at com.atlassian.fisheye.hg.HgScanner.processChange(HgScanner.java:229) at com.atlassian.fisheye.hg.HgScanner.slurpCommits(HgScanner.java:218) at com.atlassian.fisheye.dvcs.DvcsScanner.processBranch(DvcsScanner.java:429) at com.atlassian.fisheye.hg.HgScanner.processBranch(HgScanner.java:311) at com.atlassian.fisheye.dvcs.DvcsScanner.processRevisions(DvcsScanner.java:253) ... 16 more Caused by: com.atlassian.utils.process.ProcessException: While executing: "hg --config extensions.felog=/Users/piotrs/dev/fe/output/dist/python/hg/hgfelog/hgfelog.py --config ui.verbose=false felog 0000000000000000000000000000000000000000 -p -m" in [/Users/piotrs/dev/fe/output/dist_inst/var/cache/bb-empty-hg/clone] at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(DvcsContext.java:271) at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(DvcsContext.java:261) at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(DvcsContext.java:219) ... 21 more Caused by: com.atlassian.utils.process.ProcessException: java.lang.RuntimeException: Match failed: string [R:-1], pattern [R:([0-9]*)] at com.atlassian.utils.process.ExternalProcessImpl.handleHandlerError(ExternalProcessImpl.java:273) at com.atlassian.utils.process.ExternalProcessImpl.access$300(ExternalProcessImpl.java:18) at com.atlassian.utils.process.ExternalProcessImpl$3.doTask(ExternalProcessImpl.java:317) at com.atlassian.utils.process.LatchedRunnable.run(LatchedRunnable.java:36) ... 3 more Caused by: java.lang.RuntimeException: Match failed: string [R:-1], pattern [R:([0-9]*)] at com.atlassian.fisheye.hg.client.HgChangeParser.processLine(HgChangeParser.java:247) at com.atlassian.utils.process.LineOutputHandler.process(LineOutputHandler.java:70) at com.atlassian.utils.process.LineOutputHandler.process(LineOutputHandler.java:33) at com.atlassian.fisheye.dvcs.client.DvcsLineOutputHandler.process(DvcsLineOutputHandler.java:61) at com.atlassian.utils.process.PluggableProcessHandler.processOutput(PluggableProcessHandler.java:127) at com.atlassian.utils.process.ExternalProcessImpl$3.doTask(ExternalProcessImpl.java:315) ... 4 more

              Unassigned Unassigned
              pswiecicki Piotr Swiecicki
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: