Ant vault create

ant vault create --help
Create a vault at a deterministic address based on your `SECRET_KEY`. Pushing an encrypted backup of your local user data to the network

What does ‘local user data’ mean? My home directory? Current directory?
Would like to know before trying…

2 Likes

Maybe we can create wallet with phase key user to user money transfer

whatever you have on your local disk that you want to put on the network

ant vault create ~/Music/RickAstley-GreatestHit/ or whatever

Does not seem to work that way.

Tried:

ant vault create books
error: unexpected argument 'books' found

Usage: ant vault create [OPTIONS]

For more information, try '--help'.

ant vault create --help
Create a vault at a deterministic address based on your `SECRET_KEY`. Pushing an encrypted backup of your local user data to the network

Usage: ant vault create [OPTIONS]

Options:
      --timeout <CONNECTION_TIMEOUT>
          The maximum duration to wait for a connection to the network before timing out

  -x, --no-verify
          Prevent verification of data storage on the network.
          
          This may increase operation speed, but offers no guarantees that operations were successful.

  -h, --help
          Print help (see a summary with '-h')

1 Like

I assume it is current directory, but what if it is my home directory? Don’t want to upload all that…

1 Like

Well make a small directory, descend into that and tun the command again.
Let us know how you get on :slight_smile:

ant vault create
Logging to directory: "xxxx"
🔗 Connected to the Network                                                                                                                                                                                                                                                               Retrieving local user data...
Pushing to network vault...
Error: 
   0: Vault error: Vault Scratchpad related error: Payment failure occurred during scratchpad creation.
   1: Vault Scratchpad related error: Payment failure occurred during scratchpad creation.
   2: Payment failure occurred during scratchpad creation.
   3: Wallet error: InsufficientTokensForQuotes(199944110345, 559122039129)
   4: Insufficient tokens to pay for quotes. Have: 199944110345 atto, need: 559122039129 atto

Location:
   ant-cli/src/commands/vault.rs:41

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

My balance left, feed from community wallet, nothing was spent before this

ant wallet balance
Logging to directory: "xxxx"
Wallet balances: 0xXXXXXX
+---------------+----------------+
| Token Balance | 199944110345   |
+---------------+----------------+
| Gas Balance   | 46733610000000 |
+---------------+----------------+

I was in this directory: ~/autonomi/vault

xxx:~/autonomi/vault$ ls -la books

drwxr-xr-x 3 xx 4096 28. 2. 21:19  .
drwxr-xr-x 3 xx 4096 28. 2. 20:39  ..
drwxr-xr-x 2 xx 4096 28. 2. 21:19 'Vernor Vinge'
xxx:~/autonomi/vault$ ls -la books/Vernor\ Vinge/

drwxr-xr-x 2 xx    4096 28. 2. 21:19  .
drwxr-xr-x 3 xx    4096 28. 2. 21:19  ..
-rw-r-xr-- 1 xx   11656 28. 2. 21:18  cover.jpg
-rw-r-xr-- 1 xx    1203 28. 2. 21:18  metadata.opf
-rw-r-xr-- 1 xx 1412609 28. 2. 21:17 'Rainbows End - Vernor Vinge.pdf'

I have no idea what did it try to upload :man_shrugging:

I guess it’s messed up:
ant vault sync →

Fetching vault from network...
Error: 
   0: Failed to fetch vault from network
   1: Vault error: Vault Scratchpad related error: Network: GetRecord Query Error RecordNotFound
   2: Vault Scratchpad related error: Network: GetRecord Query Error RecordNotFound
   3: Network: GetRecord Query Error RecordNotFound
   4: GetRecord Query Error RecordNotFound
   5: Record not found in the network

ant vault cost->

Getting cost to create a new vault...
Vault already exists, updating an existing vault is free unless the new content exceeds the current vault's paid capacity.

ant vault create →

🔗 Connected to the Network                                                                                                                                                                                                                                                               Retrieving local user data...
Pushing to network vault..

Waiting create to end…

The vault is supposed to hold the list of files (and corresponding keys) you uploaded. It’s the same list you get with “ant file list”. The vault created with the current command line tool is afaik derived from the secret key used to pay for your uploads.

That said: Before the last update I was able to create a vault on the network, but couldn’t update it (by using ant vault sync). Now, with the newest version of the ant cli, the usage of the command only generates errors.

1 Like

Oh, that makes sense. It’s obvious now I know it, but not when I didn’t :sweat_smile:

By the way: If you want to save the keys and datamaps to your uploads manually, (on Linux) they are stored under /home/$USER/.local/share/autonomi/client/user_data . I guess on other operating systems you can find the files at a similar location.

2 Likes

I just got back trying to setup the live network. Has anything significantly changed to get a node up and running? the test networks worked fine… mostly… now I cant even get a single node to start.

I always get Node terminated due to: "UPnP gateway not found. Enable UPnP on your router to allow incoming connections or manually port forward."

I never had this activated and none of my router settings have changed,

Any suggestions would be welcomed.

This is a bit off topic, but nevertheless; your local network does not seem to support uPnP (or it is disabled). You can try add the nodes with “–no-upnp”.
More help with antctl add --help
oops, it has changed? I assume you also need this:

      --relay
          Set this flag if UPnP doesn't work, and you are not able to manually port forward

I have all my ports manually forwarded. they worked from before. unsure whats changed network wise to make this fail now though. yeah, i sort of misread the title and though it was the same issue… hijacked :wink:

1 Like

At some version update the default changed to be upnp.

1 Like

As @Hannu says the default changed. You need to disable uPnP in antctl or LP.

1 Like

Ive attempted to set it as custom ports the same way which was done before. Still get the same error. Attempted both antctl and the node-manager still get complaints about this upnp incompatibility…