{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-graphql-service/issues/46","repository_url":"https://api.github.com/repos/realm/realm-graphql-service","labels_url":"https://api.github.com/repos/realm/realm-graphql-service/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-graphql-service/issues/46/comments","events_url":"https://api.github.com/repos/realm/realm-graphql-service/issues/46/events","html_url":"https://github.com/realm/realm-graphql-service/issues/46","id":324262678,"node_id":"MDU6SXNzdWUzMjQyNjI2Nzg=","number":46,"title":"Realm-graphql-service closes the realm and shows weird errors","user":{"login":"howdyhyber","id":22556130,"node_id":"MDQ6VXNlcjIyNTU2MTMw","avatar_url":"https://avatars0.githubusercontent.com/u/22556130?v=4","gravatar_id":"","url":"https://api.github.com/users/howdyhyber","html_url":"https://github.com/howdyhyber","followers_url":"https://api.github.com/users/howdyhyber/followers","following_url":"https://api.github.com/users/howdyhyber/following{/other_user}","gists_url":"https://api.github.com/users/howdyhyber/gists{/gist_id}","starred_url":"https://api.github.com/users/howdyhyber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/howdyhyber/subscriptions","organizations_url":"https://api.github.com/users/howdyhyber/orgs","repos_url":"https://api.github.com/users/howdyhyber/repos","events_url":"https://api.github.com/users/howdyhyber/events{/privacy}","received_events_url":"https://api.github.com/users/howdyhyber/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-18T03:59:52Z","updated_at":"2018-06-06T12:21:11Z","closed_at":null,"author_association":"NONE","body":"I have a problem here with the realm-graphql-service.\r\n\r\nIts randomly happens, sometimes frequent, sometimes appears only once a day.\r\n\r\nThis is the logs:\r\n\r\n0|npm      | info: Got signal SIGINT. Shutting down\r\n0|npm      | info: Loaded feature token capabilities=[Sync], expires=Wed Apr 19 2017 14:15:29 GMT+0000 (UTC)\r\n0|npm      | info: Realm Object Server version 2.8.1 is starting\r\n0|npm      | info: [sync] Realm sync server started ([realm-core-5.1.2], [realm-sync-2.2.15])\r\n0|npm      | info: [sync] Directory holding persistent state: /home/ec2-user/xeleqt-object-server/data/sync/user_data\r\n0|npm      | info: [sync] Backup mode: master_with_no_slave\r\n0|npm      | info: [sync] Log level: info\r\n0|npm      | info: [sync] Download log compaction is enabled\r\n0|npm      | info: [sync] Max download size: 32000000 bytes\r\n0|npm      | info: [sync] Listening on 127.0.0.1:33831 (sync protocol version 22)\r\n0|npm      | info: [sync] HTTP Connection[1]: Connection is closed after HTTP response.\r\n0|npm      | info: [sync] HTTP Connection[3]: Connection is closed after HTTP response.\r\n0|npm      | info: [sync] HTTP Connection[5]: Connection is closed after HTTP response.\r\n0|npm      | info: [sync] HTTP Connection[7]: Connection is closed after HTTP response.\r\n0|npm      | info: [sync] HTTP Connection[9]: Connection is closed after HTTP response.\r\n0|npm      | info: [sync] HTTP Connection[10]: Connection is closed after HTTP response.\r\n0|npm      | info: [sync] HTTP Connection[13]: Connection is closed after HTTP response.\r\n0|npm      | info: [sync] HTTP Connection[15]: Connection is closed after HTTP response.\r\n0|npm      | info: [sync] HTTP Connection[16]: Connection is closed after HTTP response.\r\n0|npm      | info: [sync] HTTP Connection[19]: Connection is closed after HTTP response.\r\n0|npm      | info: [sync] HTTP Connection[22]: Connection is closed after HTTP response.\r\n0|npm      | info: Realm Object Server has started and is listening on http://0.0.0.0:9080\r\n0|npm      | info: [sync] HTTP Connection[25]: Connection is closed after HTTP response.\r\n0|npm      | info: [sync] HTTP Connection[27]: Connection is closed after HTTP response.\r\n0|npm      | Error: Cannot access realm that has been closed.\r\n0|npm      |     at queryResolver.(anonymous function) (/home/ec2-user/xeleqt-object-server/node_modules/realm-graphql-service/dist/service.js:244:40)\r\n0|npm      |     at resolveFieldValueOrError (/home/ec2-user/xeleqt-object-server/node_modules/graphql/execution/execute.js:498:12)\r\n0|npm      |     at resolveField (/home/ec2-user/xeleqt-object-server/node_modules/graphql/execution/execute.js:462:16)\r\n0|npm      |     at /home/ec2-user/xeleqt-object-server/node_modules/graphql/execution/execute.js:311:18\r\n0|npm      |     at Array.reduce (<anonymous>)\r\n0|npm      |     at executeFields (/home/ec2-user/xeleqt-object-server/node_modules/graphql/execution/execute.js:308:42)\r\n0|npm      |     at executeOperation (/home/ec2-user/xeleqt-object-server/node_modules/graphql/execution/execute.js:236:122)\r\n0|npm      |     at executeImpl (/home/ec2-user/xeleqt-object-server/node_modules/graphql/execution/execute.js:133:26)\r\n0|npm      |     at Object.execute (/home/ec2-user/xeleqt-object-server/node_modules/graphql/execution/execute.js:110:229)\r\n0|npm      |     at doRunQuery (/home/ec2-user/xeleqt-object-server/node_modules/apollo-server-core/dist/runQuery.js:122:42)\r\n0|npm      | Error: Cannot access realm that has been closed.\r\n0|npm      |     at queryResolver.(anonymous function) (/home/ec2-user/xeleqt-object-server/node_modules/realm-graphql-service/dist/service.js:244:40)\r\n0|npm      |     at resolveFieldValueOrError (/home/ec2-user/xeleqt-object-server/node_modules/graphql/execution/execute.js:498:12)\r\n0|npm      |     at resolveField (/home/ec2-user/xeleqt-object-server/node_modules/graphql/execution/execute.js:462:16)\r\n0|npm      |     at /home/ec2-user/xeleqt-object-server/node_modules/graphql/execution/execute.js:311:18\r\n0|npm      |     at Array.reduce (<anonymous>)\r\n0|npm      |     at executeFields (/home/ec2-user/xeleqt-object-server/node_modules/graphql/execution/execute.js:308:42)\r\n0|npm      |     at executeOperation (/home/ec2-user/xeleqt-object-server/node_modules/graphql/execution/execute.js:236:122)\r\n0|npm      |     at executeImpl (/home/ec2-user/xeleqt-object-server/node_modules/graphql/execution/execute.js:133:26)\r\n0|npm      |     at Object.execute (/home/ec2-user/xeleqt-object-server/node_modules/graphql/execution/execute.js:110:229)\r\n0|npm      |     at doRunQuery (/home/ec2-user/xeleqt-object-server/node_modules/apollo-server-core/dist/runQuery.js:122:42)\r\n0|npm      | Error: Cannot access realm that has been closed.\r\n0|npm      |     at queryResolver.(anonymous function) (/home/ec2-user/xeleqt-object-server/node_modules/realm-graphql-service/dist/service.js:244:40)\r\n0|npm      |     at resolveFieldValueOrError (/home/ec2-user/xeleqt-object-server/node_modules/graphql/execution/execute.js:498:12)\r\n0|npm      |     at resolveField (/home/ec2-user/xeleqt-object-server/node_modules/graphql/execution/execute.js:462:16)\r\n0|npm      |     at /home/ec2-user/xeleqt-object-server/node_modules/graphql/execution/execute.js:311:18\r\n0|npm      |     at Array.reduce (<anonymous>)\r\n0|npm      |     at executeFields (/home/ec2-user/xeleqt-object-server/node_modules/graphql/execution/execute.js:308:42)\r\n0|npm      |     at executeOperation (/home/ec2-user/xeleqt-object-server/node_modules/graphql/execution/execute.js:236:122)\r\n0|npm      |     at executeImpl (/home/ec2-user/xeleqt-object-server/node_modules/graphql/execution/execute.js:133:26)\r\n0|npm      |     at Object.execute (/home/ec2-user/xeleqt-object-server/node_modules/graphql/execution/execute.js:110:229)\r\n0|npm      |     at doRunQuery (/home/ec2-user/xeleqt-object-server/node_modules/apollo-server-core/dist/runQuery.js:122:42)\r\n0|npm      | Error: Cannot access realm that has been closed.\r\n0|npm      |     at queryResolver.(anonymous function) (/home/ec2-user/xeleqt-object-server/node_modules/realm-graphql-service/dist/service.js:244:40)\r\n0|npm      |     at resolveFieldValueOrError (/home/ec2-user/xeleqt-object-server/node_modules/graphql/execution/execute.js:498:12)\r\n0|npm      |     at resolveField (/home/ec2-user/xeleqt-object-server/node_modules/graphql/execution/execute.js:462:16)\r\n0|npm      |     at /home/ec2-user/xeleqt-object-server/node_modules/graphql/execution/execute.js:311:18\r\n0|npm      |     at Array.reduce (<anonymous>)\r\n0|npm      |     at executeFields (/home/ec2-user/xeleqt-object-server/node_modules/graphql/execution/execute.js:308:42)\r\n0|npm      |     at executeOperation (/home/ec2-user/xeleqt-object-server/node_modules/graphql/execution/execute.js:236:122)\r\n0|npm      |     at executeImpl (/home/ec2-user/xeleqt-object-server/node_modules/graphql/execution/execute.js:133:26)\r\n0|npm      |     at Object.execute (/home/ec2-user/xeleqt-object-server/node_modules/graphql/execution/execute.js:110:229)\r\n0|npm      |     at doRunQuery (/home/ec2-user/xeleqt-object-server/node_modules/apollo-server-core/dist/runQuery.js:122:42)\r\n0|npm      | Error: Cannot access realm that has been closed.\r\n0|npm      |     at queryResolver.(anonymous function) (/home/ec2-user/xeleqt-object-server/node_modules/realm-graphql-service/dist/service.js:244:40)\r\n0|npm      |     at resolveFieldValueOrError (/home/ec2-user/xeleqt-object-server/node_modules/graphql/execution/execute.js:498:12)\r\n0|npm      |     at resolveField (/home/ec2-user/xeleqt-object-server/node_modules/graphql/execution/execute.js:462:16)\r\n0|npm      |     at /home/ec2-user/xeleqt-object-server/node_modules/graphql/execution/execute.js:311:18\r\n0|npm      |     at Array.reduce (<anonymous>)\r\n0|npm      |     at executeFields (/home/ec2-user/xeleqt-object-server/node_modules/graphql/execution/execute.js:308:42)\r\n0|npm      |     at executeOperation (/home/ec2-user/xeleqt-object-server/node_modules/graphql/execution/execute.js:236:122)\r\n0|npm      |     at executeImpl (/home/ec2-user/xeleqt-object-server/node_modules/graphql/execution/execute.js:133:26)\r\n0|npm      |     at Object.execute (/home/ec2-user/xeleqt-object-server/node_modules/graphql/execution/execute.js:110:229)\r\n0|npm      |     at doRunQuery (/home/ec2-user/xeleqt-object-server/node_modules/apollo-server-core/dist/runQuery.js:122:42)\r\n0|npm      | info: Got signal SIGINT. Shutting down\r\n0|npm      | info: Loaded feature token capabilities=[Sync], expires=Wed Apr 19 2017 14:15:29 GMT+0000 (UTC)\r\n0|npm      | info: Realm Object Server version 2.8.1 is starting\r\n0|npm      | info: [sync] Realm sync server started ([realm-core-5.1.2], [realm-sync-2.2.15])\r\n0|npm      | info: [sync] Directory holding persistent state: /home/ec2-user/xeleqt-object-server/data/sync/user_data\r\n0|npm      | info: [sync] Backup mode: master_with_no_slave\r\n0|npm      | info: [sync] Log level: info\r\n0|npm      | info: [sync] Download log compaction is enabled\r\n0|npm      | info: [sync] Max download size: 32000000 bytes\r\n0|npm      | info: [sync] Listening on 127.0.0.1:46101 (sync protocol version 22)\r\n0|npm      | info: [sync] HTTP Connection[1]: Connection is closed after HTTP response.\r\n0|npm      | info: [sync] HTTP Connection[3]: Connection is closed after HTTP response.\r\n0|npm      | info: [sync] HTTP Connection[5]: Connection is closed after HTTP response.\r\n0|npm      | info: [sync] HTTP Connection[7]: Connection is closed after HTTP response.\r\n0|npm      | info: [sync] HTTP Connection[9]: Connection is closed after HTTP response.\r\n0|npm      | info: [sync] HTTP Connection[10]: Connection is closed after HTTP response.\r\n0|npm      | info: [sync] HTTP Connection[13]: Connection is closed after HTTP response.\r\n0|npm      | info: [sync] HTTP Connection[15]: Connection is closed after HTTP response.\r\n0|npm      | info: [sync] HTTP Connection[17]: Connection is closed after HTTP response.\r\n0|npm      | info: [sync] HTTP Connection[18]: Connection is closed after HTTP response.\r\n0|npm      | info: [sync] HTTP Connection[22]: Connection is closed after HTTP response.\r\n0|npm      | info: Realm Object Server has started and is listening on http://0.0.0.0:9080\r\n0|npm      | info: [sync] HTTP Connection[25]: Connection is closed after HTTP response.\r\n0|npm      | info: [sync] HTTP Connection[27]: Connection is closed after HTTP response.\r\n0|npm      | info: [sync] HTTP Connection[31]: Connection is closed after HTTP response.\r\n0|npm      | info: [sync] HTTP Connection[33]: Connection is closed after HTTP response.\r\n0|npm      | { FetchError: network timeout at: http://127.0.0.1:46101/xeleqt-production/realms/files/%2Fxeleqt-production\r\n0|npm      |     at Timeout._onTimeout (/home/ec2-user/xeleqt-object-server/node_modules/node-fetch/index.js:126:13)\r\n0|npm      |     at ontimeout (timers.js:482:11)\r\n0|npm      |     at tryOnTimeout (timers.js:317:5)\r\n0|npm      |     at Timer.listOnTimeout (timers.js:277:5)\r\n0|npm      |   name: 'FetchError',\r\n0|npm      |   message: 'network timeout at: http://127.0.0.1:46101/xeleqt-production/realms/files/%2Fxeleqt-production',\r\n0|npm      |   type: 'request-timeout' }\r\n\r\n^[\r\n\r\nWhen this error appears, i really have to restart the ROS, which i think a bad practice.\r\n\r\nThanks in advance for the help :D"},"comment":{"url":"https://api.github.com/repos/realm/realm-graphql-service/issues/comments/395049046","html_url":"https://github.com/realm/realm-graphql-service/issues/46#issuecomment-395049046","issue_url":"https://api.github.com/repos/realm/realm-graphql-service/issues/46","id":395049046,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTA0OTA0Ng==","user":{"login":"nirinchev","id":2315687,"node_id":"MDQ6VXNlcjIzMTU2ODc=","avatar_url":"https://avatars1.githubusercontent.com/u/2315687?v=4","gravatar_id":"","url":"https://api.github.com/users/nirinchev","html_url":"https://github.com/nirinchev","followers_url":"https://api.github.com/users/nirinchev/followers","following_url":"https://api.github.com/users/nirinchev/following{/other_user}","gists_url":"https://api.github.com/users/nirinchev/gists{/gist_id}","starred_url":"https://api.github.com/users/nirinchev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nirinchev/subscriptions","organizations_url":"https://api.github.com/users/nirinchev/orgs","repos_url":"https://api.github.com/users/nirinchev/repos","events_url":"https://api.github.com/users/nirinchev/events{/privacy}","received_events_url":"https://api.github.com/users/nirinchev/received_events","type":"User","site_admin":false},"created_at":"2018-06-06T12:21:11Z","updated_at":"2018-06-06T12:21:11Z","author_association":"MEMBER","body":"We still don't have a way to reproduce this which hinders any debugging efforts 😔"}}
{"actor":{"display_login":"nirinchev"}}