Tornedo relayer throwing errors

I have a fully synced geth node, with a funded private key and set to mainnet. However i cant access the mixer.

console output


Lines
2000
Search
Filter by...
2020-05-24 21:53:54,457 CRIT Supervisor is running as root.  Privileges were not dropped because no user is specified in the config file.  If you intend to run as root, you can set user=root in the config file to avoid this message.
2020-05-24 21:53:54,461 INFO supervisord started with pid 1
2020-05-24 21:53:55,465 INFO spawned: 'ngix_00' with pid 7
2020-05-24 21:53:55,467 INFO spawned: 'redis_00' with pid 8
2020-05-24 21:53:55,469 INFO spawned: 'relayer' with pid 9
2020-05-24 21:53:55,472 INFO spawned: 'tor' with pid 10
2020-05-24 21:53:55,479 INFO success: ngix_00 entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
#################################################
Hidden service address:

http://tcsh2t6aoymgxrlx.onion
or
https://tcsh2t6aoymgxrlx.onion

#################################################
tr: write error: Broken pipe
Generating RSA private key, 2048 bit long modulus (2 primes)
.....................+++++
...................+++++
e is 65537 (0x010001)
writing RSA key
May 24 21:53:56.178 [notice] Tor 0.4.1.7 running on Linux with Libevent 2.1.11-stable, OpenSSL 1.1.1d, Zlib 1.2.11, Liblzma N/A, and Libzstd N/A.
May 24 21:53:56.179 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
May 24 21:53:56.179 [notice] Read configuration file "/etc/tor/torrc".
May 24 21:53:56.187 [notice] Opening Socks listener on 127.0.0.1:9050
May 24 21:53:56.188 [notice] Opened Socks listener on 127.0.0.1:9050
Gas price oracle started.
2020-05-24 21:53:56,614 INFO success: redis_00 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-05-24 21:53:56,614 INFO success: relayer entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-05-24 21:53:56,614 INFO success: tor entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
Relayer started on port 8000
relayerAddress: 0x7E735A86BF65C4bD201FD80b4a4C3E7e057D7A43
mixers: {"eth":{"mixerAddress":{"1":"0x47CE0C6eD5B0Ce3d3A51fdb1C52DC66a7c3c2936","10":"0x910Cbd523D972eb0a6f4cAe4618aD62622b39DbF","100":"0xA160cdAB225685dA1d56aa342Ad8841c3b53f291","0.1":"0x12D66f87A04A9E220743712cE6d9bB1B5616B8Fc"},"symbol":"ETH","decimals":18},"dai":{"mixerAddress":{"100":"0xD4B88Df4D29F5CedD6857912842cff3b20C8Cfa3","1000":"0xFD8610d20aA15b7B2E3Be39B396a1bC3516c7144","10000":"0xF60dD140cFf0706bAE9Cd734Ac3ae76AD9eBC32A"},"tokenAddress":"0x6B175474E89094C44Da98b954EedeAC495271d0F","symbol":"DAI","decimals":18},"cdai":{"mixerAddress":{"5000":"0x22aaA7720ddd5388A3c0A3333430953C68f1849b","50000":"0xBA214C1c1928a32Bffe790263E38B4Af9bFCD659","500000":"0xb1C8094B234DcE6e03f10a5b673c1d8C69739A00"},"tokenAddress":"0x5d3a536E4D6DbD6114cc1Ead35777bAB948E3643","symbol":"cDAI","decimals":8},"usdc":{"mixerAddress":{"100":"0xd96f2B1c14Db8458374d9Aca76E26c3D18364307","1000":"0x4736dCf1b7A3d580672CcE6E7c65cd5cc9cFBa9D","10000":"0xD691F27f38B395864Ea86CfC7253969B409c362d"},"tokenAddress":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","symbol":"USDC","decimals":6},"cusdc":{"mixerAddress":{"5000":"0xaEaaC358560e11f52454D997AAFF2c5731B6f8a6","50000":"0x1356c899D8C9467C7f71C195612F8A395aBf2f0a","500000":"0xA60C772958a3eD56c1F15dD055bA37AC8e523a0D"},"tokenAddress":"0x39AA39c021dfbaE8faC545936693aC917d5E7563","symbol":"cUSDC","decimals":8},"usdt":{"mixerAddress":{"100":"0x169AD27A470D064DEDE56a2D3ff727986b15D52B","1000":"0x0836222F2B2B24A3F36f98668Ed8F0B38D1a872f","10000":"0xF67721A2D8F736E75a49FdD7FAd2e31D8676542a","100000":"0x9AD122c22B14202B4490eDAf288FDb3C7cb3ff5E"},"tokenAddress":"0xdAC17F958D2ee523a2206206994597C13D831ec7","symbol":"USDT","decimals":6}}
gasPrices: {"fast":2}
netId: 1
ethPrices: {"dai":"6700000000000000","cdai":"157380000000000","cusdc":"164630000000000","usdc":"7878580000000000","usdt":"7864940000000000"}
Service fee: 2.5%
fetchPrices Error: Invalid JSON RPC response: ""
    at Object.InvalidResponse (/usr/src/app/relayer/node_modules/web3-core-helpers/src/errors.js:42:16)
    at XMLHttpRequest.request.onreadystatechange (/usr/src/app/relayer/node_modules/web3-providers-http/src/index.js:98:32)
    at XMLHttpRequestEventTarget.dispatchEvent (/usr/src/app/relayer/node_modules/xhr2-cookies/dist/xml-http-request-event-target.js:34:22)
    at XMLHttpRequest._setReadyState (/usr/src/app/relayer/node_modules/xhr2-cookies/dist/xml-http-request.js:208:14)
    at XMLHttpRequest._onHttpRequestError (/usr/src/app/relayer/node_modules/xhr2-cookies/dist/xml-http-request.js:349:14)
    at ClientRequest. (/usr/src/app/relayer/node_modules/xhr2-cookies/dist/xml-http-request.js:252:61)
    at ClientRequest.emit (events.js:210:5)
    at Socket.socketErrorListener (_http_client.js:406:9)
    at Socket.emit (events.js:210:5)
    at emitErrorNT (internal/streams/destroy.js:92:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)
fetchNonce failed Invalid JSON RPC response: ""
fetchNonce failed Cannot read property 'eth' of undefined
(node:9) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_CALLBACK]: Callback must be a function. Received undefined
    at setTimeout (timers.js:118:11)
    at Timeout.fetchNonce [as _onTimeout] (/usr/src/app/relayer/src/Fetcher.js:86:7)
    at listOnTimeout (internal/timers.js:531:17)
    at processTimers (internal/timers.js:475:7)
(node:9) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:9) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Core DAppNode Packages versions
dappmanager.dnp.dappnode.eth: 0.2.31, commit: 9c52d86a
core.dnp.dappnode.eth: 0.2.35
ipfs.dnp.dappnode.eth: 0.2.9
admin.dnp.dappnode.eth: 0.2.20, commit: 0cee5543
vpn.dnp.dappnode.eth: 0.2.5
wifi.dnp.dappnode.eth: 0.2.3
bind.dnp.dappnode.eth: 0.2.4
wamp.dnp.dappnode.eth: 0.2.2
System info
docker version: Docker version 18.09.8-ce, build 0dd43dd87fd530113bf44c9bba9ad8b20ce4637f
docker compose version: docker-compose version 1.24.1, build 4667896b
Disk usage: 93%
2 Likes

