SVN support

368 views
Skip to first unread message

Antony Woods

unread,
Jan 7, 2014, 10:17:41 AM1/7/14
to codebra...@googlegroups.com
Hi guys,

I am getting...

Missing commit 0000000000000000000000000000000000000000
Codebrag is having issues with repository state.
If this problem persists, contact your administrator.

...on an SVN repo. Is there a good way to diagnose this?

Cheers,

Ant

Antony Woods

unread,
Jan 7, 2014, 10:24:17 AM1/7/14
to codebra...@googlegroups.com
Actually, found a log dump...

15:12:59.958 [main] INFO  com.softwaremill.codebrag.Codebrag$ - Codebrag started on 0.0.0.0/0.0.0.0:8080
15:13:06.758 [Thread-17] INFO  c.s.c.s.c.jgit.GitSvnRepoUpdater - Initialized empty Git repository in c:/codebrag/repos/svn2/.git/
15:13:07.672 [Thread-18] INFO  c.s.c.s.c.jgit.GitSvnRepoUpdater - Error validating server certificate for 'https://MY.SVN.DOMAIN:443':
15:13:07.672 [Thread-18] INFO  c.s.c.s.c.jgit.GitSvnRepoUpdater -  - The certificate is not issued by a trusted authority. Use the
15:13:07.672 [Thread-18] INFO  c.s.c.s.c.jgit.GitSvnRepoUpdater -    fingerprint to validate the certificate manually!
15:13:07.673 [Thread-18] INFO  c.s.c.s.c.jgit.GitSvnRepoUpdater - Certificate information:
15:13:07.673 [Thread-18] INFO  c.s.c.s.c.jgit.GitSvnRepoUpdater -  - Hostname: *.SVN.DOMAIN
15:13:07.673 [Thread-18] INFO  c.s.c.s.c.jgit.GitSvnRepoUpdater -  - Valid: from Aug 24 15:18:10 2009 GMT until Aug 24 15:18:10 2024 GMT
15:13:07.673 [Thread-18] INFO  c.s.c.s.c.jgit.GitSvnRepoUpdater -  - Issuer: CA, My Company Ltd, GB
15:13:07.673 [Thread-18] INFO  c.s.c.s.c.jgit.GitSvnRepoUpdater -  - Fingerprint: 1f:55:cd:11:12:9d:a3:43:4e:57:ca:c2:ee:98:62:89:90:7b:de:6f
15:13:07.673 [Thread-18] INFO  c.s.c.s.c.jgit.GitSvnRepoUpdater - Certificate problem.
15:13:07.673 [Thread-18] INFO  c.s.c.s.c.jgit.GitSvnRepoUpdater - (R)eject, accept (t)emporarily or accept (p)ermanently? Certificate problem.
15:13:07.782 [Thread-18] INFO  c.s.c.s.c.jgit.GitSvnRepoUpdater - (R)eject, accept (t)emporarily or accept (p)ermanently? RA layer request failed: PROPFIND request failed on '/svn/path/': PROPFIND of '/svn/path': Server certificate verification failed: issuer is not trusted (https://MY.SVN.DOMAIN) at /usr/lib/perl5/site_perl/Git/SVN.pm line 148
15:13:07.782 [Thread-18] INFO  c.s.c.s.c.jgit.GitSvnRepoUpdater - 
15:13:08.116 [codebrag-akka.actor.default-dispatcher-5] ERROR c.s.c.s.u.LocalRepositoryUpdater - Exception while importing commits
org.eclipse.jgit.api.errors.NoHeadException: No HEAD exists and no explicit starting revision was specified
at org.eclipse.jgit.api.LogCommand.call(LogCommand.java:131) ~[codebrag.jar:0.0.1-SNAPSHOT]
at com.softwaremill.codebrag.service.commits.jgit.JgitCommitsLoader.loadCommits(JgitCommitsLoader.scala:37) ~[codebrag.jar:0.0.1-SNAPSHOT]
at com.softwaremill.codebrag.service.commits.jgit.JgitCommitsLoader.loadMissingCommits(JgitCommitsLoader.scala:17) ~[codebrag.jar:0.0.1-SNAPSHOT]
at com.softwaremill.codebrag.service.commits.CommitImportService.importRepoCommits(CommitImportService.scala:12) ~[codebrag.jar:0.0.1-SNAPSHOT]
at com.softwaremill.codebrag.service.updater.LocalRepositoryUpdater$$anonfun$receive$1$$anonfun$applyOrElse$1.apply(LocalRepositoryUpdater.scala:20) ~[codebrag.jar:0.0.1-SNAPSHOT]
at com.softwaremill.codebrag.service.updater.LocalRepositoryUpdater$$anonfun$receive$1$$anonfun$applyOrElse$1.apply(LocalRepositoryUpdater.scala:20) ~[codebrag.jar:0.0.1-SNAPSHOT]
at scala.Option.foreach(Option.scala:236) ~[codebrag.jar:0.0.1-SNAPSHOT]
at com.softwaremill.codebrag.service.updater.LocalRepositoryUpdater$$anonfun$receive$1.applyOrElse(LocalRepositoryUpdater.scala:20) ~[codebrag.jar:0.0.1-SNAPSHOT]
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:425) [codebrag.jar:0.0.1-SNAPSHOT]
at akka.actor.ActorCell.invoke(ActorCell.scala:386) [codebrag.jar:0.0.1-SNAPSHOT]
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:230) [codebrag.jar:0.0.1-SNAPSHOT]
at akka.dispatch.Mailbox.run(Mailbox.scala:212) [codebrag.jar:0.0.1-SNAPSHOT]
at akka.dispatch.ForkJoinExecutorConfigurator$MailboxExecutionTask.exec(AbstractDispatcher.scala:506) [codebrag.jar:0.0.1-SNAPSHOT]
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) [codebrag.jar:0.0.1-SNAPSHOT]
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) [codebrag.jar:0.0.1-SNAPSHOT]
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) [codebrag.jar:0.0.1-SNAPSHOT]
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) [codebrag.jar:0.0.1-SNAPSHOT]
15:13:57.108 [Thread-28] INFO  c.s.c.s.c.jgit.GitSvnRepoUpdater - fatal: bad revision 'HEAD'
15:13:57.115 [Thread-28] INFO  c.s.c.s.c.jgit.GitSvnRepoUpdater - rev-list --first-parent --pretty=medium HEAD --: command returned error: 128
15:13:57.115 [Thread-28] INFO  c.s.c.s.c.jgit.GitSvnRepoUpdater - 
15:13:57.158 [codebrag-akka.actor.default-dispatcher-2] ERROR c.s.c.s.u.LocalRepositoryUpdater - Exception while importing commits
org.eclipse.jgit.errors.MissingObjectException: Missing commit 0000000000000000000000000000000000000000
at org.eclipse.jgit.storage.file.WindowCursor.open(WindowCursor.java:127) ~[codebrag.jar:0.0.1-SNAPSHOT]
at org.eclipse.jgit.revwalk.RevWalk.getCachedBytes(RevWalk.java:861) ~[codebrag.jar:0.0.1-SNAPSHOT]
at org.eclipse.jgit.revwalk.RevCommit.parseHeaders(RevCommit.java:142) ~[codebrag.jar:0.0.1-SNAPSHOT]
at org.eclipse.jgit.revwalk.RevWalk.markStart(RevWalk.java:284) ~[codebrag.jar:0.0.1-SNAPSHOT]
at org.eclipse.jgit.revwalk.RevWalk.markUninteresting(RevWalk.java:354) ~[codebrag.jar:0.0.1-SNAPSHOT]
at org.eclipse.jgit.api.LogCommand.add(LogCommand.java:300) ~[codebrag.jar:0.0.1-SNAPSHOT]
at org.eclipse.jgit.api.LogCommand.not(LogCommand.java:200) ~[codebrag.jar:0.0.1-SNAPSHOT]
at org.eclipse.jgit.api.LogCommand.addRange(LogCommand.java:229) ~[codebrag.jar:0.0.1-SNAPSHOT]
at com.softwaremill.codebrag.service.commits.jgit.GitSvnRepoUpdater.pullRepoChanges(GitSvnRepoUpdater.scala:67) ~[codebrag.jar:0.0.1-SNAPSHOT]
at com.softwaremill.codebrag.service.commits.jgit.JgitCommitsLoader.updateRepository(JgitCommitsLoader.scala:46) ~[codebrag.jar:0.0.1-SNAPSHOT]
at com.softwaremill.codebrag.service.commits.jgit.JgitCommitsLoader.loadCommits(JgitCommitsLoader.scala:25) ~[codebrag.jar:0.0.1-SNAPSHOT]
at com.softwaremill.codebrag.service.commits.jgit.JgitCommitsLoader.loadMissingCommits(JgitCommitsLoader.scala:17) ~[codebrag.jar:0.0.1-SNAPSHOT]
at com.softwaremill.codebrag.service.commits.CommitImportService.importRepoCommits(CommitImportService.scala:12) ~[codebrag.jar:0.0.1-SNAPSHOT]
at com.softwaremill.codebrag.service.updater.LocalRepositoryUpdater$$anonfun$receive$1$$anonfun$applyOrElse$1.apply(LocalRepositoryUpdater.scala:20) ~[codebrag.jar:0.0.1-SNAPSHOT]
at com.softwaremill.codebrag.service.updater.LocalRepositoryUpdater$$anonfun$receive$1$$anonfun$applyOrElse$1.apply(LocalRepositoryUpdater.scala:20) ~[codebrag.jar:0.0.1-SNAPSHOT]
at scala.Option.foreach(Option.scala:236) ~[codebrag.jar:0.0.1-SNAPSHOT]
at com.softwaremill.codebrag.service.updater.LocalRepositoryUpdater$$anonfun$receive$1.applyOrElse(LocalRepositoryUpdater.scala:20) ~[codebrag.jar:0.0.1-SNAPSHOT]
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:425) [codebrag.jar:0.0.1-SNAPSHOT]
at akka.actor.ActorCell.invoke(ActorCell.scala:386) [codebrag.jar:0.0.1-SNAPSHOT]
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:230) [codebrag.jar:0.0.1-SNAPSHOT]
at akka.dispatch.Mailbox.run(Mailbox.scala:212) [codebrag.jar:0.0.1-SNAPSHOT]
at akka.dispatch.ForkJoinExecutorConfigurator$MailboxExecutionTask.exec(AbstractDispatcher.scala:506) [codebrag.jar:0.0.1-SNAPSHOT]
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) [codebrag.jar:0.0.1-SNAPSHOT]
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) [codebrag.jar:0.0.1-SNAPSHOT]
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) [codebrag.jar:0.0.1-SNAPSHOT]
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) [codebrag.jar:0.0.1-SNAPSHOT]
15:14:05.557 [qtp1375614346-20] INFO  c.s.c.s.commits.RepoDataProducer - Using repo config: svn, name: svn2, uri: https://MY.SVN.DOMAIN/svn/path

