realm / realm-object-server

Tracking of issues related to the Realm Object Server and other general issues not related to the specific SDK's
https://realm.io
293 stars 42 forks source link

Bad Gateway Error 502-504 #377

Closed DanielAsher closed 6 years ago

DanielAsher commented 6 years ago

Goals

Connect to realm object server cloud instance.

Expected Results

Managing synced realms.

Actual Results

502 Bad Gateway

failed while synchronizing realm bad websocket handshake response 502-504 received 2018-05-24 at 09 39 27

2018-05-24 10:09:27.968861+0100 Exercise[981:26108] Sync: Connection[1]: Resolving 'ties.us1.cloud.realm.io:443' 2018-05-24 10:09:27.973437+0100 Exercise[981:26108] Sync: Connection[1]: Connecting to endpoint '88.209.130.242:443' (1/3) 2018-05-24 10:09:28.165690+0100 Exercise[981:26108] Sync: Connection[1]: Connected to endpoint '88.209.130.242:443' (from '192.168.0.13:50996') 2018-05-24 10:09:28.943064+0100 Exercise[981:26108] Sync: Connection[1]: WebSocket::initiate_client_handshake() 2018-05-24 10:09:29.137536+0100 Exercise[981:26108] Sync: Connection[1]: WebSocket::handle_http_response_received() 2018-05-24 10:09:29.137747+0100 Exercise[981:26108] Sync: Connection[1]: Websocket: Expected HTTP response 101 Switching Protocols, but received: HTTP/1.1 502 Bad Gateway Connection: keep-alive Content-Length: 173 Content-Type: text/html Date: Thu, 24 May 2018 09:09:51 GMT Server: nginx/1.13.5

502 Bad Gateway

502 Bad Gateway


nginx/1.13.5
failed while synchronizing realm bad websocket handshake response 502-504 received 2018-05-24 at 09 39 27

Steps to Reproduce

Try to connect to my realm cloud instance

Code Sample

https://github.com/realm/my-first-realm-app/tree/master/ios/SyncIntro unmodified

Version of Realm and Tooling

Logs

HTTP response: a3e5efcc-c760-40fb-bc1d-38c9340dfc4f {"type":"https://realm.io/docs/object-server/problems/access-denied","title":"The path is invalid or current user has no access.","status":403,"code":614} httpYesterday at 2:39 PM HTTP response: 6cbac98f-d625-4f73-9322-1c3668611d5d {"type":"https://realm.io/docs/object-server/problems/access-denied","title":"The path is invalid or current user has no access.","status":403,"code":614} httpYesterday at 2:39 PM HTTP response: cbba3fa5-1fc8-4588-acb0-02fbe88c2dfa {"type":"https://realm.io/docs/object-server/problems/access-denied","title":"The path is invalid or current user has no access.","status":403,"code":614} httpYesterday at 2:39 PM Internal sync error (path: /revocation). Message: Bad user authentication (BIND, REFRESH), category: realm::sync::ProtocolError, code: 203, name: Error. 12:53:55 AM Internal sync error (path: /password). Message: Bad user authentication (BIND, REFRESH), category: realm::sync::ProtocolError, code: 203, name: Error. 12:55:25 AM Internal sync error (path: /wildcardpermissions). Message: Bad user authentication (BIND, REFRESH), category: realm::sync::ProtocolError, code: 203, name: Error. 12:58:29 AM Internal sync error (path: /perm). Message: Bad user authentication (BIND, REFRESH), category: realm::sync::ProtocolError, code: 203, name: Error. 1:07:00 AM Internal sync error (path: /configuration). Message: Bad user authentication (BIND, REFRESH), category: realm::sync::ProtocolError, code: 203, name: Error. 1:12:30 AM Internal sync error (path: /admin). Message: Bad user authentication (BIND, REFRESH), category: realm::sync::ProtocolError, code: 203, name: Error. 1:13:55 AM Internal sync error (path: /default). Message: Bad user authentication (BIND, REFRESH), category: realm::sync::ProtocolError, code: 203, name: Error.

DanielAsher commented 6 years ago

This cloud error is compounded by the limitation on a single cloud instance.

screen shot 2018-05-24 at 13 47 29
howdyhyber commented 6 years ago

It also appears to me.

astigsen commented 6 years ago

Closing for now as it relates to an old ROS version. Please reopen if it resurfaces.