我正在关注 Realm 移动平台的入门指南。我启动了 Realm Object 服务器并运行 Mac OSX 演示任务应用程序。但是,我无法使用 Mac OSX Realm Browser 应用程序连接到对象服务器。
我打开领域浏览器并选择Connect to Object Server
. 我realm://127.0.0.1:9080
作为服务器 url 输入,然后粘贴以 == 结尾的长令牌字符串,这是我在使用命令启动对象服务器时从终端获得的start-object-server.command
。我现在单击连接并收到以下错误:
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 应用程序连接到对象服务器吗?