Failed to load Subversion configuration (Subversion Mirror)

metaclassing June 17, 2016

I just did a fresh install of Bitbucket & loaded the Subversion Mirror plugin this morning and have been completely unable to get any of my SVN repos to sync either via HTTPS:// or FILE:// paths. The read and write tests pass in each case without issue but when going to import all I get is  "Failed to load Subversion configuration at '/opt/atlassian/application-data/bitbucket/shared/data/repositories/14/subgit/config'"

Any idea what is making the plugin so upset? There is nothing crazy in any paths/naming/permissions/etc. Failure is nearly instantanious, no additional information about what went wrong. The file it is trying to access does not exist, I tried creating a blank file in that location before pressing the import button but that made it VERY unhappy and I had to reset the repo.

The log file with debugging just has this:

2016-06-17 11:52:36,718 [sg:thread-73] INFO  sg.scheduler - pushing snapshot due to change in scope: R_23_14 
2016-06-17 11:52:36,718 [sg:thread-73] INFO  sg.scheduler - [R_23_14][start-import-488] rollback 
2016-06-17 11:52:36,729 [sg:thread-73] INFO  sg.scheduler - pushing snapshot due to change in scope: R_23_14 
2016-06-17 11:52:36,729 [sg:thread-73] INFO  sg.scheduler - pushing snapshot due to change in scope: R_23_14 
2016-06-17 11:52:36,729 [sg:thread-73] INFO  sg.scheduler - [R_23_14][start-import-488] notifying scheduler upon completion 
2016-06-17 11:52:36,729 [sg-scheduler] INFO  sg.scheduler - waked up on changes in queues 
2016-06-17 11:52:36,729 [sg-scheduler] INFO  sg.scheduler - processing tasks queue 
2016-06-17 11:52:36,729 [sg-scheduler] INFO  sg.scheduler - [R_23_14] queue empty 
2016-06-17 11:52:36,729 [sg-scheduler] INFO  sg.scheduler - will sleep until queues change 
2016-06-17 11:52:41,817 [threadpool:thread-3] INFO  sg.cluster - detected master records: 9cf85a09-6766-4664-a896-086c26ff0104 
2016-06-17 11:52:41,818 [threadpool:thread-3] INFO  sg.cluster - this node is a single master 
2016-06-17 11:52:49,831 [threadpool:thread-3] INFO  sg.cluster - detected master records: 9cf85a09-6766-4664-a896-086c26ff0104 
2016-06-17 11:52:49,832 [threadpool:thread-3] INFO  sg.cluster - this node is a single master 
2016-06-17 11:53:02,270 [http-nio-127.0.0.1-7990-exec-10] INFO  sg.scheduler - [R_23_14][start-924] adding to queue 
2016-06-17 11:53:02,270 [http-nio-127.0.0.1-7990-exec-10] INFO  sg.scheduler - [R_23_14][start-924] added to queue 
2016-06-17 11:53:02,270 [http-nio-127.0.0.1-7990-exec-10] INFO  sg.scheduler - pushing snapshot due to change in scope: R_23_14 
2016-06-17 11:53:02,270 [sg-scheduler] INFO  sg.scheduler - waked up on changes in queues 
2016-06-17 11:53:02,270 [sg-scheduler] INFO  sg.scheduler - processing tasks queue 
2016-06-17 11:53:02,270 [sg-scheduler] INFO  sg.scheduler - [R_23_14][start-924] will execute now 
2016-06-17 11:53:02,270 [sg-scheduler] INFO  sg.scheduler - [R_23_14][start-924] processing queue before execution 
2016-06-17 11:53:02,270 [sg-scheduler] INFO  sg.scheduler - pushing snapshot due to change in scope: R_23_14 
2016-06-17 11:53:02,270 [sg-scheduler] INFO  sg.scheduler - [R_23_14][start-924] executing 
2016-06-17 11:53:02,270 [sg-scheduler] INFO  sg.scheduler - will sleep until queues change 
2016-06-17 11:53:02,283 [sg:thread-35] INFO  sg.scheduler - pushing snapshot due to change in scope: R_23_14 
2016-06-17 11:53:02,283 [sg:thread-35] INFO  sg.scheduler - [R_23_14][start-924] about to run 
2016-06-17 11:53:02,284 [sg:thread-35] INFO  sg.scheduler - pushing snapshot due to change in scope: R_23_14 
2016-06-17 11:53:02,284 [sg:thread-35] INFO  sg.scheduler - pushing snapshot due to change in scope: R_23_14 
2016-06-17 11:53:02,289 [sg:thread-35] INFO  sg.scheduler - [R_23_14][start-924] run failed (RUNNING) 
2016-06-17 11:53:02,289 [sg:thread-35] INFO  sg.scheduler - Failed to load Subversion configuration at '/opt/atlassian/application-data/bitbucket/shared/data/repositories/14/subgit/config' org.tmatesoft.translator.util.j: Failed to load Subversion configuration at '/opt/atlassian/application-data/bitbucket/shared/data/repositories/14/subgit/config'
	at org.tmatesoft.translator.b.H.a(SourceFile:88)
	at org.tmatesoft.translator.b.H.a(SourceFile:40)
	at org.tmatesoft.translator.k.ad.b(SourceFile:290)
	at org.tmatesoft.translator.k.c.g.b(SourceFile:52)
	at org.tmatesoft.subgit.stash.mirror.tasks.SgRepositoryTask.install(SourceFile:163)
	at org.tmatesoft.subgit.stash.mirror.tasks.SgStartTask.runSecurely(SourceFile:38)
	at org.tmatesoft.subgit.stash.mirror.tasks.SgMirrorTask$1.perform(SourceFile:83)
	at org.tmatesoft.subgit.stash.mirror.tasks.SgMirrorTask$1.perform(SourceFile:79)
	at com.atlassian.stash.internal.user.DefaultEscalatedSecurityContext.call(DefaultEscalatedSecurityContext.java:51)
	at org.tmatesoft.subgit.stash.mirror.tasks.SgMirrorTask.run(SourceFile:79)
	at org.tmatesoft.subgit.stash.mirror.tasks.SgMirrorTask.run(SourceFile:17)
	at org.tmatesoft.subgit.stash.mirror.scheduler.SgTaskScheduler$TaskWrapper.runTask(SourceFile:778)
	at org.tmatesoft.subgit.stash.mirror.scheduler.SgTaskScheduler$TaskWrapper.run(SourceFile:742)
	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: org.tmatesoft.translator.util.t: Option 'daemon.pidFile' is missing in '/opt/atlassian/application-data/bitbucket/shared/data/repositories/14/subgit/config'.
	at org.tmatesoft.translator.util.t.c(SourceFile:13)
	at org.tmatesoft.translator.b.g.j(SourceFile:155)
	at org.tmatesoft.translator.b.g.a(SourceFile:225)
	at org.tmatesoft.translator.b.g.b(SourceFile:264)
	at org.tmatesoft.translator.b.t.a(SourceFile:166)
	at org.tmatesoft.translator.b.t.c(SourceFile:67)
	at org.tmatesoft.translator.c.k.a(SourceFile:40)
	at org.tmatesoft.translator.b.H.b(SourceFile:99)
	at org.tmatesoft.translator.b.H.a(SourceFile:84)
	... 15 common frames omitted

