Can't push to Bitbucket Server. Pushes will be allowed as soon as SubGit installation is completed
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
Unable to issue 'git push' commands. The following error is shown:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Counting objects: 38, done.
Delta compression using up to 24 threads.
Compressing objects: 100% (23/23), done.
Writing objects: 100% (23/23), 1.95 KiB | 0 bytes/s, done.
Total 23 (delta 18), reused 0 (delta 0)
remote: WARNING:
remote: Push rejected: SubGit installation is in progress.
remote: Pushes will be allowed as soon as SubGit installation is completed.
remote:
remote: CURRENT STATE:
remote: Subversion: READ AND WRITE
remote: Git : READ ONLY
remote:
To http://tasbu@git.sequenta.local/scm/rnd2/p_bio.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'http://tasbu@git.sequenta.local/scm/rnd2/p_bio.git'
The following appears in the atlassian-bitbucket.log
:
1
2
3
4
5
6
7
8
9
10
2014-09-05 11:20:18,503 ERROR [threadpool:thread-846] khervo 680x43365x1 10tqmyp 10.10.1.50,127.0.0.1 "POST /scm/rnd2/p_bio.git/git-receive-pack HTTP/1.1" o.t.s.bitbucket.web.SgRepositoryManager Failed to handle pre-receive [com.atlassian.bitbucket.repository.SimpleRefChange@5ea2bbc2] for repository p_bio <62>
org.tmatesoft.translator.util.e: Failed to lock file '/opt/bitbucket-home/data/repositories/62/subgit/daemon.lock'.
at org.tmatesoft.translator.util.e.b(SourceFile:65) ~[plugin_1594546015236990186_bitbucket-svn-importer-2.0.10_1405020104000.jar:na]
at org.tmatesoft.translator.process.q.d(SourceFile:84) ~[plugin_1594546015236990186_bitbucket-svn-importer-2.0.10_1405020104000.jar:na]
at org.tmatesoft.translator.process.q.a(SourceFile:23) ~[plugin_1594546015236990186_bitbucket-svn-importer-2.0.10_1405020104000.jar:na]
at org.tmatesoft.translator.process.s.d(SourceFile:133) ~[plugin_1594546015236990186_bitbucket-svn-importer-2.0.10_1405020104000.jar:na]
...
Caused by: java.nio.channels.OverlappingFileLockException: null
at sun.nio.ch.SharedFileLockTable.checkList(Unknown Source) ~[na:1.7.0_51]
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
2014-09-05 11:35:31,608 ERROR [threadpool:thread-2] khervo 695x33x1 qogigs 10.10.1.50,127.0.0.1 "POST /scm/rnd2/p_bio.git/git-receive-pack HTTP/1.1" o.t.s.bitbucket.web.SgRepositoryManager Failed to handle pre-receive [com.atlassian.bitbucket.repository.SimpleRefChange@64a8d9eb] for repository p_bio <62>
org.tmatesoft.translator.util.d: Push rejected: SubGit installation is in progress.
Pushes will be allowed as soon as SubGit installation is completed.
at org.tmatesoft.translator.d.a.handleErrorReport(SourceFile:50) ~[plugin_1594546015236990186_bitbucket-svn-importer-2.0.10_1405020104000.jar:na]
at org.tmatesoft.translator.d.c.handleErrorReport(SourceFile:288) ~[plugin_1594546015236990186_bitbucket-svn-importer-2.0.10_1405020104000.jar:na]
at org.tmatesoft.translator.d.c.doExecute(SourceFile:96) ~[plugin_1594546015236990186_bitbucket-svn-importer-2.0.10_1405020104000.jar:na]
at org.tmatesoft.translator.d.h.doExecute(SourceFile:54) ~[plugin_1594546015236990186_bitbucket-svn-importer-2.0.10_1405020104000.jar:na]
at org.tmatesoft.translator.d.c.execute(SourceFile:62) ~[plugin_1594546015236990186_bitbucket-svn-importer-2.0.10_1405020104000.jar:na]
at org.tmatesoft.subgit.bitbucket.web.hooks.SgPreReceiveRepositoryHook.doPreReceive(SourceFile:105) [plugin_1594546015236990186_bitbucket-svn-importer-2.0.10_1405020104000.jar:na]
at org.tmatesoft.subgit.bitbucket.web.hooks.SgPreReceiveRepositoryHook.onReceive(SourceFile:68) [plugin_1594546015236990186_bitbucket-svn-importer-2.0.10_1405020104000.jar:na]
at com.atlassian.bitbucket.internal.hook.DefaultBuiltInHookHandlerFactory$1.handle(DefaultBuiltInHookHandlerFactory.java:57) [bitbucket-service-impl-2.12.1.jar:na]
at com.atlassian.bitbucket.internal.hook.DefaultHookService.doHandleRequest(DefaultHookService.java:356) [bitbucket-service-impl-2.12.1.jar:na]
at com.atlassian.bitbucket.internal.hook.DefaultHookService.handleRequest(DefaultHookService.java:342) [bitbucket-service-impl-2.12.1.jar:na]
at com.atlassian.bitbucket.internal.hook.DefaultHookService.handleRawRequest(DefaultHookService.java:253) [bitbucket-service-impl-2.12.1.jar:na]
at com.atlassian.bitbucket.internal.hook.DefaultHookService$2$1.run(DefaultHookService.java:213) [bitbucket-service-impl-2.12.1.jar:na]
at com.atlassian.bitbucket.internal.concurrent.StateTransferringExecutor$StateTransferringRunnable.run(StateTransferringExecutor.java:69) [bitbucket-platform-2.12.1.jar:na]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [na:1.7.0_51]
at java.util.concurrent.FutureTask.run(Unknown Source) [na:1.7.0_51]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source) [na:1.7.0_51]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [na:1.7.0_51]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.7.0_51]
at java.lang.Thread.run(Unknown Source) [na:1.7.0_51]
... 1 frame trimmed
Cause
The first log entry is caused by a bug on the plugin:
The second entry log above was found reported as a public issue on the vendor issue tracker.
Resolution
The reported issue lies on the SVN Mirror plugin. This plugin is supported by a third-party vendor.
The reported issue was resolved by updating the plugin to the latest version available on its page on Marketplace.
For the different ways of updating an add-on, please refer to the documentation below:
Before raising an issue request related to a plugin, please check if it is supported by Atlassian.
Was this helpful?