Problem
When attempting to use BitBucket Server as a VCS, a connection reset by peer
error is present. This error includes the IP address of the BB server and a port number.
Prerequisites (if applicable)
- Bitbucket Server
Cause
- The issue may be due to erroneously configured settings, or a transient networking error.
Overview of possible solutions (if applicable)
Solutions:
-
If encountering this error when attempting to complete a run on a workspace, try editing the VCS settings to change the repo to something else, then back to the desired one
-
Review the networking requirements found here
- Note that Bitbucket Data Center's default ports are
7999
for SSH and7990
for HTTP. Check your configuration to confirm your BitBucket instance's currently-configured ports.
- Note that Bitbucket Data Center's default ports are
-
Discuss the error message with your networking teams, providing them the full error message and timestamps for their investigation.
Outcome
Once the connection issues are identified and resolved, runs should progress as expected. If they do not, please reach out to Hashicorp Support for more assistance.