There’s a PR ready to be merged:

Can this solve the issues ? @Edu

1 Like

@vdo any update on this?

I just published the new version

1 Like

Installed Tornado relay with the latest version (0.0.3) today and are getting similar error logs.

Core DAppNode Packages versions

  • dappmanager.dnp.dappnode.eth : 0.2.32, commit: 6e10ba53
  • core.dnp.dappnode.eth : 0.2.36
  • ipfs.dnp.dappnode.eth : 0.2.9
  • admin.dnp.dappnode.eth : 0.2.20, commit: 0cee5543
  • wifi.dnp.dappnode.eth : 0.2.3
  • vpn.dnp.dappnode.eth : 0.2.5
  • wamp.dnp.dappnode.eth : 0.2.2
  • bind.dnp.dappnode.eth : 0.2.4

System info

  • docker version : Docker version 18.09.8-ce, build 0dd43dd87fd530113bf44c9bba9ad8b20ce4637f
  • docker compose version : docker-compose version 1.24.1, build 4667896b
  • Disk usage : 1%

The log:

2020-06-14 01:31:22,894 CRIT Supervisor is running as root.  Privileges were not dropped because no user is specified in the config file.  If you intend to run as root, you can set user=root in the config file to avoid this message.
2020-06-14 01:31:22,896 INFO supervisord started with pid 1
2020-06-14 01:31:23,898 INFO spawned: 'ngix_00' with pid 7
2020-06-14 01:31:23,899 INFO spawned: 'redis_00' with pid 8
2020-06-14 01:31:23,900 INFO spawned: 'relayer' with pid 9
2020-06-14 01:31:23,901 INFO spawned: 'tor' with pid 10
#################################################
Hidden service address:

