Cannot `safe unlock --self-auth` on IPv4 LAN client side (I can safe cat file via LAN though)

Setup

Client

  • OS: Manjora Linux
  • sn_cli: 0.16
  • sn_authd: 0.0.12
    • ip: 192.x.x.x:12000

Server

  • OS: Manjaro Linux ARM
  • sn_cli: 0.16
  • sn_node: 0.25.15
    • ip: 192.x.x.x:12000

Steps

server

$ safe node killall
$ safe auth stop
$ rm -rf ~/.safe && cd ~/safe/sn_node-0.25.15/ && cargo build --release --features=simulated-payouts -- && cd ../sn_api-0.16.0/sn_cli && cargo build --release --features=simulated-payouts -- && cd ../sn_authd && cargo build --release --features=simulated-payouts -- && mkdir -p ~/.safe/authd ~/.safe/cli ~/.safe/node && mv ~/safe/sn_api-0.16.0/target/release/sn_authd ~/.safe/authd/ && mv ~/safe/sn_api-0.16.0/target/release/safe ~/.safe/cli/ && mv ~/safe/sn_node-0.25.15/target/release/sn_node ~/.safe/node
$ safe node run-baby-fleming
Creating '/home/folaht/.safe/node/baby-fleming-nodes' folder
Storing nodes' generated data at /home/folaht/.safe/node/baby-fleming-nodes
Launching local Safe network...
Launching with node executable from: /home/folaht/.safe/node/sn_node
Network size: 8 nodes
Launching genesis node (#1)...
Genesis node contact info: ["192.168.178.24:12000"]
Launching node #2...
Launching node #3...
Launching node #4...
Launching node #5...
Launching node #6...
Launching node #7...
Launching node #8...
Done!

client

$ safe node killall
$ safe auth stop
$ rm -rf ~/.safe && cd ~/safe/sn_api-0.16.0/sn_cli && cargo build --release --features=simulated-payouts -- && mkdir -p ~/.safe/cli && mv ~/safe/sn_api-0.16.0/target/release/safe ~/.safe/cli/
$ safe auth install
$ safe node install
$ echo \"192.168.178.24:12000\" | tee ~/.safe/node/node_connection_info.config
$ safe node join
$ safe auth start
$ safe auth create --test-coins
[folaht@pjehrsohmehj sn_cli]$ safe auth unlock
Passphrase: 
Password: 
Sending action request to authd to unlock the Safe...
Safe unlocked successfully
[folaht@pjehrsohmehj sn_cli]$ safe auth unlock --self-auth
Passphrase: 
Password: 
Sending action request to authd to unlock the Safe...
Safe unlocked successfully
Authorising CLI application...
Waiting for authorising response from authd...
[2020-12-21T11:52:43Z ERROR safe] sn_cli error: Application authorisation failed: [Error] AuthdError - [Error] AuthenticatorError - Failed to authorise application on the network: [Error] ClientError - Data error -> Unexpected error: Could not get history for key PublicKey::Ed25519(d91e4b..)

[update]

On the server side safe auth unlock --self-auth works and I was able put and safe put a file and safe cat the file on both sides. Woohoo!

4 Likes

This topic was automatically closed after 60 days. New replies are no longer allowed.