Can't push to Stash. Pushes will be allowed as soon as SubGit installation is completed

Notifications fail to be sent when using SubGit SVN Importer

On this page

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

Unable to issue 'git push' commands. The following error is shown:

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-stash.log:

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.stash.web.SgRepositoryManager Failed to handle pre-receive [com.atlassian.stash.repository.SimpleRefChange@5ea2bbc2] for repository p_bio <62>
org.tmatesoft.translator.util.e: Failed to lock file '/opt/stash-home/data/repositories/62/subgit/daemon.lock'.
	at org.tmatesoft.translator.util.e.b(SourceFile:65) ~[plugin_1594546015236990186_stash-svn-importer-2.0.10_1405020104000.jar:na]
	at org.tmatesoft.translator.process.q.d(SourceFile:84) ~[plugin_1594546015236990186_stash-svn-importer-2.0.10_1405020104000.jar:na]
	at org.tmatesoft.translator.process.q.a(SourceFile:23) ~[plugin_1594546015236990186_stash-svn-importer-2.0.10_1405020104000.jar:na]
	at org.tmatesoft.translator.process.s.d(SourceFile:133) ~[plugin_1594546015236990186_stash-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]
	...
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.stash.web.SgRepositoryManager Failed to handle pre-receive [com.atlassian.stash.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_stash-svn-importer-2.0.10_1405020104000.jar:na]
	at org.tmatesoft.translator.d.c.handleErrorReport(SourceFile:288) ~[plugin_1594546015236990186_stash-svn-importer-2.0.10_1405020104000.jar:na]
	at org.tmatesoft.translator.d.c.doExecute(SourceFile:96) ~[plugin_1594546015236990186_stash-svn-importer-2.0.10_1405020104000.jar:na]
	at org.tmatesoft.translator.d.h.doExecute(SourceFile:54) ~[plugin_1594546015236990186_stash-svn-importer-2.0.10_1405020104000.jar:na]
	at org.tmatesoft.translator.d.c.execute(SourceFile:62) ~[plugin_1594546015236990186_stash-svn-importer-2.0.10_1405020104000.jar:na]
	at org.tmatesoft.subgit.stash.web.hooks.SgPreReceiveRepositoryHook.doPreReceive(SourceFile:105) [plugin_1594546015236990186_stash-svn-importer-2.0.10_1405020104000.jar:na]
	at org.tmatesoft.subgit.stash.web.hooks.SgPreReceiveRepositoryHook.onReceive(SourceFile:68) [plugin_1594546015236990186_stash-svn-importer-2.0.10_1405020104000.jar:na]
	at com.atlassian.stash.internal.hook.DefaultBuiltInHookHandlerFactory$1.handle(DefaultBuiltInHookHandlerFactory.java:57) [stash-service-impl-2.12.1.jar:na]
	at com.atlassian.stash.internal.hook.DefaultHookService.doHandleRequest(DefaultHookService.java:356) [stash-service-impl-2.12.1.jar:na]
	at com.atlassian.stash.internal.hook.DefaultHookService.handleRequest(DefaultHookService.java:342) [stash-service-impl-2.12.1.jar:na]
	at com.atlassian.stash.internal.hook.DefaultHookService.handleRawRequest(DefaultHookService.java:253) [stash-service-impl-2.12.1.jar:na]
	at com.atlassian.stash.internal.hook.DefaultHookService$2$1.run(DefaultHookService.java:213) [stash-service-impl-2.12.1.jar:na]
	at com.atlassian.stash.internal.concurrent.StateTransferringExecutor$StateTransferringRunnable.run(StateTransferringExecutor.java:69) [stash-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.

Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.