SAFE Network Dev Update - March 26, 2020

Dunno - still at my tea - the pasta was a bit al dente so it took a long time to chew :slight_smile:

I’ll get onto it soon, promise…

1 Like

I ran into an issue where the newly created account was initially unable to read its balance. This was repeatable but on the third attempt, I got the expected behaviour. I have a long running test job (50k iterations of putting 3Kb to the vaults) so it may be difficult to parse the logs to track this down @bochaco @joshuef @StephenC @lionel.faber - do you still want them?

`willie@gagarin:~$ safe auth create-acc --test-coins
Passphrase: 
Password: 
Creating a SafeKey with test-coins...
Sending account creation request to authd...
Account was created successfully!
SafeKey created and preloaded with test-coins. Owner key pair generated:
Public Key = a9ad507cdb45e3d81dcff4094a5e8e7d0deae054d5c522bbf7275e31d37143422026f4e2904bb14c0f7c055b1b5bd4f6
Secret Key = 5142e05ce376ea4becb97c0db12b8e1cdd193fb703cbca451e481f178d01916c
willie@gagarin:~$ safe keys balance
Enter secret key corresponding to the SafeKey to query the balance from: 5142e05ce376ea4becb97c0db12b8e1cdd193fb703cbca451e481f178d01916c
[2020-03-29T19:57:17Z ERROR safe] safe-cli error: [Error] ContentNotFound - No SafeKey found at specified location
willie@gagarin:~$ safe keys balance
Enter secret key corresponding to the SafeKey to query the balance from: 5142e05ce376ea4becb97c0db12b8e1cdd193fb703cbca451e481f178d01916c
[2020-03-29T19:58:06Z ERROR safe] safe-cli error: [Error] ContentNotFound - No SafeKey found at specified location
willie@gagarin:~$ safe keys balance
Enter secret key corresponding to the SafeKey to query the balance from: 5142e05ce376ea4becb97c0db12b8e1cdd193fb703cbca451e481f178d01916c
SafeKey's current balance: 1000.109999990`
1 Like

I’m also getting a random error creating a new SafeKey…

willie@gagarin:~$ safe keys balance
Enter secret key corresponding to the SafeKey to query the balance from: 875fbdddfcd26c647543526c0993027308b0b15c78ae85c8d7185d159fb9505e
SafeKey's current balance: 1000.109999990
willie@gagarin:~$ safe keys create --preload 500 --pay-with 875fbdddfcd26c647543526c0993027308b0b15c78ae85c8d7185d159fb9505e
[2020-03-29T20:20:42Z ERROR safe] safe-cli error: [Error] Unexpected - Unexpected error when attempting to create Key: [Error] NetDataError - Failed to create a SafeKey: CoreError(Data error -> Balance does not exist - CoreError::DataError -> NoSuchBalance)
willie@gagarin:~$ safe auth create-acc --test-coins
Passphrase: 
Password: 
Creating a SafeKey with test-coins...
Sending account creation request to authd...
Account was created successfully!
SafeKey created and preloaded with test-coins. Owner key pair generated:
Public Key = 89fdbc3b15714d38658cadaea3b2048ca64d4e26210313aad727433d898d2cba5acabb22eca8c81084dab88a42966c47
Secret Key = c8fa513964726eb982118b4934772151cde028c18dc4233a257ed71d93db383a
willie@gagarin:~$ safe keys balance
Enter secret key corresponding to the SafeKey to query the balance from: c8fa513964726eb982118b4934772151cde028c18dc4233a257ed71d93db383a
SafeKey's current balance: 1000.109999990
willie@gagarin:~$ safe keys create --preload 500 --pay-with c8fa513964726eb982118b4934772151cde028c18dc4233a257ed71d93db383a
New SafeKey created at: "safe://hbyyyybrhk7peqkh857w8dmgwns8ssuxk4mo9yqhtuzexfexct34h4fjn5"
Preloaded with 500 coins
Key pair generated:
Public Key = 938aeb50e570fbed0e359a82b1ed69bd5a5c3e077233ba1e543d91ceb9a2a45baf98e8fa838d9b83a965f0860a29bc2d
Secret Key = 87c9ac4827c5542dd2a6d994ab007c0dfd2fe19551ac89c5780550321030ea54
willie@gagarin:~$ 

I need to create a new SafeKey so that I have a URL to attempt to transfer funds into
Q. Why does the original key created not have a URL? Am I missing something here? How can that account receive new funds?

1 Like

