{"action":"created","issue":{"url":"https://api.github.com/repos/Snipa22/nodejs-pool/issues/404","repository_url":"https://api.github.com/repos/Snipa22/nodejs-pool","labels_url":"https://api.github.com/repos/Snipa22/nodejs-pool/issues/404/labels{/name}","comments_url":"https://api.github.com/repos/Snipa22/nodejs-pool/issues/404/comments","events_url":"https://api.github.com/repos/Snipa22/nodejs-pool/issues/404/events","html_url":"https://github.com/Snipa22/nodejs-pool/issues/404","id":318363398,"number":404,"title":"worker module error, and get api /pool/ports return false","user":{"login":"Ephzent","id":2176968,"avatar_url":"https://avatars1.githubusercontent.com/u/2176968?v=4","gravatar_id":"","url":"https://api.github.com/users/Ephzent","html_url":"https://github.com/Ephzent","followers_url":"https://api.github.com/users/Ephzent/followers","following_url":"https://api.github.com/users/Ephzent/following{/other_user}","gists_url":"https://api.github.com/users/Ephzent/gists{/gist_id}","starred_url":"https://api.github.com/users/Ephzent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ephzent/subscriptions","organizations_url":"https://api.github.com/users/Ephzent/orgs","repos_url":"https://api.github.com/users/Ephzent/repos","events_url":"https://api.github.com/users/Ephzent/events{/privacy}","received_events_url":"https://api.github.com/users/Ephzent/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-04-27T10:47:38Z","updated_at":"2018-04-27T14:15:11Z","closed_at":null,"author_association":"NONE","body":"hi, i build a node-js pool, but worker module running error\r\ndetail:\r\n`2|worker   | 2018-04-27 06:39 -04:00: Block headers identical to historical header.  Ignoring\r\n2|worker   | 2018-04-27 06:39 -04:00: Unhandled rejection TypeError: Cannot read property 'blockID' of undefined\r\n2|worker   |     at /home/nodepool/nodejs-pool/lib/worker.js:392:77\r\n2|worker   |     at Array.forEach (<anonymous>)\r\n2|worker   |     at /home/nodepool/nodejs-pool/lib/worker.js:374:44\r\n2|worker   |     at Array.forEach (<anonymous>)\r\n2|worker   |     at /home/nodepool/nodejs-pool/lib/worker.js:354:14\r\n2|worker   |     at tryCatcher (/home/nodepool/nodejs-pool/node_modules/bluebird/js/release/util.js:16:23)\r\n2|worker   |     at Promise._settlePromiseFromHandler (/home/nodepool/nodejs-pool/node_modules/bluebird/js/release/promise.js:510:31)\r\n2|worker   |     at Promise._settlePromise (/home/nodepool/nodejs-pool/node_modules/bluebird/js/release/promise.js:567:18)\r\n2|worker   |     at Promise._settlePromise0 (/home/nodepool/nodejs-pool/node_modules/bluebird/js/release/promise.js:612:10)\r\n2|worker   |     at Promise._settlePromises (/home/nodepool/nodejs-pool/node_modules/bluebird/js/release/promise.js:691:18)\r\n2|worker   |     at Async._drainQueue (/home/nodepool/nodejs-pool/node_modules/bluebird/js/release/async.js:133:16)\r\n2|worker   |     at Async._drainQueues (/home/nodepool/nodejs-pool/node_modules/bluebird/js/release/async.js:143:10)\r\n2|worker   |     at Immediate.Async.drainQueues (/home/nodepool/nodejs-pool/node_modules/bluebird/js/release/async.js:17:14)\r\n2|worker   |     at runCallback (timers.js:789:20)\r\n2|worker   |     at tryOnImmediate (timers.js:751:5)\r\n2|worker   |     at processImmediate [as _immediateCallback] (timers.js:722:5)\r\n2|worker   | 2018-04-27 06:39 -04:00: Unhandled rejection TypeError: Cannot read property 'blockID' of undefined\r\n2|worker   |     at /home/nodepool/nodejs-pool/lib/worker.js:392:77\r\n2|worker   |     at Array.forEach (<anonymous>)\r\n2|worker   |     at /home/nodepool/nodejs-pool/lib/worker.js:374:44\r\n2|worker   |     at Array.forEach (<anonymous>)\r\n2|worker   |     at /home/nodepool/nodejs-pool/lib/worker.js:354:14\r\n2|worker   |     at tryCatcher (/home/nodepool/nodejs-pool/node_modules/bluebird/js/release/util.js:16:23)\r\n2|worker   |     at Promise._settlePromiseFromHandler (/home/nodepool/nodejs-pool/node_modules/bluebird/js/release/promise.js:510:31)\r\n2|worker   |     at Promise._settlePromise (/home/nodepool/nodejs-pool/node_modules/bluebird/js/release/promise.js:567:18)\r\n2|worker   |     at Promise._settlePromise0 (/home/nodepool/nodejs-pool/node_modules/bluebird/js/release/promise.js:612:10)\r\n2|worker   |     at Promise._settlePromises (/home/nodepool/nodejs-pool/node_modules/bluebird/js/release/promise.js:691:18)\r\n2|worker   |     at Async._drainQueue (/home/nodepool/nodejs-pool/node_modules/bluebird/js/release/async.js:133:16)\r\n2|worker   |     at Async._drainQueues (/home/nodepool/nodejs-pool/node_modules/bluebird/js/release/async.js:143:10)\r\n2|worker   |     at Immediate.Async.drainQueues (/home/nodepool/nodejs-pool/node_modules/bluebird/js/release/async.js:17:14)\r\n2|worker   |     at runCallback (timers.js:789:20)\r\n2|worker   |     at tryOnImmediate (timers.js:751:5)\r\n2|worker   |     at processImmediate [as _immediateCallback] (timers.js:722:5)\r\n2|worker   | 2018-04-27 06:39 -04:00: Block headers identical to historical header.  Ignoring\r\n2|worker   | 2018-04-27 06:39 -04:00: Unhandled rejection TypeError: Cannot read property 'blockID' of undefined\r\n2|worker   |     at /home/nodepool/nodejs-pool/lib/worker.js:392:77\r\n2|worker   |     at Array.forEach (<anonymous>)\r\n2|worker   |     at /home/nodepool/nodejs-pool/lib/worker.js:374:44\r\n2|worker   |     at Array.forEach (<anonymous>)\r\n2|worker   |     at /home/nodepool/nodejs-pool/lib/worker.js:354:14\r\n2|worker   |     at tryCatcher (/home/nodepool/nodejs-pool/node_modules/bluebird/js/release/util.js:16:23)\r\n2|worker   |     at Promise._settlePromiseFromHandler (/home/nodepool/nodejs-pool/node_modules/bluebird/js/release/promise.js:510:31)\r\n2|worker   |     at Promise._settlePromise (/home/nodepool/nodejs-pool/node_modules/bluebird/js/release/promise.js:567:18)\r\n2|worker   |     at Promise._settlePromise0 (/home/nodepool/nodejs-pool/node_modules/bluebird/js/release/promise.js:612:10)\r\n2|worker   |     at Promise._settlePromises (/home/nodepool/nodejs-pool/node_modules/bluebird/js/release/promise.js:691:18)\r\n2|worker   |     at Async._drainQueue (/home/nodepool/nodejs-pool/node_modules/bluebird/js/release/async.js:133:16)\r\n2|worker   |     at Async._drainQueues (/home/nodepool/nodejs-pool/node_modules/bluebird/js/release/async.js:143:10)\r\n2|worker   |     at Immediate.Async.drainQueues (/home/nodepool/nodejs-pool/node_modules/bluebird/js/release/async.js:17:14)\r\n2|worker   |     at runCallback (timers.js:789:20)\r\n2|worker   |     at tryOnImmediate (timers.js:751:5)\r\n2|worker   |     at processImmediate [as _immediateCallback] (timers.js:722:5)`\r\nand get api /pool/ports return false\r\ndetail:\r\nhttps://noobxmr.com/api/pool/ports\r\n`mysql> select * from pools;\r\n+----+---------------+---------------------+--------+---------+---------------------+--------------------+\r\n| id | ip            | last_checkin        | active | blockID | blockIDTime         | hostname           |\r\n+----+---------------+---------------------+--------+---------+---------------------+--------------------+\r\n|  0 | 0.0.0.0       | 2018-04-27 18:45:39 |      1 | 1560323 | 2018-04-27 10:45:40 | cnpool.noobxmr.com |\r\n|  1 | 199.167.29.9  | 2018-04-27 06:45:38 |      1 | 1560323 | 2018-04-27 10:45:38 | uspool.noobxmr.com |\r\n|  2 | 192.99.35.185 | 2018-04-27 06:45:39 |      1 | 1560323 | 2018-04-27 10:45:39 | capool.noobxmr.com |\r\n+----+---------------+---------------------+--------+---------+---------------------+--------------------+\r\n3 rows in set (0.00 sec)\r\n`\r\n`mysql> select * from ports;\r\n+---------+--------------+---------------+-----------+---------------------------------------+--------+---------------+---------------------+--------+----------+\r\n| pool_id | network_port | starting_diff | port_type | description                           | hidden | ip_address    | lastSeen            | miners | ssl_port |\r\n+---------+--------------+---------------+-----------+---------------------------------------+--------+---------------+---------------------+--------+----------+\r\n|       2 |         5555 |          5000 | pplns     | Medium-Range Hardware (Up to 160 h/s) |      0 | 192.99.35.185 | 2018-04-27 10:46:29 |      2 |        0 |\r\n|       2 |         3333 |          1000 | pplns     | Low-End Hardware (Up to 30-40 h/s)    |      0 | 192.99.35.185 | 2018-04-27 10:46:29 |      2 |        0 |\r\n|       2 |         7777 |         10000 | pplns     | High-End Hardware (Anything else!)    |      0 | 192.99.35.185 | 2018-04-27 10:46:29 |      0 |        0 |\r\n|       2 |         9000 |         20000 | pplns     | Claymore SSL                          |      0 | 192.99.35.185 | 2018-04-27 10:46:29 |      0 |        1 |\r\n|       0 |         3333 |          1000 | pplns     | Low-End Hardware (Up to 30-40 h/s)    |      0 | 0.0.0.0       | 2018-04-27 10:46:30 |      0 |        0 |\r\n|       0 |         5555 |          5000 | pplns     | Medium-Range Hardware (Up to 160 h/s) |      0 | 0.0.0.0       | 2018-04-27 10:46:30 |      0 |        0 |\r\n|       0 |         7777 |         10000 | pplns     | High-End Hardware (Anything else!)    |      0 | 0.0.0.0       | 2018-04-27 10:46:30 |      0 |        0 |\r\n|       0 |         9000 |         20000 | pplns     | Claymore SSL                          |      0 | 0.0.0.0       | 2018-04-27 10:46:30 |      0 |        1 |\r\n|       1 |         5555 |          5000 | pplns     | Medium-Range Hardware (Up to 160 h/s) |      0 | 199.167.29.9  | 2018-04-27 10:46:28 |    188 |        0 |\r\n|       1 |         3333 |          1000 | pplns     | Low-End Hardware (Up to 30-40 h/s)    |      0 | 199.167.29.9  | 2018-04-27 10:46:28 |      0 |        0 |\r\n|       1 |         9000 |         20000 | pplns     | Claymore SSL                          |      0 | 199.167.29.9  | 2018-04-27 10:46:28 |      0 |        1 |\r\n|       1 |         7777 |         10000 | pplns     | High-End Hardware (Anything else!)    |      0 | 199.167.29.9  | 2018-04-27 10:46:28 |      0 |        0 |\r\n+---------+--------------+---------------+-----------+---------------------------------------+--------+---------------+---------------------+--------+----------+\r\n12 rows in set (0.00 sec)\r\n`\r\n"},"comment":{"url":"https://api.github.com/repos/Snipa22/nodejs-pool/issues/comments/384983089","html_url":"https://github.com/Snipa22/nodejs-pool/issues/404#issuecomment-384983089","issue_url":"https://api.github.com/repos/Snipa22/nodejs-pool/issues/404","id":384983089,"user":{"login":"GustavoEdny","id":24628055,"avatar_url":"https://avatars2.githubusercontent.com/u/24628055?v=4","gravatar_id":"","url":"https://api.github.com/users/GustavoEdny","html_url":"https://github.com/GustavoEdny","followers_url":"https://api.github.com/users/GustavoEdny/followers","following_url":"https://api.github.com/users/GustavoEdny/following{/other_user}","gists_url":"https://api.github.com/users/GustavoEdny/gists{/gist_id}","starred_url":"https://api.github.com/users/GustavoEdny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GustavoEdny/subscriptions","organizations_url":"https://api.github.com/users/GustavoEdny/orgs","repos_url":"https://api.github.com/users/GustavoEdny/repos","events_url":"https://api.github.com/users/GustavoEdny/events{/privacy}","received_events_url":"https://api.github.com/users/GustavoEdny/received_events","type":"User","site_admin":false},"created_at":"2018-04-27T14:15:11Z","updated_at":"2018-04-27T14:15:11Z","author_association":"NONE","body":"I have same problem"}}
{"actor":{"display_login":"GustavoEdny"}}