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

Cannot connect to realm from Swift SDK #280

Closed schwarja closed 6 years ago

schwarja commented 7 years ago

Hi,

I try to run my iOS app with Realm Object Server, but I am not able to connect to any Realm.

Steps I took:

  1. I imported RealmSwift SDK version 3.0.0 with CocoaPods to my app
  2. I downloaded Realm Mobile Platform macOS Bundle version 1.8.3
  3. I ran start-object-server.command script
  4. The object server is up and running and when I call SyncUser.logIn I can successfully log in

Until this point everything looks good, but any other interaction with the object server ends up with error. This is an example of my code:

let serverURL = URL(string: "http://localhost:9080")!
let credentials = SyncCredentials.usernamePassword(username: "username", password: "password")
SyncUser.logIn(with: credentials,
               server: serverURL) { user, error in
                if let user = user {
                    user.retrievePermissions { (permission, error) in
                        print(permission, error)
                    }
                }
}

The user logs in successfully, but when I call retrievePermissions method the handler is never called and I see this in a console:

2017-10-22 18:39:26.437724+0200 Machac[12751:1028814] Sync: Connection[1]: Connected to endpoint '::1:9080' (from '::1:50811')
2017-10-22 18:39:26.442755+0200 Machac[12751:1028814] Sync: Connection[1]: Writing failed: End of input
2017-10-22 18:39:26.442965+0200 Machac[12751:1028814] Sync: Connection[1]: Connection closed due to error
2017-10-22 18:39:27.310579+0200 Machac[12751:1028814] Sync: Connection[1]: Connected to endpoint '::1:9080' (from '::1:50818')
2017-10-22 18:39:27.315309+0200 Machac[12751:1028814] Sync: Connection[1]: Writing failed: End of input
2017-10-22 18:39:27.315782+0200 Machac[12751:1028814] Sync: Connection[1]: Connection closed due to error

The output from the object sever looks like this:

Creating new public and private keypair
Generating Realm Sync Admin Credentials
2017-10-22T18:38:35+0200 [DEBUG] Enabling verbose mode.
2017-10-22T18:38:35+0200 [DEBUG] Using private key at `/Users/janschwarz1/Downloads/realm-mobile-platform/realm-object-server/object-server/keys/token-signature.key'.
2017-10-22T18:38:35+0200 [DEBUG] Storing output to `/Users/janschwarz1/Downloads/realm-mobile-platform/realm-object-server/admin_token.base64'.
2017-10-22T18:38:35+0200 [DEBUG] Generating token.
2017-10-22T18:38:35+0200 [DEBUG] Writing token to `/Users/janschwarz1/Downloads/realm-mobile-platform/realm-object-server/admin_token.base64'.

Your admin access token is: ***
Creating server root directory
Creating server temp directory
Deleting files from the previous version
~/Downloads/realm-mobile-platform/realm-object-server/object-server ~
~
openssl config failed: error:02001002:system library:fopen:No such file or directory
read configuration from /Users/janschwarz1/Downloads/realm-mobile-platform/realm-object-server/object-server/configuration.yml.
2017-10-22T16:38:36.539Z - info: Backup admin-Realm file written to /Users/janschwarz1/Downloads/realm-mobile-platform/realm-object-server/object-server/root_dir/internal_data/oldAuth.realm.bak (in case of unexpected failures during the upgrade).
2017-10-22T16:38:36.734Z - info: sync: Realm sync server started ([realm-core-2.8.6], [realm-sync-1.10.5])
2017-10-22T16:38:36.734Z - info: sync: Directory holding persistent state: /Users/janschwarz1/Downloads/realm-mobile-platform/realm-object-server/object-server/root_dir/0/user_data
2017-10-22T16:38:36.734Z - info: sync: Listening on 127.0.0.1:50733 (sync protocol version 18)
2017-10-22T16:38:36.739Z - info: sync: Realm Object Server sync engine listening on 127.0.0.1:50733.
2017-10-22T16:38:36.742Z - info: Realm Object Server web server listening on 127.0.0.1:27080.
2017-10-22T16:38:36.745Z - info: proxy: http proxy listening on :::9080.
2017-10-22T16:38:36.801Z - info: permissions: Seed permission-Realms
2017-10-22T16:38:36.854Z - info: permissions: Completed seeding permission-Realms
2017-10-22T16:38:36.862Z - info: sync: HTTP Connection[1]: Connection from 127.0.0.1:50734
2017-10-22T16:38:36.863Z - info: sync: HTTP Connection[1]: Received: Sync HTTP request(protocol_version=18)
2017-10-22T16:38:36.864Z - info: sync: Sync Connection[1]: Session[1]: Session initiated (session_ident=1).
2017-10-22T16:38:36.864Z - info: sync: Sync Connection[1]: Session[1]: Received: BIND(server_path=/__admin, signed_user_token='...ckXSqNPMO8GsADTS4BmmVrQHnJDg==', need_file_ident_pair=1)
2017-10-22T16:38:36.865Z - info: sync: Sync Connection[1]: Session[1]: Sending: ALLOC(server_file_ident=1, client_file_ident=2, client_file_ident_secret=7430167976369887536)
2017-10-22T16:38:36.865Z - info: sync: Sync Connection[1]: Session[1]: Received: IDENT(server_file_ident=1, client_file_ident=2, client_file_ident_secret=7430167976369887536, scan_server_version=0, scan_client_version=0, latest_server_version=0, latest_server_session_ident=0)
2017-10-22T16:38:36.868Z - info: sync-client: Opening Realm file: /Users/janschwarz1/Downloads/realm-mobile-platform/realm-object-server/object-server/root_dir/internal_data/auth.realm
2017-10-22T16:38:36.868Z - info: sync-client: Connection[1]: Session[1]: Starting session for '/Users/janschwarz1/Downloads/realm-mobile-platform/realm-object-server/object-server/root_dir/internal_data/auth.realm'
2017-10-22T16:38:36.868Z - info: sync-client: Connection[1]: Resolving '127.0.0.1:50733'
2017-10-22T16:38:36.869Z - info: sync-client: Connection[1]: Connecting to endpoint '127.0.0.1:50733' (1/1)
2017-10-22T16:38:36.869Z - info: sync-client: Connection[1]: Connected to endpoint '127.0.0.1:50733' (from '127.0.0.1:50734')
2017-10-22T16:38:36.869Z - info: sync-client: Connection[1]: Session[1]: Sending: BIND(server_path='/__admin', signed_user_token_size=469, need_file_ident_pair=1)
2017-10-22T16:38:36.870Z - info: sync-client: Opening Realm file: /Users/janschwarz1/Downloads/realm-mobile-platform/realm-object-server/object-server/realm-object-server/listener/__admin.realm
2017-10-22T16:38:36.871Z - info: sync-client: Connection[2]: Session[2]: Starting session for '/Users/janschwarz1/Downloads/realm-mobile-platform/realm-object-server/object-server/realm-object-server/listener/__admin.realm'
2017-10-22T16:38:36.871Z - info: sync-client: Connection[2]: Resolving ':::9080'
2017-10-22T16:38:36.871Z - info: sync-client: Connection[2]: Connecting to endpoint ':::9080' (1/1)
2017-10-22T16:38:36.871Z - info: sync-client: Connection[1]: Session[1]: Received: ALLOC(server_file_ident=1, client_file_ident=2, client_file_ident_secret=7430167976369887536)
2017-10-22T16:38:36.872Z - info: sync-client: Connection[1]: Session[1]: Sending: IDENT(server_file_ident=1, client_file_ident=2, client_file_ident_secret=7430167976369887536, scan_server_version=0, scan_client_version=0, latest_server_version=0, latest_server_session_ident=0)
2017-10-22T16:38:36.872Z - info: sync-client: Connection[2]: Connected to endpoint ':::9080' (from '::1:50735')
2017-10-22T16:38:36.874Z - info: sync-client: Opening Realm file: /Users/janschwarz1/Downloads/realm-mobile-platform/realm-object-server/object-server/root_dir/internal_data/permission/__auth.realm
2017-10-22T16:38:36.874Z - info: sync-client: Connection[3]: Session[3]: Starting session for '/Users/janschwarz1/Downloads/realm-mobile-platform/realm-object-server/object-server/root_dir/internal_data/permission/__auth.realm'
2017-10-22T16:38:36.874Z - info: sync-client: Connection[3]: Resolving ':::9080'
2017-10-22T16:38:36.874Z - info: sync-client: Connection[3]: Connecting to endpoint ':::9080' (1/1)
2017-10-22T16:38:36.875Z - info: sync-client: Connection[3]: Connected to endpoint ':::9080' (from '::1:50736')
2017-10-22T16:38:36.875Z - info: sync-client: Opening Realm file: /Users/janschwarz1/Downloads/realm-mobile-platform/realm-object-server/object-server/root_dir/internal_data/permission/__global.realm
2017-10-22T16:38:36.875Z - info: sync-client: Connection[4]: Session[4]: Starting session for '/Users/janschwarz1/Downloads/realm-mobile-platform/realm-object-server/object-server/root_dir/internal_data/permission/__global.realm'
2017-10-22T16:38:36.875Z - info: sync-client: Connection[4]: Resolving ':::9080'
2017-10-22T16:38:36.875Z - info: sync-client: Connection[4]: Connecting to endpoint ':::9080' (1/1)
2017-10-22T16:38:36.875Z - info: sync-client: Connection[4]: Connected to endpoint ':::9080' (from '::1:50737')
2017-10-22T16:38:36.918Z - info: sync: HTTP Connection[2]: Connection from 127.0.0.1:50738
2017-10-22T16:38:36.926Z - info: sync: HTTP Connection[3]: Connection from 127.0.0.1:50739
2017-10-22T16:38:36.933Z - info: sync: HTTP Connection[2]: Received: Sync HTTP request(protocol_version=18)
2017-10-22T16:38:36.933Z - info: sync: HTTP Connection[4]: Connection from 127.0.0.1:50740
2017-10-22T16:38:36.935Z - info: sync: HTTP Connection[3]: Received: Sync HTTP request(protocol_version=18)
2017-10-22T16:38:36.935Z - info: sync: HTTP Connection[4]: Received: Sync HTTP request(protocol_version=18)
2017-10-22T16:38:36.940Z - info: sync-client: Connection[2]: Session[2]: Sending: BIND(server_path='/__admin', signed_user_token_size=469, need_file_ident_pair=1)
2017-10-22T16:38:36.940Z - info: sync-client: Connection[3]: Session[3]: Sending: BIND(server_path='/__auth/__permission', signed_user_token_size=469, need_file_ident_pair=1)
2017-10-22T16:38:36.940Z - info: sync-client: Connection[4]: Session[4]: Sending: BIND(server_path='/__permission', signed_user_token_size=469, need_file_ident_pair=1)
2017-10-22T16:38:36.941Z - info: sync: Sync Connection[2]: Session[2]: Session initiated (session_ident=2).
2017-10-22T16:38:36.941Z - info: sync: Sync Connection[2]: Session[2]: Received: BIND(server_path=/__admin, signed_user_token='...ckXSqNPMO8GsADTS4BmmVrQHnJDg==', need_file_ident_pair=1)
2017-10-22T16:38:36.942Z - info: sync: Sync Connection[2]: Session[2]: Sending: ALLOC(server_file_ident=1, client_file_ident=3, client_file_ident_secret=6411969068753416785)
2017-10-22T16:38:36.942Z - info: sync: Sync Connection[3]: Session[3]: Session initiated (session_ident=3).
2017-10-22T16:38:36.942Z - info: sync: Sync Connection[3]: Session[3]: Received: BIND(server_path=/__auth/__permission, signed_user_token='...ckXSqNPMO8GsADTS4BmmVrQHnJDg==', need_file_ident_pair=1)
2017-10-22T16:38:36.943Z - info: sync-client: Connection[2]: Session[2]: Received: ALLOC(server_file_ident=1, client_file_ident=3, client_file_ident_secret=6411969068753416785)
2017-10-22T16:38:36.943Z - info: sync-client: Connection[2]: Session[2]: Sending: IDENT(server_file_ident=1, client_file_ident=3, client_file_ident_secret=6411969068753416785, scan_server_version=0, scan_client_version=0, latest_server_version=0, latest_server_session_ident=0)
2017-10-22T16:38:36.979Z - info: sync: Sync Connection[3]: Session[3]: Sending: ALLOC(server_file_ident=1, client_file_ident=2, client_file_ident_secret=5646223830359282360)
2017-10-22T16:38:36.980Z - info: sync: Sync Connection[4]: Session[4]: Session initiated (session_ident=4).
2017-10-22T16:38:36.980Z - info: sync: Sync Connection[4]: Session[4]: Received: BIND(server_path=/__permission, signed_user_token='...ckXSqNPMO8GsADTS4BmmVrQHnJDg==', need_file_ident_pair=1)
2017-10-22T16:38:37.006Z - info: sync: Sync Connection[4]: Session[4]: Sending: ALLOC(server_file_ident=1, client_file_ident=2, client_file_ident_secret=7656051893921713920)
2017-10-22T16:38:37.006Z - info: sync: Sync Connection[2]: Session[2]: Received: IDENT(server_file_ident=1, client_file_ident=3, client_file_ident_secret=6411969068753416785, scan_server_version=0, scan_client_version=0, latest_server_version=0, latest_server_session_ident=0)
2017-10-22T16:38:37.008Z - info: sync-client: Connection[3]: Session[3]: Received: ALLOC(server_file_ident=1, client_file_ident=2, client_file_ident_secret=5646223830359282360)
2017-10-22T16:38:37.008Z - info: sync-client: Connection[3]: Session[3]: Sending: IDENT(server_file_ident=1, client_file_ident=2, client_file_ident_secret=5646223830359282360, scan_server_version=0, scan_client_version=0, latest_server_version=0, latest_server_session_ident=0)
2017-10-22T16:38:37.008Z - info: sync-client: Connection[4]: Session[4]: Received: ALLOC(server_file_ident=1, client_file_ident=2, client_file_ident_secret=7656051893921713920)
2017-10-22T16:38:37.009Z - info: sync-client: Connection[4]: Session[4]: Sending: IDENT(server_file_ident=1, client_file_ident=2, client_file_ident_secret=7656051893921713920, scan_server_version=0, scan_client_version=0, latest_server_version=0, latest_server_session_ident=0)
2017-10-22T16:38:37.009Z - info: sync: Sync Connection[3]: Session[3]: Received: IDENT(server_file_ident=1, client_file_ident=2, client_file_ident_secret=5646223830359282360, scan_server_version=0, scan_client_version=0, latest_server_version=0, latest_server_session_ident=0)
2017-10-22T16:38:37.029Z - info: sync: Sync Connection[4]: Session[4]: Received: IDENT(server_file_ident=1, client_file_ident=2, client_file_ident_secret=7656051893921713920, scan_server_version=0, scan_client_version=0, latest_server_version=0, latest_server_session_ident=0)
2017-10-22T16:38:37.064Z - info: sync-client: Opening Realm file: /Users/janschwarz1/Downloads/realm-mobile-platform/realm-object-server/object-server/realm-object-server/listener/realms/__admin.realm
2017-10-22T16:38:37.064Z - info: sync-client: Connection[5]: Session[5]: Starting session for '/Users/janschwarz1/Downloads/realm-mobile-platform/realm-object-server/object-server/realm-object-server/listener/realms/__admin.realm'
2017-10-22T16:38:37.064Z - info: sync-client: Connection[5]: Resolving ':::9080'
2017-10-22T16:38:37.064Z - info: sync-client: Connection[5]: Connecting to endpoint ':::9080' (1/1)
2017-10-22T16:38:37.073Z - info: sync-client: Connection[5]: Connected to endpoint ':::9080' (from '::1:50741')
2017-10-22T16:38:37.087Z - info: sync: HTTP Connection[5]: Connection from 127.0.0.1:50742
2017-10-22T16:38:37.088Z - info: sync: HTTP Connection[5]: Received: Sync HTTP request(protocol_version=18)
2017-10-22T16:38:37.089Z - info: sync-client: Connection[5]: Session[5]: Sending: BIND(server_path='/__admin', signed_user_token_size=469, need_file_ident_pair=1)
2017-10-22T16:38:37.089Z - info: sync: Sync Connection[5]: Session[5]: Session initiated (session_ident=5).
2017-10-22T16:38:37.089Z - info: sync: Sync Connection[5]: Session[5]: Received: BIND(server_path=/__admin, signed_user_token='...ckXSqNPMO8GsADTS4BmmVrQHnJDg==', need_file_ident_pair=1)
2017-10-22T16:38:37.090Z - info: sync: Sync Connection[5]: Session[5]: Sending: ALLOC(server_file_ident=1, client_file_ident=4, client_file_ident_secret=3227248710518318964)
2017-10-22T16:38:37.091Z - info: sync-client: Connection[5]: Session[5]: Received: ALLOC(server_file_ident=1, client_file_ident=4, client_file_ident_secret=3227248710518318964)
2017-10-22T16:38:37.093Z - info: sync-client: Connection[5]: Session[5]: Sending: IDENT(server_file_ident=1, client_file_ident=4, client_file_ident_secret=3227248710518318964, scan_server_version=0, scan_client_version=0, latest_server_version=0, latest_server_session_ident=0)
2017-10-22T16:38:37.094Z - info: sync: Sync Connection[5]: Session[5]: Received: IDENT(server_file_ident=1, client_file_ident=4, client_file_ident_secret=3227248710518318964, scan_server_version=0, scan_client_version=0, latest_server_version=0, latest_server_session_ident=0)
2017-10-22T16:38:37.127Z - info: sync-client: Closing Realm file: /Users/janschwarz1/Downloads/realm-mobile-platform/realm-object-server/object-server/root_dir/internal_data/permission/__auth.realm
2017-10-22T16:38:37.127Z - info: sync-client: Connection[3]: Session[3]: Sending: UNBIND
2017-10-22T16:38:37.128Z - info: sync-client: Closing Realm file: /Users/janschwarz1/Downloads/realm-mobile-platform/realm-object-server/object-server/root_dir/internal_data/permission/__global.realm
2017-10-22T16:38:37.128Z - info: sync-client: Connection[4]: Session[4]: Sending: UNBIND
2017-10-22T16:38:37.128Z - info: sync: Sync Connection[3]: Session[3]: Session terminated (session_ident=3).
2017-10-22T16:38:37.129Z - info: sync: Sync Connection[3]: Connection closed by client: End of input
2017-10-22T16:38:37.130Z - info: sync: Sync Connection[4]: Session[4]: Session terminated (session_ident=4).
2017-10-22T16:38:37.130Z - info: sync: Sync Connection[4]: Connection closed by client: End of input
2017-10-22T16:38:52.494Z - info: sync-client: Opening Realm file: /Users/janschwarz1/Downloads/realm-mobile-platform/realm-object-server/object-server/root_dir/internal_data/permission/a0bd12876a48c2e856c0c0a9fec04b47.realm
2017-10-22T16:38:52.494Z - info: sync-client: Connection[6]: Session[6]: Starting session for '/Users/janschwarz1/Downloads/realm-mobile-platform/realm-object-server/object-server/root_dir/internal_data/permission/a0bd12876a48c2e856c0c0a9fec04b47.realm'
2017-10-22T16:38:52.494Z - info: sync-client: Connection[6]: Resolving ':::9080'
2017-10-22T16:38:52.494Z - info: sync-client: Connection[6]: Connecting to endpoint ':::9080' (1/1)
2017-10-22T16:38:52.494Z - info: sync-client: Connection[6]: Connected to endpoint ':::9080' (from '::1:50774')
2017-10-22T16:38:52.511Z - info: sync: HTTP Connection[6]: Connection from 127.0.0.1:50775
2017-10-22T16:38:52.525Z - info: sync: HTTP Connection[6]: Received: Sync HTTP request(protocol_version=18)
2017-10-22T16:38:52.540Z - info: sync-client: Connection[6]: Session[6]: Sending: BIND(server_path='/a0bd12876a48c2e856c0c0a9fec04b47/__permission', signed_user_token_size=469, need_file_ident_pair=1)
2017-10-22T16:38:52.541Z - info: sync: Sync Connection[6]: Session[6]: Session initiated (session_ident=6).
2017-10-22T16:38:52.541Z - info: sync: Sync Connection[6]: Session[6]: Received: BIND(server_path=/a0bd12876a48c2e856c0c0a9fec04b47/__permission, signed_user_token='...ckXSqNPMO8GsADTS4BmmVrQHnJDg==', need_file_ident_pair=1)
2017-10-22T16:38:52.565Z - info: sync: Sync Connection[6]: Session[6]: Sending: ALLOC(server_file_ident=1, client_file_ident=2, client_file_ident_secret=1590648517410236558)
2017-10-22T16:38:52.565Z - info: sync-client: Connection[6]: Session[6]: Received: ALLOC(server_file_ident=1, client_file_ident=2, client_file_ident_secret=1590648517410236558)
2017-10-22T16:38:52.575Z - info: sync-client: Connection[6]: Session[6]: Sending: IDENT(server_file_ident=1, client_file_ident=2, client_file_ident_secret=1590648517410236558, scan_server_version=0, scan_client_version=0, latest_server_version=0, latest_server_session_ident=0)
2017-10-22T16:38:52.576Z - info: sync: Sync Connection[6]: Session[6]: Received: IDENT(server_file_ident=1, client_file_ident=2, client_file_ident_secret=1590648517410236558, scan_server_version=0, scan_client_version=0, latest_server_version=0, latest_server_session_ident=0)
2017-10-22T16:38:52.588Z - info: sync-client: Closing Realm file: /Users/janschwarz1/Downloads/realm-mobile-platform/realm-object-server/object-server/root_dir/internal_data/permission/a0bd12876a48c2e856c0c0a9fec04b47.realm
2017-10-22T16:38:52.589Z - info: sync-client: Connection[6]: Session[6]: Sending: UNBIND
2017-10-22T16:38:52.590Z - info: sync: Sync Connection[6]: Session[6]: Session terminated (session_ident=6).
2017-10-22T16:38:52.590Z - info: sync: Sync Connection[6]: Connection closed by client: End of input
2017-10-22T16:39:26.440Z - info: sync: HTTP Connection[7]: Connection from 127.0.0.1:50812
2017-10-22T16:39:26.441Z - info: sync: HTTP Connection[7]: Connection is closed after HTTP response.
2017-10-22T16:39:26.500Z - info: sync-client: Opening Realm file: /Users/janschwarz1/Downloads/realm-mobile-platform/realm-object-server/object-server/root_dir/internal_data/permission/2cfccb97e3676845e2935c064571bc84.realm
2017-10-22T16:39:26.500Z - info: sync-client: Connection[7]: Session[7]: Starting session for '/Users/janschwarz1/Downloads/realm-mobile-platform/realm-object-server/object-server/root_dir/internal_data/permission/2cfccb97e3676845e2935c064571bc84.realm'
2017-10-22T16:39:26.500Z - info: sync-client: Connection[7]: Resolving ':::9080'
2017-10-22T16:39:26.500Z - info: sync-client: Connection[7]: Connecting to endpoint ':::9080' (1/1)
2017-10-22T16:39:26.500Z - info: sync-client: Connection[7]: Connected to endpoint ':::9080' (from '::1:50813')
2017-10-22T16:39:26.508Z - info: sync: HTTP Connection[8]: Connection from 127.0.0.1:50814
2017-10-22T16:39:26.508Z - info: sync: HTTP Connection[8]: Received: Sync HTTP request(protocol_version=18)
2017-10-22T16:39:26.511Z - info: sync-client: Connection[7]: Session[7]: Sending: BIND(server_path='/2cfccb97e3676845e2935c064571bc84/__permission', signed_user_token_size=469, need_file_ident_pair=1)
2017-10-22T16:39:26.511Z - info: sync: Sync Connection[8]: Session[7]: Session initiated (session_ident=7).
2017-10-22T16:39:26.511Z - info: sync: Sync Connection[8]: Session[7]: Received: BIND(server_path=/2cfccb97e3676845e2935c064571bc84/__permission, signed_user_token='...ckXSqNPMO8GsADTS4BmmVrQHnJDg==', need_file_ident_pair=1)
2017-10-22T16:39:26.532Z - info: sync: Sync Connection[8]: Session[7]: Sending: ALLOC(server_file_ident=1, client_file_ident=2, client_file_ident_secret=5375604285598477068)
2017-10-22T16:39:26.534Z - info: sync-client: Connection[7]: Session[7]: Received: ALLOC(server_file_ident=1, client_file_ident=2, client_file_ident_secret=5375604285598477068)
2017-10-22T16:39:26.539Z - info: sync-client: Connection[7]: Session[7]: Sending: IDENT(server_file_ident=1, client_file_ident=2, client_file_ident_secret=5375604285598477068, scan_server_version=0, scan_client_version=0, latest_server_version=0, latest_server_session_ident=0)
2017-10-22T16:39:26.543Z - info: sync: Sync Connection[8]: Session[7]: Received: IDENT(server_file_ident=1, client_file_ident=2, client_file_ident_secret=5375604285598477068, scan_server_version=0, scan_client_version=0, latest_server_version=0, latest_server_session_ident=0)
2017-10-22T16:39:26.555Z - info: sync-client: Closing Realm file: /Users/janschwarz1/Downloads/realm-mobile-platform/realm-object-server/object-server/root_dir/internal_data/permission/2cfccb97e3676845e2935c064571bc84.realm
2017-10-22T16:39:26.556Z - info: sync-client: Connection[7]: Session[7]: Sending: UNBIND
2017-10-22T16:39:26.557Z - info: sync: Sync Connection[8]: Session[7]: Session terminated (session_ident=7).
2017-10-22T16:39:26.557Z - info: sync: Sync Connection[8]: Connection closed by client: End of input
2017-10-22T16:39:27.313Z - info: sync: HTTP Connection[9]: Connection from 127.0.0.1:50819
2017-10-22T16:39:27.313Z - info: sync: HTTP Connection[9]: Connection is closed after HTTP response.
2017-10-22T16:39:28.072Z - info: sync: HTTP Connection[10]: Connection from 127.0.0.1:50821
2017-10-22T16:39:28.073Z - info: sync: HTTP Connection[10]: Connection is closed after HTTP response.
2017-10-22T16:39:28.900Z - info: sync: HTTP Connection[11]: Connection from 127.0.0.1:50825
2017-10-22T16:39:28.900Z - info: sync: HTTP Connection[11]: Connection is closed after HTTP response.
2017-10-22T16:39:29.783Z - info: sync: HTTP Connection[12]: Connection from 127.0.0.1:50827
2017-10-22T16:39:29.783Z - info: sync: HTTP Connection[12]: Connection is closed after HTTP response.
2017-10-22T16:39:30.669Z - info: sync: HTTP Connection[13]: Connection from 127.0.0.1:50829
2017-10-22T16:39:30.670Z - info: sync: HTTP Connection[13]: Connection is closed after HTTP response.

I tried to figured this out by myself, but I got stuck now, so I will be glad for any ideas how to solve this issue.

Thanks

Jan

larryseyer commented 7 years ago

I wonder if this is the same issue that I am having here:

https://github.com/realm/realm-mobile-platform/issues/278

I can connect via web (i.e., I can log in) but I cannot connect via the console.

L

nirinchev commented 7 years ago

Realm Swift 3.0 is not compatible with the Realm Object Server (Realm Platform) 1.x. Please follow the instructions here to download and install 2.0.

schwarja commented 7 years ago

I have already tried that and it worked for me, but it worked just locally. Then I wanted to deploy Realm Mobile Platform on Azure and it deployed the version 1.8.3 without any option to select a version.

bmunkholm commented 7 years ago

@schwarja Ahh yeah, we still haven't updated the Azure installation yet. That will be coming up shortly!

FreudGit commented 7 years ago

@bmunkholm Can I please also ask for the upgrade process for the instance create on aws (from pre-build).

Thanks!

astigsen commented 6 years ago

Closing this for now as it relates to an outdated version of ROS. Please reopen if the problem resurfaces.