Jump to content
Sign in to follow this  
djnotleks

Trouble starting moneyd - tecINSUFFICIENT_RESERVE

Recommended Posts

I'm having trouble getting moneyd started. Sorry if this is answered but I didn't see the answer. 

ran these commands

npm install -g moneyd moneyd-uplink-xrp

moneyd  xrp:configure

moneyd  xrp:start

I have a wallet with 100xrp in it

starting moneyd

2018-08-23T01:46:45.110Z connector:route-broadcaster info generated random routing secret.

2018-08-23T01:46:45.116Z connector:accounts info add account. accountId=parent

2018-08-23T01:46:45.119Z connector:accounts info add account. accountId=local

2018-08-23T01:46:46.940Z connector:/usr/local/lib/node_modules/moneyd-uplink-xrp/node_modules/ilp-plugin-xrp-asym-client/index.js[parent] info creating outgoing channel. from=rfe6XxXwY2Ss1KzMrgjSbANBVmRb2WvcKD to=rhAG7gdd2CKAeaEQCwz5pkN9o1KK6CPNGn amount=10

2018-08-23T01:46:54.495Z connector:/usr/local/lib/node_modules/moneyd-uplink-xrp/node_modules/ilp-plugin-xrp-asym-client/index.js[parent] info transaction complete

2018-08-23T01:47:02.679Z connector:app error Error: {"code":"F00","name":"NotAcceptedError","triggeredAt":"2018-08-23T01:47:02.577Z","data":"tx failed: {\"engine_result\":\"tecINSUFFICIENT_RESERVE\",\"engine_result_code\":141,\"engine_result_message\":\"Insufficient reserve to complete requested operation.\",\"ledger_hash\":\"3E912F163BD1BA506C24A98106BAF94C33268E34D3BA69D367880508AAB86629\",\"ledger_index\":40992769,\"meta\":{\"AffectedNodes\":[{\"ModifiedNode\":{\"FinalFields\":{\"Account\":\"rhAG7gdd2CKAeaEQCwz5pkN9o1KK6CPNGn\",\"Balance\":\"831551228\",\"Flags\":0,\"OwnerCount\":162,\"Sequence\":4158},\"LedgerEntryType\":\"AccountRoot\",\"LedgerIndex\":\"2A0FA6C99CB992D9874E3186E03FC73ABE73E893843EE0E50B00E0F7F43CBAD0\",\"PreviousFields\":{\"Balance\":\"831551240\",\"Sequence\":4157},\"PreviousTxnID\":\"2A4FA50B8F12493086B61E02514CF7B3C3D8ED8322D1A800F0830FD51AB4BC85\",\"PreviousTxnLgrSeq\":40992767}}],\"TransactionIndex\":22,\"TransactionResult\":\"tecINSUFFICIENT_RESERVE\"},\"status\":\"closed\",\"transaction\":{\"Account\":\"rhAG7gdd2CKAeaEQCwz5pkN9o1KK6CPNGn\",\"Amount\":\"1000000\",\"Destination\":\"rfe6XxXwY2Ss1KzMrgjSbANBVmRb2WvcKD\",\"Fee\":\"12\",\"Flags\":2147483648,\"LastLedgerSequence\":40992770,\"PublicKey\":\"EDD3DA250713A7EBAA90EE263DBAE86C5CF79A8ACB0D04A5AC12FED14788BFD6F2\",\"Sequence\":4157,\"SettleDelay\":3600,\"SigningPubKey\":\"0318E42680BC1AEB740DBC00B94EB668A21D658C532B5DD1B57658AF56179FE827\",\"SourceTag\":3490341475,\"TransactionType\":\"PaymentChannelCreate\",\"TxnSignature\":\"3045022100FD2E2CF5C5E2C233E87C19672550669E848916BC5BBC494790A5EBDCDCE6828F0220436C14B12142E9AFC18E59A7A0B61A3A3EA77459DF79BD0F8B9D74ED3D6A8A1B\",\"date\":588304020,\"hash\":\"379418AA6EBA97A926BF0E5938141D99CE643070D55A5E2E95085944ADF62591\"},\"type\":\"transaction\",\"validated\":true}","protocolData":[]}

    at Plugin.callback (/usr/local/lib/node_modules/moneyd-uplink-xrp/node_modules/ilp-plugin-btp/src/index.ts:441:20)

    at Plugin.listener (/usr/local/lib/node_modules/moneyd-uplink-xrp/node_modules/eventemitter2/lib/eventemitter2.js:290:17)

    at Plugin.EventEmitter.emit (/usr/local/lib/node_modules/moneyd-uplink-xrp/node_modules/eventemitter2/lib/eventemitter2.js:357:19)

    at Plugin.<anonymous> (/usr/local/lib/node_modules/moneyd-uplink-xrp/node_modules/ilp-plugin-btp/src/index.ts:476:14)

    at Generator.next (<anonymous>)

    at /usr/local/lib/node_modules/moneyd-uplink-xrp/node_modules/ilp-plugin-btp/src/index.js:7:71

    at new Promise (<anonymous>)

    at __awaiter (/usr/local/lib/node_modules/moneyd-uplink-xrp/node_modules/ilp-plugin-btp/src/index.js:3:12)

    at Plugin._handleIncomingBtpPacket (/usr/local/lib/node_modules/moneyd-uplink-xrp/node_modules/ilp-plugin-btp/src/index.js:340:16)

    at Plugin.<anonymous> (/usr/local/lib/node_modules/moneyd-uplink-xrp/node_modules/ilp-plugin-btp/src/index.ts:329:18)

 

