I don’t think this has been mentioned, but fleming branch has been merged into master branch in safe_vault repository on GitHub. This means that an important step has been finalized.
Any hints as to what I should do now? Android Samsung 7 ← a screenshot wont capture that overlay, hence the faffing with webcam
That looks like attempt to download safe-network-app on a mobile?.. which is a for desktop download…did you intend the Authenticator perhaps or hoped for a mobile snapp that maybe doesn’t exist yet.
from SAFE Network Dev Update - April 2, 2020
- alpha versions of the SAFE Network App and SAFE Browser (desktop) that are compatible with Baby Fleming iteration 3.
- We released new stable versions of SAFE Authenticator and SAFE Browser (mobile)
Doh!
My brain is seriously mince today. I was up too late last night and I have suffered for it all day. I just can’t pull all-night sessions like I used to…
Im going to download it on the laptop and get to my kip - thanks
EDIT - SNApp looks good here
If anyone is bored - go to safe://vue-shop and leave a review on the socks so I have some data to format nicely tomorrow - Ta!
I’m to the point where half night sessions knock me out the next day.
I’m at the point of not getting to bed before midnight = drinking 15 beers + pulling an all-nighter at 18.
Amateurs! I had to quit drinking altogether years ago. Off to take my afternoon nap now.
Get off me grass you young kids. Bah humbug
Left a review but it doesn’t seem to have persisted.
Yes I realised I still have more work to do but thanks anyway
I am using latest safe_vault and latest safe-api compiled from source to play with a local network and I came across 2 problems uncovered by the following operations:
-
Create genesis vault on port 5483
-
Create a key with test coins
-
Create 6 additional local vaults on random ports (to reach 7 elders default limit)
-
Try to create an account paid by the key with command: RUST_LOG=trace ./safe keys create --preload 0.000002 --pay-with “…” --output json`
The output is sometimes a success:
...
[2020-04-12T15:07:31Z TRACE safe_core::connection_manager::connection_group] 192.168.1.68:48340: Message: [ 01 00 00 00..a2 ec 98 4b ].
[2020-04-12T15:07:31Z TRACE safe_core::connection_manager::connection_group] Response from: V4(192.168.1.68:48340), msg_id: MessageId(2ea604..), resp: Response::Transaction(NoSuchBalance)
[2020-04-12T15:07:31Z TRACE safe_core::connection_manager::connection_group] 192.168.1.68:41536: Message: [ 01 00 00 00..a2 ec 98 4b ].
[2020-04-12T15:07:31Z TRACE safe_core::connection_manager::connection_group] Response from: V4(192.168.1.68:41536), msg_id: MessageId(2ea604..), resp: Response::Transaction(NoSuchBalance)
[2020-04-12T15:07:31Z TRACE safe_core::connection_manager::connection_group] 192.168.1.68:35555: Message: [ 01 00 00 00..a2 ec 98 4b ].
[2020-04-12T15:07:31Z TRACE safe_core::connection_manager::connection_group] Response from: V4(192.168.1.68:35555), msg_id: MessageId(2ea604..), resp: Response::Transaction(NoSuchBalance)
[2020-04-12T15:07:31Z TRACE safe_core::connection_manager::connection_group] 192.168.1.68:56965: Message: [ 01 00 00 00..a2 ec 98 4b ].
[2020-04-12T15:07:31Z TRACE safe_core::connection_manager::connection_group] Response from: V4(192.168.1.68:56965), msg_id: MessageId(2ea604..), resp: Response::Transaction(NoSuchBalance)
[2020-04-12T15:07:31Z TRACE safe_core::connection_manager::connection_group] 192.168.1.68:57052: Message: [ 01 00 00 00..a2 ec 98 4b ].
[2020-04-12T15:07:31Z TRACE safe_core::connection_manager::connection_group] Response from: V4(192.168.1.68:57052), msg_id: MessageId(2ea604..), resp: Response::Transaction(NoSuchBalance)
[2020-04-12T15:07:31Z TRACE safe_core::connection_manager::connection_group] 192.168.1.68:53098: Message: [ 01 00 00 00..a2 ec 98 4b ].
[2020-04-12T15:07:31Z TRACE safe_core::connection_manager::connection_group] Response from: V4(192.168.1.68:53098), msg_id: MessageId(2ea604..), resp: Response::Transaction(NoSuchBalance)
[2020-04-12T15:07:31Z TRACE safe_core::connection_manager::connection_group] 192.168.1.68:5483: Message: [ 01 00 00 00..a2 ec 98 4b ].
[2020-04-12T15:07:31Z TRACE safe_core::connection_manager::connection_group] Response from: V4(192.168.1.68:5483), msg_id: MessageId(2ea604..), resp: Response::Transaction(Success)
...
[
"safe://hbyyyybgfh8rm4611u1se1gp9qgxjmre4z3kaxjztcitzwfmtswqccyxf6",
{
"pk": "98bc3917af4a5395912337ee33d2b22357cab0f4de2cac6f42ae36a398c03cbe7eb667ac1fc326d1f5ed6b36d76b9ec3",
"sk": "227797a6c8d8b1e1b0b9a75b587ba73c8f6dd6a78db8dedb253205245acb3769"
}
]
...
But more often a failure:
...
[2020-04-12T15:07:01Z TRACE safe_core::connection_manager::connection_group] 192.168.1.68:56965: Message: [ 01 00 00 00..df be 26 c2 ].
[2020-04-12T15:07:01Z TRACE safe_core::connection_manager::connection_group] Response from: V4(192.168.1.68:56965), msg_id: MessageId(a1febe..), resp: Response::Transaction(NoSuchBalance)
[2020-04-12T15:07:01Z TRACE safe_core::connection_manager::connection_group] 192.168.1.68:41536: Message: [ 01 00 00 00..df be 26 c2 ].
[2020-04-12T15:07:01Z TRACE safe_core::connection_manager::connection_group] Response from: V4(192.168.1.68:41536), msg_id: MessageId(a1febe..), resp: Response::Transaction(NoSuchBalance)
[2020-04-12T15:07:01Z TRACE safe_core::connection_manager::connection_group] 192.168.1.68:35555: Message: [ 01 00 00 00..df be 26 c2 ].
[2020-04-12T15:07:01Z TRACE safe_core::connection_manager::connection_group] Response from: V4(192.168.1.68:35555), msg_id: MessageId(a1febe..), resp: Response::Transaction(NoSuchBalance)
[2020-04-12T15:07:01Z TRACE safe_core::connection_manager::connection_group] 192.168.1.68:53098: Message: [ 01 00 00 00..df be 26 c2 ].
[2020-04-12T15:07:01Z TRACE safe_core::connection_manager::connection_group] Response from: V4(192.168.1.68:53098), msg_id: MessageId(a1febe..), resp: Response::Transaction(NoSuchBalance)
[2020-04-12T15:07:01Z TRACE safe_core::connection_manager::connection_group] 192.168.1.68:48340: Message: [ 01 00 00 00..df be 26 c2 ].
[2020-04-12T15:07:01Z TRACE safe_core::connection_manager::connection_group] Response from: V4(192.168.1.68:48340), msg_id: MessageId(a1febe..), resp: Response::Transaction(NoSuchBalance)
[2020-04-12T15:07:01Z TRACE safe_core::connection_manager::connection_group] 192.168.1.68:5483: Message: [ 01 00 00 00..df be 26 c2 ].
[2020-04-12T15:07:01Z TRACE safe_core::connection_manager::connection_group] Response from: V4(192.168.1.68:5483), msg_id: MessageId(a1febe..), resp: Response::Transaction(Success)
[2020-04-12T15:07:01Z TRACE safe_core::connection_manager::connection_group] 192.168.1.68:57052: Message: [ 01 00 00 00..df be 26 c2 ].
[2020-04-12T15:07:01Z TRACE safe_core::connection_manager::connection_group] Response from: V4(192.168.1.68:57052), msg_id: MessageId(a1febe..), resp: Response::Transaction(NoSuchBalance)
...
[2020-04-12T15:07:01Z 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)
...
First problem is that the key balance has not been duplicated to other vaults. Only the genesis vault is able to finalize the transaction successfully. The other vaults return NoSuchBalance error.
Second problem is that there isn’t any vote to decide of the outcome of the operation: Success of command depends on which node sends the information last. If the genesis vault is last, then the operation is successul (as shown by json result). But if another vault is last then the operation fails.
I don’t know if these problems are bugs or missing features and I would like to have a status on them.
Note: The same problems also happen for other data structure like files and file containers.
What commands are you using for steps 1 and 3?
-
to create genesis vault:
./safe_vault --ip 192.168.1.68 -p 5483 -f -vv -r ~/.local/share/safe_vault/root_dir_00
where 192.168.1.68 is my local IP address. -
to create additional vaults:
./safe_vault --ip 192.168.1.68 -h '["192.168.1.68:5483"]' -vv -r ~/.local/share/safe_vault/root_dir_NN
where NN stands for the vault number (from 01 to 06)
Just guessing here, but sounds related to PARSEC being removed from the vault layer.
Just FYI, new version of CLI (v0.12.0) and safe-authd (v0.0.8) are available now, you can use safe update
and safe auth update
to update them.
Windows users: please note this version of safe-authd doesn’t require admin permissions to start on Windows, it doesn’t even need to be installed as a Windows Service. Thus before updating and running new safe-authd version, please first uninstall service of old version of safe-authd on Windows using old CLI <= v0.11.0: with admin perms safe auth stop
and safe auth uninstall
.
One nice new feature to play with is the files get
subcommand: https://github.com/maidsafe/safe-api/tree/master/safe-cli#files-get
To add to that. YMMV with latest SNAPP on windows. Previous it tried to start w/ admin privileges, which it doesn’t need to now, but will need to be updated to reflect that.
Hmm safe files get
isn’t working for me.
safe dog safe://hbwybodihz5ibdqxoff88cw71w9a8amhagtz3x4wechabafgn8735okxfx
confirms the file exists but
safe files get safe://hbwybodihz5ibdqxoff88cw71w9a8amhagtz3x4wechabafgn8735okxfx
gives an error (also if ‘.’ is added as the destination directory).
safe files get safe://hbwybodihz5ibdqxoff88cw71w9a8amhagtz3x4wechabafgn8735okxfx .
[2020-04-14T20:42:17Z ERROR safe] safe-cli error: [Error] NetDataError - Failed to get current version: [Error] NetDataError - Failed to get Sequenced Append Only Data: NetDataError("Failed to get Sequenced Append Only Data indices: CoreError(Data error -> Requested data not found - CoreError::DataError -> NoSuchData)")
Can you provide a full test case please, including the files put command used. ( Can you reproduce it, with a new safe files put
… safe files get
sequence? )
also, does safe files ls
or safe files tree
work with it?
Nope - those don’t work (edit: maybe cos I tried on the file not the container) . I’ll try uploading a file from fresh.
Edit: still not working
user@debian:~/Pictures$ safe files put safe-get-error.png
FilesContainer created at: "safe://hnyynyz47j4sfjrg78si34n19rc1rhmoysmiondi1uaxd1bz5nwx9sygssbnc"
+ safe-get-error.png safe://hbwynydsqdt8ophjse766t3qxsck1n95t1bwni7i44usf1ukc4316eokxn
user@debian:~/Pictures$ safe files get -n safe://hbwynydsqdt8ophjse766t3qxsck1n95t1bwni7i44usf1ukc4316eokxn
[2020-04-14T21:08:19Z ERROR safe] safe-cli error: [Error] NetDataError - Failed to get current version: [Error] NetDataError - Failed to get Sequenced Append Only Data: NetDataError("Failed to get Sequenced Append Only Data indices: CoreError(Data error -> Requested data not found - CoreError::DataError -> NoSuchData)")
user@debian:~/Pictures$ safe files tree safe://hnyynyz47j4sfjrg78si34n19rc1rhmoysmiondi1uaxd1bz5nwx9sygssbnc
safe://hnyynyz47j4sfjrg78si34n19rc1rhmoysmiondi1uaxd1bz5nwx9sygssbnc
└── safe-get-error.png
0 directories, 1 file
user@debian:~/Pictures$ safe files ls safe://hnyynyz47j4sfjrg78si34n19rc1rhmoysmiondi1uaxd1bz5nwx9sygssbnc
Files of FilesContainer (version 0) at "safe://hnyynyz47j4sfjrg78si34n19rc1rhmoysmiondi1uaxd1bz5nwx9sygssbnc":
Files: 1 Size: 42264 Total Files: 1 Total Size: 42264
SIZE CREATED MODIFIED NAME
42264 2020-04-14T21:07:33Z 2020-04-14T21:07:33Z safe-get-error.png
Yet safe cat
works - first line below.
$ safe cat safe://hbwybodihz5ibdqxoff88cw71w9a8amhagtz3x4wechabafgn8735okxfx > ./test.jpg
but safe files get
gives error… (at noted, ls and tree would fail because not FilesContainer)
$ safe files get safe://hbwybodihz5ibdqxoff88cw71w9a8amhagtz3x4wechabafgn8735okxfx > ./test.jpg
[2020-04-14T21:13:37Z ERROR safe] safe-cli error: [Error] NetDataError - Failed to get current version: [Error] NetDataError - Failed to get Sequenced Append Only Data: NetDataError("Failed to get Sequenced Append Only Data indices: CoreError(Data error -> Requested data not found - CoreError::DataError -> NoSuchData)")