ElementsProject / lightning

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

FAILED tests/test_bolt1-01-init.py::test_init - ConnectionResetError: [Errno 104] Connection reset by peer #5683

Closed TKChattoraj closed 1 year ago

TKChattoraj commented 2 years ago

I get the following error when doing make check VALGRIND=0 under the Ubuntu portion of install.md: FAILED tests/test_bolt1-01-init.py::test_init - ConnectionResetError: [Errno 104] Connection reset by peer.

Any help would be greatly appreciated.

OS is Pop!_OS 22.04 LTS (jammy).

Following the instructions, everything seems to be good until make check VALGRIND=0. I could provide the terminal commands and responses for everything, but that will make the issue exceed the maximum characters. The error seems to be related to lnprototest.runner, running, restarting and/or stopping c-lightning.

Immediately below is what results from make check VALGRIND=0

(cln-meta-project-TBc-oE_7-py3.10) (bit_env) tarun@pop-os:~/lightning$ make check VALGRIND=0
bitcoin/test/run-bitcoin_block_from_hex > /dev/null
bitcoin/test/run-secret_eq_consttime > /dev/null
bitcoin/test/run-tx-bitcoin_tx_2of2_input_witness_weight > /dev/null
bitcoin/test/run-tx-encode > /dev/null
common/test/run-amount > /dev/null
common/test/run-base64 > /dev/null
common/test/run-bigsize > /dev/null
common/test/run-blindedpath_enctlv > /dev/null
common/test/run-blindedpath_onion > /dev/null
common/test/run-bolt11 > /dev/null
common/test/run-bolt12_decode > /dev/null
common/test/run-bolt12_merkle > /dev/null
common/test/run-bolt12_merkle-json > /dev/null
common/test/run-bolt12_period > /dev/null
common/test/run-cryptomsg > /dev/null
common/test/run-derive_basepoints > /dev/null
common/test/run-features > /dev/null
common/test/run-gossmap_canned > /dev/null
common/test/run-gossmap-fp16 > /dev/null
common/test/run-gossmap_guess_node_id > /dev/null
common/test/run-gossmap_local > /dev/null
common/test/run-ip_port_parsing > /dev/null
common/test/run-json > /dev/null
do_json_tok_bitcoin_amount("0.00000001", 1): ok
do_json_tok_bitcoin_amount("0.00000007", 7): ok
do_json_tok_bitcoin_amount("0.00000008", 8): ok
do_json_tok_bitcoin_amount("0.00000010", 10): ok
do_json_tok_bitcoin_amount("0.12345678", 12345678): ok
do_json_tok_bitcoin_amount("0.01234567", 1234567): ok
do_json_tok_bitcoin_amount("123.45678900", 12345678900): ok
common/test/run-json_remove > /dev/null
common/test/run-json_scan > /dev/null
common/test/run-key_derive > /dev/null
common/test/run-lease_rates > /dev/null
common/test/run-param > /dev/null
common/test/run-psbt_diff > /dev/null
common/test/run-route_blinding_override_test > /dev/null
common/test/run-route_blinding_test > /dev/null
common/test/run-route > /dev/null
common/test/run-route-specific > /dev/null
common/test/run-softref > /dev/null
common/test/run-sphinx > /dev/null
common/test/run-sphinx-xor_cipher_stream > /dev/null
common/test/run-wireaddr > /dev/null
wire/test/run-peer-wire > /dev/null
wire/test/run-tlvstream > /dev/null
gossipd/test/run-check_channel_announcement > /dev/null
gossipd/test/run-check_node_announcement > /dev/null
gossipd/test/run-crc32_of_update > /dev/null
gossipd/test/run-extended-info > /dev/null
gossipd/test/run-next_block_range > /dev/null
gossipd/test/run-txout_failure > /dev/null
channeld/test/run-commit_tx > /dev/null
channeld/test/run-full_channel > /dev/null
onchaind/test/run-grind_feerate-bug > /dev/null
onchaind/test/run-grind_feerate > /dev/null
connectd/test/run-gossip_rcvd_filter > /dev/null
connectd/test/run-initiator-success > /dev/null
connectd/test/run-netaddress > /dev/null
connectd/test/run-onion_message > /dev/null
connectd/test/run-responder-success > /dev/null
connectd/test/run-websocket > /dev/null
wallet/test/run-db > /dev/null
wallet/test/run-wallet > /dev/null
lightningd/test/run-find_my_abspath > /dev/null
lightningd/test/run-invoice-select-inchan > /dev/null
lightningd/test/run-jsonrpc > /dev/null
lightningd/test/run-log-pruning > /dev/null
lightningd/test/run-shuffle_fds > /dev/null
cli/test/run-human-mode > /dev/null
cli/test/run-large-input > /dev/null
cli/test/run-remove-hint > /dev/null
tools/test/run-test-wire > /dev/null
plugins/bkpr/test/run-bkpr_db > /dev/null
plugins/bkpr/test/run-recorder > /dev/null
plugins/test/run-funder_policy > /dev/null
plugins/test/run-route-overlong > /dev/null
make DESTDIR=$(pwd)/testinstall install
make[1]: Entering directory '/home/tarun/lightning'
mkdir -p /home/tarun/lightning/testinstall/usr/local/bin
mkdir -p /home/tarun/lightning/testinstall/usr/local/libexec/c-lightning
mkdir -p /home/tarun/lightning/testinstall/usr/local/libexec/c-lightning/plugins
mkdir -p /home/tarun/lightning/testinstall/usr/local/share/man/man1
mkdir -p /home/tarun/lightning/testinstall/usr/local/share/man/man5
mkdir -p /home/tarun/lightning/testinstall/usr/local/share/man/man7
mkdir -p /home/tarun/lightning/testinstall/usr/local/share/man/man8
mkdir -p /home/tarun/lightning/testinstall/usr/local/share/doc/c-lightning
cp tools/hsmtool tools/lightning-hsmtool
install cli/lightning-cli lightningd/lightningd tools/lightning-hsmtool /home/tarun/lightning/testinstall/usr/local/bin
install lightningd/lightning_channeld lightningd/lightning_closingd lightningd/lightning_connectd lightningd/lightning_dualopend lightningd/lightning_gossipd lightningd/lightning_hsmd lightningd/lightning_onchaind lightningd/lightning_openingd lightningd/lightning_websocketd /home/tarun/lightning/testinstall/usr/local/libexec/c-lightning
[ -z "plugins/autoclean plugins/chanbackup plugins/bcli plugins/commando plugins/fetchinvoice plugins/funder plugins/topology plugins/keysend plugins/offers plugins/pay plugins/txprepare plugins/spenderp plugins/cln-grpc plugins/bookkeeper" ] || install plugins/autoclean plugins/chanbackup plugins/bcli plugins/commando plugins/fetchinvoice plugins/funder plugins/topology plugins/keysend plugins/offers plugins/pay plugins/txprepare plugins/spenderp plugins/cln-grpc plugins/bookkeeper /home/tarun/lightning/testinstall/usr/local/libexec/c-lightning/plugins
install -m 644 doc/lightning-cli.1 /home/tarun/lightning/testinstall/usr/local/share/man/man1
install -m 644 doc/lightningd-config.5 /home/tarun/lightning/testinstall/usr/local/share/man/man5
install -m 644 doc/lightning-addgossip.7 doc/lightning-autocleaninvoice.7 doc/lightning-bkpr-channelsapy.7 doc/lightning-bkpr-dumpincomecsv.7 doc/lightning-bkpr-inspect.7 doc/lightning-bkpr-listaccountevents.7 doc/lightning-bkpr-listbalances.7 doc/lightning-bkpr-listincome.7 doc/lightning-check.7 doc/lightning-checkmessage.7 doc/lightning-close.7 doc/lightning-connect.7 doc/lightning-commando.7 doc/lightning-commando-rune.7 doc/lightning-createonion.7 doc/lightning-createinvoice.7 doc/lightning-datastore.7 doc/lightning-decodepay.7 doc/lightning-decode.7 doc/lightning-deldatastore.7 doc/lightning-delexpiredinvoice.7 doc/lightning-delinvoice.7 doc/lightning-delpay.7 doc/lightning-disableoffer.7 doc/lightning-disconnect.7 doc/lightning-emergencyrecover.7 doc/lightning-feerates.7 doc/lightning-fetchinvoice.7 doc/lightning-fundchannel.7 doc/lightning-fundchannel_start.7 doc/lightning-fundchannel_complete.7 doc/lightning-fundchannel_cancel.7 doc/lightning-funderupdate.7 doc/lightning-fundpsbt.7 doc/lightning-getroute.7 doc/lightning-invoice.7 doc/lightning-keysend.7 doc/lightning-listchannels.7 doc/lightning-listdatastore.7 doc/lightning-listforwards.7 doc/lightning-listfunds.7 doc/lightning-listinvoices.7 doc/lightning-listoffers.7 doc/lightning-listpays.7 doc/lightning-listpeers.7 doc/lightning-listsendpays.7 doc/lightning-makesecret.7 doc/lightning-multifundchannel.7 doc/lightning-multiwithdraw.7 doc/lightning-newaddr.7 doc/lightning-notifications.7 doc/lightning-offer.7 doc/lightning-offerout.7 doc/lightning-openchannel_abort.7 doc/lightning-openchannel_bump.7 doc/lightning-openchannel_init.7 doc/lightning-openchannel_signed.7 doc/lightning-openchannel_update.7 doc/lightning-pay.7 doc/lightning-parsefeerate.7 doc/lightning-plugin.7 doc/lightning-recoverchannel.7 doc/lightning-reserveinputs.7 doc/lightning-sendinvoice.7 doc/lightning-sendonion.7 doc/lightning-sendonionmessage.7 doc/lightning-sendpay.7 doc/lightning-setchannel.7 doc/lightning-setchannelfee.7 doc/lightning-sendcustommsg.7 doc/lightning-signmessage.7 doc/lightning-staticbackup.7 doc/lightning-txprepare.7 doc/lightning-txdiscard.7 doc/lightning-txsend.7 doc/lightning-unreserveinputs.7 doc/lightning-utxopsbt.7 doc/lightning-waitinvoice.7 doc/lightning-waitanyinvoice.7 doc/lightning-waitblockheight.7 doc/lightning-waitsendpay.7 doc/lightning-withdraw.7 doc/lightning-ping.7 doc/lightning-stop.7 doc/lightning-signpsbt.7 doc/lightning-sendpsbt.7 doc/lightning-getinfo.7 doc/lightning-listtransactions.7 doc/lightning-listnodes.7 doc/lightning-listconfigs.7 doc/lightning-help.7 doc/lightning-getlog.7 /home/tarun/lightning/testinstall/usr/local/share/man/man7
install -m 644 doc/lightningd.8 doc/lightning-hsmtool.8 /home/tarun/lightning/testinstall/usr/local/share/man/man8
install -m 644 README.md doc/INSTALL.md doc/HACKING.md LICENSE /home/tarun/lightning/testinstall/usr/local/share/doc/c-lightning
make[1]: Leaving directory '/home/tarun/lightning'
testinstall/usr/local/bin/lightningd --test-daemons-only --lightning-dir=testinstall
make DESTDIR=$(pwd)/testinstall uninstall
make[1]: Entering directory '/home/tarun/lightning'
rm -f /home/tarun/lightning/testinstall/usr/local/bin/lightning-cli
rm -f /home/tarun/lightning/testinstall/usr/local/bin/lightningd
rm -f /home/tarun/lightning/testinstall/usr/local/bin/lightning-hsmtool
rm -f /home/tarun/lightning/testinstall/usr/local/libexec/c-lightning/plugins/autoclean
rm -f /home/tarun/lightning/testinstall/usr/local/libexec/c-lightning/plugins/chanbackup
rm -f /home/tarun/lightning/testinstall/usr/local/libexec/c-lightning/plugins/bcli
rm -f /home/tarun/lightning/testinstall/usr/local/libexec/c-lightning/plugins/commando
rm -f /home/tarun/lightning/testinstall/usr/local/libexec/c-lightning/plugins/fetchinvoice
rm -f /home/tarun/lightning/testinstall/usr/local/libexec/c-lightning/plugins/funder
rm -f /home/tarun/lightning/testinstall/usr/local/libexec/c-lightning/plugins/topology
rm -f /home/tarun/lightning/testinstall/usr/local/libexec/c-lightning/plugins/keysend
rm -f /home/tarun/lightning/testinstall/usr/local/libexec/c-lightning/plugins/offers
rm -f /home/tarun/lightning/testinstall/usr/local/libexec/c-lightning/plugins/pay
rm -f /home/tarun/lightning/testinstall/usr/local/libexec/c-lightning/plugins/txprepare
rm -f /home/tarun/lightning/testinstall/usr/local/libexec/c-lightning/plugins/spenderp
rm -f /home/tarun/lightning/testinstall/usr/local/libexec/c-lightning/plugins/cln-grpc
rm -f /home/tarun/lightning/testinstall/usr/local/libexec/c-lightning/plugins/bookkeeper
rm -f /home/tarun/lightning/testinstall/usr/local/libexec/c-lightning/lightning_channeld
rm -f /home/tarun/lightning/testinstall/usr/local/libexec/c-lightning/lightning_closingd
rm -f /home/tarun/lightning/testinstall/usr/local/libexec/c-lightning/lightning_connectd
rm -f /home/tarun/lightning/testinstall/usr/local/libexec/c-lightning/lightning_dualopend
rm -f /home/tarun/lightning/testinstall/usr/local/libexec/c-lightning/lightning_gossipd
rm -f /home/tarun/lightning/testinstall/usr/local/libexec/c-lightning/lightning_hsmd
rm -f /home/tarun/lightning/testinstall/usr/local/libexec/c-lightning/lightning_onchaind
rm -f /home/tarun/lightning/testinstall/usr/local/libexec/c-lightning/lightning_openingd
rm -f /home/tarun/lightning/testinstall/usr/local/libexec/c-lightning/lightning_websocketd
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man1/lightning-cli.1
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man5/lightningd-config.5
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-addgossip.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-autocleaninvoice.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-bkpr-channelsapy.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-bkpr-dumpincomecsv.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-bkpr-inspect.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-bkpr-listaccountevents.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-bkpr-listbalances.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-bkpr-listincome.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-check.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-checkmessage.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-close.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-connect.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-commando.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-commando-rune.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-createonion.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-createinvoice.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-datastore.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-decodepay.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-decode.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-deldatastore.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-delexpiredinvoice.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-delinvoice.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-delpay.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-disableoffer.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-disconnect.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-emergencyrecover.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-feerates.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-fetchinvoice.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-fundchannel.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-fundchannel_start.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-fundchannel_complete.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-fundchannel_cancel.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-funderupdate.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-fundpsbt.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-getroute.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-invoice.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-keysend.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-listchannels.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-listdatastore.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-listforwards.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-listfunds.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-listinvoices.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-listoffers.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-listpays.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-listpeers.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-listsendpays.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-makesecret.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-multifundchannel.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-multiwithdraw.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-newaddr.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-notifications.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-offer.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-offerout.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-openchannel_abort.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-openchannel_bump.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-openchannel_init.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-openchannel_signed.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-openchannel_update.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-pay.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-parsefeerate.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-plugin.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-recoverchannel.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-reserveinputs.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-sendinvoice.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-sendonion.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-sendonionmessage.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-sendpay.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-setchannel.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-setchannelfee.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-sendcustommsg.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-signmessage.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-staticbackup.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-txprepare.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-txdiscard.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-txsend.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-unreserveinputs.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-utxopsbt.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-waitinvoice.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-waitanyinvoice.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-waitblockheight.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-waitsendpay.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-withdraw.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-ping.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-stop.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-signpsbt.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-sendpsbt.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-getinfo.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-listtransactions.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-listnodes.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-listconfigs.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-help.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man7/lightning-getlog.7
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man8/lightningd.8
rm -f /home/tarun/lightning/testinstall/usr/local/share/man/man8/lightning-hsmtool.8
rm -f /home/tarun/lightning/testinstall/usr/local/share/doc/c-lightning/README.md
rm -f /home/tarun/lightning/testinstall/usr/local/share/doc/c-lightning/INSTALL.md
rm -f /home/tarun/lightning/testinstall/usr/local/share/doc/c-lightning/HACKING.md
rm -f /home/tarun/lightning/testinstall/usr/local/share/doc/c-lightning/LICENSE
make[1]: Leaving directory '/home/tarun/lightning'
==================================================== test session starts =====================================================
platform linux -- Python 3.10.6, pytest-7.1.3, pluggy-1.0.0 -- /home/tarun/.cache/pypoetry/virtualenvs/cln-meta-project-TBc-oE_7-py3.10/bin/python3
cachedir: .pytest_cache
rootdir: /home/tarun/lightning/external/lnprototest
plugins: flaky-3.7.0, forked-1.4.0, timeout-2.1.0, xdist-2.5.0, test-groups-1.0.3, custom-exit-code-0.3.0
collected 27 items                                                                                                           

