2016-08-10 3 views
1

一つは、次のエラーで特定の日付以降に作業を停止:ヘリットログは/ var /ヘリット/ログ/ error_logにからヘリット・プロジェクトは、ERROR:チャネルが開かれていない私たちのヘリット・プロジェクトの

エラー: [2016年7月29日17:59:51676]

ERROR com.googlesource.gerrit.plugins.replication.ReplicationQueue : Cannot replicate to [email protected]:company/product.git org.eclipse.jgit.errors.TransportException: [email protected]:company/product.git: channel is not opened. at org.eclipse.jgit.transport.JschSession$JschProcess.(JschSession.java:154) at org.eclipse.jgit.transport.JschSession$JschProcess.(JschSession.java:118) at org.eclipse.jgit.transport.JschSession.exec(JschSession.java:91) at org.eclipse.jgit.transport.TransportGitSsh$SshPushConnection.(TransportGitSsh.java:306) at org.eclipse.jgit.transport.TransportGitSsh.openPush(TransportGitSsh.java:152) at org.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:154) at org.eclipse.jgit.transport.Transport.push(Transport.java:1167) at org.eclipse.jgit.transport.Transport.push(Transport.java:1213) at com.googlesource.gerrit.plugins.replication.PushOne.pushVia(PushOne.java:307) at com.googlesource.gerrit.plugins.replication.PushOne.runImpl(PushOne.java:252) at com.googlesource.gerrit.plugins.replication.PushOne.runPushOperation(PushOne.java:207) at com.googlesource.gerrit.plugins.replication.PushOne.access$000(PushOne.java:71) at com.googlesource.gerrit.plugins.replication.PushOne$1.call(PushOne.java:186) at com.googlesource.gerrit.plugins.replication.PushOne$1.call(PushOne.java:183) at com.google.gerrit.server.util.RequestScopePropagator$5.call(RequestScopePropagator.java:222) at com.google.gerrit.server.util.RequestScopePropagator$4.call(RequestScopePropagator.java:201) at com.google.gerrit.server.git.PerThreadRequestScope$Propagator$1.call(PerThreadRequestScope.java:75) at com.googlesource.gerrit.plugins.replication.PushOne.run(PushOne.java:183) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) at com.google.gerrit.server.git.WorkQueue$Task.run(WorkQueue.java:337) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: com.jcraft.jsch.JSchException: channel is not opened. at com.jcraft.jsch.Channel.connect(Channel.java:197) at org.eclipse.jgit.transport.JschSession$JschProcess.(JschSession.java:150) ... 25 more

当社のヘリットバージョンはCentOSの上2.6.1インストールされているAWSで6.8をリリース。

マイヘリット・レプリケーション構成は次のとおりです。

[remote "bitbucket"] 
    url = [email protected]:qpidhealth/${name}.git 
    push = +refs/heads/*:refs/heads/* 
    push = +refs/tags/*:refs/tags/* 
    threads = 2 
    authGroup = Replication 

任意のアイデア?前もって感謝します!

+0

Atlassian:https://answers.atlassian.com/questions/39449158/cant-repo-sync-anymoreとGerritグループ:https://groups.google.com/forum/#からの回答を待ってください。 !topic/repo-discuss/oa2Dy0wpXhw。これまでのクリケット。 – zzzeek

答えて

-1

「org.eclipse.jgit.api.errors.TransportExceptionチャネルが開かれていません」というグーグルで質問したところ、関連する(問題がどれくらい近いか)問題が発生しました。これもまた私に指摘しました:

申し訳ありませんが、次はまったく明確な答えはありませんが、ちょうどすぐにそれは私には思えたこれらのポインタを一瞥することで、このはのBitbucketとしていないとの問題でした私のコード。実際には、私はアプリケーションを置き換え、以前はTransportExceptionを引き起こしていたステップを正常に完了しました。だから、この潜在的な問題をよりうまく処理するための回避策として、私は例外をキャッチして1〜2回もう一度やり直すことを計画しています。

+0

ありがとうCarueda。 Bitbucketのサポートでさえ助けにならなかった。自分のレプリケーションソリューションを実装しました。私はGerritをアップグレードした後、再度レプリケーションプラグインを試してみます。それが一つの要因かもしれない。 –

+0

確かにross-aribi、あなたはそれが有用であることをうれしく思っています。ええ、残念ながらBitbucket/Atlassianのサポートは時には少し不満を募らせます。これは私がこの回避策に頼ったケースでした。 – carueda

1

これは既知の問題です。この問題は、Gitによってフードの下で使用されるSSHによって引き起こされます。 BitbucketはSSH多重化を無効にしました。その結果、このエラーが発生しています。いくつかの提案された解決策がありますが、どれも私のために働いていません。 https://community.atlassian.com/t5/Bitbucket-questions/Can-t-repo-sync-anymore/qaq-p/354231

私はHTTPSを試してみることにしました。

あなたは、replication.configファイル

第二
[remote "bitbucket"] 
    url = https://[email protected]/USER/${name}.git 
    push = +refs/tags/*:refs/tags/* 
    push = +refs/heads/*:refs/heads/* 
    mirror = true 
    projects = NameOfYourProject 
    replicateOnStartup = true 
    replicatePermissions = false 

にリモートセクションを追加

[remote "bitbucket"] 
    password = yourBitbucketPassword 

そして今、プラグインの設定をリロードし、次のようにetc/secure.configファイルであなたのBitbucketのアカウント情報を設定する必要がまず第一にリポジトリを複製しようとします。

私は、HTTPS経由でのレプリケーションの設定についての記事を書いています。設定プロセスの詳細については、こちらを参照してください。 https://crosp.net/blog/administration/devops/setting-gerrit-bitbucket-replication-https/

+1

あなたは@ CROSPよりも、私はこの問題をあきらめ、私自身の解決策を実装しました(費用対効果)。私はGerritをアップグレードした直後に再びレプリケーションプラグインを試してみます。 –

+0

@RossAribi、あなたはそれを設定する際に問題があれば、歓迎します。私に連絡すること自由に感じてください – CROSP

関連する問題