Paweł Fronczak

unread,
Jan 7, 2014, 10:40:59 AM1/7/14
to Antony Woods, codebra...@googlegroups.com
Hi Antony,

I had the same problem with our SVN. You need to accept the SVN server's certificate.
One way to do this is to run:
svn info https://MY.SVN.DOMAIN:443

You will then be asked to accept the server's certificate, choose "accept permanently" and you should be good to go.
Note that you need to run this command as the same user that is running the Codebrag app.

Regards,
Pawel

2014/1/7 Antony Woods <acr...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Codebrag Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codebrag-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Antony Woods

unread,
Jan 7, 2014, 10:51:27 AM1/7/14
to codebra...@googlegroups.com, Antony Woods
Thanks Pawel, this helped with the first instance.

Now I'm getting the same error, but the following log...

15:47:30.814 [qtp1375614346-24] INFO  c.s.c.s.commits.RepoDataProducer - Using repo config: svn, name: svn2, uri: https://MY.SVN.DOMAIN/svn/path/
15:47:36.013 [Thread-20] INFO  c.s.c.s.c.jgit.GitSvnRepoUpdater - fatal: bad revision 'HEAD'
15:47:36.020 [Thread-20] INFO  c.s.c.s.c.jgit.GitSvnRepoUpdater - rev-list --first-parent --pretty=medium HEAD --: command returned error: 128
15:47:36.020 [Thread-20] INFO  c.s.c.s.c.jgit.GitSvnRepoUpdater - 
15:47:36.266 [codebrag-akka.actor.default-dispatcher-5] ERROR c.s.c.s.u.LocalRepositoryUpdater - Exception while importing commits

