我正在关注Realm Mobile Platform的Getting started guide。我启动了Realm Object服务器并运行Mac OSX演示任务应用程序。但是,我无法使用Mac OSX Realm Browser应用程序连接到对象服务器。
我打开Realm浏览器并选择Connect to Object Server
。我输入realm://127.0.0.1:9080
作为服务器URL,然后粘贴以==结尾的长令牌字符串,当我使用命令start-object-server.command
启动对象服务器时,我从终端获取。我现在单击connect并收到以下错误:
Failed to connect to Object Server.
Check the url and that the server is accessible.
在终端中,我看到一条日志,说我需要登录http://127.0.0.1:27080/
并创建管理员用户。我导航到该网址,可以看到我的用户是管理员。
以下是日志:
info: Logging to console at level 'info'.
info: Realm Object Server sync server listening on 127.0.0.1:27800.
info: Realm Object Server web server listening on 127.0.0.1:27080.
info: http proxy listening on 0.0.0.0:9080.
info: sync-server: Realm sync server started ([realm-core-2.0.0], [realm-sync-1.0.0-BETA-1.0])
info: sync-server: Directory holding persistent state: /Users/grant/Apps/realm-mobile-platform/realm-object-server/object-server/root_dir/user_data
info: sync-server: Listening on 127.0.0.1:27800 (sync protocol version 14)
info: The Realm Object Server requires an initial admin user to start. To continue, please open your web browser to access the dashboard at: http://127.0.0.1:27080 and register your user.
info: sync-server: Connection[1]: Connection from 127.0.0.1:53352
info: sync-server: Connection[1]: Received: CLIENT(protocol_version=14, client_info_size=2, client_info = {})
info: sync-server: Connection[1]: Session[1]: Initiated
info: sync-server: Connection[1]: Session[1]: Received: BIND(server_path='/__admin', signed_user_token=eyJpZGVudGl0eSI6ImF1..., need_file_ident_pair=0)
info: sync-server: Connection[1]: Session[1]: Received: IDENT(server_file_ident=80096, client_file_ident=1, client_file_ident_secret=523599, scan_server_version=13, scan_client_version=24, latest_server_version=13, latest_server_session_ident=7426485)
当我运行telnet localhost 9080
时,我得到以下输出:
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
我知道为什么我无法使用Mac OSX Realm Browser应用程序连接到对象服务器?
答案 0 :(得分:1)
我重新下载了最新的Realm文件,现在一切正常。