Relay 403 error

Having this error below in relay what can I do? what can I add to config ?

{“log”:“2021-01-27T09:24:46Z [relay_server::actors::upstream] ERROR: authentication encountered error: upstream request returned error 403 Forbidden\n”,“stream”:“stderr”,“time”:“2021-01-27T09:24:46.164584928Z”}

Can you share more logs and your relay config? Also the version you are using.

I`m using version Sentry 21.2.0.dev000b074c
These are the logs of the relay:

{“log”:" caused by: Relay is not allowed to register\n",“stream”:“stderr”,“time”:“2021-01-28T05:58:39.533751222Z”}
{“log”:“2021-01-28T05:58:39Z [relay_server::actors::upstream] DEBUG: scheduling authentication retry in 60 seconds\n”,“stream”:“stderr”,“time”:“2021-01-28T05:58:39.53375551Z”}
{“log”:“2021-01-28T05:59:39Z [relay_server::actors::upstream] INFO: registering with upstream (http://10.64.93.21:9000/)\n”,“stream”:“stderr”,“time”:“2021-01-28T05:59:39.535019488Z”}
{“log”:“2021-01-28T05:59:39Z [relay_server::actors::upstream] DEBUG: Recovering from network outage.\n”,“stream”:“stderr”,“time”:“2021-01-28T05:59:39.54622491Z”}
{“log”:“2021-01-28T05:59:39Z [relay_server::actors::upstream] ERROR: authentication encountered error: upstream request returned error 403 Forbidden\n”,“stream”:“stderr”,“time”:“2021-01-28T05:59:39.546427427Z”}
{“log”:" caused by: Relay is not allowed to register\n",“stream”:“stderr”,“time”:“2021-01-28T05:59:39.546439149Z”}
{“log”:“2021-01-28T05:59:39Z [relay_server::actors::upstream] DEBUG: scheduling authentication retry in 60 seconds\n”,“stream”:“stderr”,“time”:“2021-01-28T05:59:39.548823119Z”}
{“log”:“2021-01-28T06:00:39Z [relay_server::actors::upstream] INFO: registering with upstream (http://10.64.93.21:9000/)\n”,“stream”:“stderr”,“time”:“2021-01-28T06:00:39.550265459Z”}
{“log”:“2021-01-28T06:00:39Z [relay_server::actors::upstream] DEBUG: Recovering from network outage.\n”,“stream”:“stderr”,“time”:“2021-01-28T06:00:39.556332911Z”}
{“log”:“2021-01-28T06:00:39Z [relay_server::actors::upstream] ERROR: authentication encountered error: upstream request returned error 403 Forbidden\n”,“stream”:“stderr”,“time”:“2021-01-28T06:00:39.556405015Z”}
{“log”:" caused by: Relay is not allowed to register\n",“stream”:“stderr”,“time”:“2021-01-28T06:00:39.55641295Z”}
{“log”:“2021-01-28T06:00:39Z [relay_server::actors::upstream] DEBUG: scheduling authentication retry in 60 seconds\n”,“stream”:“stderr”,“time”:“2021-01-28T06:00:39.556416356Z”}
{“log”:“2021-01-28T06:01:39Z [relay_server::actors::upstream] INFO: registering with upstream (http://10.64.93.21:9000/)\n”,“stream”:“stderr”,“time”:“2021-01-28T06:01:39.557299095Z”}
{“log”:“2021-01-28T06:01:39Z [relay_server::actors::upstream] DEBUG: Recovering from network outage.\n”,“stream”:“stderr”,“time”:“2021-01-28T06:01:39.56890347Z”}
{“log”:“2021-01-28T06:01:39Z [relay_server::actors::upstream] ERROR: authentication encountered error: upstream request returned error 403 Forbidden\n”,“stream”:“stderr”,“time”:“2021-01-28T06:01:39.568924669Z”}
{“log”:" caused by: Relay is not allowed to register\n",“stream”:“stderr”,“time”:“2021-01-28T06:01:39.568928176Z”}
{“log”:“2021-01-28T06:01:39Z [relay_server::actors::upstream] DEBUG: scheduling authentication retry in 60 seconds\n”,“stream”:“stderr”,“time”:“2021-01-28T06:01:39.568930661Z”}
{“log”:“2021-01-28T06:02:39Z [relay_server::actors::upstream] INFO: registering with upstream (http://10.64.93.21:9000/)\n”,“stream”:“stderr”,“time”:“2021-01-28T06:02:39.569894163Z”}
{“log”:“2021-01-28T06:02:39Z [relay_server::actors::upstream] DEBUG: Recovering from network outage.\n”,“stream”:“stderr”,“time”:“2021-01-28T06:02:39.579726447Z”}
{“log”:“2021-01-28T06:02:39Z [relay_server::actors::upstream] ERROR: authentication encountered error: upstream request returned error 403 Forbidden\n”,“stream”:“stderr”,“time”:“2021-01-28T06:02:39.579789374Z”}
{“log”:" caused by: Relay is not allowed to register\n",“stream”:“stderr”,“time”:“2021-01-28T06:02:39.579801206Z”}
{“log”:“2021-01-28T06:02:39Z [relay_server::actors::upstream] DEBUG: scheduling authentication retry in 60 seconds\n”,“stream”:“stderr”,“time”:“2021-01-28T06:02:39.579805785Z”}

This is the relay config.yml

relay:
upstream: “http://10.64.93.21:9000/
host: 0.0.0.0
port: 3000
logging:
level: DEBUG
processing:
enabled: true
kafka_config:
- {name: “bootstrap.servers”, value: “kafka:9092”}
- {name: “message.max.bytes”, value: 50000000} #50MB or bust
redis: redis://redis:6379
geoip_path: “/geoip/GeoLite2-City.mmdb”
http:
_client: “reqwest”

This was resolved the problem was that relay was trying to pass from proxy to communicate and log the error in sentry had to remove the proxy settings remove the instance deployed and redeploy it with the script for the settings to be implemented in the relay container.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.