2016-06-17 11:53:02,290 [sg:thread-35] INFO  sg.scheduler - pushing snapshot due to change in scope: R_23_14 
2016-06-17 11:53:02,290 [sg:thread-35] INFO  sg.scheduler - [R_23_14][start-924] rollback 
2016-06-17 11:53:02,301 [sg:thread-35] INFO  sg.scheduler - pushing snapshot due to change in scope: R_23_14 
2016-06-17 11:53:02,302 [sg:thread-35] INFO  sg.scheduler - pushing snapshot due to change in scope: R_23_14 
2016-06-17 11:53:02,302 [sg:thread-35] INFO  sg.scheduler - [R_23_14][start-924] notifying scheduler upon completion 
2016-06-17 11:53:02,302 [sg-scheduler] INFO  sg.scheduler - waked up on changes in queues 
2016-06-17 11:53:02,302 [sg-scheduler] INFO  sg.scheduler - processing tasks queue 
2016-06-17 11:53:02,302 [sg-scheduler] INFO  sg.scheduler - [R_23_14] queue empty 
2016-06-17 11:53:02,302 [sg-scheduler] INFO  sg.scheduler - will sleep until queues change 
2016-06-17 11:53:03,995 [http-nio-127.0.0.1-7990-exec-3] INFO  sg.scheduler - [R_23_14][start-import-109] adding to queue 
2016-06-17 11:53:03,995 [http-nio-127.0.0.1-7990-exec-3] INFO  sg.scheduler - [R_23_14][start-import-109] added to queue 
2016-06-17 11:53:03,996 [http-nio-127.0.0.1-7990-exec-3] INFO  sg.scheduler - pushing snapshot due to change in scope: R_23_14 
2016-06-17 11:53:03,996 [sg-scheduler] INFO  sg.scheduler - waked up on changes in queues 
2016-06-17 11:53:03,996 [sg-scheduler] INFO  sg.scheduler - processing tasks queue 
2016-06-17 11:53:03,996 [sg-scheduler] INFO  sg.scheduler - [R_23_14][start-import-109] will execute now 
2016-06-17 11:53:03,997 [sg-scheduler] INFO  sg.scheduler - [R_23_14][start-import-109] processing queue before execution 
2016-06-17 11:53:03,997 [sg-scheduler] INFO  sg.scheduler - pushing snapshot due to change in scope: R_23_14 
2016-06-17 11:53:03,997 [sg-scheduler] INFO  sg.scheduler - [R_23_14][start-import-109] executing 
2016-06-17 11:53:03,997 [sg-scheduler] INFO  sg.scheduler - will sleep until queues change 
2016-06-17 11:53:04,008 [sg:thread-92] INFO  sg.scheduler - pushing snapshot due to change in scope: R_23_14 
2016-06-17 11:53:04,008 [sg:thread-92] INFO  sg.scheduler - [R_23_14][start-import-109] about to run 
2016-06-17 11:53:04,008 [sg:thread-92] INFO  sg.scheduler - pushing snapshot due to change in scope: R_23_14 
2016-06-17 11:53:04,009 [sg:thread-92] INFO  sg.scheduler - pushing snapshot due to change in scope: R_23_14 
2016-06-17 11:53:04,014 [sg:thread-92] INFO  sg.scheduler - [R_23_14][start-import-109] run failed (RUNNING) 
2016-06-17 11:53:04,014 [sg:thread-92] INFO  sg.scheduler - Failed to load Subversion configuration at '/opt/atlassian/application-data/bitbucket/shared/data/repositories/14/subgit/config' org.tmatesoft.translator.util.j: Failed to load Subversion configuration at '/opt/atlassian/application-data/bitbucket/shared/data/repositories/14/subgit/config'
	at org.tmatesoft.translator.b.H.a(SourceFile:88)
	at org.tmatesoft.translator.b.H.a(SourceFile:40)
	at org.tmatesoft.translator.k.ad.b(SourceFile:290)
	at org.tmatesoft.translator.k.c.g.b(SourceFile:52)
	at org.tmatesoft.subgit.stash.mirror.tasks.SgRepositoryTask.install(SourceFile:163)
	at org.tmatesoft.subgit.stash.mirror.tasks.SgStartTask.runSecurely(SourceFile:38)
	at org.tmatesoft.subgit.stash.mirror.tasks.SgMirrorTask$1.perform(SourceFile:83)
	at org.tmatesoft.subgit.stash.mirror.tasks.SgMirrorTask$1.perform(SourceFile:79)
	at com.atlassian.stash.internal.user.DefaultEscalatedSecurityContext.call(DefaultEscalatedSecurityContext.java:51)
	at org.tmatesoft.subgit.stash.mirror.tasks.SgMirrorTask.run(SourceFile:79)
	at org.tmatesoft.subgit.stash.mirror.tasks.SgMirrorTask.run(SourceFile:17)
	at org.tmatesoft.subgit.stash.mirror.scheduler.SgTaskScheduler$TaskWrapper.runTask(SourceFile:778)
	at org.tmatesoft.subgit.stash.mirror.scheduler.SgTaskScheduler$TaskWrapper.run(SourceFile:742)
	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: org.tmatesoft.translator.util.t: Option 'daemon.pidFile' is missing in '/opt/atlassian/application-data/bitbucket/shared/data/repositories/14/subgit/config'.
	at org.tmatesoft.translator.util.t.c(SourceFile:13)
	at org.tmatesoft.translator.b.g.j(SourceFile:155)
	at org.tmatesoft.translator.b.g.a(SourceFile:225)
	at org.tmatesoft.translator.b.g.b(SourceFile:264)
	at org.tmatesoft.translator.b.t.a(SourceFile:166)
	at org.tmatesoft.translator.b.t.c(SourceFile:67)
	at org.tmatesoft.translator.c.k.a(SourceFile:40)
	at org.tmatesoft.translator.b.H.b(SourceFile:99)
	at org.tmatesoft.translator.b.H.a(SourceFile:84)
	... 15 common frames omitted

