Tags are deleted immediately after being created leading to the "No branch, tag or commit" error

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: サーバーと Data Center のみ。この記事は、サーバーおよび Data Center プラットフォームのアトラシアン製品にのみ適用されます。

問題

Tags added using the Bitbucket Server user interface (Bitbucket Server 4.7 release notes) are not accessible.

The following appears in the user interface:

No branch, tag or commit '<tag name>' exists in repository '<repository name>'

 

The following appears in the atlassian-bitbucket.log (note the sequence of "Tag created" and "Tag deleted"):

ERROR [AtlassianEvent::thread-2] <username> @27FP67Gx996x67443x1 j4qj99 <ip address> "POST /rest/git/latest/projects/<project_key>/repos/<repository_name>/tags HTTP/1.1" b.f.bitbucket.hook.PushEmailNotifier Bad response status 302, body: , payload: {"channel":"#bitbucket","text":"*Push by <Full name> - (<username>)* [0000000..<url>@<url>] Tag created","username":"<repository_name> "}
...
ERROR [sg:thread-13]  b.f.bitbucket.hook.PushEmailNotifier Bad response status 302, body: , payload: {"channel":"#bitbucket","text":"*Push by SubGit - (SubGit)* [<url>..0000000@<url>] Tag deleted","username":"repository_name "}

The full stack trace will be as follows:

ここをクリックして展開...
ERROR [AtlassianEvent::thread-2] <username> @27FP67Gx996x67443x1 j4qj99 <ip address> "POST /rest/git/latest/projects/<project_key>/repos/<repository_name>/tags HTTP/1.1" b.f.bitbucket.hook.PushEmailNotifier Bad response status 302, body: , payload: {"channel":"#bitbucket","text":"*Push by <Full name> - (<username>)* [0000000..<url>@<url>] Tag created","username":"<repository_name> "}
ERROR [AtlassianEvent::thread-2] <username> @27FP67Gx996x67443x1 j4qj99 <ip address> "POST /rest/git/latest/projects/<project_key>/repos/<repository_name>/tags HTTP/1.1" b.f.bitbucket.hook.PushEmailNotifier Exception talking to slack
org.apache.http.client.ClientProtocolException: Unexpected response status: 302
                at be.foreach.bitbucket.hook.PushEmailNotifier$1.handleResponse(PushEmailNotifier.java:191) ~[plugin.7560048937071369826.notifier-4.0.1_1473347185850.jar:na]
                at be.foreach.bitbucket.hook.PushEmailNotifier$1.handleResponse(PushEmailNotifier.java:182) ~[plugin.7560048937071369826.notifier-4.0.1_1473347185850.jar:na]
                at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:222) ~[httpclient-4.5.1.jar:4.5.1]
                at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:164) ~[httpclient-4.5.1.jar:4.5.1]
                at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:139) ~[httpclient-4.5.1.jar:4.5.1]
                at be.foreach.bitbucket.hook.PushEmailNotifier.sendSlackNotification(PushEmailNotifier.java:196) [plugin.7560048937071369826.notifier-4.0.1_1473347185850.jar:na]
                at be.foreach.bitbucket.hook.PushEmailNotifier.postReceive(PushEmailNotifier.java:123) [plugin.7560048937071369826.notifier-4.0.1_1473347185850.jar:na]
                at com.atlassian.stash.internal.hook.repository.AsyncPostReceiveRepositoryHookAdapter$1.visit(AsyncPostReceiveRepositoryHookAdapter.java:49) [bitbucket-service-impl-4.8.3.jar:na]
                at com.atlassian.stash.internal.hook.repository.AsyncPostReceiveRepositoryHookAdapter$1.visit(AsyncPostReceiveRepositoryHookAdapter.java:45) [bitbucket-service-impl-4.8.3.jar:na]
                at com.atlassian.stash.internal.hook.repository.DefaultRepositoryHookService$RepositoryHookPagedTransactionCallback.doInTransaction(DefaultRepositoryHookService.java:573) [bitbucket-service-impl-4.8.3.jar:na]
                at com.atlassian.stash.internal.hook.repository.DefaultRepositoryHookService$RepositoryHookPagedTransactionCallback.doInTransaction(DefaultRepositoryHookService.java:549) [bitbucket-service-impl-4.8.3.jar:na]
                at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133) [spring-tx-4.2.5.RELEASE.jar:4.2.5.RELEASE]
                at com.atlassian.stash.internal.hook.repository.DefaultRepositoryHookService.visitEnabledHooks(DefaultRepositoryHookService.java:279) [bitbucket-service-impl-4.8.3.jar:na]
                at com.atlassian.stash.internal.hook.repository.AsyncPostReceiveRepositoryHookAdapter.postReceive(AsyncPostReceiveRepositoryHookAdapter.java:45) [bitbucket-service-impl-4.8.3.jar:na]
                at com.atlassian.stash.internal.hook.repository.AsyncPostReceiveRepositoryHookAdapter.onRefsChangedEvent(AsyncPostReceiveRepositoryHookAdapter.java:40) [bitbucket-service-impl-4.8.3.jar:na]
                at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:36) [atlassian-event-3.0.0.jar:na]
                at com.atlassian.stash.internal.event.AsyncBatchingInvokersTransformer$AsyncInvokerBatch.invoke(AsyncBatchingInvokersTransformer.java:109) [bitbucket-platform-4.8.3.jar:na]
                at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1$1.run(AsynchronousAbleEventDispatcher.java:46) [atlassian-event-3.0.0.jar:na]
                at com.atlassian.sal.core.executor.ThreadLocalDelegateRunnable.run(ThreadLocalDelegateRunnable.java:34) [sal-core-3.0.6.jar:na]
                at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_74]
                at java.lang.Thread.run(Unknown Source) [na:1.8.0_74]
                ... 29 frames trimmed
