nodejs-pool
nodejs-pool copied to clipboard
api error
i have found this issui after an clean install on ubuntu
/home/xmr/.pm2/logs/api-error.log last 15 lines:
1|api | at Object.
This is only a partial print of the error. Try opening /home/xmr/.pm2/logs/api-error.log
and then getting the full error from there. This does not mean we want the whole error log but the error from start to finish.
ok the error its not coming up again, but i have a new:
2018-09-03 10:29 +00:00: {"code":"ECONNREFUSED","errno":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":18081} 2018-09-03 10:29 +00:00: TypeError: Cannot read property 'block_header' of undefined at /home/xmr/nodejs-pool/lib/worker.js:448:32 at /home/xmr/nodejs-pool/lib/support.js:100:24 at Object.parseBody (/home/xmr/nodejs-pool/node_modules/request-json/main.js:74:12) at Request._callback (/home/xmr/nodejs-pool/node_modules/request-json/main.js:148:26) at self.callback (/home/xmr/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/xmr/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/xmr/.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)
worker-error.log
the api-error.log is empty
the blockManager-error.log:
2018-09-03 10:29 +00:00: {"code":"ECONNREFUSED","errno":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":18081} Upstream error from the block daemon. Resetting scanner due to: {"code":"ECONNREFUSED","errno":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":18081}
when i try also connect to api in the webbrowser: http://192.168.1.141/api/authenticate
Cannot GET /authenticate
i cannot login to admin gui, with the default login, but also with a changed user and password
Your server hardware specification ? Manual installation by commands or you curled the bash ?
Hi, thats a testsytem asus laptop with i5 8GB RAM Ubuntu 1604 Installation with curl
The bash is oudated and it won’t download blockchain and sync for you. Your monerod is not synced. Check monerod log and wait until it is synced.
Ok thats my log bitmonero log:
2018-09-03 11:24:58.305 7f72025a4740 INFO global src/daemon/main.cpp:279 Monero 'Helium Hydra' (v0.11.1.0-793bc97)
2018-09-03 11:24:58.305 7f72025a4740 INFO global src/daemon/protocol.h:55 Initializing cryptonote protocol...
2018-09-03 11:24:58.305 7f72025a4740 INFO global src/daemon/protocol.h:60 Cryptonote protocol initialized OK
2018-09-03 11:24:58.306 7f72025a4740 INFO global src/daemon/p2p.h:63 Initializing p2p server...
2018-09-03 11:24:58.576 7f72025a4740 INFO stacktrace src/common/stack_trace.cpp:120 Exception: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injectorboost::system::system_error >
2018-09-03 11:24:58.576 7f72025a4740 INFO stacktrace src/common/stack_trace.cpp:121 Unwound call stack:
2018-09-03 11:24:58.600 7f72025a4740 INFO stacktrace src/common/stack_trace.cpp:159 [1] ./monerod:__cxa_throw+0x106 [0x7cc756]
2018-09-03 11:24:58.600 7f72025a4740 INFO stacktrace src/common/stack_trace.cpp:159 [2] ./monerod:void boost::throw_exceptionboost::system::system_error(boost::system::system_error const&)+0x1d1 [0x5854a1]
2018-09-03 11:24:58.600 7f72025a4740 INFO stacktrace src/common/stack_trace.cpp:159 [3] ./monerod:boost::asio::detail::do_throw_error(boost::system::error_code const&, char const*)+0x55 [0x585585]
2018-09-03 11:24:58.600 7f72025a4740 INFO stacktrace src/common/stack_trace.cpp:159 [4] ./monerod:boost::asio::basic_socket_acceptor<boost::asio::ip::tcp, boost::asio::socket_acceptor_serviceboost::asio::ip::tcp >::bind(boost::asio::ip::basic_endpointboost::asio::ip::tcp const&)+0x8d [0x5a358d]
2018-09-03 11:24:58.600 7f72025a4740 INFO stacktrace src/common/stack_trace.cpp:159 [5] ./monerod:epee::net_utils::boosted_tcp_server<epee::levin::async_protocol_handler<nodetool::p2p_connection_context_tcryptonote::cryptonote_connection_context > >::init_server(unsigned int, std::__cxx11::basic_string<char, std::char_traits
Monerod is in error. Git the latest monero + check firewall if port 18080 is open + if your harddisk has more than 100Gb free.
who must i save the passwordfile ?
Monero 'Helium Hydra' (v0.11.1.0-793bc97) Logging to /usr/local/src/monero/build/release/bin/monero-wallet-rpc.log [33m2018-09-03 11:34:06.702 7fb189a85740 WARN wallet.rpc src/wallet/wallet_rpc_server.cpp:1853 Loading wallet... [0mError: the password file specified could not be read
sudo systemctl stop monero cd /usr/local/src sudo rm -rf monero sudo git clone --recursive https://github.com/monero-project/monero cd monero sudo make -j2 sudo systemctl start monero Check log and wait for full sync.
Your monero is oudated. You need the latest or at least v0.12.x
For wallet, you can bind localhost 127.0.0.1, no need password for simplicity. Disable rpcpassword in mysql config if you enable it par hasard.
I misunderstood. the password file specified could not be read , you need create pass_file with wallet password in content and run wallet rpc with password parameter to that file.
ok i try to update monero first
Please read the readme of Monero github. Run this : sudo apt update && sudo apt install build-essential cmake pkg-config libboost-all-dev libssl-dev libzmq3-dev libunbound-dev libsodium-dev libunwind8-dev liblzma-dev libreadline6-dev libldns-dev libexpat1-dev doxygen graphviz libpcsclite-dev libpgm-dev
i connot finish the compiling:
make[1]: Verzeichnis „/usr/local/src/monero/build/release“ wird verlassen Makefile:72: die Regel für Ziel „release-all“ scheiterte make: *** [release-all] Fehler 2
Try this ( I guess you forgot —recursive when git ) sudo apt update && sudo apt install build-essential cmake pkg-config libboost-all-dev libssl-dev libzmq3-dev libunbound-dev libsodium-dev libunwind8-dev liblzma-dev libreadline6-dev libldns-dev libexpat1-dev doxygen graphviz libpcsclite-dev libpgm-dev cd /usr/local/src/monero sudo git submodule init && sudo git submodule update sudo make -j2
i make sudo git clone --recursive https://github.com/monero-project/monero
Ubuntu version ? Try Ubuntu 16.04
Ahhhh, if you curled the bash, you need to remove all gtest libs installed by the bash.
can i also try to install without curl
The worst case, download monero release binary files and run without compilation.
I have installed ubuntu 16.04 desktop
The problem now that you still can not run Monero daemon. You can not do anything. Try this sudo rm /usr/lib/libg* and try to sudo make again
sudo rm /usr/lib/libg* the same issue
so i must have the binary monero ?
It is sure that you the bash file but you need to run it manually and try to fix if any command is not correct anymore. Curling the bash won’t work anymore (many things are outdated). Snipa is on Hawai :)) and doesn’t maintain this repo so even if I PR the changes, no one will merge it.
Look at error and try to look at Monero’s repo issues. Your problem now is how to compile and run Monero daemon.