Share this post


Link to post
Share on other sites
2 hours ago, djnotleks said:

2018-08-23T01:47:02.679Z connector:app error Error: {"code":"F00","name":"NotAcceptedError","triggeredAt":"2018-08-23T01:47:02.577Z","data":"tx failed: {\"engine_result\":\"tecINSUFFICIENT_RESERVE\",\"engine_result_code\":141,\"engine_result_message\":\"Insufficient reserve to complete requested operation.\",\"ledger_hash\":\"3E912F163BD1BA506C24A98106BAF94C33268E34D3BA69D367880508AAB86629\",\"ledger_index\":40992769,\"meta\":{\"AffectedNodes\":[{\"ModifiedNode\":{\"FinalFields\":{\"Account\":\"rhAG7gdd2CKAeaEQCwz5pkN9o1KK6CPNGn\",\"Balance\":\"831551228\",\"Flags\":0,\"OwnerCount\":162,\"Sequence\":4158},\"LedgerEntryType\":\"AccountRoot\",\"LedgerIndex\":\"2A0FA6C99CB992D9874E3186E03FC73ABE73E893843EE0E50B00E0F7F43CBAD0\",\"PreviousFields\":{\"Balance\":\"831551240\",\"Sequence\":4157},\"PreviousTxnID\":\"2A4FA50B8F12493086B61E02514CF7B3C3D8ED8322D1A800F0830FD51AB4BC85\",\"PreviousTxnLgrSeq\":40992767}}],\"TransactionIndex\":22,\"TransactionResult\":\"tecINSUFFICIENT_RESERVE\"},\"status\":\"closed\",\"transaction\":{\"Account\":\"rhAG7gdd2CKAeaEQCwz5pkN9o1KK6CPNGn\",\"Amount\":\"1000000\",\"Destination\":\"rfe6XxXwY2Ss1KzMrgjSbANBVmRb2WvcKD\",\"Fee\":\"12\",\"Flags\":2147483648,\"LastLedgerSequence\":40992770,\"PublicKey\":\"EDD3DA250713A7EBAA90EE263DBAE86C5CF79A8ACB0D04A5AC12FED14788BFD6F2\",\"Sequence\":4157,\"SettleDelay\":3600,\"SigningPubKey\":\"0318E42680BC1AEB740DBC00B94EB668A21D658C532B5DD1B57658AF56179FE827\",\"SourceTag\":3490341475,\"TransactionType\":\"PaymentChannelCreate\",\"TxnSignature\":\"3045022100FD2E2CF5C5E2C233E87C19672550669E848916BC5BBC494790A5EBDCDCE6828F0220436C14B12142E9AFC18E59A7A0B61A3A3EA77459DF79BD0F8B9D74ED3D6A8A1B\",\"date\":588304020,\"hash\":\"379418AA6EBA97A926BF0E5938141D99CE643070D55A5E2E95085944ADF62591\"},\"type\":\"transaction\",\"validated\":true}","protocolData":[]}

