In the BitBucket pipeline we found that SonarCloud is not able to connect to the configured in sonar_project.properties file.
- BitBucket Cloud is the repository
- BitBucket Cloud is the CI system used
- SQL & PL / SQL Languages are used with the repository for analysis
- The SonarCloud project is private
- Error observed with BitBucket pipeline
ERROR Error during SonarScanner Engine execution
java.lang.IllegalStateException: SQLException occurred while loading the Data Dictionary.
at com.sonar.plsql.plugin.C.A(Unknown Source)
at com.sonar.plsql.plugin.C.(Unknown Source)
at com.sonar.plsql.plugin.I.execute(Unknown Source)
Caused by: oracle.net.ns.NetException: ORA-12170: Cannot connect. TCP connect timeout of 20000ms for host. (CONNECTION_ID=kDg34FFxSS+skzajxLv6Xw==)
at oracle.net.nt.TcpNTAdapter.handleEstablishSocketException(TcpNTAdapter.java:385)
at oracle.net.nt.TcpNTAdapter.establishSocket(TcpNTAdapter.java:350)
We have whitelisted below IP addresses and however its not successful to connect DB which residing in our private network.
IPv4 inbound for bitbucket.org, api.bitbucket.org, and altssh.bitbucket.org
104.192.136.0/21
185.166.140.0/22
13.200.41.128/25
SonarQube Cloud currently allows the following static IP addresses for outgoing calls to supported DevOps platforms (GitHub, GitLab, Azure DevOps Services, and BitBucket Cloud):
- 3.122.211.192
- 35.158.229.250
- 18.196.105.168
- 3.68.134.44
- 3.74.220.70
- 3.74.69.101
IP addresses and domains to allowlist in your corporate firewall | Bitbucket Cloud | Atlassian Support
Organizations advanced administration | SonarQube Cloud Documentation
Please suggest your inputs on valid IP address for SonarQube and BitBucket Cloud to run the pipeline successfully.
Thanks,
Raghunath