New Release: Vault Phase 1 (real vault)

The problem is that we don’t know what “default” refers to (I thought it was argument default value!). As it means “default name”, just say that. I would also remove the “but” that doesn’t help understanding. Here is my proposal (very close to your original phrasing):

The default name is set using a direct link to the final destination that
was provided with `--link`, rather than a link to the sub name being created
(which is the default behaviour if this flag is not passed)

I also propose to remove -t short form because we don’t know what it stands for and just keep --direct long form which is clearer.

3 Likes

Are the vaults currently all standalones?
I assume that at some point those vaults need to be connected somehow.

Yes, with what we currently have (phase 1) every vault is like a separate network. They’re starting to work on networking them now (phase 2), which involves using PARSEC to reach consensus between vaults on network activities.

10 Likes

I’m a bit confused about the shared vault.
I have put vault_connection_info.config in
/home/folaht/.config/safe_vault/ which turned the requestTimeout error into this:

/safe_auth
Secret: 
Password: 
[2019-09-18T15:03:19Z ERROR safe_auth] safe_auth error: Failed to log in: SndError(NoSuchLoginPacket)

@folaht, unless you pass a secret key with --sk, or --test-coins, the safe_auth is assuming you want to log in with an existing account which it seems you don’t have in the shared vault. So you need to create an account first with $ /safe_auth --test-coins, there is some more info here GitHub - maidsafe-archive/safe-authenticator-cli: This crate implements a CLI for the safe_authenticator crate.. The safe CLI User Guide also gives you a helpful intro about bootstrapping too: https://github.com/maidsafe/safe-cli#auth

2 Likes

Remember that you can’t run two instances of safe_auth at the same time. I just found out here:

2 Likes

I exported the secret and password and so I’ve been able to log into the safe network of the shared vault:

$ ./safe_auth --daemon 41805 &
Logged in the SAFE Network successfully!
Exposing service on 127.0.0.1:41805

But I’m not able to use the client:

./safe auth
Authorising CLI application...
[2019-09-18T20:59:14Z ERROR safe] safe_cli error: Application authorisation failed: [Error] AuthError - Failed to send request to Authenticator: http://localhost:41805/authorise/bAAAAAAHBLN5ACAAAAAABAAAAAAAAAAAANZSXILTNMFUWI43BMZSS4Y3MNEAAQAAAAAAAAAAAKNAUMRJAINGESEAAAAAAAAAAABGWC2LEKNQWMZJONZSXIICMORSAAAIAAAAAAAAAAAAAA: timed out

Did you switch back over to the window with your daemon running in it, and hit “y” to allow the authorization to proceed?

3 Likes

You may wanna avoid using the &, I’m not sure if it’ll work correctly to allow an auth req when prompted, it’s probably better to just run it with $ ./safe_auth --daemon 41805 and use another console for the $ safe CLI commands

6 Likes

Yes it is an issue, if we deamonise properly then we cannot have stdio output. Perhaps an interactive session is best. So split screen, on top an interactive safe_auth running and the bottom half the CLI running then we can perhaps create some stunning graphic output as well as screen prompts.

All great fun an brilliant way to show what is happening. I suspect the interactive part though will keep showing a QR code for the wallet of @bochaco and @joshuef just you know, as examples of how to donate :wink: :smiley: :smiley:

9 Likes

And it’d be well deserved! So many rockstars @maidsafe

6 Likes

Yes, I think we are fairly convinced we need to properly demonise it, and also merge safe_auth CLI commands into safe_cli, this will make things much simpler to use and to maintain. Let’s see where we get to in the next few days with this.

10 Likes

It’s working now.

The first thing I’ve noticed is that for some reason my site is located at
safe://site/site instead of just site.

One complaint, the client may be able to handle nón-Êǹglîşh lætŧùrş, but the browser does not.
I’m creating a phonemic conscript and regular latin, especially the English version, has proven to be insufficient.

2 Likes

@folaht can you give us some examples of URLs that are not working for you please.

Also re: site/site you’re missing a trailing / on the folder in your upload command. (This works much like rsync or cp at the moment, though we’re looking at perhaps changing that as it’s not always the most convenient…)

I reported the lack of Unicode support as a bug a while back:
https://maidsafe.atlassian.net/browse/MAID-2234