2016-06-17 11:53:04,014 [sg:thread-92] INFO  sg.scheduler - pushing snapshot due to change in scope: R_23_14 
2016-06-17 11:53:04,014 [sg:thread-92] INFO  sg.scheduler - [R_23_14][start-import-109] rollback 
2016-06-17 11:53:04,032 [sg:thread-92] INFO  sg.scheduler - pushing snapshot due to change in scope: R_23_14 
2016-06-17 11:53:04,032 [sg:thread-92] INFO  sg.scheduler - pushing snapshot due to change in scope: R_23_14 
2016-06-17 11:53:04,032 [sg:thread-92] INFO  sg.scheduler - [R_23_14][start-import-109] notifying scheduler upon completion 
2016-06-17 11:53:04,033 [sg-scheduler] INFO  sg.scheduler - waked up on changes in queues 
2016-06-17 11:53:04,033 [sg-scheduler] INFO  sg.scheduler - processing tasks queue 
2016-06-17 11:53:04,033 [sg-scheduler] INFO  sg.scheduler - [R_23_14] queue empty 
2016-06-17 11:53:04,033 [sg-scheduler] INFO  sg.scheduler - will sleep until queues change 
2016-06-17 11:53:05,969 [threadpool:thread-3] INFO  sg.cluster - detected master records: 9cf85a09-6766-4664-a896-086c26ff0104 
2016-06-17 11:53:05,970 [threadpool:thread-3] INFO  sg.cluster - this node is a single master 

1 answer

1 accepted

1 vote
Answer accepted
Semyon Vadishev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 18, 2016

This is a known problem and we're working on a fix; we're going to publish a bugfix release within next few days.

The problem is that Bitbucket Server 4.7.1 update has broken interoperability with SVN Mirror add-on and now our add-on is not able to initialize properly.

Meanwhile I'd recommend to use Bitbucket Server 4.6.x and upgrade to 4.7.x as soon as we publish an updated version of the plugin.

Regards,
Semyon Vadishev,
SubGit & SVN Mirror add-on developer. 

metaclassing June 18, 2016

Thanks for letting me know, I will look forward to a fix in the near future.

nicholas_jallan November 9, 2016

Hi Semyon,

I installed the latest version of Bitbucket for windows (4.11.0) and bought a licence for the mirror svn plugin.

Sadly, i can see in my repo/subgit/logs/svnmirror.log file that this problem still happen :

start-import - Failed to load Subversion configuration at …

Caused by: org.tmatesoft.translator.util.t: Option 'daemon.pidFile' is missing in …

Could you help me on this ?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events