blockManger alltime restart
<--- JS stacktrace --->
3|blockMan | ==== JS stack trace =========================================
3|blockMan | Security context: 0x3d0899ea5ee1 <JSObject>
3|blockMan | 1: /* anonymous /(aka / anonymous /) [/home/weiss/.nvm/versions/node/v8.9.3/lib/node_modules/pm2/node_modules/event-loop-inspector/index.js:~113] [pc=0x3d61acc3e8cc](this=0x25f7ef702311
HDD - 500GB RAM 8gb
Help please
8Gb RAM is more than enough. Out of memomry can be caused by coin daemon memory leak (it happens with some forknote coins).
Monero coin. Daemon from - https://getmonero.org/resources/user-guides/vps_run_node.html
Monero doesnβt have any memory issue as I know. π€ What βfree -hβ gives you about memory ? Is monerod fully synced ? (By tail the bitmonero.log)
free -h total used free shared buff/cache available Mem: 7.7G 2.4G 1.9G 9.6M 3.3G 4.9G Swap: 4.9G 33M 4.8G
Yes fully synced....
tail -f /home/monerodaemon/.bitmonero/bitmonero.log 2018-07-24 07:34:36.649 [P2P6] INFO global src/cryptonote_protocol/cryptonote_protocol_handler.inl:310 [5.196.251.161:18080 OUT] Sync data returned a new top block candidate: 1623522 -> 1623526 [Your node is 4 blocks (0 days) behind] SYNCHRONIZATION started 2018-07-24 07:34:39.015 [P2P9] INFO global src/cryptonote_protocol/cryptonote_protocol_handler.inl:1170 [5.196.251.161:18080 OUT] Synced 1623526/1623526 2018-07-24 07:34:39.015 [P2P9] INFO global src/cryptonote_protocol/cryptonote_protocol_handler.inl:1560 SYNCHRONIZED OK 2018-07-24 07:34:39.015 [P2P9] INFO global src/cryptonote_protocol/cryptonote_protocol_handler.inl:1582
You are now synchronized with the network. You may now start monero-wallet-cli.
Use the "help" command to see the list of available commands.
monero-wallet-rpc
/usr/local/src/monero/monero-wallet-rpc --rpc-bind-port 18982 --password-file ~/wallet_pass --wallet-file pool --disable-rpc-login --trusted-daemon
Help please..
I canβt figure out why your blockManager have issue of memory allocation (with 4.9Gb RAM available). Do you have any other error logs ?
Output for βpm2 statusβ ?
pm2 status Only blockManger constantly reboots... With errors in the first post. And CPU load
==== JS stack trace =========================================
2|blockMan | Security context: 0xa7ae5425ee1 <JSObject>
2|blockMan | 1: /* anonymous /(aka / anonymous /) [/home/weiss/.nvm/versions/node/v8.9.3/lib/node_modules/pm2/node_modules/event-loop-inspector/index.js:~113] [pc=0x116c468cd52c](this=0x1e7314202311
βββββββββββββββββββββ¬βββββ¬βββββββ¬ββββββββ¬βββββββββ¬ββββββββββ¬βββββββββ¬βββββββββ¬ββββββββββββ¬ββββββββ¬βββββββββββ β App name β id β mode β pid β status β restart β uptime β cpu β mem β user β watching β βββββββββββββββββββββΌβββββΌβββββββΌββββββββΌβββββββββΌββββββββββΌβββββββββΌβββββββββΌββββββββββββΌββββββββΌβββββββββββ€ β api β 1 β fork β 12416 β online β 4 β 101m β 0.2% β 64.4 MB β weiss β disabled β β blockManager β 2 β fork β 13690 β online β 146 β 37s β 147.8% β 1.4 GB β weiss β disabled β β longRunner β 6 β fork β 12470 β online β 3 β 101m β 0.1% β 52.6 MB β weiss β disabled β β monero-wallet-rpc β 9 β fork β 12511 β online β 1485 β 101m β 0.2% β 17.9 MB β weiss β disabled β β payments β 4 β fork β 12439 β online β 3 β 101m β 0.1% β 45.2 MB β weiss β disabled β β pool β 7 β fork β 12498 β online β 3 β 101m β 1.6% β 70.1 MB β weiss β disabled β β remoteShare β 5 β fork β 12476 β online β 3 β 101m β 0.2% β 68.5 MB β weiss β disabled β β worker β 3 β fork β 12434 β online β 193 β 101m β 1% β 69.2 MB β weiss β disabled β βββββββββββββββββββββ΄βββββ΄βββββββ΄ββββββββ΄βββββββββ΄ββββββββββ΄βββββββββ΄βββββββββ΄ββββββββββββ΄ββββββββ΄βββββββββββ Module activated βββββββββββββββββ¬ββββββββββ¬βββββββββββββ¬βββββββββ¬ββββββββββ¬βββββββ¬ββββββββββββββ¬ββββββββ β Module β version β target PID β status β restart β cpu β memory β user β βββββββββββββββββΌββββββββββΌβββββββββββββΌβββββββββΌββββββββββΌβββββββΌββββββββββββββΌββββββββ€ β pm2-logrotate β 2.6.0 β N/A β online β 0 β 0.1% β 21.906 MB β weiss β
Donβt run monero wallet rpc with pm2 , 1485 restarts, what is error ? Worker 193 restarts what is error ?
logs worker error
2018-07-27 00:13 +00:00: Did not send e-mail successfully! Response: undefined Response: undefined 2018-07-27 01:06 +00:00: Unable to get wallet stats: Unable to process balance 2018-07-27 01:08 +00:00: {"code":"ECONNREFUSED","errno":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":18$ 2018-07-27 01:08 +00:00: TypeError: Cannot read property 'block_header' of undefined at /home/weiss/nodejs-pool/lib/worker.js:448:32 at /home/weiss/nodejs-pool/lib/support.js:100:24 at Object.parseBody (/home/weiss/nodejs-pool/node_modules/request-json/main.js:74:12) at Request._callback (/home/weiss/nodejs-pool/node_modules/request-json/main.js:148:26) at self.callback (/home/weiss/nodejs-pool/node_modules/request-json/node_modules/request/request.js:187:22) at emitOne (events.js:116:13) at Request.emit (events.js:211:7) at Request.onRequestError (/home/weiss/nodejs-pool/node_modules/request-json/node_modules/request/request.js:813:8) at emitOne (events.js:116:13) at ClientRequest.emit (events.js:211:7) at Socket.socketErrorListener (_http_client.js:387:9) at emitOne (events.js:116:13) at Socket.emit (events.js:211:7) at emitErrorNT (internal/streams/destroy.js:64:8) at args.(anonymous function) (/home/weiss/.nvm/versions/node/v8.9.3/lib/node_modules/pm2/node_modules/event-loop-inspe$ at _combinedTickCallback (internal/process/next_tick.js:138:11) 2018-07-27 01:08 +00:00: {"code":"ECONNREFUSED","errno":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":18$ 2 2018-07-27 05:06 +00:00: TypeError: Cannot read property 'block_header' of undefined at /home/weiss/nodejs-pool/lib/worker.js:448:32 at /home/weiss/nodejs-pool/lib/support.js:100:24 at Object.parseBody (/home/weiss/nodejs-pool/node_modules/request-json/main.js:74:12) at Request._callback (/home/weiss/nodejs-pool/node_modules/request-json/main.js:148:26) at self.callback (/home/weiss/nodejs-pool/node_modules/request-json/node_modules/request/request.js:187:22) at emitOne (events.js:116:13) at Request.emit (events.js:211:7) at Request.onRequestError (/home/weiss/nodejs-pool/node_modules/request-json/node_modules/request/request.js:813:8) at emitOne (events.js:116:13) at ClientRequest.emit (events.js:211:7) at Socket.socketOnEnd (_http_client.js:423:9) at emitNone (events.js:111:20) at Socket.emit (events.js:208:7) at endReadableNT (_stream_readable.js:1056:12) at args.(anonymous function) (/home/weiss/.nvm/versions/node/v8.9.3/lib/node_modules/pm2/node_modules/event-loop-inspe$ at _combinedTickCallback (internal/process/next_tick.js:138:11)
After restart pm2 not start. Error rpc mising.
What is value of pool.config.daemon.port (check with mysql) ?
Is it 18081 ?
yes in data base 18081
So the issue here is not just blockManager. Your issue is that the modules can not connect to daemon at port 18081. By the way, if what you are running is graft, port 18981 for daemon. Why graft ? I saw you bind wallet rpc at port 18982 which is normal port for graft wallet rpc. You should check your coin daemon (monerod or your coin) running at which port and put correct port in config mysql.
port 18981 - since daemon took 18081 and 18082. Coin Monero. in mysql DB port daemon 18081 rpc 18982
Run βsudo netstat -nlptβ Paste output here
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 1279/redis-server 1 tcp 0 0 0.0.0.0:5555 0.0.0.0:* LISTEN 2322/init.js tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1138/sshd tcp 0 0 127.0.0.1:6010 0.0.0.0:* LISTEN 4046/0 tcp 0 0 0.0.0.0:18080 0.0.0.0:* LISTEN 1324/monerod tcp 0 0 0.0.0.0:7777 0.0.0.0:* LISTEN 2322/init.js tcp 0 0 127.0.0.1:18081 0.0.0.0:* LISTEN 1324/monerod tcp 0 0 127.0.0.1:18082 0.0.0.0:* LISTEN 1324/monerod tcp 0 0 0.0.0.0:3333 0.0.0.0:* LISTEN 2322/init.js tcp 0 0 127.0.0.1:18982 0.0.0.0:* LISTEN 2833/monero-wallet- tcp 0 0 0.0.0.0:9000 0.0.0.0:* LISTEN 2322/init.js tcp6 0 0 :::3306 :::* LISTEN 1237/mysqld tcp6 0 0 :::80 :::* LISTEN 1155/caddy tcp6 0 0 :::22 :::* LISTEN 1138/sshd tcp6 0 0 ::1:6010 :::* LISTEN 4046/0 tcp6 0 0 :::8000 :::* LISTEN 2213/init.js tcp6 0 0 :::8001 :::* LISTEN 3354/init.js
monerod run - ExecStart=/usr/local/src/monero/monerod --rpc-bind-ip 127.0.0.1 --detach --restricted-rpc
/usr/local/src/monero/monerod status Error: Problem fetching info-- rpc_request: Height: 1625711/1625711 (100.0%) on mainnet, mining info unavailable, net hash 450.28 MH/s, v7, up to date, 8(out)+0(in) connections, uptime 0d 8h 9m 37s
I guess βError: Problem fetching info-- rpc_request:β /usr/local/src/monero/monerod exit Try not to put βrestricted-rpc /usr/local/src/monero/monerod --rpc-bind-ip 127.0.0.1 --detach After some minutes /usr/local/src/monero/monerod status
Daemon - ok
pm2 status
βββββββββββββββββββββ¬βββββ¬βββββββ¬βββββββ¬ββββββββββ¬ββββββββββ¬βββββββββ¬βββββββββ¬ββββββββββββ¬ββββββββ¬βββββββββββ
β App name β id β mode β pid β status β restart β uptime β cpu β mem β user β watching β
βββββββββββββββββββββΌβββββΌβββββββΌβββββββΌββββββββββΌββββββββββΌβββββββββΌβββββββββΌββββββββββββΌββββββββΌβββββββββββ€
β api β 1 β fork β 3354 β online β 1 β 13h β 0.1% β 66.1 MB β weiss β disabled β
β blockManager β 2 β fork β 7510 β online β 523 β 25s β 130.6% β 1.4 GB β weiss β disabled β
β longRunner β 6 β fork β 2247 β online β 0 β 13h β 0% β 54.0 MB β weiss β disabled β
β monero-wallet-rpc β 8 β fork β 0 β stopped β 0 β 0 β 0% β 0 B β weiss β disabled β
β payments β 4 β fork β 2178 β online β 0 β 13h β 0.1% β 63.8 MB β weiss β disabled β
β pool β 7 β fork β 2322 β online β 0 β 13h β 1.1% β 64.5 MB β weiss β disabled β
β remoteShare β 5 β fork β 2213 β online β 0 β 13h β 0.2% β 71.6 MB β weiss β disabled β
β worker β 3 β fork β 6657 β online β 59 β 2h β 0.4% β 78.1 MB β weiss β disabled β
βββββββββββββββββββββ΄βββββ΄βββββββ΄βββββββ΄ββββββββββ΄ββββββββββ΄βββββββββ΄βββββββββ΄ββββββββββββ΄ββββββββ΄βββββββββββ
Module activated
βββββββββββββββββ¬ββββββββββ¬βββββββββββββ¬βββββββββ¬ββββββββββ¬βββββββ¬ββββββββββββββ¬ββββββββ
β Module β version β target PID β status β restart β cpu β memory β user β
βββββββββββββββββΌββββββββββΌβββββββββββββΌβββββββββΌββββββββββΌβββββββΌββββββββββββββΌββββββββ€
β pm2-logrotate β 2.6.0 β N/A β online β 0 β 0.1% β 39.230 MB β weiss β
βββββββββββββββββ΄ββββββββββ΄βββββββββββββ΄βββββββββ΄ββββββββββ΄βββββββ΄ββββββββββββββ΄ββββββββ
Use pm2 show <id|name> to get more details about an app
Blackmanager restart and restart.
And before the reboot, the processor is loaded in 120% and the memory starts to use up to 2GB and after that ALL in reboot ...
tried to reinstall on another PC during the installation of not one error. I started all the same ...
Previously, the problem was solved in the following way.
- pm2 stop blockManager
- pm2 del blockManager
- cd ~/nodejs-pool/ node init.js --module = blockManager
- wait until the base of the blocks is synchronized
- run cd ~/nodejs-pool/ pm2 start init.js --name=blockManager --log-date-format="YYYY-MM-DD HH: mm Z" --module=blockManager
At the moment it has been working for 15 minutes and so far there is no problem.
The question has not yet arisen. Perodicheski skips the error - worker | 2018-07-29 18:29 +00: 00: GetLastBlockHeader Error during block header update
2018-07-29 20:03 +00:00: TypeError: Cannot read property 'block_header' of undefined
at /home/weiss/nodejs-pool/lib/blockManager.js:21:37
at /home/weiss/nodejs-pool/lib/support.js:100:24
at Object.parseBody (/home/weiss/nodejs-pool/node_modules/request-json/main.js:74:12)
at Request._callback (/home/weiss/nodejs-pool/node_modules/request-json/main.js:148:26)
at self.callback (/home/weiss/nodejs-pool/node_modules/request-json/node_modules/request/request.js:187:22)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at Request.onRequestError (/home/weiss/nodejs-pool/node_modules/request-json/node_modules/request/request.js:813:8)
at emitOne (events.js:116:13)
at ClientRequest.emit (events.js:211:7)
at Socket.socketErrorListener (_http_client.js:387:9)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at emitErrorNT (internal/streams/destroy.js:64:8)
at args.(anonymous function) (/home/weiss/.nvm/versions/node/v8.9.3/lib/node_modules/pm2/node_modules/event-loop-inspector/index.js:133:29)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
Worked 101 minutes and rebooted with an error
Cannot read property 'block_header' = can not connect to monerod I donβt understand why your modules could not connect to coin daemon.
https://github.com/mesh0000/poolui/issues/29 maybe you know the problem.