【问题标题】:Too many concurrent connections ssh on JenkinsJenkins 上的 ssh 并发连接太多
【发布时间】:2020-12-30 09:28:19
【问题描述】:

当我将我的项目上传到 Bitbucket 时,Jenkins 的管道会执行几个文件来检查我的更改是否没有破坏项目。主线是"stderr: Received disconnect from 10.34.6.240 port 7999:12: Too many concurrent connections (250) - max. allowed: 250"

所有错误:

git fetch --tags --progress ssh://git@bitbucket.tecnotech.com:7999/qat/sgi-linkingtool-web-test.git +refs/heads/*:refs/remotes/origin/* # timeout=10

ERROR: Error fetching remote repo 'origin'
    
    hudson.plugins.git.GitException: Failed to fetch from ssh://git@bitbucket.tecnotech.com:7999/qat/sgi-linkingtool-web-test.git

    at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:908)

    at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1123)

    at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1159)

    at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:124)

    at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:93)

    at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:80)

    at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)

    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

    at java.util.concurrent.FutureTask.run(FutureTask.java:266)

    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:748)

    Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress ssh://git@bitbucket.tecnotech.com:7999/qat/sgi-linkingtool-web-test.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
    
    stdout: 
    
    stderr: Received disconnect from 10.34.6.240 port 7999:12: Too many concurrent connections (250) - max. allowed: 250
    
    Authentication failed.
    
    fatal: Could not read from remote repository.

【问题讨论】:

    标签: jenkins ssh server bitbucket


    【解决方案1】:

    看来您需要增加plugin.ssh.session.max 的值。请参阅Bitbucket configuration manuall 中的相应部分。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-08-10
      • 1970-01-01
      • 2022-08-22
      • 1970-01-01
      • 2017-10-06
      • 2015-11-21
      相关资源
      最近更新 更多