Marketplace Error 403

Hello everybody,

I’m actually trying to make the marketplace work but I get an error 403 Forbidden as a response from the sonarsource server.

I’m using * Enterprise Edition * Version 7.9 (build 26994)

My proxy allows me to get out and connect to https://update.sonarsource.org/

Resolving vip-browsing.xx.xxxxx.xxxx (vip-browsing.xxx.xxxxx.xxxx)... 10.xxx.xx.xx
Connecting to vip-browsing.xx.xxxxx.xxxx (vip-browsing.xx.xxxxx.xxxx)|10.xxx.xx.xx|:8080... connected.
Proxy request sent, awaiting response... 403 Forbidden
2021-02-03 13:57:01 ERROR 403: Forbidden. 

My sonar.conf part concerning themarketplace part:

#--------------------------------------------------------------------------------------------------
# UPDATE CENTER

# Update Center requires an internet connection to request https://update.sonarsource.org
# It is enabled by default.
sonar.updatecenter.activate=true


# HTTP proxy (default none)
#http.proxyHost=
#http.proxyPort=
# HTTPS proxy (defaults are values of http.proxyHost and http.proxyPort)
https.proxyHost=http://vip-browsing.xx.xxxxxx.xxxx
https.proxyPort=8080

# NT domain name if NTLM proxy is used
#http.auth.ntlm.domain=

# SOCKS proxy (default none)
#socksProxyHost=
#socksProxyPort=

# Proxy authentication (used for HTTP, HTTPS and SOCKS proxies)
#http.proxyUser=
#http.proxyPassword=

# Proxy exceptions: list of hosts that can be accessed without going through the proxy
#                   separated by the '|' character, wildcard character '*' can be used for pattern matching
#                   used for HTTP and HTTPS (default none)
#                   (note: localhost and its literal notations (127.0.0.1, ...) are always excluded)
#http.nonProxyHosts=
#--------------------------------------------------------------------------------------------------

I’v a trace from my Firewall Team and everything seems to be ok on our side but the sonarsource server terminates the connection with a FIN flag.

Any help will be greatlky appreciated.

Thanks alot,
Michel

Hi Michel,

Do you perhaps need SonarQube to authenticate with your proxy? Looking at the docs the properties for that stand out to me.

Because I can pretty much guarantee you we’re not sending you back a 403.

 
:woman_shrugging:
Ann

Ann,

We just tested to contact the sonarsource server with all trafic opened.
Proxies are bypassed, antiviruses bypassed, firewall wide open for our server etc…
We come to sonarsource with the public IP: 155.140.79.155 and we still get:

2021.02.10 10:40:27 ERROR web[AXeLR823/4fG2M5aAAAw][o.s.s.p.UpdateCenterClient] Fail to connect to update center
org.sonar.api.utils.SonarException: Fail to download: https://update.sonarsource.org/update-center.properties

If you have any ideas, it will be more than welcome :slight_smile:

Michel

Hi Michel,

At the risk of saying “works on my machine” … that URL loads for me. I don’t know what to tell you but to suggest you take a harder look at your network.

 
Ann

Ann,

Do you have any view on what the sonar server replies to our IP ?

Michel

Sorry, I don’t.

 
Ann