Returning to the account which generated the first error above. Wait 10 mins and try again - success!!!

willie@gagarin:~$ safe keys create --preload 500 --pay-with 5142e05ce376ea4becb97c0db12b8e1cdd193fb703cbca451e481f178d01916c
[2020-03-29T20:17:46Z ERROR safe] safe-cli error: [Error] Unexpected - Unexpected error when attempting to create Key: [Error] NetDataError - Failed to create a SafeKey: CoreError(Data error -> Balance does not exist - CoreError::DataError -> NoSuchBalance)
willie@gagarin:~$ safe keys create --preload 500 --pay-with 5142e05ce376ea4becb97c0db12b8e1cdd193fb703cbca451e481f178d01916c
[2020-03-29T20:17:56Z ERROR safe] safe-cli error: [Error] Unexpected - Unexpected error when attempting to create Key: [Error] NetDataError - Failed to create a SafeKey: CoreError(Data error -> Balance does not exist - CoreError::DataError -> NoSuchBalance)
willie@gagarin:~$ safe keys create --preload 500 --pay-with 5142e05ce376ea4becb97c0db12b8e1cdd193fb703cbca451e481f178d01916c
[2020-03-29T20:17:58Z ERROR safe] safe-cli error: [Error] Unexpected - Unexpected error when attempting to create Key: [Error] NetDataError - Failed to create a SafeKey: CoreError(Data error -> Balance does not exist - CoreError::DataError -> NoSuchBalance)
willie@gagarin:~$ safe keys create --preload 500 --pay-with 5142e05ce376ea4becb97c0db12b8e1cdd193fb703cbca451e481f178d01916c
New SafeKey created at: "safe://hbyyyybm8exc6higktxpwgeie15jkz893ubgcoyzz14z6ripwtwi35odx8"
Preloaded with 500 coins
Key pair generated:
Public Key = ace87b3dca99517b68645512da5573ff330999005ef2d5fc4ab691a573b80de738e9afa4b86574ba862fe47f6dba65f2
Secret Key = 1eec678bb9f55a25f07962c715fcd18c8ba0e477228203e85695c0a5a8aea959

so now I have multiple accounts, two of which have SafeKey URLs I can attempt a transfer.
In one terminal

and in the other terminal

so I created a wallet at safe://hbyyyybm8exc6higktxpwgeie15jkz893ubgcoyzz14z6ripwtwi35odx8 with 500 coins and then transferred another 150 coins giving the expected balance of 650.

Took a bit of messing around but the basic mechanism is there OK, now bright guys like @JimCollinson are working to put a nice UI on that so we are sheilded from all these ugly long numbers.

3 Likes

great! curious… how long does it take to transfer ? can u approximately measure it?
Ah, I suceesfully launched baby-fleming with sudo command.

sudo safe vault run-baby-fleming

hmm…

2 Likes

Clean UI, I like it!

4 Likes

Memory 7.7G
Swap 7.9G
Disk space about 180G. I could possibly free more to gain up to 300G or so.

Ubuntu 16.04
HP-ProBook-450-G5
IntelĀ® Coreā„¢ i5-8250U CPU @ 1.60GHz Ɨ 8
IntelĀ® UHD Graphics 620 (Kabylake GT2)

I don’t have any other use for this machine, so no problem if it jams. How should I proceed?

I prefer something that would not require long attention spans from me, but then again this machine can hiss and humm for hours without problems.

1 Like

very quick - but this is all within my PC - no actual network traffic involved so I doubt this really means anything at all

willie@gagarin:~$ time safe keys transfer 250  --from 87c9ac4827c5542dd2a6d994ab007c0dfd2fe19551ac89c5780550321030ea54 --to safe://hbyyyybm8exc6higktxpwgeie15jkz893ubgcoyzz14z6ripwtwi35odx8
Success. TX_ID: 9125324247792691158

real	0m0.197s
user	0m0.080s
sys	0m0.016s

And on the other terminal I get the familiar random errors - but keep trying…

