Wiped everything. Still receiving bootstrapfailure.
ERROR 2020-12-18T11:10:56.944525625+01:00 [/home/maidsafe/.cargo/registry/src/github.com-1ecc6299db9ec823/qp2p-0.9.6/src/api.rs:250] Failed to bootstrap to the network: Connection lost
ERROR 2020-12-18T11:10:56.944679100+01:00 [sn_authd/requests/create.rs:55] Error occurred when trying to create a Safe: [Error] ClientError - QuicP2P error: BootstrapFailure
ERROR 2020-12-18T11:10:56.944765937+01:00 [sn_authd/requests/mod.rs:120] Error when processing incoming 'create' request with id 2956831259: [Error] ClientError - QuicP2P error: BootstrapFailure
What do you mean by local ‘baby’ network running?
8 nodes running on the same computer? Is that local enough or does the client also need to run locally?
What about a LAN cli?
Is that still local baby network?
paul@Vader:~$ rm -rf .safe/
paul@Vader:~$ curl -so- https://sn-api.s3.amazonaws.com/install.sh | bash
=> Downloading Safe CLI package from 'https://sn-api.s3.eu-west-2.amazonaws.com/sn_cli-0.16.0-x86_64-unknown-linux-gnu.tar.gz'...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 10.5M 100 10.5M 0 0 1780k 0 0:00:06 0:00:06 --:--:-- 1811k
=> Unpacking Safe CLI to '/home/paul/.safe/cli'...
=> Adding statement to '/home/paul/.bashrc' profile to have Safe CLI binary path in the $PATH
=> Profile '/home/paul/.bashrc' already contains a statement to set Safe CLI in the $PATH
paul@Vader:~$ safe auth install
Latest release found: sn_authd v0.0.12
Downloading https://sn-api.s3.eu-west-2.amazonaws.com/sn_authd-0.0.12-x86_64-unknown-linux-gnu.tar.gz...
[00:00:03] [========================================] 7.03MB/7.03MB (0s) Done
Creating '/home/paul/.safe/authd' folder
Installing sn_authd binary at /home/paul/.safe/authd ...
Setting execution permissions to installed binary '/home/paul/.safe/authd/sn_authd'...
Done!
paul@Vader:~$ safe node install
Latest release found: sn_node v0.25.15
Downloading https://sn-node.s3.eu-west-2.amazonaws.com/sn_node-0.25.15-x86_64-unknown-linux-musl.zip...
[00:00:05] [========================================] 9.34MB/9.34MB (0s) Done
Creating '/home/paul/.safe/node' folder
Installing sn_node binary at /home/paul/.safe/node ...
Setting execution permissions to installed binary '/home/paul/.safe/node/sn_node'...
Done!
paul@Vader:~$ safe node run-baby-fleming
Creating '/home/paul/.safe/node/baby-fleming-nodes' folder
Storing nodes' generated data at /home/paul/.safe/node/baby-fleming-nodes
Launching local Safe network...
Launching with node executable from: /home/paul/.safe/node/sn_node
Network size: 8 nodes
Launching genesis node (#1)...
Genesis node contact info: ["127.0.0.1:38670"]
Launching node #2...
Launching node #3...
Launching node #4...
Launching node #5...
Launching node #6...
Launching node #7...
Launching node #8...
Done!
paul@Vader:~$
paul@Vader:~$ safe auth start
Creating '/home/paul/.safe/authd/logs' folder
Starting SAFE Authenticator daemon (sn_authd)...
sn_authd started (PID: 1575505)
paul@Vader:~$ safe auth create --test-coins
[2020-12-18T12:06:22Z ERROR safe] sn_cli error: Both the passphrase (SAFE_AUTH_PASSPHRASE) and password (SAFE_AUTH_PASSWORD) environment variables must be set for creating/unlocking a Safe.
paul@Vader:~$ export SAFE_AUTH_PASSPHRASE="test"
paul@Vader:~$ export SAFE_AUTH_PASSWORD="test"
paul@Vader:~$ safe auth create --test-coins
Sending request to authd to create a Safe...
Safe was created successfully!
paul@Vader:~$ safe auth unlock
Sending action request to authd to unlock the Safe...
Safe unlocked successfully
paul@Vader:~$ safe auth status
Sending request to authd to obtain a status report...
+------------------------------------------+--------+
| Safe Authenticator status | |
+------------------------------------------+--------+
| Authenticator daemon version | 0.0.12 |
+------------------------------------------+--------+
| Is there a Safe currently unlocked? | Yes |
+------------------------------------------+--------+
| Number of pending authorisation requests | 0 |
+------------------------------------------+--------+
| Number of notifications subscribers | 0 |
+------------------------------------------+--------+
paul@Vader:~$ safe auth
Authorising CLI application...
Note you can use this CLI from another console to authorise it with 'auth allow' command. Alternativelly, you can also use '--self-auth' flag with 'auth unlock' command to automatically self authorise the CLI app.
Waiting for authorising response from authd...
Safe CLI app was successfully authorised
Credentials were stored in /home/paul/.safe/cli/credentials
While waiting for auth, do this in another console (using request id returned, ofc):
paul@Vader:~$ safe auth reqs
Requesting list of pending authorisation requests from authd...
+--------------------------------+------------------+----------+------------------+-----------------------+
| Pending Authorisation requests | | | | |
+--------------------------------+------------------+----------+------------------+-----------------------+
| Request Id | App Id | Name | Vendor | Permissions requested |
+--------------------------------+------------------+----------+------------------+-----------------------+
| 1122722581 | net.maidsafe.cli | Safe CLI | MaidSafe.net Ltd | |
+--------------------------------+------------------+----------+------------------+-----------------------+
paul@Vader:~$ safe auth allow 1122722581
Sending request to authd to allow an authorisation request...
Authorisation request was allowed
Was it just sn_node that you rebuilt with simulated-payouts? I’m getting the same error as you were getting before when trying to connect to my network using a LAN IP address.
No I edited the hardcoded node contact IP address and then rebuilt it.
$ vim src/config_handler.rs +/LOCALHOST
-- ...LOCALHOST...
++ new(192,x,x,x)
But now I have issues with localhost again after rebuilding again.
[edit]
Alright. I’ve been able to test both localhost and lan again and while authentication works, file upload doesn’t.
Neither client nor server side.
$ safe files put test.txt
[2020-12-19T12:40:17Z ERROR safe] sn_cli error: [Error] NetDataError - Failed to store Public Sequence data: Data error -> Unexpected error: Could not get history for key PublicKey::Ed25519(8684b3..) - ClientError::DataError -> Unexpected("Could not get history for key PublicKey::Ed25519(8684b3..)")
[update]
I tried global IP address as well. That does not work at all.