tests/test_bolt1-01-init.py::test_namespace_override PASSED                                                            [  3%]
tests/test_bolt1-01-init.py::test_init FAILED                                                                          [  7%]

========================================================== FAILURES ==========================================================
_________________________________________________________ test_init __________________________________________________________

runner = <lnprototest.clightning.clightning.Runner object at 0x7fb3e21da2c0>
namespaceoverride = <function namespaceoverride.<locals>._setter at 0x7fb3e21dcca0>

    def test_init(runner: Runner, namespaceoverride: Any) -> None:
        # We override default namespace since we only need BOLT1
        namespaceoverride(pyln.spec.bolt1.namespace)
        test = [
            Connect(connprivkey="03"),
            ExpectMsg("init"),
            Msg("init", globalfeatures="", features=""),
            # optionally disconnect that first one
            TryAll([], Disconnect()),
            Connect(connprivkey="02"),
            TryAll(
                # Even if we don't send anything, it should send init.
                [ExpectMsg("init")],
                # Minimal possible init message.
                # BOLT #1:
                # The sending node:
                #  - MUST send `init` as the first Lightning message for any connection.
                [ExpectMsg("init"), Msg("init", globalfeatures="", features="")],
                # BOLT #1:
                # The sending node:...
                #  - SHOULD NOT set features greater than 13 in `globalfeatures`.
                [
                    ExpectMsg("init", if_match=no_gf13),
                    # BOLT #1:
                    # The receiving node:...
                    #  - upon receiving unknown _odd_ feature bits that are non-zero:
                    #    - MUST ignore the bit.
                    # init msg with unknown odd global bit (99): no error
                    Msg("init", globalfeatures=bitfield(99), features=""),
                ],
                # Sanity check that bits 98 and 99 are not used!
                [
                    ExpectMsg("init", if_match=functools.partial(no_feature, [98, 99])),
                    # BOLT #1:
                    # The receiving node:...
                    #  - upon receiving unknown _odd_ feature bits that are non-zero:
                    #    - MUST ignore the bit.
                    # init msg with unknown odd local bit (99): no error
                    Msg("init", globalfeatures="", features=bitfield(99)),
                ],
                # BOLT #1:
                # The receiving node: ...
                #  - upon receiving unknown _even_ feature bits that are non-zero:
                #    - MUST fail the connection.
                [
                    ExpectMsg("init"),
                    Msg("init", globalfeatures="", features=bitfield(98)),
                    ExpectError(),
                ],
                # init msg with unknown even global bit (98): you will error
                [
                    ExpectMsg("init"),
                    Msg("init", globalfeatures=bitfield(98), features=""),
                    ExpectError(),
                ],
                # If you don't support `option_data_loss_protect`, you will be ok if
                # we ask for it.
                Sequence(
                    [
                        ExpectMsg("init", if_match=functools.partial(no_feature, [0, 1])),
                        Msg("init", globalfeatures="", features=bitfield(1)),
                    ],
                    enable=not runner.has_option("option_data_loss_protect"),
                ),
                # If you don't support `option_data_loss_protect`, you will error if
                # we require it.
                Sequence(
                    [
                        ExpectMsg("init", if_match=functools.partial(no_feature, [0, 1])),
                        Msg("init", globalfeatures="", features=bitfield(0)),
                        ExpectError(),
                    ],
                    enable=not runner.has_option("option_data_loss_protect"),
                ),
                # If you support `option_data_loss_protect`, you will advertize it odd.
                Sequence(
                    [ExpectMsg("init", if_match=functools.partial(has_feature, [1]))],
                    enable=(runner.has_option("option_data_loss_protect") == "odd"),
                ),
                # If you require `option_data_loss_protect`, you will advertize it even.
                Sequence(
                    [ExpectMsg("init", if_match=functools.partial(has_feature, [0]))],
                    enable=(runner.has_option("option_data_loss_protect") == "even"),
                ),
                # If you don't support `option_anchor_outputs`, you will be ok if
                # we ask for it.
                Sequence(
                    [
                        ExpectMsg("init", if_match=functools.partial(no_feature, [20, 21])),
                        Msg("init", globalfeatures="", features=bitfield(21)),
                    ],
                    enable=not runner.has_option("option_anchor_outputs"),
                ),
                # If you don't support `option_anchor_outputs`, you will error if
                # we require it.
                Sequence(
                    [
                        ExpectMsg("init", if_match=functools.partial(no_feature, [20, 21])),
                        Msg("init", globalfeatures="", features=bitfield(20)),
                        ExpectError(),
                    ],
                    enable=not runner.has_option("option_anchor_outputs"),
                ),
                # If you support `option_anchor_outputs`, you will advertize it odd.
                Sequence(
                    [ExpectMsg("init", if_match=functools.partial(has_feature, [21]))],
                    enable=(runner.has_option("option_anchor_outputs") == "odd"),
                ),
                # If you require `option_anchor_outputs`, you will advertize it even.
                Sequence(
                    [ExpectMsg("init", if_match=functools.partial(has_feature, [20]))],
                    enable=(runner.has_option("option_anchor_outputs") == "even"),
                ),
                # BOLT-a12da24dd0102c170365124782b46d9710950ac1 #9:
                # | Bits  | Name                    | ... | Dependencies
                # ...
                # | 12/13 | `option_static_remotekey` |
                # ...
                # | 20/21 | `option_anchor_outputs` | ... | `option_static_remotekey` |
                # If you support `option_anchor_outputs`, you will
                # advertize option_static_remotekey.
                Sequence(
                    [
                        ExpectMsg(
                            "init", if_match=functools.partial(has_one_feature, [12, 13])
                        )
                    ],
                    enable=(runner.has_option("option_anchor_outputs") is not None),
                ),
                # You should always handle us echoing your own features back!
                [ExpectMsg("init"), Msg("init", globalfeatures=rcvd(), features=rcvd())],
            ),
        ]

