Error in Push Notifications | Cloud Registration Error

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.


02

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!

I’m having this exact same issue on Unraid with the exact same setup and docker versions

Sync says it’s working, which may be true, but when I click the Login to Rocket.Chat Cloud button, it takes me to the Authorization screen, where I receive the “error-invalid-state” error when I press the Authorize button

Following, I have similar issue.
Edit: After going back and forth now I have exactly the same issue!

Funnily enough I received a push notification this morning from the update thread, however I can’t install apps as it requires logging in.

Updated to 5.1.3 and still have the same issue.
Also, messages are sent out but are still grey and not marked as sent out.
The other side sometimes receives a notification that they have received it, but don’t get anything until they refresh.

Here’s the server log entry upon error:

{“level”:50,“time”:“2022-09-26T06:17:22.311Z”,“pid”:1,“hostname”:“0b8fd1acb48a”,“name”:“System”,“msg”:“Exception while invoking method cloud:finishOAuthAuthorization ‘Invalid state provided [error-invalid-state]’”}

Here’s a link to the github bug:

Here’s a link to the unRAID support thread. Looks like it’s not just an unraid issue though as Vaxter is on a different platform

https://forums.unraid.net/topic/61337-support-rocketchat/page/6/

Hi!

Can you ping me at Rocket.Chat so I can take a closer look on it together with you?

The registration is usually an easy step, but a lot can go wrong from both sides, and sometimes is hard to tackle the issue only from logs.

Thanks!

1 Like