But, as @Antifragile pointed out, there might be some problems with supporting more characters, so maybe it’s not a bug at all.

https://forum.autonomi.community/t/protocol-domain-subdomain-path/28815/60

2 Likes

I think the only problem is to have called the flag --daemon. Something like --wait-for-auth-req would be clearer and wouldn’t encourage people to launch it in the background.

2 Likes

If I see option daemon I think it is meant for the process to run, started by the init or systemd process on Linux, or roughly the same as started in the background (& behind). Like for example

rsync … --daemon …

3 Likes

Yes, and it was the intention back then when we started with safe_auth CLI, we wanted to this be a daemon eventually but didn’t invest the effort on that thing, now the moment has arrived :slight_smile: . Note this also will give us some additional cool features apart from what it’s being discussed here, e.g. any Authenticator UI/GUI could be connected to this daemon, so you could interact with it using the CLI, and 5mins later you can do it with SNAPP GUI, while still logged in with same account all the time (you could be allowing auth reqs from the CLI or from SNAPP).

6 Likes

Are any of the shared vault images/songs/videos still available?

I could not access any of it, except for my own.

$ ./safe cat safe://hbyyyynndgnwyik7t6mba3ojxti5ar6r35mbzs9ek6erby8iaqc975b9j4
[2019-09-20T04:41:25Z ERROR safe] safe_cli error: [Error] NetDataError - Failed to GET Published ImmutableData: CoreError(No such data - CoreError::DataError -> NoSuchData)
$ ./safe cat safe://lazydog
[2019-09-20T04:41:54Z ERROR safe] safe_cli error: [Error] ContentNotFound - Content not found at safe://lazydog
$ ./safe cat safe://hbyyyydgtpdfuspaui6s4yozkyfbogrmf9jrt4zo6ea9nuspbdzhdtbfea
[2019-09-20T04:42:08Z ERROR safe] safe_cli error: [Error] NetDataError - Failed to GET Published ImmutableData: CoreError(No such data - CoreError::DataError -> NoSuchData)
$ ./safe cat safe://dweb/index.html
[2019-09-20T04:42:25Z ERROR safe] safe_cli error: [Error] ContentNotFound - Content not found at safe://dweb/index.html
$./safe cat safe://dweb
[2019-09-20T04:47:37Z ERROR safe] safe_cli error: [Error] ContentNotFound - Content not found at safe://dweb
$ ./safe cat safe://hbyyyydumbcdx4yd55q4bg3yxfjkrw15rbepchpy5izded53useofe5fge
[2019-09-20T04:48:05Z ERROR safe] safe_cli error: [Error] NetDataError - Failed to GET Published ImmutableData: CoreError(No such data - CoreError::DataError -> NoSuchData)
$ ./safe cat safe://safekey.bochaco
[2019-09-20T04:49:08Z ERROR safe] safe_cli error: [Error] ContentError - Sub name not found in NRS Map Container
$ ./safe cat safe://cyberpunk
[2019-09-20T04:49:37Z ERROR safe] safe_cli error: [Error] ContentNotFound - Content not found at safe://cyberpunk
$ ./safe cat safe://traktion.wallet
[2019-09-20T04:50:05Z ERROR safe] safe_cli error: [Error] ContentNotFound - Content not found at safe://traktion.wallet
$ ./safe cat safe://test
[2019-09-20T06:45:03Z ERROR safe] safe_cli error: [Error] ContentNotFound - Content not found at safe://test
$ ./safe cat safe://yropeehn
Files of FilesContainer (version 0) at "safe://yropeehn":
+-------------+------+----------------------+----------------------+-------------------------------------------------------------------+
| Name        | Size | Created              | Modified             | Link                                                              |
+-------------+------+----------------------+----------------------+-------------------------------------------------------------------+
| /index.html | 32   | 2019-09-20T04:39:31Z | 2019-09-20T04:39:31Z | safe://hbyyyyncr4gs6mf1w81xsmnhqcw9a3nt5kgn7gb6kka68qutt6mkjsth44 |
+-------------+------+----------------------+----------------------+-------------------------------------------------------------------+

It’s expected some of them must have gone due to an issue from a couple of weeks ago:

So some data has been lost due to that problem in the shared vault

1 Like