>       runner.run(test)

tests/test_bolt1-01-init.py:214: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
lnprototest/runner.py:107: in run
    self.post_check(sequence)
lnprototest/runner.py:94: in post_check
    self.disconnect(sequence, self.conns[conn_name])
lnprototest/runner.py:82: in disconnect
    self.check_final_error(event, conn, conn.expected_error, conn.must_not_events)
lnprototest/clightning/clightning.py:424: in check_final_error
    binmsg = self.get_output_message(conn, event)
lnprototest/clightning/clightning.py:400: in get_output_message
    return fut.result(timeout)
/usr/lib/python3.10/concurrent/futures/_base.py:458: in result
    return self.__get_result()
/usr/lib/python3.10/concurrent/futures/_base.py:403: in __get_result
    raise self._exception
/usr/lib/python3.10/concurrent/futures/thread.py:58: in run
    result = self.fn(*self.args, **self.kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pyln.proto.wire.LightningConnection object at 0x7fb3e2c3a9e0>

    def read_message(self):
        with self.recv_lock:
>           lc = self.connection.recv(18)
E           ConnectionResetError: [Errno 104] Connection reset by peer

../../contrib/pyln-proto/pyln/proto/wire.py:229: ConnectionResetError
---------------------------------------------------- Captured stdout call ----------------------------------------------------
# running Sequence:runner.py:103:
# running Connect:test_bolt1-01-init.py:84:
# running ExpectMsg:test_bolt1-01-init.py:85:
# running Msg:test_bolt1-01-init.py:86:
# running TryAll:test_bolt1-01-init.py:88:
# running Sequence:structure.py:219:
# running Connect:test_bolt1-01-init.py:89:
# running TryAll:test_bolt1-01-init.py:90:
# running Sequence:structure.py:219:
# running ExpectMsg:test_bolt1-01-init.py:92:
# running Sequence:runner.py:103:
# running Connect:test_bolt1-01-init.py:84:
# running ExpectMsg:test_bolt1-01-init.py:85:
# running Msg:test_bolt1-01-init.py:86:
# running TryAll:test_bolt1-01-init.py:88:
# running Sequence:structure.py:219:
# running Disconnect:test_bolt1-01-init.py:88:
# running Connect:test_bolt1-01-init.py:89:
# running TryAll:test_bolt1-01-init.py:90:
# running Sequence:structure.py:219:
# running ExpectMsg:test_bolt1-01-init.py:97:
# running Msg:test_bolt1-01-init.py:97:
# running Sequence:runner.py:103:
# running Connect:test_bolt1-01-init.py:84:
# running ExpectMsg:test_bolt1-01-init.py:85:
# running Msg:test_bolt1-01-init.py:86:
# running TryAll:test_bolt1-01-init.py:88:
# running Sequence:structure.py:219:
# running Connect:test_bolt1-01-init.py:89:
# running TryAll:test_bolt1-01-init.py:90:
# running Sequence:structure.py:219:
# running ExpectMsg:test_bolt1-01-init.py:102:
# running Msg:test_bolt1-01-init.py:108:
# running Sequence:runner.py:103:
# running Connect:test_bolt1-01-init.py:84:
# running ExpectMsg:test_bolt1-01-init.py:85:
# running Msg:test_bolt1-01-init.py:86:
# running TryAll:test_bolt1-01-init.py:88:
# running Sequence:structure.py:219:
# running Connect:test_bolt1-01-init.py:89:
# running TryAll:test_bolt1-01-init.py:90:
# running Sequence:structure.py:219:
# running ExpectMsg:test_bolt1-01-init.py:112:
# running Msg:test_bolt1-01-init.py:118:
# running Sequence:runner.py:103:
# running Connect:test_bolt1-01-init.py:84:
# running ExpectMsg:test_bolt1-01-init.py:85:
# running Msg:test_bolt1-01-init.py:86:
# running TryAll:test_bolt1-01-init.py:88:
# running Sequence:structure.py:219:
# running Connect:test_bolt1-01-init.py:89:
# running TryAll:test_bolt1-01-init.py:90:
# running Sequence:structure.py:219:
# running ExpectMsg:test_bolt1-01-init.py:125:
# running Msg:test_bolt1-01-init.py:126:
# running ExpectError:test_bolt1-01-init.py:127:
# running Sequence:runner.py:103:
# running Connect:test_bolt1-01-init.py:84:
# running ExpectMsg:test_bolt1-01-init.py:85:
# running Msg:test_bolt1-01-init.py:86:
# running TryAll:test_bolt1-01-init.py:88:
# running Sequence:structure.py:219:
# running Connect:test_bolt1-01-init.py:89:
# running TryAll:test_bolt1-01-init.py:90:
# running Sequence:structure.py:219:
# running ExpectMsg:test_bolt1-01-init.py:131:
# running Msg:test_bolt1-01-init.py:132:
# running ExpectError:test_bolt1-01-init.py:133:
# running Sequence:runner.py:103:
# running Connect:test_bolt1-01-init.py:84:
# running ExpectMsg:test_bolt1-01-init.py:85:
# running Msg:test_bolt1-01-init.py:86:
# running TryAll:test_bolt1-01-init.py:88:
# running Sequence:structure.py:219:
# running Connect:test_bolt1-01-init.py:89:
# running TryAll:test_bolt1-01-init.py:90:
# running Sequence:test_bolt1-01-init.py:155:
# running ExpectMsg:test_bolt1-01-init.py:156:
# running Sequence:runner.py:103:
# running Connect:test_bolt1-01-init.py:84:
# running ExpectMsg:test_bolt1-01-init.py:85:
# running Msg:test_bolt1-01-init.py:86:
# running TryAll:test_bolt1-01-init.py:88:
# running Sequence:structure.py:219:
# running Connect:test_bolt1-01-init.py:89:
# running TryAll:test_bolt1-01-init.py:90:
# running Sequence:test_bolt1-01-init.py:166:
# running ExpectMsg:test_bolt1-01-init.py:168:
# running Msg:test_bolt1-01-init.py:169:
---------------------------------------------------- Captured stderr call ----------------------------------------------------
DEBUG:lnprototest.runner:RUN Bitcoind
DEBUG:lnprototest.runner:RUN c-lightning
DEBUG:lnprototest.runner:[RESTART]
DEBUG:lnprototest.runner:[STOP]
DEBUG:lnprototest.runner:[START]
DEBUG:lnprototest.runner:RUN c-lightning
DEBUG:lnprototest.runner:[RESTART]
DEBUG:lnprototest.runner:[STOP]
DEBUG:lnprototest.runner:[START]
DEBUG:lnprototest.runner:RUN c-lightning
DEBUG:lnprototest.runner:[RESTART]
DEBUG:lnprototest.runner:[STOP]
DEBUG:lnprototest.runner:[START]
DEBUG:lnprototest.runner:RUN c-lightning
DEBUG:lnprototest.runner:[RESTART]
DEBUG:lnprototest.runner:[STOP]
DEBUG:lnprototest.runner:[START]
DEBUG:lnprototest.runner:RUN c-lightning
DEBUG:lnprototest.runner:[RESTART]
DEBUG:lnprototest.runner:[STOP]
DEBUG:lnprototest.runner:[START]
DEBUG:lnprototest.runner:RUN c-lightning
DEBUG:lnprototest.runner:[RESTART]
DEBUG:lnprototest.runner:[STOP]
DEBUG:lnprototest.runner:[START]
DEBUG:lnprototest.runner:RUN c-lightning
DEBUG:lnprototest.runner:[RESTART]
DEBUG:lnprototest.runner:[STOP]
DEBUG:lnprototest.runner:[START]
DEBUG:lnprototest.runner:RUN c-lightning
================================================== short test summary info ===================================================
FAILED tests/test_bolt1-01-init.py::test_init - ConnectionResetError: [Errno 104] Connection reset by peer
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
================================================ 1 failed, 1 passed in 24.25s ================================================
make: *** [Makefile:458: check-protos] Error 1
vincenzopalazzo commented 2 years ago

I think this should be resolved to https://github.com/rustyrussell/lnprototest/issues/66

instagibbs commented 1 year ago

Having the same issue.

vincenzopalazzo commented 1 year ago

working on a patch https://github.com/rustyrussell/lnprototest/pull/68 @instagibbs