ERROR [sg:thread-13]  b.f.bitbucket.hook.PushEmailNotifier Bad response status 302, body: , payload: {"channel":"#bitbucket","text":"*Push by SubGit - (SubGit)* [<url>..0000000@<url>] Tag deleted","username":"repository_name "}
ERROR [sg:thread-13]  b.f.bitbucket.hook.PushEmailNotifier Exception talking to slack
org.apache.http.client.ClientProtocolException: Unexpected response status: 302
                at be.foreach.bitbucket.hook.PushEmailNotifier$1.handleResponse(PushEmailNotifier.java:191) ~[plugin.7560048937071369826.notifier-4.0.1_1473347185850.jar:na]
                at be.foreach.bitbucket.hook.PushEmailNotifier$1.handleResponse(PushEmailNotifier.java:182) ~[plugin.7560048937071369826.notifier-4.0.1_1473347185850.jar:na]
                at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:222) ~[httpclient-4.5.1.jar:4.5.1]
                at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:164) ~[httpclient-4.5.1.jar:4.5.1]
                at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:139) ~[httpclient-4.5.1.jar:4.5.1]
                at be.foreach.bitbucket.hook.PushEmailNotifier.sendSlackNotification(PushEmailNotifier.java:196) [plugin.7560048937071369826.notifier-4.0.1_1473347185850.jar:na]
                at be.foreach.bitbucket.hook.PushEmailNotifier.postReceive(PushEmailNotifier.java:123) [plugin.7560048937071369826.notifier-4.0.1_1473347185850.jar:na]
                at com.atlassian.stash.internal.hook.repository.AsyncPostReceiveRepositoryHookAdapter$1.visit(AsyncPostReceiveRepositoryHookAdapter.java:49) [bitbucket-service-impl-4.8.3.jar:na]
                at com.atlassian.stash.internal.hook.repository.AsyncPostReceiveRepositoryHookAdapter$1.visit(AsyncPostReceiveRepositoryHookAdapter.java:45) [bitbucket-service-impl-4.8.3.jar:na]
                at com.atlassian.stash.internal.hook.repository.DefaultRepositoryHookService$RepositoryHookPagedTransactionCallback.doInTransaction(DefaultRepositoryHookService.java:573) [bitbucket-service-impl-4.8.3.jar:na]
                at com.atlassian.stash.internal.hook.repository.DefaultRepositoryHookService$RepositoryHookPagedTransactionCallback.doInTransaction(DefaultRepositoryHookService.java:549) [bitbucket-service-impl-4.8.3.jar:na]
                at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133) [spring-tx-4.2.5.RELEASE.jar:4.2.5.RELEASE]
                at com.atlassian.stash.internal.hook.repository.DefaultRepositoryHookService.visitEnabledHooks(DefaultRepositoryHookService.java:279) [bitbucket-service-impl-4.8.3.jar:na]
                at com.atlassian.stash.internal.hook.repository.AsyncPostReceiveRepositoryHookAdapter.postReceive(AsyncPostReceiveRepositoryHookAdapter.java:45) [bitbucket-service-impl-4.8.3.jar:na]
                at com.atlassian.stash.internal.hook.repository.AsyncPostReceiveRepositoryHookAdapter.onRefsChangedEvent(AsyncPostReceiveRepositoryHookAdapter.java:40) [bitbucket-service-impl-4.8.3.jar:na]
                at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:36) [atlassian-event-3.0.0.jar:na]
                at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1$1.run(AsynchronousAbleEventDispatcher.java:46) [atlassian-event-3.0.0.jar:na]
                at com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute(MoreExecutors.java:299) [guava-18.0.jar:na]
                at com.atlassian.event.internal.AsynchronousAbleEventDispatcher.dispatch(AsynchronousAbleEventDispatcher.java:105) [atlassian-event-3.0.0.jar:na]
                at com.atlassian.event.internal.LockFreeEventPublisher$Publisher.dispatch(LockFreeEventPublisher.java:260) [atlassian-event-3.0.0.jar:na]
                at com.atlassian.event.internal.LockFreeEventPublisher.publish(LockFreeEventPublisher.java:102) [atlassian-event-3.0.0.jar:na]
                at com.atlassian.stash.internal.event.TransactionAwareEventPublisher.internalPublish(TransactionAwareEventPublisher.java:155) [bitbucket-platform-4.8.3.jar:na]
                at com.atlassian.stash.internal.event.TransactionAwareEventPublisher.publish(TransactionAwareEventPublisher.java:99) [bitbucket-platform-4.8.3.jar:na]
                at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26) [atlassian-plugins-core-4.1.8.jar:na]
                at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56) [gemini-blueprint-core-2.0.0.BUILD-atlassian-m002.jar:2.0.0.BUILD-atlassian-m002]
                at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60) [gemini-blueprint-core-2.0.0.BUILD-atlassian-m002.jar:2.0.0.BUILD-atlassian-m002]
                at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70) [gemini-blueprint-core-2.0.0.BUILD-atlassian-m002.jar:2.0.0.BUILD-atlassian-m002]
                at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53) [gemini-blueprint-core-2.0.0.BUILD-atlassian-m002.jar:2.0.0.BUILD-atlassian-m002]
                at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57) [gemini-blueprint-core-2.0.0.BUILD-atlassian-m002.jar:2.0.0.BUILD-atlassian-m002]
                at org.tmatesoft.subgit.stash.mirror.SgMirrorService$1.perform(SourceFile:156) [plugin.6329338392148738264.translator-stash-3.3.0-package_1471274622145.jar:na]
                at org.tmatesoft.subgit.stash.mirror.SgMirrorService$1.perform(SourceFile:152) [plugin.6329338392148738264.translator-stash-3.3.0-package_1471274622145.jar:na]
                at com.atlassian.stash.internal.user.DefaultEscalatedSecurityContext.call(DefaultEscalatedSecurityContext.java:51) [bitbucket-service-impl-4.8.3.jar:na]
                at org.tmatesoft.subgit.stash.mirror.SgMirrorService.forceRepositoryRefresh(SourceFile:164) [plugin.6329338392148738264.translator-stash-3.3.0-package_1471274622145.jar:na]
                at org.tmatesoft.subgit.stash.mirror.tasks.SgSyncTask.doSync(SourceFile:96) [plugin.6329338392148738264.translator-stash-3.3.0-package_1471274622145.jar:na]
                at org.tmatesoft.subgit.stash.mirror.tasks.SgSyncTask.runSyncCommands(SourceFile:76) [plugin.6329338392148738264.translator-stash-3.3.0-package_1471274622145.jar:na]
                at org.tmatesoft.subgit.stash.mirror.tasks.SgSyncTask.runSecurely(SourceFile:71) [plugin.6329338392148738264.translator-stash-3.3.0-package_1471274622145.jar:na]
                at org.tmatesoft.subgit.stash.mirror.tasks.SgMirrorTask$1.perform(SourceFile:83) [plugin.6329338392148738264.translator-stash-3.3.0-package_1471274622145.jar:na]
                at org.tmatesoft.subgit.stash.mirror.tasks.SgMirrorTask$1.perform(SourceFile:79) [plugin.6329338392148738264.translator-stash-3.3.0-package_1471274622145.jar:na]
                at com.atlassian.stash.internal.user.DefaultEscalatedSecurityContext.call(DefaultEscalatedSecurityContext.java:51) [bitbucket-service-impl-4.8.3.jar:na]
                at org.tmatesoft.subgit.stash.mirror.tasks.SgMirrorTask.run(SourceFile:79) [plugin.6329338392148738264.translator-stash-3.3.0-package_1471274622145.jar:na]
                at org.tmatesoft.subgit.stash.mirror.tasks.SgMirrorTask.run(SourceFile:17) [plugin.6329338392148738264.translator-stash-3.3.0-package_1471274622145.jar:na]
                at org.tmatesoft.subgit.stash.mirror.scheduler.SgTaskScheduler$TaskWrapper.runTask(SourceFile:778) [plugin.6329338392148738264.translator-stash-3.3.0-package_1471274622145.jar:na]
                at org.tmatesoft.subgit.stash.mirror.scheduler.SgTaskScheduler$TaskWrapper.run(SourceFile:742) [plugin.6329338392148738264.translator-stash-3.3.0-package_1471274622145.jar:na]
                at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_74]
                at java.lang.Thread.run(Unknown Source) [na:1.8.0_74]
                ... 48 frames trimmed


原因

The SVN Mirror for Bitbucket Server add on is causing the tag to be removed immediately after it has been created. 

A similar issue has been reported on the add on developer issue tracker:

ソリューション

Until the reported bug is resolved, uninstall the add on.

最終更新日: 2016 年 12 月 6 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.