Closed Tim-ats-d closed 1 year ago
Can you re-run the unikernel with -l debug
to be more explicit about what is going on? It seems that the unikernel can not find a solution to clone the Git repository.
Here is it:
2023-02-17 15:00:10 +01:00: DBG [awa.client] <<< (Msg_disconnect
(DISCONNECT_PROTOCOL_ERROR "Too many authentication failures" ""))
2023-02-17 15:00:10 +01:00: DBG [awa.client] unexpected (Msg_disconnect
(DISCONNECT_PROTOCOL_ERROR "Too many authentication failures" ""))
2023-02-17 15:00:10 +01:00: DBG [mimic] Try to instantiate mimic-happy-eyeballs.
2023-02-17 15:00:10 +01:00: DBG [mimic] Try to instantiate mimic-happy-eyeballs.
2023-02-17 15:00:10 +01:00: DBG [mimic] Try to instantiate git-mirage-ssh-authenticator.
2023-02-17 15:00:10 +01:00: DBG [mimic] Try to instantiate git-mirage-ssh-key.
2023-02-17 15:00:10 +01:00: DBG [mimic] Try to instantiate git-http-headers.
2023-02-17 15:00:10 +01:00: DBG [mimic] Try to instantiate git-ssh-user.
2023-02-17 15:00:10 +01:00: DBG [mimic] Try to instantiate git-hostname.
2023-02-17 15:00:10 +01:00: DBG [mimic] Try to instantiate git-path.
2023-02-17 15:00:10 +01:00: DBG [mimic] Try to instantiate git-scheme.
2023-02-17 15:00:10 +01:00: DBG [mimic] Try to instantiate git-capabilities.
2023-02-17 15:00:10 +01:00: DBG [mimic] Try to instantiate git-transmission.
2023-02-17 15:00:10 +01:00: DBG [mimic] Try to instantiate ssh-endpoint.
2023-02-17 15:00:10 +01:00: ERR [git-fetch] The Git peer is not reachable.
Fatal error: exception Invalid_argument("error fetching: No connection found")
Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
Called from Git_kv.connect.(fun) in file "duniverse/git-kv/src/git_kv.ml", line 107, characters 11-23
Called from Lwt.Sequential_composition.bind.create_result_promise_and_callback_if_deferred.callback in file "duniverse/lwt/src/core/lwt.ml", line 1849, characters 23-26
Re-raised at Lwt.Miscellaneous.poll in file "duniverse/lwt/src/core/lwt.ml", line 3077, characters 20-29
Called from Unix_os__Main.run in file "duniverse/mirage-unix/lib/main.ml", line 5, characters 8-18
Called from Dune__exe__Main.run in file "main.ml", line 3, characters 12-30
Called from Dune__exe__Main in file "main.ml", line 234, characters 5-10
Thanks for trying unipi. So, from your log:
2023-02-17 14:39:36 +01:00: INF [awa.client] verified kexdh_reply!
It seems the DNS resolution and ssh session setup worked nicely (server fingerprint verified successfully).
But from your other log, it looks like the authentication failed. Could you maybe try with "awa_gen_key --keytype ed25519"?
From your extended log, some more lines would be useful (it starts with debug messages about authentication failure).
Also, we should adjust in awa-ssh the log level of authentication failures.... and report failure
But from your other log, it looks like the authentication failed. Could you maybe try with "awa_gen_key --keytype ed25519"?
Thank you very much, I tried this and it works well :slightly_smiling_face:
Hi, I'm trying to setup
unipi
to serve content pull from a sourcehut repo. I follow instructions located at section "Securing the git access with ssh" of this blog post https://hannes.robur.coop/Posts/DnsServer:And I have associated the public key generated by awa (
ssh-rsa ...
) with my sr.ht account (it is possible to have several public keys associated so I did not create another account).On my unikernel side, I have the following
config.ml
:and
unikernel.ml
:I configure unikernel as follows:
but every time I run I got this message:
Do you have any idea how to solve this problem?