Can't get past codius upload errors

codius
#1

I am trying to upload a simple image to codius. To do this, I am following these steps:

  1. Open a shell and start moneyd: $ moneyd xrp:start
  2. Open another shell and go to my pod: $ cd path/of/my/manifest
  3. Upload to codius: $ codius upload codius.json

When I do this, I get the following output from my codius shell:

⚠ Hosts will NOT be added to the HOSTS env in the generated manifest.
✔ Validating File Locations
✔ Discovered 6 Hosts
✔ Checking Host(s) Monthly Rate vs Max Monthly Rate 2283369 nXRP
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Generated Manifest:
{
  manifest: {
    name: "test-codius-pod",
    version: "1.0.0",
    machine: "small",
    port: "80",
    containers: [
      {
        id: "app",
        image: "shaikezr/first_app@sha256:55a4f8e978875854cd1b368703d6995d1492288bd02baea107814cf774f687e0",
        command: ["python", "./test.py"],
        workdir: "/root"
      }
    ]
  }
}
Manifest Hash:
3z5fnfj4n2mw7zzh7ilqswpzjguc4rwrggzycmyyqtcsnuxhy6ma
will be uploaded to host(s):
["https://codius.tinypolarbear.com"]
with options:
{
  maxMonthlyRate: 10,
  duration: 600,
  units: "XRP"
}
⚠ All information in the manifest property will be made public!
? Do you want to proceed with the pod upload?

I type y and press enter. Then I get this output:

✖ Upload to https://codius.tinypolarbear.com Failed
{
  host: "https://codius.tinypolarbear.com",
  error: "Error: Error connecting: Unable to establish connection, no packets meeting the minimum exchange precision of 3 digits made it through the path."
}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
✖ 1 Failed Uploads

I either get this error, or a time-out error each time I try to upload. I’ve tried to upload many times over the past week and every time it’s failed. I have tried my own image (referenced above) as well as the images contained in the example repo (I think I’ve only tried the react-app one). Any suggestions? I thought this might be moneyd because I was having issues with ilp-spsp also, but I have resolved those issues and this is still happening.

Troubleshooting steps I’ve tried:

  1. Top up channel in moneyd: moneyd xrp:topup --amount 100000000
  2. Cleaned up channels in moneyd: moneyd xrp:cleanup
  3. Deleted .moneyd.json and reconfigured to open a new channel, then topped up that channel
#2

Is it always the same host, or do you get the same error with different hosts?

#3

It’s happened with several different hosts now

#4

codius.smartcontracts.me.uk should work, I have recently up loaded multiple times successfully over the weekend. If you want to select the host you want to upload to that is.

Have you tried using the guide at https://xrpcommunity.blog/codius-contract-from-scratch/ using the command at the end, where you select a host of your choice. As mentioned I have used this over the weekend and it works every time. Have not tried other hosts other than mine tho.

The hosts at the top of the hosts list at codiushosts.com should be ok too, eg: hodling-xrp.org I know the operator and he keeps a close eye on whether there up or not :wink:

#5

Still no luck. I tried with codius.smartcontracts.me.uk (timed out, code 408) and hodling-xrp.org (same error). I’ve also tried the host referenced in the xrpcommunity.blog tutorial, but I get:

{
"host": "https://host1.codius.live",
"error": "FetchError: request to https://host1.codius.live/pods?duration=300 failed, reason: certificate has expired"
}

Additionally, I tried Andros’ host referenced in his tutorial here: https://medium.com/codius/running-a-simple-react-app-on-the-codius-smart-contract-platform-7ddefce8cb06 and I got the same packet error:

Error: Error connecting: Unable to establish connection, no packets meeting the minimum exchange precision of 3 digits made it through the path.

In each instance, the command I am using looks like this:

codius upload codius.json --host [host address] --duration 300

Firewall and VPN are both off

#6

Its the manifest.json you should be uploading.

codius upload -manifest.json --host [host address] --duration nnn

So if your app is named “first_app” and it is located in C:\ it would be something like;

codius upload C:\first_app-manifest.json --host [host address] --duration nnn

#7

The codius.json file in my example is the manifest. I tried renaming it to manifest.json but it looks like codius requires the manifest to be called codius.json. Here is the output from me renaming the file to manifest.json and running codius upload manifest.json:

$ codius upload manifest.json
⚠ Hosts will NOT be added to the HOSTS env in the generated manifest.
✖ Validating File Locations
2019-04-01T21:49:20.471Z codius-cli:uploadhandler error Codius File
 /Users/{me}/Desktop/Code/examples/nginx/codius.json
does not exists please add a codius.json file.

This would imply that the documentation here is out of date. I’ll open an issue in that repo.

#8

Update: I was able to get past the issues! I’m not sure what specifically solved my issue so here are all of the steps I took:

  1. Re-configured moneyd to use strata’s connector here: moneyd xrp:configure --advanced
  2. Updated ilp-plugin-mini-accounts npm install -g ilp-plugin-mini-accounts
  3. Updated ilp-plugin npm install -g ilp-plugin
1 Like
#9

@d1no007 @austin_king does the open.strata-ilsp.com address still work? I see the connector list was recently updated, but curious about any new configurations using the old address.