org.eclipse.jgit.api.errors.JGitInternalException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Hi all, after creating a new project today and tried to run first time i noticed that the initial checkout isn't working anymore. Older projects which were already built are working correctly. Does anybody have an advice why the initial git clone command isn't working anymore? Here is the stacktrace from jenkins server: Started on Sep 3, 2015 11:06:22 AM Creating git repository in C:\Jenkins\caches\git-02c0446b939beedabfea0b1e39a6132f FATAL: Unknown repository format org.eclipse.jgit.api.errors.JGitInternalException: Unknown repository format at org.eclipse.jgit.api.InitCommand.call(InitCommand.java:118) at org.jenkinsci.plugins.gitclient.JGitAPIImpl.doInit(JGitAPIImpl.java:216) at org.jenkinsci.plugins.gitclient.JGitAPIImpl.access$600(JGitAPIImpl.java:133) at org.jenkinsci.plugins.gitclient.JGitAPIImpl$7.execute(JGitAPIImpl.java:1556) at org.jenkinsci.plugins.gitclient.JGitAPIImpl.init(JGitAPIImpl.java:211) at jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:164) at jenkins.scm.api.SCMSource.fetch(SCMSource.java:141) at jenkins.scm.api.SCMSource.retrieve(SCMSource.java:180) at jenkins.scm.api.SCMSource.fetch(SCMSource.java:167) at com.github.mjdetullio.jenkins.plugins.multibranch.AbstractMultiBranchProject._syncBranches(AbstractMultiBranchProject.java:981) at com.github.mjdetullio.jenkins.plugins.multibranch.AbstractMultiBranchProject.syncBranches(AbstractMultiBranchProject.java:948) at com.github.mjdetullio.jenkins.plugins.multibranch.SyncBranchesTrigger.run(SyncBranchesTrigger.java:102) at com.github.mjdetullio.jenkins.plugins.multibranch.SyncBranchesTrigger.checkTriggers(SyncBranchesTrigger.java:255) at com.github.mjdetullio.jenkins.plugins.multibranch.SyncBranchesTrigger$Cron.doRun(SyncBranchesTrigger.java:230) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:51) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.io.IOException: Unknown repository format at org.eclipse.jgit.internal.storage.file.FileRepository.loadRepoConfig(FileRepository.java:249) at org.eclipse.jgit.internal.storage.file.FileRepository.<init>(FileRepository.java:192) at org.eclipse.jgit.lib.BaseRepositoryBuilder.build(BaseRepositoryBuilder.java:577) at org.eclipse.jgit.api.InitCommand.call(InitCommand.java:113) ... 21 more Caused by: org.eclipse.jgit.errors.ConfigInvalidException: Cannot read file C:\Jenkins\caches\git-02c0446b939beedabfea0b1e39a6132f\.git\config at org.eclipse.jgit.storage.file.FileBasedConfig.load(FileBasedConfig.java:173) at org.eclipse.jgit.internal.storage.file.FileRepository.loadRepoConfig(FileRepository.java:247) ... 24 more Caused by: org.eclipse.jgit.errors.ConfigInvalidException: Invalid line in config file at org.eclipse.jgit.lib.Config.fromText(Config.java:1087) at org.eclipse.jgit.storage.file.FileBasedConfig.load(FileBasedConfig.java:161) ... 25 more Done. Took 0 ms regards pix_oli
    via by Oliver Hepperle,
  • Hi all, after creating a new project today and tried to run first time i noticed that the initial checkout isn't working anymore. Older projects which were already built are working correctly. Does anybody have an advice why the initial git clone command isn't working anymore? Here is the stacktrace from jenkins server: Started on Sep 3, 2015 11:06:22 AM Creating git repository in C:\Jenkins\caches\git-02c0446b939beedabfea0b1e39a6132f FATAL: Unknown repository format org.eclipse.jgit.api.errors.JGitInternalException: Unknown repository format at org.eclipse.jgit.api.InitCommand.call(InitCommand.java:118) at org.jenkinsci.plugins.gitclient.JGitAPIImpl.doInit(JGitAPIImpl.java:216) at org.jenkinsci.plugins.gitclient.JGitAPIImpl.access$600(JGitAPIImpl.java:133) at org.jenkinsci.plugins.gitclient.JGitAPIImpl$7.execute(JGitAPIImpl.java:1556) at org.jenkinsci.plugins.gitclient.JGitAPIImpl.init(JGitAPIImpl.java:211) at jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:164) at jenkins.scm.api.SCMSource.fetch(SCMSource.java:141) at jenkins.scm.api.SCMSource.retrieve(SCMSource.java:180) at jenkins.scm.api.SCMSource.fetch(SCMSource.java:167) at com.github.mjdetullio.jenkins.plugins.multibranch.AbstractMultiBranchProject._syncBranches(AbstractMultiBranchProject.java:981) at com.github.mjdetullio.jenkins.plugins.multibranch.AbstractMultiBranchProject.syncBranches(AbstractMultiBranchProject.java:948) at com.github.mjdetullio.jenkins.plugins.multibranch.SyncBranchesTrigger.run(SyncBranchesTrigger.java:102) at com.github.mjdetullio.jenkins.plugins.multibranch.SyncBranchesTrigger.checkTriggers(SyncBranchesTrigger.java:255) at com.github.mjdetullio.jenkins.plugins.multibranch.SyncBranchesTrigger$Cron.doRun(SyncBranchesTrigger.java:230) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:51) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.io.IOException: Unknown repository format at org.eclipse.jgit.internal.storage.file.FileRepository.loadRepoConfig(FileRepository.java:249) at org.eclipse.jgit.internal.storage.file.FileRepository.<init>(FileRepository.java:192) at org.eclipse.jgit.lib.BaseRepositoryBuilder.build(BaseRepositoryBuilder.java:577) at org.eclipse.jgit.api.InitCommand.call(InitCommand.java:113) ... 21 more Caused by: org.eclipse.jgit.errors.ConfigInvalidException: Cannot read file C:\Jenkins\caches\git-02c0446b939beedabfea0b1e39a6132f\.git\config at org.eclipse.jgit.storage.file.FileBasedConfig.load(FileBasedConfig.java:173) at org.eclipse.jgit.internal.storage.file.FileRepository.loadRepoConfig(FileRepository.java:247) ... 24 more Caused by: org.eclipse.jgit.errors.ConfigInvalidException: Invalid line in config file at org.eclipse.jgit.lib.Config.fromText(Config.java:1087) at org.eclipse.jgit.storage.file.FileBasedConfig.load(FileBasedConfig.java:161) ... 25 more Done. Took 0 ms regards pix_oli
    via by Oliver Hepperle,
  • Error on submodule checkout from GIT
    via by Unknown author,
    • org.eclipse.jgit.api.errors.JGitInternalException: Unknown repository format at org.eclipse.jgit.api.InitCommand.call(InitCommand.java:118) at org.jenkinsci.plugins.gitclient.JGitAPIImpl.doInit(JGitAPIImpl.java:216) at org.jenkinsci.plugins.gitclient.JGitAPIImpl.access$600(JGitAPIImpl.java:133) at org.jenkinsci.plugins.gitclient.JGitAPIImpl$7.execute(JGitAPIImpl.java:1556) at org.jenkinsci.plugins.gitclient.JGitAPIImpl.init(JGitAPIImpl.java:211) at jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:164) at jenkins.scm.api.SCMSource.fetch(SCMSource.java:141) at jenkins.scm.api.SCMSource.retrieve(SCMSource.java:180) at jenkins.scm.api.SCMSource.fetch(SCMSource.java:167) at com.github.mjdetullio.jenkins.plugins.multibranch.AbstractMultiBranchProject._syncBranches(AbstractMultiBranchProject.java:981) at com.github.mjdetullio.jenkins.plugins.multibranch.AbstractMultiBranchProject.syncBranches(AbstractMultiBranchProject.java:948) at com.github.mjdetullio.jenkins.plugins.multibranch.SyncBranchesTrigger.run(SyncBranchesTrigger.java:102) at com.github.mjdetullio.jenkins.plugins.multibranch.SyncBranchesTrigger.checkTriggers(SyncBranchesTrigger.java:255) at com.github.mjdetullio.jenkins.plugins.multibranch.SyncBranchesTrigger$Cron.doRun(SyncBranchesTrigger.java:230) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:51) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.io.IOException: Unknown repository format at org.eclipse.jgit.internal.storage.file.FileRepository.loadRepoConfig(FileRepository.java:249) at org.eclipse.jgit.internal.storage.file.FileRepository.<init>(FileRepository.java:192) at org.eclipse.jgit.lib.BaseRepositoryBuilder.build(BaseRepositoryBuilder.java:577) at org.eclipse.jgit.api.InitCommand.call(InitCommand.java:113) ... 21 more Caused by: org.eclipse.jgit.errors.ConfigInvalidException: Cannot read file C:\Jenkins\caches\git-02c0446b939beedabfea0b1e39a6132f\.git\config at org.eclipse.jgit.storage.file.FileBasedConfig.load(FileBasedConfig.java:173) at org.eclipse.jgit.internal.storage.file.FileRepository.loadRepoConfig(FileRepository.java:247) ... 24 more Caused by: org.eclipse.jgit.errors.ConfigInvalidException: Invalid line in config file at org.eclipse.jgit.lib.Config.fromText(Config.java:1087) at org.eclipse.jgit.storage.file.FileBasedConfig.load(FileBasedConfig.java:161) ... 25 more
    No Bugmate found.