Description
After updating RC and MongoDB, I’m getting the following errors. RC is working, but notifications (both in the browser and app) just don’t work anymore.
{“level”:40,“time”:“2022-09-15T11:54:21.307Z”,“pid”:1,“hostname”:“39f56867de46”,“name”:“Push”,“msg”:“Error sending push to gateway (not authorized) {"statusCode":401,"content":"{\"code\":121,\"error\":\"rocket.chat cloud registration required\",\"requestId\":\"0bc27b0d-1e88-4859-b3a4-4a8d3eb88698\",\"status\":401}","headers":{"access-control-allow-headers":"Content-Type, Authorization, Content-Length, X-Requested-With","access-control-allow-methods":"GET, PUT, POST, DELETE, OPTIONS","access-control-allow-origin":"*","access-control-expose-headers":"Content-Type, Authorization, Cache-Control, Expires, Pragma, X-powered-by","cache-control":"private, no-cache, no-store, must-revalidate","connection":"close","content-length":"126","content-type":"application/json; charset=utf-8","date":"Thu, 15 Sep 2022 11:54:21 GMT","expires":"-1","pragma":"no-cache","vary":"Accept-Encoding","x-powered-by":"Rocket Fuel and Rocketeers"},"ok":false,"data":{"code":121,"error":"rocket.chat cloud registration required","requestId":"0bc27b0d-1e88-4859-b3a4-4a8d3eb88698","status":401}}”}
I’ve tried re-registering RC on the cloud and currently it shows the instance is connected. I’m also able to sync it, at least that’s the notification that I get.
but I cannot Login to Rocket.Chat Cloud when I click the Login to Rocket.Chat Cloud button. This is the error message that I get:
{“level”:50,“time”:“2022-09-15T12:01:09.946Z”,“pid”:1,“hostname”:“39f56867de46”,“name”:“System”,“err”:{“type”:“Error”,“message”:“failed [401]{"status":401}”,“stack”:“Error: failed [401]{"status":401}\n at makeErrorByStatus (server/lib/http/call.ts:59:9)\n at server/lib/http/call.ts:168:19\n at /app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40”,“response”:{“statusCode”:401,“content”:“{"status":401}”,“headers”:{“access-control-allow-headers”:“Content-Type, Authorization, Content-Length, Last-Event-ID, X-Requested-With”,“access-control-allow-methods”:“GET, PUT, POST, DELETE, OPTIONS”,“access-control-allow-origin”:“*”,“access-control-expose-headers”:“Content-Type, Authorization, Cache-Control, Expires, Pragma, X-powered-by”,“cache-control”:“private, no-cache, no-store, must-revalidate”,“connection”:“close”,“content-length”:“14”,“content-type”:“application/json; charset=utf-8”,“date”:“Thu, 15 Sep 2022 12:01:09 GMT”,“expires”:“-1”,“pragma”:“no-cache”,“vary”:“Accept-Encoding”,“x-fleet-version”:“-77b34ba”,“x-powered-by”:“Rocket Fuel and Rocketeers”},“ok”:false,“data”:{“status”:401}}},“msg”:“failed [401]{"status":401}”}
{“level”:50,“time”:“2022-09-15T12:03:45.303Z”,“pid”:1,“hostname”:“39f56867de46”,“name”:“System”,“msg”:“Exception while invoking method cloud:finishOAuthAuthorization ‘Invalid state provided [error-invalid-state]’”}
Server Setup Information
- Version of Rocket.Chat Server: 5.0.3
- Operating System: Unraid
- Deployment Method: docker
- Number of Running Instances: 1
- DB Replicaset Oplog: Enabled
- NodeJS Version: 14.19.3 - x64
- MongoDB Version: 6.0.1
- Proxy: swag
- Firewalls involved:
±-------------------------------------------------+
| SERVER RUNNING |
±-------------------------------------------------+
| |
| Rocket.Chat Version: 5.0.3 |
| NodeJS Version: 14.19.3 - x64 |
| MongoDB Version: 6.0.1 |
| MongoDB Engine: wiredTiger |
| Platform: linux |
| Process Port: 3000 |
| Site URL: https://my.server.com |
| ReplicaSet OpLog: Enabled |
| Commit Hash: |
| Commit Branch: HEAD |
| |
±-------------------------------------------------+
Any additional Information
Is there any way to resolve this? Any help will be highly appreciated. Thanks in advance!