willie@gagarin:~$ safe keys balance --sk 1eec678bb9f55a25f07962c715fcd18c8ba0e477228203e85695c0a5a8aea959
SafeKey's current balance: 650.000000000
willie@gagarin:~$ safe keys balance --sk 1eec678bb9f55a25f07962c715fcd18c8ba0e477228203e85695c0a5a8aea959
[2020-03-30T10:18:28Z ERROR safe] safe-cli error: [Error] ContentNotFound - No SafeKey found at specified location
willie@gagarin:~$ safe keys balance --sk 1eec678bb9f55a25f07962c715fcd18c8ba0e477228203e85695c0a5a8aea959
[2020-03-30T10:18:31Z ERROR safe] safe-cli error: [Error] ContentNotFound - No SafeKey found at specified location
willie@gagarin:~$ safe keys balance --sk 1eec678bb9f55a25f07962c715fcd18c8ba0e477228203e85695c0a5a8aea959
[2020-03-30T10:18:33Z ERROR safe] safe-cli error: [Error] ContentNotFound - No SafeKey found at specified location
willie@gagarin:~$ safe keys balance --sk 1eec678bb9f55a25f07962c715fcd18c8ba0e477228203e85695c0a5a8aea959
[2020-03-30T10:18:34Z ERROR safe] safe-cli error: [Error] ContentNotFound - No SafeKey found at specified location
willie@gagarin:~$ safe keys balance --sk 1eec678bb9f55a25f07962c715fcd18c8ba0e477228203e85695c0a5a8aea959
[2020-03-30T10:18:35Z ERROR safe] safe-cli error: [Error] ContentNotFound - No SafeKey found at specified location
willie@gagarin:~$ safe keys balance --sk 1eec678bb9f55a25f07962c715fcd18c8ba0e477228203e85695c0a5a8aea959
SafeKey's current balance: 900.000000000

And we see the balance increases by 250 from 650 to 900

180 Gb is fine for now, @dirvine said there is an artificial limit on vault size meantime. Memory should be OK.

Make sure you have the latest versions of the software as mentioned at the top of the thread and then read through https://github.com/maidsafe/safe-api/blob/master/safe-cli/README.md

Once you have tried out each of the commands and their various options, you can fork or just copy
change-nappies/run-new-network.sh at master Ā· willief/change-nappies Ā· GitHub change-nappies/test_and_report.sh at master Ā· willief/change-nappies Ā· GitHub

which should issue the commands in the correct order to set up your network with logging and then run batches of tests. @davidpbrown also has scripts to run tests with random upload sizes.

Please ask for help at any time you feel uncertain about anything. This works both ways, by answering your help requests I gain knowledge too as I have to think about things from your point of view with your environment.

Make sure you have plenty room in /tmp, some people put /tmp on its own partition so if something writes zillions of data to /tmp, only that partition fills up , not your whole disk.
Tip: I often put /var/log on its own partition on a server for the same reason. If some log gets very chatty, then its only the logging stops, not the server.

1 Like

How do I do this?

It seems I managed to install CLI, but should I still get the Vault and something else separately? There is a thread in the forum about latest releases, but it is of no help.

Also, when I tried:

safe vault install
It returned:

safe: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

1 Like

try sudo apt-get install openssl

sudo apt-get install build-essential would probably help too if/when you get around to building packages

1 Like

Did both of those and they seemed to do what they were supposed to, but still the same error when trying to install vault.

I appreciate a lot your help here.

1 Like

Google suggests

add the path /usr/local/openssl/lib to /etc/ld.so.conf and run ldconfig

Noting that was a solution against an older Ubuntu 16.04 reasons to stay up to date.

2 Likes

@Toivo Once you have done as @davidpbrown suggests above, if you still have bother check by running

sudo updatedb ← may take a couple of mins
then
locate libssl.so.1.1

My thought on testing complexity is

  1. Current OS’
  2. Legacy OS’
  3. Build from source

I stick to 1. :upside_down_face:

1 Like

Sorry, I don’t understand what this means:

How to add that path to that other path? Copy the stuff inside that ā€œlibā€ folder to the ā€œld.so.confā€ folder?

1 Like

I would expect that is a config file you can edit with
sudo nano /etc/ld.so.conf
…adding /usr/local/openssl/lib

1 Like

/etc/ld.so.conf may be very sparse, mine only consists of
image

so make yours look like
image

then ctrl-x, and y to confirm the save.

EDIT: yes I know there is a more ā€œcorrectā€ way to do it but that should get it working for now.
Perhaps you should consider an upgrade to 18.04, despite what has been said, we are likely to learn more from you using a somewhat lower spec laptop then what we learn from an OS that only has one more years support left. Whats the consensus on this folks?

1 Like

Obviously this is a forum for SAFE, not a cure all for OS oddities that are not SAFE specific.
Where it’s trivial, we can give pointers but there are better options for known problems elsewhere…

1 Like

True but lets help out where we can

@mods - do you want to move this elsewhere?

1 Like