trouble setting up gerrit and git

41 views
Skip to first unread message

funeeldy

unread,
Mar 31, 2011, 12:01:07 PM3/31/11
to Repo and Gerrit Discussion
I gave the path to the git repositories.. and I have setup ssh access
for gerrit2 user to git. I was able to clone my repo as gerrit2.
What does this error mean??


Exception in thread "main"
org.eclipse.jgit.errors.RepositoryNotFoundException: repository not
found: Cannot open repository root
at
com.google.gerrit.server.git.LocalDiskRepositoryManager.openRepository(LocalDiskRepositoryManager.java:
98)
at
com.google.gerrit.server.git.LocalDiskRepositoryManager.getProjectDescription(LocalDiskRepositoryManager.java:
137)
at
com.google.gerrit.server.git.GitProjectImporter.importProjects(GitProjectImporter.java:
108)
at
com.google.gerrit.server.git.GitProjectImporter.run(GitProjectImporter.java:
60)
at com.google.gerrit.pgm.Init$SiteRun.importGit(Init.java:246)
at com.google.gerrit.pgm.Init.run(Init.java:86)
at
com.google.gerrit.pgm.util.AbstractProgram.main(AbstractProgram.java:
76)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.google.gerrit.launcher.GerritLauncher.invokeProgram(GerritLauncher.java:
155)
at
com.google.gerrit.launcher.GerritLauncher.mainImpl(GerritLauncher.java:
89)
at com.google.gerrit.launcher.GerritLauncher.main(GerritLauncher.java:
47)
at Main.main(Main.java:25)
Caused by: java.io.IOException: Unknown repository format "null";
expected "0".
at
org.eclipse.jgit.storage.file.FileRepository.<init>(FileRepository.java:
180)
at
org.eclipse.jgit.storage.file.FileRepository.<init>(FileRepository.java:
126)
at org.eclipse.jgit.lib.RepositoryCache
$FileKey.open(RepositoryCache.java:323)
at
org.eclipse.jgit.lib.RepositoryCache.openRepository(RepositoryCache.java:
171)
at org.eclipse.jgit.lib.RepositoryCache.open(RepositoryCache.java:
106)
at org.eclipse.jgit.lib.RepositoryCache.open(RepositoryCache.java:81)
at
com.google.gerrit.server.git.LocalDiskRepositoryManager.openRepository(LocalDiskRepositoryManager.java:
95)
... 14 more

Shawn Pearce

unread,
Mar 31, 2011, 6:50:20 PM3/31/11
to funeeldy, Repo and Gerrit Discussion
On Thu, Mar 31, 2011 at 09:01, funeeldy <fune...@yahoo.com> wrote:
> I gave the path to the git repositories.. and I have setup ssh access
> for gerrit2 user to git.  I was able to clone my repo as gerrit2.
> What does this error mean??
>
> Caused by: java.io.IOException: Unknown repository format "null";
> expected "0".
>        at
> org.eclipse.jgit.storage.file.FileRepository.<init>(FileRepository.java:
> 180)

The repository does not have a valid config file. It should look like:

[core]
repositoryformatversion = 0

But that line is missing...

Reply all
Reply to author
Forward
0 new messages