{“level”:50,“time”:“2022-09-28T20:51:46.063Z”,“pid”:1,“hostname”:“5e5ffe195f41”,“name”:“System”,“msg”:“Exception while invoking method autoTranslate.getSupportedLanguages ‘Auto-Translate is disabled [error-autotranslate-disabled]’”}
Exception while invoking method autoTranslate.getSupportedLanguages errorClass [Error]: Auto-Translate is disabled [error-autotranslate-disabled]
at MethodInvocation.autoTranslate.getSupportedLanguages (app/autotranslate/server/methods/getSupportedLanguages.ts:11:10)
at MethodInvocation.methodsMap. (app/lib/server/lib/debug.js:74:34)
at maybeAuditArgumentChecks (packages/ddp-server/livedata_server.js:1885:12)
at packages/ddp-server/livedata_server.js:1803:15
at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1257:12)
at packages/ddp-server/livedata_server.js:1801:36
at new Promise ()
at Server.applyAsync (packages/ddp-server/livedata_server.js:1800:12)
at Server.apply (packages/ddp-server/livedata_server.js:1739:26)
at Server.call (packages/ddp-server/livedata_server.js:1721:17)
at Object.post (app/api/server/v1/misc.ts:554:27)
at app/api/server/api.js:463:96
at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1257:12)
at Object._internalRouteActionHandler [as action] (app/api/server/api.js:463:39)
at Route._callEndpoint (packages/rocketchat_restivus/lib/route.coffee:150:32)
at packages/rocketchat_restivus/lib/route.coffee:59:33
at packages/simple_json-routes.js:100:9
=> awaited here:
at Promise.await (/app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:60:12)
at Server.apply (packages/ddp-server/livedata_server.js:1752:22)
at Server.call (packages/ddp-server/livedata_server.js:1721:17)
at Object.post (app/api/server/v1/misc.ts:554:27)
at app/api/server/api.js:463:96
at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1257:12)
at Object._internalRouteActionHandler [as action] (app/api/server/api.js:463:39)
at Route._callEndpoint (packages/rocketchat_restivus/lib/route.coffee:150:32)
at packages/rocketchat_restivus/lib/route.coffee:59:33
at packages/simple_json-routes.js:100:9 {
isClientSafe: true,
error: ‘error-autotranslate-disabled’,
reason: ‘Auto-Translate is disabled’,
details: undefined,
errorType: ‘Meteor.Error’
}
{“level”:35,“time”:“2022-09-28T20:51:46.063Z”,“pid”:1,“hostname”:“5e5ffe195f41”,“name”:“API”,“method”:“POST”,“url”:“/api/v1/method.call/autoTranslate.getSupportedLanguages”,“userId”:“7mkwppfnTDRJsQjEF”,“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36”,“length”:“119”,“host”:“rocket.some.domain”,“referer”:“https://rocket.some.domain/admin/cloud/oauth-callback?code=izuXm_K4p11F1uiUCaDO&state=P7EEWmmq3BktbcaZd",“remoteIP”:“178.222.13.32”,“status”:200,"responseTime”:7}
{“level”:35,“time”:“2022-09-28T20:51:46.065Z”,“pid”:1,“hostname”:“5e5ffe195f41”,“name”:“Meteor”,“method”:“autoTranslate.getProviderUiMetadata”,“userId”:“7mkwppfnTDRJsQjEF”,“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36”,“referer”:“https://rocket.some.domain/admin/cloud/oauth-callback?code=izuXm_K4p11F1uiUCaDO&state=P7EEWmmq3BktbcaZd",“remoteIP”:“178.222.13.32”,“instanceId”:"dHfK9f7YuSr9Qr7Xk”}
{“level”:35,“time”:“2022-09-28T20:51:46.065Z”,“pid”:1,“hostname”:“5e5ffe195f41”,“name”:“API”,“method”:“POST”,“url”:“/api/v1/method.call/autoTranslate.getProviderUiMetadata”,“userId”:“7mkwppfnTDRJsQjEF”,“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36”,“length”:“113”,“host”:“rocket.some.domain”,“referer”:“https://rocket.some.domain/admin/cloud/oauth-callback?code=izuXm_K4p11F1uiUCaDO&state=P7EEWmmq3BktbcaZd",“remoteIP”:“178.222.13.32”,“status”:200,"responseTime”:0}
{“level”:35,“time”:“2022-09-28T20:51:46.073Z”,“pid”:1,“hostname”:“5e5ffe195f41”,“name”:“API”,“method”:“POST”,“url”:“/api/v1/method.call/cloud:checkRegisterStatus”,“userId”:“7mkwppfnTDRJsQjEF”,“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36”,“length”:“103”,“host”:“rocket.some.domain”,“referer”:“https://rocket.some.domain/admin/cloud/oauth-callback?code=izuXm_K4p11F1uiUCaDO&state=P7EEWmmq3BktbcaZd",“remoteIP”:“178.222.13.32”,“status”:200,"responseTime”:7}
{“level”:35,“time”:“2022-09-28T20:51:46.371Z”,“pid”:1,“hostname”:“5e5ffe195f41”,“name”:“API”,“method”:“GET”,“url”:“/api/v1/cloud.registrationStatus”,“userId”:“7mkwppfnTDRJsQjEF”,“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36”,“host”:“rocket.some.domain”,“referer”:“https://rocket.some.domain/admin/cloud/oauth-callback?code=izuXm_K4p11F1uiUCaDO&state=P7EEWmmq3BktbcaZd",“remoteIP”:“178.222.13.32”,“status”:200,"responseTime”:4}
{“level”:35,“time”:“2022-09-28T20:51:46.413Z”,“pid”:1,“hostname”:“5e5ffe195f41”,“name”:“API”,“method”:“GET”,“url”:“/api/v1/licenses.isEnterprise”,“userId”:“7mkwppfnTDRJsQjEF”,“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36”,“host”:“rocket.some.domain”,“referer”:“https://rocket.some.domain/admin/cloud/oauth-callback?code=izuXm_K4p11F1uiUCaDO&state=P7EEWmmq3BktbcaZd",“remoteIP”:“178.222.13.32”,“status”:200,"responseTime”:3}
{“level”:35,“time”:“2022-09-28T20:51:46.568Z”,“pid”:1,“hostname”:“5e5ffe195f41”,“name”:“API”,“method”:“POST”,“url”:“/api/v1/method.call/cloud:checkRegisterStatus”,“userId”:“7mkwppfnTDRJsQjEF”,“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36”,“length”:“103”,“host”:“rocket.some.domain”,“referer”:“https://rocket.some.domain/admin/cloud/oauth-callback?code=izuXm_K4p11F1uiUCaDO&state=P7EEWmmq3BktbcaZd",“remoteIP”:“178.222.13.32”,“status”:200,"responseTime”:1}
{“level”:50,“time”:“2022-09-28T20:51:46.571Z”,“pid”:1,“hostname”:“5e5ffe195f41”,“name”:“System”,“msg”:“Exception while invoking method cloud:finishOAuthAuthorization ‘Invalid state provided [error-invalid-state]’”}
Exception while invoking method cloud:finishOAuthAuthorization errorClass [Error]: Invalid state provided [error-invalid-state]
at finishOAuthAuthorization (app/cloud/server/functions/finishOAuthAuthorization.js:12:9)
at MethodInvocation.cloud:finishOAuthAuthorization (app/cloud/server/methods.js:147:10)
at maybeAuditArgumentChecks (packages/ddp-server/livedata_server.js:1885:12)
at packages/ddp-server/livedata_server.js:1803:15
at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1257:12)
at packages/ddp-server/livedata_server.js:1801:36
at new Promise ()
at Server.applyAsync (packages/ddp-server/livedata_server.js:1800:12)
at Server.apply (packages/ddp-server/livedata_server.js:1739:26)
at Server.call (packages/ddp-server/livedata_server.js:1721:17)
at Object.post (app/api/server/v1/misc.ts:554:27)
at app/api/server/api.js:463:96
at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1257:12)
at Object._internalRouteActionHandler [as action] (app/api/server/api.js:463:39)
at Route._callEndpoint (packages/rocketchat_restivus/lib/route.coffee:150:32)
at packages/rocketchat_restivus/lib/route.coffee:59:33
at packages/simple_json-routes.js:100:9
=> awaited here:
at Promise.await (/app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:60:12)
at Server.apply (packages/ddp-server/livedata_server.js:1752:22)
at Server.call (packages/ddp-server/livedata_server.js:1721:17)
at Object.post (app/api/server/v1/misc.ts:554:27)
at app/api/server/api.js:463:96
at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1257:12)
at Object._internalRouteActionHandler [as action] (app/api/server/api.js:463:39)
at Route._callEndpoint (packages/rocketchat_restivus/lib/route.coffee:150:32)
at packages/rocketchat_restivus/lib/route.coffee:59:33
at packages/simple_json-routes.js:100:9 {
isClientSafe: true,
error: ‘error-invalid-state’,
reason: ‘Invalid state provided’,
details: { method: ‘cloud:finishOAuthAuthorization’ },
errorType: ‘Meteor.Error’
}
{“level”:35,“time”:“2022-09-28T20:51:46.571Z”,“pid”:1,“hostname”:“5e5ffe195f41”,“name”:“API”,“method”:“POST”,“url”:“/api/v1/method.call/cloud:finishOAuthAuthorization”,“userId”:“7mkwppfnTDRJsQjEF”,“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36”,“length”:“154”,“host”:“rocket.some.domain”,“referer”:“https://rocket.some.domain/admin/cloud/oauth-callback?code=izuXm_K4p11F1uiUCaDO&state=P7EEWmmq3BktbcaZd",“remoteIP”:“178.222.13.32”,“status”:200,"responseTime”:2}
{“level”:35,“time”:“2022-09-28T20:51:46.635Z”,“pid”:1,“hostname”:“5e5ffe195f41”,“name”:“API”,“method”:“GET”,“url”:“/api/v1/licenses.get”,“userId”:“7mkwppfnTDRJsQjEF”,“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36”,“host”:“rocket.some.domain”,“referer”:“https://rocket.some.domain/admin/cloud/oauth-callback?code=izuXm_K4p11F1uiUCaDO&state=P7EEWmmq3BktbcaZd",“remoteIP”:“178.222.13.32”,“status”:200,"responseTime”:1}
{“level”:35,“time”:“2022-09-28T20:51:46.689Z”,“pid”:1,“hostname”:“5e5ffe195f41”,“name”:“Meteor”,“publication”:“stream-notify-logged”,“userId”:“7mkwppfnTDRJsQjEF”,“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36”,“remoteIP”:null,“instanceId”:“dHfK9f7YuSr9Qr7Xk”}
{“level”:35,“time”:“2022-09-28T20:51:46.798Z”,“pid”:1,“hostname”:“5e5ffe195f41”,“name”:“API”,“method”:“GET”,“url”:“/api/v1/licenses.isEnterprise”,“userId”:“7mkwppfnTDRJsQjEF”,“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36”,“host”:“rocket.some.domain”,“referer”:“https://rocket.some.domain/admin/cloud/oauth-callback?code=izuXm_K4p11F1uiUCaDO&state=P7EEWmmq3BktbcaZd",“remoteIP”:“178.222.13.32”,“status”:200,"responseTime”:4}
{“level”:35,“time”:“2022-09-28T20:51:46.812Z”,“pid”:1,“hostname”:“5e5ffe195f41”,“name”:“API”,“method”:“GET”,“url”:“/api/v1/cloud.registrationStatus”,“userId”:“7mkwppfnTDRJsQjEF”,“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36”,“host”:“rocket.some.domain”,“referer”:“https://rocket.some.domain/admin/cloud/oauth-callback?code=izuXm_K4p11F1uiUCaDO&state=P7EEWmmq3BktbcaZd",“remoteIP”:“178.222.13.32”,“status”:200,"responseTime”:4}
{“level”:35,“time”:“2022-09-28T20:51:46.830Z”,“pid”:1,“hostname”:“5e5ffe195f41”,“name”:“API”,“method”:“POST”,“url”:“/api/v1/method.call/cloud:checkUserLoggedIn”,“userId”:“7mkwppfnTDRJsQjEF”,“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36”,“length”:“101”,“host”:“rocket.some.domain”,“referer”:“https://rocket.some.domain/admin/cloud/oauth-callback?code=izuXm_K4p11F1uiUCaDO&state=P7EEWmmq3BktbcaZd",“remoteIP”:“178.222.13.32”,“status”:200,"responseTime”:3}
{“level”:35,“time”:“2022-09-28T20:51:46.904Z”,“pid”:1,“hostname”:“5e5ffe195f41”,“name”:“Meteor”,“method”:“private-settings/get”,“userId”:“7mkwppfnTDRJsQjEF”,“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36”,“referer”:“https://rocket.some.domain/admin/cloud",“remoteIP”:“178.222.13.32”,“instanceId”:"dHfK9f7YuSr9Qr7Xk”}
{“level”:35,“time”:“2022-09-28T20:51:46.912Z”,“pid”:1,“hostname”:“5e5ffe195f41”,“name”:“API”,“method”:“POST”,“url”:“/api/v1/method.call/private-settings:get”,“userId”:“7mkwppfnTDRJsQjEF”,“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36”,“length”:“123”,“host”:“rocket.some.domain”,“referer”:“https://rocket.some.domain/admin/cloud",“remoteIP”:“178.222.13.32”,“status”:200,"responseTime”:10}
{“level”:35,“time”:“2022-09-28T20:51:47.161Z”,“pid”:1,“hostname”:“5e5ffe195f41”,“name”:“Meteor”,“publication”:“stream-user-presence”,“userId”:“7mkwppfnTDRJsQjEF”,“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36”,“remoteIP”:null,“instanceId”:“dHfK9f7YuSr9Qr7Xk”}
{“level”:35,“time”:“2022-09-28T20:51:47.185Z”,“pid”:1,“hostname”:“5e5ffe195f41”,“name”:“API”,“method”:“GET”,“url”:“/api/v1/users.presence?ids=JjaxwzuKpzcwYrao8&ids=rocket.cat&ids=i2GspYKtRC8FXFHKf”,“userId”:“7mkwppfnTDRJsQjEF”,“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36”,“host”:“rocket.some.domain”,“referer”:“https://rocket.some.domain/admin/cloud",“remoteIP”:“178.222.13.32”,“status”:200,"responseTime”:9}
{“level”:30,“time”:“2022-09-28T20:52:00.328Z”,“pid”:1,“hostname”:“5e5ffe195f41”,“name”:“SyncedCron”,“msg”:“Starting "Generate download files for user data".”}
{“level”:30,“time”:“2022-09-28T20:52:00.329Z”,“pid”:1,“hostname”:“5e5ffe195f41”,“name”:“SyncedCron”,“msg”:“Finished "Generate download files for user data".”}
{“level”:35,“time”:“2022-09-28T20:52:01.672Z”,“pid”:1,“hostname”:“5e5ffe195f41”,“name”:“API”,“method”:“GET”,“url”:“/api/v1/cloud.registrationStatus”,“userId”:“7mkwppfnTDRJsQjEF”,“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36”,“host”:“rocket.some.domain”,“referer”:“https://rocket.some.domain/admin/cloud",“remoteIP”:“178.222.13.32”,“status”:200,"responseTime”:29}
{“level”:35,“time”:“2022-09-28T20:52:01.687Z”,“pid”:1,“hostname”:“5e5ffe195f41”,“name”:“API”,“method”:“POST”,“url”:“/api/v1/method.call/cloud:checkRegisterStatus”,“userId”:“7mkwppfnTDRJsQjEF”,“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36”,“length”:“103”,“host”:“rocket.some.domain”,“referer”:“https://rocket.some.domain/admin/cloud",“remoteIP”:“178.222.13.32”,“status”:200,"responseTime”:3}
{“level”:35,“time”:“2022-09-28T20:52:01.693Z”,“pid”:1,“hostname”:“5e5ffe195f41”,“name”:“API”,“method”:“GET”,“url”:“/api/v1/licenses.isEnterprise”,“userId”:“7mkwppfnTDRJsQjEF”,“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36”,“host”:“rocket.some.domain”,“referer”:“https://rocket.some.domain/admin/cloud",“remoteIP”:“178.222.13.32”,“status”:200,"responseTime”:16}
{“level”:35,“time”:“2022-09-28T20:52:01.700Z”,“pid”:1,“hostname”:“5e5ffe195f41”,“name”:“API”,“method”:“GET”,“url”:“/api/v1/licenses.get”,“userId”:“7mkwppfnTDRJsQjEF”,“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36”,“host”:“rocket.some.domain”,“referer”:“https://rocket.some.domain/admin/cloud",“remoteIP”:“178.222.13.32”,“status”:200,"responseTime”:3}
{“level”:35,“time”:“2022-09-28T20:52:05.685Z”,“pid”:1,“hostname”:“5e5ffe195f41”,“name”:“API”,“method”:“POST”,“url”:“/api/v1/method.call/cloud:checkRegisterStatus”,“userId”:“7mkwppfnTDRJsQjEF”,“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Safari/605.1.15”,“length”:“103”,“host”:“rocket.some.domain”,“referer”:“https://rocket.some.domain/admin/cloud",“remoteIP”:“178.222.13.32”,“status”:200,"responseTime”:7}
{“level”:35,“time”:“2022-09-28T20:52:05.722Z”,“pid”:1,“hostname”:“5e5ffe195f41”,“name”:“API”,“method”:“GET”,“url”:“/api/v1/licenses.isEnterprise”,“userId”:“7mkwppfnTDRJsQjEF”,“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Safari/605.1.15”,“host”:“rocket.some.domain”,“referer”:“https://rocket.some.domain/admin/cloud",“remoteIP”:“178.222.13.32”,“status”:200,"responseTime”:8}
{“level”:35,“time”:“2022-09-28T20:52:05.725Z”,“pid”:1,“hostname”:“5e5ffe195f41”,“name”:“API”,“method”:“GET”,“url”:“/api/v1/cloud.registrationStatus”,“userId”:“7mkwppfnTDRJsQjEF”,“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Safari/605.1.15”,“host”:“rocket.some.domain”,“referer”:“https://rocket.some.domain/admin/cloud",“remoteIP”:“178.222.13.32”,“status”:200,"responseTime”:28}
{“level”:35,“time”:“2022-09-28T20:52:05.736Z”,“pid”:1,“hostname”:“5e5ffe195f41”,“name”:“API”,“method”:“GET”,“url”:“/api/v1/licenses.get”,“userId”:“7mkwppfnTDRJsQjEF”,“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Safari/605.1.15”,“host”:“rocket.some.domain”,“referer”:“https://rocket.some.domain/admin/cloud",“remoteIP”:“178.222.13.32”,“status”:200,"responseTime”:3}
{“level”:35,“time”:“2022-09-28T20:52:06.880Z”,“pid”:1,“hostname”:“5e5ffe195f41”,“name”:“Meteor”,“method”:“UserPresence:online”,“userId”:“7mkwppfnTDRJsQjEF”,“userAgent”:“Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Safari/605.1.15”,“remoteIP”:null,“instanceId”:“dHfK9f7YuSr9Qr7Xk”}

Additional info, if it helps.
I have tried completely removing cloud setting and my instance from workspace and registering again.
When I paste the token I het an error and nothing happens, but once I restart the instance I can see Login to Cloud button, Sync etc, and my instance registered in workspace.
After I click on Login to Cloud the error above appears.

1 Like

Ok, I have managed to fix it on my side, after a while…
The issue was in oplog connectivity, but Rocket logs and info were falsely showing that everything is ok.
My issue was that my MongoDB server was in standalone mode, and oplog events are not thrown in MongoDB standalone mode, only in replica sets.
I have just converted my mongo into a replica set and everything works now.
After this started working Rocket.Chat was able to finish the cloud registration properly.