Paweł Fronczak

unread,
Jan 7, 2014, 11:06:13 AM1/7/14
to Antony Woods, codebrag-users
Right... I recall that codebrag could not recover from a faulty checkout.

The way to fix it (as provided by the codebrag team) was to clean-up the repository and the codebrag's database, so:
1. stop the application
2. delete the 'repos' directory
3. drop the codebrag database:
bash:
mongo
use codebrag
db.dropDatabase()

and then start the app.


2014/1/7 Antony Woods <acr...@gmail.com>

Antony Woods

unread,
Jan 7, 2014, 11:11:29 AM1/7/14
to codebra...@googlegroups.com, Antony Woods
Nailed it, thanks Pawel :) Right, ready to test drive this!
Message has been deleted

Antony Woods

unread,
Jan 7, 2014, 11:19:12 AM1/7/14
to codebra...@googlegroups.com, Antony Woods
Spoke too soon...looks like CA issues still, even though I can `svn info` absolutely fine.

16:13:32.148 [Thread-19] INFO  c.s.c.s.c.jgit.GitSvnRepoUpdater - Initialized empty Git repository in c:/codebrag/repos/dev2/.git/
16:13:33.385 [Thread-20] INFO  c.s.c.s.c.jgit.GitSvnRepoUpdater - Error validating server certificate for 'https://MY.SVN.DOMAIN:443':
16:13:33.385 [Thread-20] INFO  c.s.c.s.c.jgit.GitSvnRepoUpdater -  - The certificate is not issued by a trusted authority. Use the
16:13:33.385 [Thread-20] INFO  c.s.c.s.c.jgit.GitSvnRepoUpdater -    fingerprint to validate the certificate manually!
16:13:33.385 [Thread-20] INFO  c.s.c.s.c.jgit.GitSvnRepoUpdater - Certificate information:
16:13:33.385 [Thread-20] INFO  c.s.c.s.c.jgit.GitSvnRepoUpdater -  - Hostname: *.SVN.DOMAIN
16:13:33.385 [Thread-20] INFO  c.s.c.s.c.jgit.GitSvnRepoUpdater -  - Valid: from Aug 24 15:18:10 2009 GMT until Aug 24 15:18:10 2024 GMT
16:13:33.385 [Thread-20] INFO  c.s.c.s.c.jgit.GitSvnRepoUpdater -  - Issuer: CA, My Company Ltd, GB
16:13:33.385 [Thread-20] INFO  c.s.c.s.c.jgit.GitSvnRepoUpdater -  - Fingerprint: 1f:55:cd:11:12:9d:a3:43:4e:57:ca:c2:ee:98:62:89:90:7b:de:6f
16:13:33.385 [Thread-20] INFO  c.s.c.s.c.jgit.GitSvnRepoUpdater - Certificate problem.
16:13:33.385 [Thread-20] INFO  c.s.c.s.c.jgit.GitSvnRepoUpdater - (R)eject, accept (t)emporarily or accept (p)ermanently? Certificate problem.
16:13:33.493 [Thread-20] INFO  c.s.c.s.c.jgit.GitSvnRepoUpdater - (R)eject, accept (t)emporarily or accept (p)ermanently? RA layer request failed: PROPFIND request failed on '/svn/path': PROPFIND of '/svn/path': Server certificate verification failed: issuer is not trusted (https://MY.SVN.DOMAIN) at /usr/lib/perl5/site_perl/Git/SVN.pm line 148
16:13:33.494 [Thread-20] INFO  c.s.c.s.c.jgit.GitSvnRepoUpdater - 
16:13:33.839 [codebrag-akka.actor.default-dispatcher-3] ERROR c.s.c.s.u.LocalRepositoryUpdater - Exception while importing commits
org.eclipse.jgit.api.errors.NoHeadException: No HEAD exists and no explicit starting revision was specified
	at org.eclipse.jgit.api.LogCommand.call(LogCommand.java:131) ~[codebrag.jar:0.0.1-SNAPSHOT]
	at com.softwaremill.codebrag.service.commits.jgit.JgitCommitsLoader.loadCommits(JgitCommitsLoader.scala:37) ~[codebrag.jar:0.0.1-SNAPSHOT]
	at com.softwaremill.codebrag.service.commits.jgit.JgitCommitsLoader.loadMissingCommits(JgitCommitsLoader.scala:17) ~[codebrag.jar:0.0.1-SNAPSHOT]
	at com.softwaremill.codebrag.service.commits.CommitImportService.importRepoCommits(CommitImportService.scala:12) ~[codebrag.jar:0.0.1-SNAPSHOT]
	at com.softwaremill.codebrag.service.updater.LocalRepositoryUpdater$$anonfun$receive$1$$anonfun$applyOrElse$1.apply(LocalRepositoryUpdater.scala:20) ~[codebrag.jar:0.0.1-SNAPSHOT]
	at com.softwaremill.codebrag.service.updater.LocalRepositoryUpdater$$anonfun$receive$1$$anonfun$applyOrElse$1.apply(LocalRepositoryUpdater.scala:20) ~[codebrag.jar:0.0.1-SNAPSHOT]
	at scala.Option.foreach(Option.scala:236) ~[codebrag.jar:0.0.1-SNAPSHOT]
	at com.softwaremill.codebrag.service.updater.LocalRepositoryUpdater$$anonfun$receive$1.applyOrElse(LocalRepositoryUpdater.scala:20) ~[codebrag.jar:0.0.1-SNAPSHOT]
	at akka.actor.ActorCell.receiveMessage(ActorCell.scala:425) [codebrag.jar:0.0.1-SNAPSHOT]
	at akka.actor.ActorCell.invoke(ActorCell.scala:386) [codebrag.jar:0.0.1-SNAPSHOT]
	at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:230) [codebrag.jar:0.0.1-SNAPSHOT]
	at akka.dispatch.Mailbox.run(Mailbox.scala:212) [codebrag.jar:0.0.1-SNAPSHOT]
	at akka.dispatch.ForkJoinExecutorConfigurator$MailboxExecutionTask.exec(AbstractDispatcher.scala:506) [codebrag.jar:0.0.1-SNAPSHOT]
	at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) [codebrag.jar:0.0.1-SNAPSHOT]
	at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) [codebrag.jar:0.0.1-SNAPSHOT]
	at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) [codebrag.jar:0.0.1-SNAPSHOT]
	at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) [codebrag.jar:0.0.1-SNAPSHOT]