Which ILP connector are you using? 

This error message stands out: "Insufficient reserve to complete requested operation." 

As you mentioned you have 100 XRP in your XRPL account configured for this, the error message likely refers to the ILP connector's balance being insufficient.

Share this post


Link to post
Share on other sites

Hi thanks for the response to my post! 

Sorry if it's a stupid question but I'm not completely sure which connector I'm using.. Is that referring to the server listed in the moneyd.json file? 

If so here are the contents of that file minus the wallet & secret. 

Thank you for the help!! 

{

  "version": 1,

  "uplinks": {

    "xrp": {

      "relation": "parent",

      "plugin": "/usr/local/lib/node_modules/moneyd-uplink-xrp/node_modules/ilp-plugg

in-xrp-asym-client/index.js",

      "assetCode": "XRP",

      "assetScale": 6,

      "balance": {

        "minimum": "-Infinity",

        "maximum": "20000",

        "settleThreshold": "5000",

        "settleTo": "10000"

      },

      "sendRoutes": false,

      "receiveRoutes": false,

      "options": {

        "server": "btp+wss://T8UvvIqoKp0_b3YYlUnAx1r1jgcovE3DE2kL7rvpnMg:0a90f8ff2b11

eebb3d5078ff990a5e6e199b08631740a2a3473008f4b89b3e3a1@btp2.mlab.company",

        "secret": "xxxxxxxxxx",

        "address": "xxxxxxxxxx",

        "xrpServer": "wss://s2.ripple.com"

      }

    }

 

Share this post


Link to post
Share on other sites
11 hours ago, djnotleks said:

eebb3d5078ff990a5e6e199b08631740a2a3473008f4b89b3e3a1@btp2.mlab.company",

It looks like you are using btp2.mlab.company. They had an issue with their balance a few days ago and it should be fine now.

Share this post


Link to post
Share on other sites

Ahhhhh thank you!! Sure enough it started up for me no problem this time. If you don't mind me asking, can you tell me where you see that they were having issues with their balance? Also is there a list of these connectors, so we can switch to different ones if one is having an issue. 

thank you again for helping me out! 

Share this post


Link to post
Share on other sites
On 8/26/2018 at 11:49 PM, djnotleks said:

Ahhhhh thank you!! Sure enough it started up for me no problem this time. If you don't mind me asking, can you tell me where you see that they were having issues with their balance? Also is there a list of these connectors, so we can switch to different ones if one is having an issue. 

thank you again for helping me out! 

Get their XRP address using the following code:

moneyd xrp:info

moneydinfo.png.d9cd5d5e17364e4007d8d08dde867eae.png

NOTE: I choose to use my favourite ILP connector for each of my channels. ( I go through them a lot).  

You will probably only have a single channel, so grab the 'destination' address (which should be different to the above, as the above is the address for client.scyl.la)

 

Then paste the address at www.bithomp.com/explorer

You'll be able to see the current reserved funds, as well as available balance.  If the available balance is below 5 XRP, you've found the problem.

reserves.png.85cd70e557e7880b9416283c40171c2b.png

Share this post


Link to post
Share on other sites

Very cool!! Thank you for that very useful tip. : )  Do you have any suggestions on finding hosts to upload to? I kept trying an upload and was getting errors about exchange rate.. I found https://codiushosts.com/hosts to try to find hosts maybe locally.. but they all seem to time out on upload. Any tricks for this part of the process?    

Share this post


Link to post
Share on other sites
11 minutes ago, djnotleks said:

Very cool!! Thank you for that very useful tip. : )  Do you have any suggestions on finding hosts to upload to? I kept trying an upload and was getting errors about exchange rate.. I found https://codiushosts.com/hosts to try to find hosts maybe locally.. but they all seem to time out on upload. Any tricks for this part of the process?    

