ElementsProject / lightning

Core Lightning — Lightning Network implementation focusing on spec compliance and performance
Other
2.81k stars 889 forks source link

Installing plugin via `reckless`: Host key verification failed #7635

Open steepdawn974 opened 2 weeks ago

steepdawn974 commented 2 weeks ago

Issue and Steps to Reproduce

reckless install clones https://github.com/lightningd/plugins + submodules apparently via SSH using git@github.com... syntax. This results in an error Host key verification failed

Tested on RaspiBlitz v1.11.2 (fresh install)

sudo -u bitcoin /usr/local/bin/lightning-cli --conf=/home/bitcoin/.lightning/config reckless install cln-ntfy

{
   "result": [
      "null"
   ],
   "log": [
      "DEBUG: Searching for cln-ntfy",
      "DEBUG: fetching from gh API: https://api.github.com/repos/lightningd/plugins/contents/",
      "DEBUG: fetching from gh API: https://api.github.com/repos/lightningd/plugins/git/trees/7c35d39c613355ae4effa0d3a9b8eb54f0ef8668",
      "INFO: found cln-ntfy in source: https://github.com/lightningd/plugins",
      "DEBUG: entry: None",
      "DEBUG: sub-directory: cln-ntfy",
      "DEBUG: Retrieving cln-ntfy from https://github.com/lightningd/plugins",
      "DEBUG: Install requested from InstInfo(cln-ntfy, https://github.com/lightningd/plugins, None, None, None, cln-ntfy).",
      "INFO: cloning Source.GITHUB_REPO InstInfo(cln-ntfy, https://github.com/lightningd/plugins, None, None, None, cln-ntfy)",
      "DEBUG: Cloning into '/tmp/reckless-537198451nmzodwul/clone/cln-ntfy'...",
      "DEBUG: Submodule 'Lightning-Invoice-Queue' (https://github.com/rbndg/Lightning-Invoice-Queue) registered for path 'Lightning-Invoice-Queue'",
      "DEBUG: Submodule 'NLoop' (https://github.com/bitbankinc/NLoop) registered for path 'NLoop'",
      "DEBUG: Submodule 'bolt12-prism' (https://github.com/gudnuf/bolt12-prism.git) registered for path 'bolt12-prism'",
      "DEBUG: Submodule 'btcli4j' (https://github.com/clightning4j/btcli4j.git) registered for path 'btcli4j'",
      "DEBUG: Submodule 'c-lightning-events' (https://github.com/rbndg/c-lightning-events) registered for path 'c-lightning-events'",
      "DEBUG: Submodule 'c-lightning-pruning-plugin' (https://github.com/Start9Labs/c-lightning-pruning-plugin) registered for path 'c-lightning-pruning-plugin'",
      "DEBUG: Submodule 'circular' (https://github.com/giovannizotta/circular.git) registered for path 'circular'",
      "DEBUG: Submodule 'cln-ntfy' (https://github.com/yukibtc/cln-ntfy.git) registered for path 'cln-ntfy'",
      "DEBUG: Submodule 'clnrod' (https://github.com/daywalker90/clnrod.git) registered for path 'clnrod'",
      "DEBUG: Submodule 'go-lnmetrics.reporter' (https://github.com/LNOpenMetrics/go-lnmetrics.reporter.git) registered for path 'go-lnmetrics.reporter'",
      "DEBUG: Submodule 'graphql' (https://github.com/nettijoe96/c-lightning-graphql.git) registered for path 'graphql'",
      "DEBUG: Submodule 'holdinvoice' (https://github.com/daywalker90/holdinvoice.git) registered for path 'holdinvoice'",
      "DEBUG: Submodule 'jwt-factory' (https://github.com/nettijoe96/jwt-factory.git) registered for path 'jwt-factory'",
      "DEBUG: Submodule 'lightning-qt' (https://github.com/darosior/pylightning-qt.git) registered for path 'lightning-qt'",
      "DEBUG: Submodule 'listmempoolfunds' (https://github.com/andrewtoth/listmempoolfunds) registered for path 'listmempoolfunds'",
      "DEBUG: Submodule 'ln-address-pay' (https://github.com/nosedam/ln-address-pay) registered for path 'ln-address-pay'",
      "DEBUG: Submodule 'paythrough' (https://github.com/andrewtoth/paythrough) registered for path 'paythrough'",
      "DEBUG: Submodule 'poncho' (https://github.com/fiatjaf/poncho) registered for path 'poncho'",
      "DEBUG: Submodule 'sitzprobe' (https://github.com/niftynei/sitzprobe.git) registered for path 'sitzprobe'",
      "DEBUG: Submodule 'sling' (https://github.com/daywalker90/sling) registered for path 'sling'",
      "DEBUG: Submodule 'summars' (https://github.com/daywalker90/summars.git) registered for path 'summars'",
      "DEBUG: Submodule 'torq-plugin' (git@github.com:lncapital/torq-cln-plugin.git) registered for path 'torq-plugin'",
      "DEBUG: Submodule 'trustedcoin' (https://github.com/fiatjaf/trustedcoin.git) registered for path 'trustedcoin'",
      "DEBUG: Submodule 'watchtower-client' (https://github.com/talaia-labs/rust-teos) registered for path 'watchtower-client'",
      "DEBUG: Submodule 'webhook' (https://github.com/fiatjaf/lightningd-webhook.git) registered for path 'webhook'",
      "DEBUG: Cloning into '/tmp/reckless-537198451nmzodwul/clone/cln-ntfy/Lightning-Invoice-Queue'...",
      "DEBUG: Cloning into '/tmp/reckless-537198451nmzodwul/clone/cln-ntfy/NLoop'...",
      "DEBUG: Cloning into '/tmp/reckless-537198451nmzodwul/clone/cln-ntfy/bolt12-prism'...",
      "DEBUG: Cloning into '/tmp/reckless-537198451nmzodwul/clone/cln-ntfy/btcli4j'...",
      "DEBUG: Cloning into '/tmp/reckless-537198451nmzodwul/clone/cln-ntfy/c-lightning-events'...",
      "DEBUG: Cloning into '/tmp/reckless-537198451nmzodwul/clone/cln-ntfy/c-lightning-pruning-plugin'...",
      "DEBUG: Cloning into '/tmp/reckless-537198451nmzodwul/clone/cln-ntfy/circular'...",
      "DEBUG: Cloning into '/tmp/reckless-537198451nmzodwul/clone/cln-ntfy/cln-ntfy'...",
      "DEBUG: Cloning into '/tmp/reckless-537198451nmzodwul/clone/cln-ntfy/clnrod'...",
      "DEBUG: Cloning into '/tmp/reckless-537198451nmzodwul/clone/cln-ntfy/go-lnmetrics.reporter'...",
      "DEBUG: Cloning into '/tmp/reckless-537198451nmzodwul/clone/cln-ntfy/graphql'...",
      "DEBUG: Cloning into '/tmp/reckless-537198451nmzodwul/clone/cln-ntfy/holdinvoice'...",
      "DEBUG: Cloning into '/tmp/reckless-537198451nmzodwul/clone/cln-ntfy/jwt-factory'...",
      "DEBUG: Cloning into '/tmp/reckless-537198451nmzodwul/clone/cln-ntfy/lightning-qt'...",
      "DEBUG: Cloning into '/tmp/reckless-537198451nmzodwul/clone/cln-ntfy/listmempoolfunds'...",
      "DEBUG: Cloning into '/tmp/reckless-537198451nmzodwul/clone/cln-ntfy/ln-address-pay'...",
      "DEBUG: Cloning into '/tmp/reckless-537198451nmzodwul/clone/cln-ntfy/paythrough'...",
      "DEBUG: Cloning into '/tmp/reckless-537198451nmzodwul/clone/cln-ntfy/poncho'...",
      "DEBUG: Cloning into '/tmp/reckless-537198451nmzodwul/clone/cln-ntfy/sitzprobe'...",
      "DEBUG: Cloning into '/tmp/reckless-537198451nmzodwul/clone/cln-ntfy/sling'...",
      "DEBUG: Cloning into '/tmp/reckless-537198451nmzodwul/clone/cln-ntfy/summars'...",
      "DEBUG: Cloning into '/tmp/reckless-537198451nmzodwul/clone/cln-ntfy/torq-plugin'...",
      "DEBUG: Host key verification failed.",
      "DEBUG: fatal: Could not read from remote repository.",
      "DEBUG: ",
      "DEBUG: Please make sure you have the correct access rights",
      "DEBUG: and the repository exists.",
      "DEBUG: fatal: clone of 'git@github.com:lncapital/torq-cln-plugin.git' into submodule path '/tmp/reckless-537198451nmzodwul/clone/cln-ntfy/torq-plugin' failed",
      "DEBUG: Failed to clone 'torq-plugin'. Retry scheduled",
      "DEBUG: Cloning into '/tmp/reckless-537198451nmzodwul/clone/cln-ntfy/trustedcoin'...",
      "DEBUG: Cloning into '/tmp/reckless-537198451nmzodwul/clone/cln-ntfy/watchtower-client'...",
      "DEBUG: Cloning into '/tmp/reckless-537198451nmzodwul/clone/cln-ntfy/webhook'...",
      "DEBUG: Cloning into '/tmp/reckless-537198451nmzodwul/clone/cln-ntfy/torq-plugin'...",
      "DEBUG: Host key verification failed.",
      "DEBUG: fatal: Could not read from remote repository.",
      "DEBUG: ",
      "DEBUG: Please make sure you have the correct access rights",
      "DEBUG: and the repository exists.",
      "DEBUG: fatal: clone of 'git@github.com:lncapital/torq-cln-plugin.git' into submodule path '/tmp/reckless-537198451nmzodwul/clone/cln-ntfy/torq-plugin' failed",
      "DEBUG: Failed to clone 'torq-plugin' a second time, aborting",
      "ERROR: Failed to clone repo",
      "WARNING: cln-ntfy: installation aborted"
   ]
}

getinfo output

   "blockheight": 859594,
   "network": "bitcoin",
   "fees_collected_msat": 0,
   "lightning-dir": "/home/bitcoin/.lightning/bitcoin"