Paweł Fronczak

unread,
Jan 7, 2014, 11:29:57 AM1/7/14
to Antony Woods, codebra...@googlegroups.com
Maybe there's some other keystore for git-svn.
How about if you'd go to your repo directory (c:/codebrag/repos/dev2) and run 'git svn info'
then if you'll get the certificate confirmation, again cleanup the repo and the database?


2014/1/7 Antony Woods <acr...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Codebrag Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codebrag-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
pozdrawiam,
Paweł Fronczak

Antony Woods

unread,
Jan 7, 2014, 11:52:44 AM1/7/14
to codebra...@googlegroups.com, Antony Woods
Hmmm, so `git svn info` fails...

C:\codebrag\repos\dev2>git svn info
fatal: bad revision 'HEAD'
rev-list --first-parent --pretty=medium HEAD --: command returned error: 128

C:\codebrag\repos\dev2>git svn info --url https://MY.SVN.DOMAIN/svn/path
fatal: Not a valid object name HEAD
ls-tree HEAD https://MY.SVN.DOMAIN/svn/path: command returned error: 128

Michal Ostruszka

unread,
Jan 7, 2014, 1:00:08 PM1/7/14
to Antony Woods, codebra...@googlegroups.com
Hi

Looks like it still can't get certificates properly.
Try to remove "repos" dir completely (and DB if you want to be 100% sure there was no stuff left) and in separate directory try to checkout your repo "git svn clone https://your_repo" instead of simple git svn info. It should ask you to accept certificate (p)ermanently. Then run Codebrag - it should be fine now. Unfortunately when any Codebra run fails due to repository initialization it may result in subsequent fails too because repository could be partially initialized and could be in incorrect state.

Best regards 
Michal
Michał Ostruszka
Software Wizard at SoftwareMill

Antony Woods

unread,
Jan 8, 2014, 11:09:45 AM1/8/14
to codebra...@googlegroups.com, Antony Woods, michal.o...@softwaremill.com
Still no luck. Sorry guys, dead end :(

Jörg Flade

unread,
Oct 21, 2015, 5:45:01 AM10/21/15
to Codebrag Users, acr...@gmail.com, michal.o...@softwaremill.com
Now we have the same problem. Did you find any solution in the meantime?

Thanks & best regards
Reply all
Reply to author
Forward
0 new messages