http://tcshf4hdj4e2zdxm.onion
or
https://tcshf4hdj4e2zdxm.onion

#################################################
2020-06-14 01:31:23,905 INFO success: ngix_00 entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2020-06-14 01:31:23,906 INFO exited: ngix_00 (terminated by SIGHUP; not expected)
2020-06-14 01:31:23,907 INFO spawned: 'ngix_00' with pid 28
Jun 14 01:31:23.908 [notice] Tor 0.4.1.9 running on Linux with Libevent 2.1.11-stable, OpenSSL 1.1.1g, Zlib 1.2.11, Liblzma N/A, and Libzstd N/A.
Jun 14 01:31:23.908 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
2020-06-14 01:31:23,908 INFO success: ngix_00 entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
Jun 14 01:31:23.908 [notice] Read configuration file "/etc/tor/torrc".
Jun 14 01:31:23.912 [notice] Opening Socks listener on 127.0.0.1:9050
Jun 14 01:31:23.912 [notice] Opened Socks listener on 127.0.0.1:9050
Gas price oracle started.
Relayer started on port 8000
relayerAddress: 0x6b3926a3cFC89CFDa3359901A237Cc403d7De86D
mixers: {"eth":{"mixerAddress":{"1":"0x47CE0C6eD5B0Ce3d3A51fdb1C52DC66a7c3c2936","10":"0x910Cbd523D972eb0a6f4cAe4618aD62622b39DbF","100":"0xA160cdAB225685dA1d56aa342Ad8841c3b53f291","0.1":"0x12D66f87A04A9E220743712cE6d9bB1B5616B8Fc"},"symbol":"ETH","decimals":18},"dai":{"mixerAddress":{"100":"0xD4B88Df4D29F5CedD6857912842cff3b20C8Cfa3","1000":"0xFD8610d20aA15b7B2E3Be39B396a1bC3516c7144","10000":"0xF60dD140cFf0706bAE9Cd734Ac3ae76AD9eBC32A"},"tokenAddress":"0x6B175474E89094C44Da98b954EedeAC495271d0F","symbol":"DAI","decimals":18},"cdai":{"mixerAddress":{"5000":"0x22aaA7720ddd5388A3c0A3333430953C68f1849b","50000":"0xBA214C1c1928a32Bffe790263E38B4Af9bFCD659","500000":"0xb1C8094B234DcE6e03f10a5b673c1d8C69739A00"},"tokenAddress":"0x5d3a536E4D6DbD6114cc1Ead35777bAB948E3643","symbol":"cDAI","decimals":8},"usdc":{"mixerAddress":{"100":"0xd96f2B1c14Db8458374d9Aca76E26c3D18364307","1000":"0x4736dCf1b7A3d580672CcE6E7c65cd5cc9cFBa9D","10000":"0xD691F27f38B395864Ea86CfC7253969B409c362d"},"tokenAddress":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","symbol":"USDC","decimals":6},"cusdc":{"mixerAddress":{"5000":"0xaEaaC358560e11f52454D997AAFF2c5731B6f8a6","50000":"0x1356c899D8C9467C7f71C195612F8A395aBf2f0a","500000":"0xA60C772958a3eD56c1F15dD055bA37AC8e523a0D"},"tokenAddress":"0x39AA39c021dfbaE8faC545936693aC917d5E7563","symbol":"cUSDC","decimals":8},"usdt":{"mixerAddress":{"100":"0x169AD27A470D064DEDE56a2D3ff727986b15D52B","1000":"0x0836222F2B2B24A3F36f98668Ed8F0B38D1a872f","10000":"0xF67721A2D8F736E75a49FdD7FAd2e31D8676542a","100000":"0x9AD122c22B14202B4490eDAf288FDb3C7cb3ff5E"},"tokenAddress":"0xdAC17F958D2ee523a2206206994597C13D831ec7","symbol":"USDT","decimals":6}}
gasPrices: {"fast":20}
netId: 1
ethPrices: {"dai":"6700000000000000","cdai":"157380000000000","cusdc":"164630000000000","usdc":"7878580000000000","usdt":"7864940000000000"}
watcher error: Error: Invalid JSON RPC response: ""
    at Object.InvalidResponse (/usr/src/app/relayer/node_modules/web3-core-helpers/src/errors.js:42:16)
    at XMLHttpRequest.request.onreadystatechange (/usr/src/app/relayer/node_modules/web3-providers-http/src/index.js:98:32)
    at XMLHttpRequestEventTarget.dispatchEvent (/usr/src/app/relayer/node_modules/xhr2-cookies/dist/xml-http-request-event-target.js:34:22)
    at XMLHttpRequest._setReadyState (/usr/src/app/relayer/node_modules/xhr2-cookies/dist/xml-http-request.js:208:14)
    at XMLHttpRequest._onHttpRequestError (/usr/src/app/relayer/node_modules/xhr2-cookies/dist/xml-http-request.js:349:14)
    at ClientRequest. (/usr/src/app/relayer/node_modules/xhr2-cookies/dist/xml-http-request.js:252:61)
    at ClientRequest.emit (events.js:223:5)
    at Socket.socketErrorListener (_http_client.js:415:9)
    at Socket.emit (events.js:223:5)
    at emitErrorNT (internal/streams/destroy.js:92:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
    at processTicksAndRejections (internal/process/task_queues.js:81:21)
fetchPrices Error: Invalid JSON RPC response: ""
    at Object.InvalidResponse (/usr/src/app/relayer/node_modules/web3-core-helpers/src/errors.js:42:16)
    at XMLHttpRequest.request.onreadystatechange (/usr/src/app/relayer/node_modules/web3-providers-http/src/index.js:98:32)
    at XMLHttpRequestEventTarget.dispatchEvent (/usr/src/app/relayer/node_modules/xhr2-cookies/dist/xml-http-request-event-target.js:34:22)
    at XMLHttpRequest._setReadyState (/usr/src/app/relayer/node_modules/xhr2-cookies/dist/xml-http-request.js:208:14)
    at XMLHttpRequest._onHttpRequestError (/usr/src/app/relayer/node_modules/xhr2-cookies/dist/xml-http-request.js:349:14)
    at ClientRequest. (/usr/src/app/relayer/node_modules/xhr2-cookies/dist/xml-http-request.js:252:61)
    at ClientRequest.emit (events.js:223:5)
    at Socket.socketErrorListener (_http_client.js:415:9)
    at Socket.emit (events.js:223:5)
    at emitErrorNT (internal/streams/destroy.js:92:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
    at processTicksAndRejections (internal/process/task_queues.js:81:21)
fetchNonce failed Invalid JSON RPC response: ""
2020-06-14 01:31:25,464 INFO success: redis_00 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-06-14 01:31:25,464 INFO success: relayer entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-06-14 01:31:25,464 INFO success: tor entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
fetchNonce failed Cannot read property 'eth' of undefined
(node:9) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_CALLBACK]: Callback must be a function. Received undefined
    at setTimeout (timers.js:118:11)
    at Timeout.fetchNonce [as _onTimeout] (/usr/src/app/relayer/src/Fetcher.js:82:7)
    at listOnTimeout (internal/timers.js:531:17)
    at processTimers (internal/timers.js:475:7)
(node:9) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:9) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
watcher error: Error: Invalid JSON RPC response: ""
    at Object.InvalidResponse (/usr/src/app/relayer/node_modules/web3-core-helpers/src/errors.js:42:16)
    at XMLHttpRequest.request.onreadystatechange (/usr/src/app/relayer/node_modules/web3-providers-http/src/index.js:98:32)
    at XMLHttpRequestEventTarget.dispatchEvent (/usr/src/app/relayer/node_modules/xhr2-cookies/dist/xml-http-request-event-target.js:34:22)
    at XMLHttpRequest._setReadyState (/usr/src/app/relayer/node_modules/xhr2-cookies/dist/xml-http-request.js:208:14)
    at XMLHttpRequest._onHttpRequestError (/usr/src/app/relayer/node_modules/xhr2-cookies/dist/xml-http-request.js:349:14)
    at ClientRequest. (/usr/src/app/relayer/node_modules/xhr2-cookies/dist/xml-http-request.js:252:61)
    at ClientRequest.emit (events.js:223:5)
    at Socket.socketErrorListener (_http_client.js:415:9)
    at Socket.emit (events.js:223:5)
    at emitErrorNT (internal/streams/destroy.js:92:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
    at processTicksAndRejections (internal/process/task_queues.js:81:21)
fetchPrices Error: Invalid JSON RPC response: ""
    at Object.InvalidResponse (/usr/src/app/relayer/node_modules/web3-core-helpers/src/errors.js:42:16)
    at XMLHttpRequest.request.onreadystatechange (/usr/src/app/relayer/node_modules/web3-providers-http/src/index.js:98:32)
    at XMLHttpRequestEventTarget.dispatchEvent (/usr/src/app/relayer/node_modules/xhr2-cookies/dist/xml-http-request-event-target.js:34:22)
    at XMLHttpRequest._setReadyState (/usr/src/app/relayer/node_modules/xhr2-cookies/dist/xml-http-request.js:208:14)
    at XMLHttpRequest._onHttpRequestError (/usr/src/app/relayer/node_modules/xhr2-cookies/dist/xml-http-request.js:349:14)
    at ClientRequest. (/usr/src/app/relayer/node_modules/xhr2-cookies/dist/xml-http-request.js:252:61)
    at ClientRequest.emit (events.js:223:5)
    at Socket.socketErrorListener (_http_client.js:415:9)
    at Socket.emit (events.js:223:5)
    at emitErrorNT (internal/streams/destroy.js:92:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
    at processTicksAndRejections (internal/process/task_queues.js:81:21)
watcher error: Error: Invalid JSON RPC response: ""
    at Object.InvalidResponse (/usr/src/app/relayer/node_modules/web3-core-helpers/src/errors.js:42:16)
    at XMLHttpRequest.request.onreadystatechange (/usr/src/app/relayer/node_modules/web3-providers-http/src/index.js:98:32)
    at XMLHttpRequestEventTarget.dispatchEvent (/usr/src/app/relayer/node_modules/xhr2-cookies/dist/xml-http-request-event-target.js:34:22)
    at XMLHttpRequest._setReadyState (/usr/src/app/relayer/node_modules/xhr2-cookies/dist/xml-http-request.js:208:14)
    at XMLHttpRequest._onHttpRequestError (/usr/src/app/relayer/node_modules/xhr2-cookies/dist/xml-http-request.js:349:14)
    at ClientRequest. (/usr/src/app/relayer/node_modules/xhr2-cookies/dist/xml-http-request.js:252:61)
    at ClientRequest.emit (events.js:223:5)
    at Socket.socketErrorListener (_http_client.js:415:9)
    at Socket.emit (events.js:223:5)
    at emitErrorNT (internal/streams/destroy.js:92:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
    at processTicksAndRejections (internal/process/task_queues.js:81:21)
fetchPrices Error: Invalid JSON RPC response: ""
    at Object.InvalidResponse (/usr/src/app/relayer/node_modules/web3-core-helpers/src/errors.js:42:16)
    at XMLHttpRequest.request.onreadystatechange (/usr/src/app/relayer/node_modules/web3-providers-http/src/index.js:98:32)
    at XMLHttpRequestEventTarget.dispatchEvent (/usr/src/app/relayer/node_modules/xhr2-cookies/dist/xml-http-request-event-target.js:34:22)
    at XMLHttpRequest._setReadyState (/usr/src/app/relayer/node_modules/xhr2-cookies/dist/xml-http-request.js:208:14)
    at XMLHttpRequest._onHttpRequestError (/usr/src/app/relayer/node_modules/xhr2-cookies/dist/xml-http-request.js:349:14)
    at ClientRequest. (/usr/src/app/relayer/node_modules/xhr2-cookies/dist/xml-http-request.js:252:61)
    at ClientRequest.emit (events.js:223:5)
    at Socket.socketErrorListener (_http_client.js:415:9)
    at Socket.emit (events.js:223:5)
    at emitErrorNT (internal/streams/destroy.js:92:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
    at processTicksAndRejections (internal/process/task_queues.js:81:21)

@Edu any update on this ?

thx and cheers

This seems to be a problem with your fullnode, what client do you have installed? is it synchronized?

Installed Geth and is fully synchronized now.

Removed and re-installed Tornado relay after that. Getting another kind of error logs now:

fetchPrices Error: Returned error: execution reverted
    at Object.ErrorResponse (/usr/src/app/relayer/node_modules/web3-core-helpers/src/errors.js:29:16)
    at /usr/src/app/relayer/node_modules/web3-core-requestmanager/src/index.js:140:36
    at XMLHttpRequest.request.onreadystatechange (/usr/src/app/relayer/node_modules/web3-providers-http/src/index.js:102:13)
    at XMLHttpRequestEventTarget.dispatchEvent (/usr/src/app/relayer/node_modules/xhr2-cookies/dist/xml-http-request-event-target.js:34:22)
    at XMLHttpRequest._setReadyState (/usr/src/app/relayer/node_modules/xhr2-cookies/dist/xml-http-request.js:208:14)
    at XMLHttpRequest._onHttpResponseEnd (/usr/src/app/relayer/node_modules/xhr2-cookies/dist/xml-http-request.js:318:14)
    at IncomingMessage. (/usr/src/app/relayer/node_modules/xhr2-cookies/dist/xml-http-request.js:289:61)
    at IncomingMessage.emit (events.js:228:7)
    at endReadableNT (_stream_readable.js:1185:12)
    at processTicksAndRejections (internal/process/task_queues.js:81:21)

error log is repeating every few seconds.