EvernodeXRPL / evernode-test-resources

0 stars 1 forks source link

Websocket disconnect on offerlease #15

Open go140point6 opened 7 months ago

go140point6 commented 7 months ago

Version: 0.8.3

Initial offerlease command got through 5 of the 18 before disconnecting:

sudo evernode offerlease
Stopping the message board...
Creating lease offers for instance slots...
Transaction result: tesSUCCESS
Created lease offer 1 of 18.
Transaction result: tesSUCCESS
Created lease offer 2 of 18.
Transaction result: tesSUCCESS
Created lease offer 3 of 18.
Transaction result: tesSUCCESS
Created lease offer 4 of 18.
Transaction result: tesSUCCESS
Created lease offer 5 of 18.
Connection failure for ws://45.76.178.184 (code:1006)
Re-initializing xrpl client.
DisconnectedError: websocket was closed,
    at WebSocket.<anonymous> (/usr/bin/sashimono/mb-xrpl/index.js:57:100431)
    at Object.onceWrapper (node:events:633:26)
    at WebSocket.emit (node:events:518:28)
    at WebSocket.emitClose (/usr/bin/sashimono/mb-xrpl/index.js:57:68404)
    at Receiver.receiverOnFinish (/usr/bin/sashimono/mb-xrpl/index.js:57:78924)
    at Receiver.emit (node:events:518:28)
    at finish (node:internal/streams/writable:945:10)
    at node:internal/streams/writable:926:13
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  data: undefined
}
Submission attempt 1 failed. Retrying...
Error occurred while re-connecting to the primary server
node:events:507
    const err = new ERR_UNHANDLED_ERROR(stringifiedEr);
                ^

Error [ERR_UNHANDLED_ERROR]: Unhandled error. ('reconnect')
    at Client.emit (node:events:507:17)
    at Connection.<anonymous> (/usr/bin/sashimono/mb-xrpl/index.js:57:104671)
    at Connection.emit (node:events:518:28)
    at /usr/bin/sashimono/mb-xrpl/index.js:57:101184
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  code: 'ERR_UNHANDLED_ERROR',
  context: 'reconnect'
}

Node.js v20.11.0
There was an error in creating lease offers.
Starting the message board...

Re-running the offerelease however, recovered by starting with lease #6 and completing the remaining 13 leases.

I left the default ws://45.76.178.184 as my primary WS and included wss://xahau-test.net as my backup. Not sure if this should have failed over to my backup or what would be expected in this scenario.

effofexx commented 7 months ago

I left the default ws://45.76.178.184 as my primary WS and included wss://xahau-test.net as my backup.

I did the same thing and experienced a dropped connection twice. However, it recovered automatically the second time it happened. The first time was following the check for account conditions:

Checking the account condition...
To set up your host account, ensure a deposit of 17 XAH to cover the regular transaction fees for the first three months.

Waiting for the process to complete...
Error occurred while re-connecting to the primary server
Error occurred in websocket connection.

Do you want to re-check the balance?
Pressing 'n' would terminate the installation. [Y/n] y

Waiting for the process to complete...
7998.131465 XAH balance is there in your host account.

Preparing host account...

Waiting for the process to complete...
Account preparation is successfull.

And the second time was following the evernode offerlease command:

Stopping the message board...
Creating lease offers for instance slots...
Transaction result: tesSUCCESS
Created lease offer 1 of 3.
TimeoutError
    at Timeout.<anonymous> (/usr/bin/sashimono/mb-xrpl/index.js:57:93591)
    at listOnTimeout (node:internal/timers:573:17)
    at process.processTimers (node:internal/timers:514:7) {
  data: undefined
}
Submission attempt 1 failed. Retrying...
Transaction result: tesSUCCESS
Created lease offer 2 of 3.
Transaction result: tesSUCCESS
Created lease offer 3 of 3.
Starting the message board...
Lease offer creation for minted lease tokens was completed.