使用Ubuntu Server在数字海洋上的领域对象服务器

时间:2017-07-05 16:11:37

标签: ubuntu realm realm-mobile-platform

我使用在Digital Ocean上运行的Realm Object Server是Ubuntu服务器上的最低选项($ 5 /月)。我一直得到连接拒绝错误;我不知道错误是来自DO还是ROS。

我不是Ubuntu的专家;因此,我进入并清除了/ var / log中的所有日志并尝试重新连接。当有大型记录要同步时,我不断收到以下错误(在iOS,客户端):

2017-07-05 18:55:46.983543+0300 Torba[1783:2024434] Sync: Connection[1]: Resolving '207.154.251.37:9080'
2017-07-05 18:55:46.986087+0300 Torba[1783:2024434] Sync: Connection[1]: Connecting to endpoint '207.154.251.37:9080' (1/1)
2017-07-05 18:55:47.045242+0300 Torba[1783:2024434] Sync: Connection[1]: Failed to connect to endpoint '207.154.251.37:9080': Connection refused
2017-07-05 18:55:47.045387+0300 Torba[1783:2024434] Sync: Connection[1]: Failed to connect to '207.154.251.37:9080': All endpoints failed
2017-07-05 18:55:47.125378+0300 Torba[1783:2024434] Sync: Connection[3]: Resolving '207.154.251.37:9080'
2017-07-05 18:55:47.126805+0300 Torba[1783:2024434] Sync: Connection[3]: Connecting to endpoint '207.154.251.37:9080' (1/1)
2017-07-05 18:55:47.178626+0300 Torba[1783:2024434] Sync: Connection[3]: Failed to connect to endpoint '207.154.251.37:9080': Connection refused
2017-07-05 18:55:47.178830+0300 Torba[1783:2024434] Sync: Connection[3]: Failed to connect to '207.154.251.37:9080': All endpoints failed
2017-07-05 18:55:49.677104+0300 Torba[1783:2024434] Sync: Connection[1]: Resolving '207.154.251.37:9080'
2017-07-05 18:55:49.678640+0300 Torba[1783:2024434] Sync: Connection[1]: Connecting to endpoint '207.154.251.37:9080' (1/1)
2017-07-05 18:55:49.727078+0300 Torba[1783:2024434] Sync: Connection[1]: Failed to connect to endpoint '207.154.251.37:9080': Connection refused
2017-07-05 18:55:49.727283+0300 Torba[1783:2024434] Sync: Connection[1]: Failed to connect to '207.154.251.37:9080': All endpoints failed

在ubuntu端,清除所有日志后,当我尝试连接到服务器appport.log时,会再次创建一个日志,这里是内容:

ERROR: apport (pid 32499) Wed Jul  5 15:55:15 2017: called for pid 32448, signal 6, core limit 18446744073709551615
ERROR: apport (pid 32499) Wed Jul  5 15:55:15 2017: ignoring implausibly big core limit, treating as unlimited
ERROR: apport (pid 32499) Wed Jul  5 15:55:15 2017: executable: /usr/lib/realm-object-server-developer/node/bin/node (command line "/usr/lib/realm-object-server-developer/node/bin/node /usr/bin/realm-object-server -c /etc/realm/configuration.yml")
ERROR: apport (pid 32499) Wed Jul  5 15:55:15 2017: is_closing_session(): no DBUS_SESSION_BUS_ADDRESS in environment
ERROR: apport (pid 32499) Wed Jul  5 15:55:15 2017: apport: report /var/crash/_usr_lib_realm-object-server-developer_node_bin_node.999.crash already

从日志中我无法弄清楚错误是在Realm端还是Digital Ocean端。任何人都可以提供帮助吗?

1 个答案:

答案 0 :(得分:0)

仔细阅读日志后,我发现Realm Object Server崩溃了。我不知道为什么,但现在我知道问题出在ROS上。

*编辑* 由于内存不足,应用程序崩溃了。通过增加服务器的内存,一切都按预期开始工作。

Jul 05 15:55:33 torba-test systemd[1]: realm-object-server.service: Main process exited, code=killed, status=6/ABRT
Jul 05 15:55:33 torba-test systemd[1]: realm-object-server.service: Unit entered failed state.
Jul 05 15:55:33 torba-test systemd[1]: realm-object-server.service: Failed with result 'signal'.
Jul 05 15:55:34 torba-test systemd[1]: realm-object-server.service: Service hold-off time over, scheduling restart.
Jul 05 15:55:34 torba-test systemd[1]: Stopped Realm Object Server.