The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem "stderr: error: RPC failed; result=22, HTTP code = 403 fatal: The remote end hung up unexpec

Mongkol Thongkraikaew
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 1, 2019

two type of error when i using git plugin on jenkins

1: 403 Forbidden Permission
We use "jenkins-autodeployment" account for accessing git repos. This account is a member admin group on BitBucket. admin is granted permission to access all git repos of corporation . So by right, "jenkins-autodeployment" account should have access to all bitbucket but somehow we get 403 forbidden access for this account sometimes. We notice that this problem occurs more often lately. By adding "jenkins-autodeployment" account manually to git repo, we solve this 403 forbidden access problem.

2: fatal: The remote end hung up unexpectedly
For all the cases reported, beside the 403 problem, they are all caused by the remote server end hung up unexpectedly. In this case it is BitBucket terminates connection for some unknown reason. We notice that by disable git shallow fetch ( --depth=1 ), the problem does not occur anymore.

Please kindly support and investigate this case because now blocking developer to work

Configure Jenkins

checkout([
    $class: 'GitSCM', 
    branches: [[name: "*/master"]], 
    doGenerateSubmoduleConfigurations: false, 
    extensions: [[
      $class: 'CloneOption', 
      depth: 1, 
      noTags: true, 
      reference: '', 
      shallow: false
    ]], 
    submoduleCfg: [], 
    userRemoteConfigs: [[
      credentialsId: bitbucket-credential, 
      url: git_openshift_configuration
    ]]

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 25, 2019

Hi @Mongkol Thongkraikaew ,

Seems like you encountered a Jenkins issue. Our Community focuses on Atlassian products, so I'm afraid we won't be able to troubleshoot this issue with Jenkins, but you can head over their Support community for assistance. 

Hope that helps you :) 

Ana

TAGS
AUG Leaders

Atlassian Community Events