# Setting up moneyd on ubuntu 18

**URL:** <https://forum.interledger.org/t/setting-up-moneyd-on-ubuntu-18/597>\
**Category:** General Questions\
**Created:** [May 17, 2019, 3:28am UTC](https://forum.interledger.org/t/setting-up-moneyd-on-ubuntu-18/597 "2019-05-17T03:28:11Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![cjimison](https://avatars.discourse-cdn.com/v4/letter/c/ba9def/32.png) [@cjimison](https://forum.interledger.org/u/cjimison)\
**Post date:** [May 17, 2019, 3:28am UTC](https://forum.interledger.org/t/setting-up-moneyd-on-ubuntu-18/597/1 "2019-05-17T03:28:11Z")

</div>

Hello all,

Please forgive me if this has come up before, but I am having some issues running moneyd on an ubuntu 18 VM. I followed the basic steps of:

npm install -g moneyd moneyd-uplink-xrp  
moneyd xrp:configure --testnet  
moneyd xrp:start --testnet

but I keep getting the following error when running the last command:

```auto
2019-05-17T03:16:23.128Z connector:app error Error: {"code":"F00","name":"NotAcceptedError","triggeredAt":"2019-05-17T03:16:23.088Z","data":"sodium.sodium_malloc is not a function","protocolData":[]}
    at Plugin.callback (/home/cjimison/.nvm/versions/node/v10.15.3/lib/node_modules/moneyd-uplink-xrp/node_modules/ilp-plugin-btp/src/index.ts:666:20)
    at Plugin.listener (/home/cjimison/.nvm/versions/node/v10.15.3/lib/node_modules/moneyd-uplink-xrp/node_modules/eventemitter2/lib/eventemitter2.js:290:17)
    at Plugin.EventEmitter.emit (/home/cjimison/.nvm/versions/node/v10.15.3/lib/node_modules/moneyd-uplink-xrp/node_modules/eventemitter2/lib/eventemitter2.js:357:19)
    at Plugin._handleIncomingBtpPacket (/home/cjimison/.nvm/versions/node/v10.15.3/lib/node_modules/moneyd-uplink-xrp/node_modules/ilp-plugin-btp/src/index.ts:711:14)
    at Plugin._handleIncomingWsMessage (/home/cjimison/.nvm/versions/node/v10.15.3/lib/node_modules/moneyd-uplink-xrp/node_modules/ilp-plugin-btp/src/index.ts:528:18)
    at WebSocketReconnector.EventEmitter.emit (/home/cjimison/.nvm/versions/node/v10.15.3/lib/node_modules/moneyd-uplink-xrp/node_modules/eventemitter2/lib/eventemitter2.js:354:19)
    at WebSocket._instance.on (/home/cjimison/.nvm/versions/node/v10.15.3/lib/node_modules/moneyd-uplink-xrp/node_modules/ilp-plugin-btp/src/ws-reconnect.ts:133:70)
    at WebSocket.emit (events.js:189:13)
    at Receiver.receiverOnMessage (/home/cjimison/.nvm/versions/node/v10.15.3/lib/node_modules/moneyd-uplink-xrp/node_modules/ilp-plugin-btp/node_modules/ws/lib/websocket.js:789:20)
    at Receiver.emit (events.js:189:13)

```

as seen above I am running a NVM installed copy of Node.js on version 10.15.3 but I also tried with 12.2.0 and got the same error. I have also done the following with no success:

- apt install libsodium21
- npm install -g sodium-native
- npm install -g sodium

This is on mostly clean version of Ubuntu Server 18 with build-essential, automake, and libtools installed (with the other base packages that comes with the default distro). Any help would be GREATLY appreciated!

Thanks,

-Chris

---

<div class="post-metadata">

**Author:** ![Lucian\_Trestioreanu](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.interledger.org/lucian_trestioreanu/32/186_2.png) [@Lucian\_Trestioreanu](https://forum.interledger.org/u/Lucian_Trestioreanu)\
**Post date:** [May 17, 2019, 6:39am UTC](https://forum.interledger.org/t/setting-up-moneyd-on-ubuntu-18/597/2 "2019-05-17T06:39:55Z")

</div>

Hi Chris,

Generally Moneyd-xrp is well maintained and should work. Problems appear when the plugins do not match (the same plugin versions should be installed on Moneyd and the connector you are connecting to, in this case Amundsen), OR because of a configuration error.  
Regarding starting up with Moneyd, you can read this post: [https://medium.com/interledger-blog/using-moneyd-to-join-the-ilp-testnet-ba64bd42bb14](https://medium.com/interledger-blog/using-moneyd-to-join-the-ilp-testnet-ba64bd42bb14).  
What settings did you use? Can you post the config?

---

<div class="post-metadata">

**Author:** ![cjimison](https://avatars.discourse-cdn.com/v4/letter/c/ba9def/32.png) [@cjimison](https://forum.interledger.org/u/cjimison)\
**Post date:** [May 17, 2019, 3:40pm UTC](https://forum.interledger.org/t/setting-up-moneyd-on-ubuntu-18/597/3 "2019-05-17T15:40:46Z")

</div>

Hi Lucian,

Thanks for your response and the posted article is where I got the 3 commands to install, configure and run moneyd. I highly suspect that I am doing something wrong from a setup perspective (missing or incorrect version of a library, etc). Below is the .moneyd.test.json that was auto generated via the command `moneyd xrp:configure --testnet`:

.moneyd.test.json

```auto
{
  "version": 1,
  "uplinks": {
    "xrp": {
      "relation": "parent",
      "plugin": "/home/cjimison/.nvm/versions/node/v10.15.3/lib/node_modules/moneyd-uplink-xrp/node_modules/ilp-plugin-xrp-asym-client/index.js",
      "assetCode": "XRP",
      "assetScale": 9,
      "balance": {
        "minimum": "-Infinity",
        "maximum": "20000000",
        "settleThreshold": "5000000",
        "settleTo": "10000000"
      },
      "sendRoutes": false,
      "receiveRoutes": false,
      "options": {
        "currencyScale": 9,
        "server": "btp+wss://ei_4IigrQ2Lnuufvk-1NvIBcNdBayyTm9MSFHbS8x3M:5e8a0e79b8d664013057eb4d161b64e044b87f303985e7cb7fde41fd9f753897@strata-ilsp.com/testnet/xrp",
        "secret": "snQ4apuDWBHp72q54R5QR7uo8nHU4",
        "address": "rpnaLp3ovzcWL8TBw5EtrHqG1vm3t4ZFva",
        "xrpServer": "wss://s.altnet.rippletest.net:51233"
      }
    }
  }
}

```

Thanks again for the help!

-Chris

---

<div class="post-metadata">

**Author:** ![cjimison](https://avatars.discourse-cdn.com/v4/letter/c/ba9def/32.png) [@cjimison](https://forum.interledger.org/u/cjimison)\
**Post date:** [May 17, 2019, 6:17pm UTC](https://forum.interledger.org/t/setting-up-moneyd-on-ubuntu-18/597/4 "2019-05-17T18:17:24Z")

</div>

As a follow-up it seems like others have had this issue and have posted on the Gitter channel here: [https://gitter.im/interledger/Lobby](https://gitter.im/interledger/Lobby)

No resolution found there as well.

---

<div class="post-metadata">

**Author:** ![karzak](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.interledger.org/karzak/32/159_2.png) [@karzak](https://forum.interledger.org/u/karzak)\
**Post date:** [May 17, 2019, 6:37pm UTC](https://forum.interledger.org/t/setting-up-moneyd-on-ubuntu-18/597/5 "2019-05-17T18:37:14Z")

</div>

Since it’s in a btp response, this error originates from the Strata connector. Pinging @austin_king, apologies if I’m reading this wrong.

---

<div class="post-metadata">

**Author:** ![cjimison](https://avatars.discourse-cdn.com/v4/letter/c/ba9def/32.png) [@cjimison](https://forum.interledger.org/u/cjimison)\
**Post date:** [May 17, 2019, 7:53pm UTC](https://forum.interledger.org/t/setting-up-moneyd-on-ubuntu-18/597/6 "2019-05-17T19:53:11Z")

</div>

I got a work around. Someone on Gitter helped me out with this one:

- Delete .moneyd.test.json
- run: moneyd xrp:configure --testnet --advanced
- When asked for the btp host enter: testnet.ilpnetwork.dev
- Press enter for the default options after
- once done run: moneyd xrp:start --testnet

After that everything worked.

---

<div class="post-metadata">

**Author:** ![jbretting](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@jbretting](https://forum.interledger.org/u/jbretting)\
**Post date:** [May 17, 2019, 7:53pm UTC](https://forum.interledger.org/t/setting-up-moneyd-on-ubuntu-18/597/7 "2019-05-17T19:53:29Z")

</div>

I’m having the same problem but on MacOS. I’ve tried using nvm with node versions 8 and 10. I also tried manually installing `libsodium` using the latest tarball but error persists when trying to start up with `moneyd xrp:start --testnet`. My config looks identical to the post above except for local file paths. Looking forward to a resolution, thanks!

---

<div class="post-metadata">

**Author:** ![adornala](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.interledger.org/adornala/32/269_2.png) [@adornala](https://forum.interledger.org/u/adornala)\
**Post date:** [May 21, 2019, 3:49am UTC](https://forum.interledger.org/t/setting-up-moneyd-on-ubuntu-18/597/8 "2019-05-21T03:49:28Z")

</div>

This worked. Thank you.