One of the ways would be to look at your list of peers e.g. codius.domain.com/peers and start from there.

Are you using the Codius CLI to do the upload?

https://github.com/codius/codius

Share this post


Link to post
Share on other sites

Thank you :)  I am user Codius CLI. Last time I just kept trying to upload and eventually it went through. I don't run my own host.. Do you normally upload to your own host or do you use other peers? 

Share this post


Link to post
Share on other sites
18 hours ago, djnotleks said:

Ahhh I ended up sorting the hosts in https://codiushosts.com/hosts by hosts in the US with the most contracts. Tried the top one there and it uploaded right away. 

Currently a large majority of hosts enter failef states due to various issues with the current systems.  New versions are coming out regularly so hopefullu stability improves significantly in the future.

 

But codiushosts.com is by far the best way to get hosts (it's the same as using the peer list of your own host if you had one)

Share this post


Link to post
Share on other sites

thank you both again! The upload success does seem pretty inconsistent. I was not planning on running a host, but was thinking about running one just to see how the uploaded content looks. If you don't mind me asking, do you run your own host? I see people running them on AWS.. not sure if that is a reasonable thing to do.. 

Share this post


Link to post
Share on other sites
7 hours ago, djnotleks said:

thank you both again! The upload success does seem pretty inconsistent. I was not planning on running a host, but was thinking about running one just to see how the uploaded content looks. If you don't mind me asking, do you run your own host? I see people running them on AWS.. not sure if that is a reasonable thing to do.. 

No need to have a host to see the uploaded content. Once you do a successful upload, browse to the URL returned in the CLI and it'll take you straight to your uploaded contract, live on the host.

I own two hosts. Most people in the codius community have hosts. Not many developers currently.

If you get one I think Digital Ocean is a great provider. Unless you're looking for a big RAM server.

Share this post


Link to post
Share on other sites

Cool :) Thank you for the info. I am here as a developer looking to get going on this platform. Very excited about it! When I say I wanted to see the content on on the host.. I was meaning I would like to see if the app code is accessible by the host owner.. I am not familiar wither hyperd but it seems like that containerizes the code maybe.. Looking to find that out. I did however get going on setting up a host. I had it running but then after a server restart I always get a returned message of :

{"message":"Self Test Failed","stats":{"selfTestSuccess":false,"uploadSuccess":false,"httpSuccess":false,"wsSuccess":false,"running":false}}     Do you know what this is normally indicative of? I just ran through the process of starting all the services hyperd, moneyd-xrp, codiusd, nginx.   Thank you again for responding to all of my questions! 

Share this post


Link to post
Share on other sites
1 hour ago, djnotleks said:

Cool :) Thank you for the info. I am here as a developer looking to get going on this platform. Very excited about it! When I say I wanted to see the content on on the host.. I was meaning I would like to see if the app code is accessible by the host owner.. I am not familiar wither hyperd but it seems like that containerizes the code maybe.. Looking to find that out. I did however get going on setting up a host. I had it running but then after a server restart I always get a returned message of :

{"message":"Self Test Failed","stats":{"selfTestSuccess":false,"uploadSuccess":false,"httpSuccess":false,"wsSuccess":false,"running":false}}     Do you know what this is normally indicative of? I just ran through the process of starting all the services hyperd, moneyd-xrp, codiusd, nginx.   Thank you again for responding to all of my questions! 

You might wish to run "systemctl restart codiusd && journalctl -f -u codiusd" to view the error messages as they are generated during the self-test. They should be able to help you identify the issues with your host setup.

Do talk to @mikkelhviid as well to explore the possibility of developing something on Codius together.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...