Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal signal 11 received when connecting to node #508

Closed
2pac1 opened this issue Jan 3, 2018 · 34 comments
Closed

Fatal signal 11 received when connecting to node #508

2pac1 opened this issue Jan 3, 2018 · 34 comments
Assignees

Comments

@2pac1
Copy link

2pac1 commented Jan 3, 2018

Hello guys,

I am following this guide for LN for mainnet: https://interfect.github.io/#!/posts/009-Ride-the-Lightning.md
And I had it working and was able to connect to a yalls mainnet node, and after that I was changing password for /scratch/bitcoin/mainnet/bitcoind/bitcoin.conf and tomorrow it didnt want to work.
I reverted the pass to default one, and even deleted the file (and it got recreated after that).
I am getting Fatal signal 11 when trying to connect. And I do not any other mainnet not to try.

These are the logs.

What is going on and how do I solve this, as It was able to connect to yalls node before.
Thank you.

root@ubuntu-32gb-lon1-01:~# docker run --rm --name lightning --network container:bitcoind_mainnet -v /scratch/bitcoin/mainnet/bitcoind:/root/.bitcoin -v /scratch/bitcoin/mainnet/clightning:/root/.lightning --entrypoint /usr/bin/lightningd cdecker/lightningd:master --network=bitcoin --log-level=debug
lightningd(1): Warning: forever-confirms of 10 is less than 100!
lightningd(1): testing /usr/bin/lightningd
lightningd(1): testing /usr/bin/lightningd_channel
lightningd(1): testing /usr/bin/lightningd_closing
lightningd(1): testing /usr/bin/lightningd_gossip
lightningd(1): testing /usr/bin/lightningd_handshake
lightningd(1): testing /usr/bin/lightningd_hsm
lightningd(1): testing /usr/bin/lightningd_opening
lightningd(1): Hello world from v0.5.2-2016-11-21-820-g5db4e11!
lightningd(1): HSM TRACE: Control: type WIRE_HSMCTL_INIT len 3
lightningd_gossip(15): pid 15, msgfd 12
lightningd(1): Adding block ee2460afa6831978e2f904887d8d12c443447961096877000000000000000000
lightningd_gossip(15): TRACE: req: type WIRE_GOSSIPCTL_INIT len 38
lightningd(1): Ignoring chaintip 0000000000000000000a7410239f8b13c41071a2e7032fdfb1876fa18a562256 status headers-only
lightningd(1): Ignoring chaintip 000000000000000001416af072f8989829f4c60a1a9658e1cec08411798e4ffa status headers-only
lightningd(1): Adding block f66f73a82f72b7590dd1d174901cf7b32d993c2b974f4d000000000000000000
lightningd(1): Adding block 3c89fceea097f395e8cbf1e6500151c48cde74aa92f47a000000000000000000
lightningd(1): Adding block 74772aac43363dc57cf102aff617eb9276b47f8d91d710000000000000000000
lightningd(1): Adding block 045dfb941f4d6f1a129b4998265bdf296a0edcd2865e4d000000000000000000
lightningd(1): Adding block 844d6b28417329be422af555451bdf41c5ede2c1c0d429000000000000000000
lightningd(1): Adding block 1ccf283cfabca576a0b72d11740ef468fb8afc212c3056000000000000000000
lightningd(1): Adding block 9bd652d5f89b31395b5b218e0a2fbdf42bc055009ac842000000000000000000
lightningd(1): Adding block 2281a06778fb68718e130de87d39a726356ee356c42f5d000000000000000000
lightningd(1): Adding block d7590976b70732e8cc46b79c74fec3da3cf3b3e1ce405a000000000000000000
lightningd(1): Adding block 25cd118a66acee711abb748f3fee4911f8c2d6ff0e797e000000000000000000
lightningd(1): Adding block 7606b2a6fc41b0862b451f918045d7ecfdd92948bf0650000000000000000000
lightningd(1): Adding block 550dd69e05db6cf007a77f9a35f723f172780a436fe47c000000000000000000
lightningd(1): Adding block 14024caf5006417a5bed144ebb8400acce9308c61e0e66000000000000000000
lightningd(1): Adding block 9761968bd84d3ad7dc0b57b53d45760b69d5d7c7689755000000000000000000
lightningd(1): Adding block 003ac9634944972d885e7cbb3baf16cf0e0a3885212517000000000000000000
lightningd(1): Adding block 2b05402b2b0a80eea2dad26f22265c89cb32e7da956532000000000000000000
lightningd(1): Adding block 1694fe200c67343aeeb5f1b869605bb0c21df954dcda84000000000000000000
lightningd(1): Adding block 7ad81ff1b06c6cbf646b01bab0e41294b8f0e713bc6a54000000000000000000
lightningd(1): Adding block 39f40ab8dced45df6d6d0a10c47568833cec62982e3884000000000000000000
lightningd(1): Adding block 80437aecc4110bbc64048e1520b4a689add48dd4d8008d000000000000000000
lightningd(1): Adding block a27416a449e9cd10f5175d19e8f5a7cc83634d96d50a65000000000000000000
lightningd(1): Adding block 117a5813c103b385340912c1c1d5ca7ec49f3d59102978000000000000000000
lightningd(1): Adding block e17d31dcc7a2c2e7825b1ff18de1b0ff8ad7ef0c95895d000000000000000000
lightningd(1): Adding block deacab06477d75b8bb6bee6a0979fe8dfda662647eef52000000000000000000
lightningd(1): Adding block ad65bc66472168a2eb336a07a33f07b91cd426ec179767000000000000000000
lightningd(1): Adding block cb42e79696aac0b09331365c9459fca08b38ebedccd540000000000000000000
lightningd(1): Adding block 1d2cda68789209c4e4b90fe06ca577dc2c101302b32052000000000000000000
lightningd(1): Adding block f02168fd8b5831757623fc5b3169504c112c638c82ee2f000000000000000000
lightningd(1): Adding block 4a164e796a3a10d95f04175485595db15311bd9b77e48d000000000000000000
lightningd(1): Adding block aa47586ff93504bf12fa3e9e88f34873f0cb3802523a15000000000000000000
lightningd(1): Adding block 0045604be15930812566352922229e2bfb058e0c54f72b000000000000000000
lightningd(1): Adding block 61cc8da0459e4b0d6bf4ebb897d725b83bec97ebbf2f35000000000000000000
lightningd(1): Adding block f0f66f1d78e2a0b4eb93bef60be49503c8742e5c83a460000000000000000000
lightningd(1): Adding block f646901c25606c9fa61432e1e9dfd87cad6cb162772c90000000000000000000
lightningd(1): Adding block f1fa87e6a51a7d8d60ced38b27295caa2c0300ad09c259000000000000000000
lightningd(1): Adding block f19b97d30bf9d7661edda0179ea0f5369ed22117e2f801000000000000000000
lightningd(1): Adding block 807fa2b1dd80ce38d870f04fe19ae4bc63068c408d9983000000000000000000
lightningd(1): Adding block 599420a96daaa016fd43df23d98cb093f24c61974d148e000000000000000000
lightningd(1): Adding block 8ae3d8352f6ca1317e79b3fe717193dd28689ff062b606000000000000000000
lightningd(1): Adding block 5fdcac651786bb536a363b9a60e219281645fd1ab82b55000000000000000000
lightningd(1): Adding block 83760ef5dae6e0dcbdf5fa12b20672aba4734573d3ea28000000000000000000
lightningd(1): Adding block 26a4ff7ed3905922429baae2a9f77f7c491bd1146c0b88000000000000000000
lightningd(1): Adding block 9639964c9a9e1a1a5cd6147d70c208974f32e677a9d400000000000000000000
lightningd(1): Adding block 80efc76551a6b1783d9876c1cd81181722036160ee3573000000000000000000
lightningd(1): Adding block 6074e873d2b78c1b4a8dfc45840d5055bc5de8a1097c2d000000000000000000
lightningd(1): Adding block 57b141c13b48c4b1465fd4c45d6b9b1beb5b3565270c6d000000000000000000
lightningd(1): Adding block b7b3a40d524071ec2eaaffa194334e257a8d1b2f94be84000000000000000000
lightningd(1): Adding block 3e3cfbe60bf3aec8ba9f393585139bf382c4ea7e24de49000000000000000000
lightningd(1): Adding block 085c24e25265ea857a7cd67427dd3b6efa6d6c21b14513000000000000000000
lightningd(1): Adding block 340c2a6ee295ef28299211dd8fe98890da41a3a3567d2d000000000000000000
lightningd(1): Adding block 16a4bbc72e9b0ba909f86536e1de7d5e0ddcb0c243e22a000000000000000000
lightningd(1): Adding block 53a66263e302c8828d163c3cc23bf006b15073eb3dce13000000000000000000
lightningd(1): Adding block 8c548f80c2beb7466f522d5bb0b319225dccdd6c77d007000000000000000000
lightningd(1): Adding block 55ef295e770d4a9fa9b63dc6b7bbd9a70a686177f3443f000000000000000000
lightningd(1): Adding block 51a75dac5f54c84136db5725a78666950c4c4e2f1b078c000000000000000000
lightningd(1): Adding block 62cdc1a3e18d88b0ca4eef017799b8455d7e24f152c227000000000000000000
lightningd(1): Adding block eece0df1d12e48778ed3c78373527049512a04ceb2f21b000000000000000000
lightningd(1): Adding block d2b89fccba419c626b23eab63d8d77cfd502da768ecf8e000000000000000000
lightningd(1): Adding block 3fc244d00f39b78a2f48f38707c34d25af1db168e90c91000000000000000000
lightningd(1): Adding block c04a14a9889ba8cf534d38ed34682fbdfa95979fdc3f1d000000000000000000
lightningd(1): Adding block fc72ae4f6468704320143d1bbb965f549c108148ee3a3b000000000000000000
lightningd(1): Adding block ef62845e2398229479b3521a31ba7181df87beca354d03000000000000000000
lightningd(1): Adding block ffad1effe5ba3d323e17d608f03874e84a487ebfd82a1b000000000000000000
lightningd(1): Adding block 17fb52a64c17dbe2c2a93a21501bc5570d9857afc0ba19000000000000000000
lightningd(1): Adding block aca73dc271d63ee0cf45c891b97de56b0b3269375e808b000000000000000000
lightningd(1): Adding block 2c9849e62484613cc50c6844a182c7e8e6b6bb3ea0683c000000000000000000
lightningd(1): Adding block eede4edf4f44cecdfc1dc9ea172225bae77e1b66bf0550000000000000000000
lightningd(1): Adding block 448ce370d5e7cf4d5ae71e29f6694869e6478a61d4cd7a000000000000000000
lightningd(1): Adding block f872a17e0344811019061df85914c31639a9d62cdc5644000000000000000000
lightningd(1): Adding block fe1b6debedd48997b295265d82e02ed5f0abdb675e0e22000000000000000000
lightningd(1): Adding block e141a6ffef9081dd0ee2b7bfe3bb5cc6a8b45f9580576f000000000000000000
lightningd(1): Adding block 99926c848c675052aa822767bef930934435ac37851b73000000000000000000
lightningd(1): Adding block 65d73276619c76f587bf319832c262549017926e70a02a000000000000000000
lightningd(1): Adding block 3678ef6dd1561ece78c6ebcefd19eebafacfb868f18b6d000000000000000000
lightningd(1): Adding block a9f4a700ad0042d6d0c91dfe1802802e160c4c97f1db47000000000000000000
lightningd(1): Adding block fa2b3320922f160468fb640b05f2613c29c398f1086f11000000000000000000
lightningd(1): Adding block 590919ae47aadb96e85aedf139c3da94c843d2a1231e81000000000000000000
lightningd(1): Adding block 6650c33ecf0b606c5ec1ec4da853d331388c42371d7617000000000000000000
lightningd(1): Adding block c7c07f022f30774cef5173d8d37b2749ba8dc295bc500f000000000000000000
lightningd(1): Adding block 4e482816d473024b16e6adfcef508761b4159cb73a9370000000000000000000
lightningd(1): Adding block b534b26ab700472edb07ee9838c40600b90292dff47e67000000000000000000
lightningd(1): Adding block 8d0a061fbc900d0d6b6f879207deef7b387dc400604f69000000000000000000
lightningd(1): Adding block 7fbfa4e4fd29a83ae3dfc6a626cc6e7fe1e0499437dd2d000000000000000000
lightningd(1): Adding block 5cacf3c23303800f4d08b4612e41752a9fd890d7a58116000000000000000000
lightningd(1): Adding block 5207bfbde148dc067170099309b1ea605bd1201b75cb34000000000000000000
lightningd(1): Adding block 95e954d184dca45459e3182c9fa5600b0b5bb3e556f340000000000000000000
lightningd(1): Adding block 966e863e2914f14597d07e96093600f84caaa602ab9769000000000000000000
lightningd(1): Adding block 61f932c24cf187941e2d556ae460f9004524a552a4f080000000000000000000
lightningd(1): Adding block 306e98cc8da309e34efbc3f1b742f6b7fe8593ea71ec8d000000000000000000
lightningd(1): Adding block 29a899bbc10501566106a73fb1a2c25faefa6fa2838750000000000000000000
lightningd(1): Adding block de5221368263e5c6788e90fa46c3091b5d9957985bfd5c000000000000000000
lightningd(1): Adding block 708afd695569f03d2e8ff5477dda55fa402e09ebe14c1c000000000000000000
lightningd(1): Adding block d101ac8837c80e959eab827cf763a1e83cb7d533486642000000000000000000
lightningd(1): Adding block 9fa7a4a5dff7023875d1ee70e18a65b830dc0973f43617000000000000000000
lightningd(1): Adding block 8a9bf7040f5922561ec19522a63232fb5988e75ae75473000000000000000000
lightningd(1): Adding block b912ef0bb26856af5a1d9b688ce909dc71b52faaeff752000000000000000000
lightningd(1): Adding block e16aebc924c1b8e01f74a907af6094eb2da7f412193d72000000000000000000
lightningd(1): Adding block 40792ae287ffc4168b2ead024daff7c8a10bf11e83c23c000000000000000000
lightningd(1): Adding block 749cad62442ac4fa9b2f1890b13229310f78bb1f557c71000000000000000000
lightningd(1): Adding block 4996afa24e71fe793c16cbbb27824ee674c449c3b61c51000000000000000000
lightningd(1): Loaded 11 channels from DB
lightningd(1): Creating IPv6 listener on port 9735
lightningd(1): Failed to bind on 2 socket: Address already in use
lightningd(1): Feerate 418796 (was 0)
lightningd(1): Ignoring chaintip 0000000000000000000a7410239f8b13c41071a2e7032fdfb1876fa18a562256 status headers-only
lightningd(1): Ignoring chaintip 000000000000000001416af072f8989829f4c60a1a9658e1cec08411798e4ffa status headers-only
lightningd(1): Connected json input
lightningd(1): HSM TRACE: Control: type WIRE_HSMCTL_HSMFD_ECDH len 10
lightningd_handshake(123): pid 123, msgfd 18
lightningd_handshake(123): TRACE: # ck=2640f52eebcd9e882958951c794250eedb28002c05d7dc2ea0f195406042caf1
lightningd_handshake(123): TRACE: # h=036e263df62ac561559a4baec900183a3b1d098327f58b13c19f06ee59c9a5b7
lightningd_handshake(123): UPDATE WIRE_INITR_ACT_ONE
lightningd_handshake(123): TRACE: e.priv: 0xd082f2c09d993978fab74a01cc8ac7c4a60e406559f4dff1d4076726cc9927e5
lightningd_handshake(123): TRACE: e.pub: 0x0351c3d7ac3e3ab2b54b5b1fdf9728eb874d4146d3e81cd7432d661bf269b0237a
lightningd_handshake(123): TRACE: # h=0x6a81ae4f9371f9f0891620461eb34ac968ac3237290975a349d51ab51584a22d
lightningd_handshake(123): TRACE: # ss=0xc7c80806935257277ccabc439a7df559436b4fb5faa51791ca1f1531387922d2
lightningd_handshake(123): TRACE: # HKDF(0x2640f52eebcd9e882958951c794250eedb28002c05d7dc2ea0f195406042caf1,0xc7c80806935257277ccabc439a7df559436b4fb5faa51791ca1f1531387922d2)
lightningd_handshake(123): TRACE: # ck,temp_k1=0xde3630964a098b3f2a68dabe6d5236d2c3bd54e2af4a265fca7cca821e8663f3,0x177140d74884bed7415eb91487f829b8b5994ad502168a65dba05e022c38afa9
lightningd_handshake(123): TRACE: # encryptWithAD(0x177140d74884bed7415eb91487f829b8b5994ad502168a65dba05e022c38afa9, 0x000000000000000000000000, 0x6a81ae4f9371f9f0891620461eb34ac968ac3237290975a349d51ab51584a22d, <empty>)
lightningd_handshake(123): TRACE: # c=f9ed64f3e6078decc27bf7db98d012f5
lightningd_handshake(123): TRACE: # h=0xd4227e3d20ff585fdcd1ae59f7fba39d03b1faa2a919011b8b1e285f14617cee
lightningd_handshake(123): TRACE: output: 0x000351c3d7ac3e3ab2b54b5b1fdf9728eb874d4146d3e81cd7432d661bf269b0237af9ed64f3e6078decc27bf7db98d012f5
lightningd_handshake(123): UPDATE WIRE_INITR_ACT_TWO
lightningd_handshake(123): TRACE: input: 0x00036a81954c4ca7f9deef6015422f40689ccc902ffdf7fdf361db7cabe1c96c2dacd21d3f361f926c9c9a1b66f9db57ec6c
lightningd_handshake(123): TRACE: # re=0x036a81954c4ca7f9deef6015422f40689ccc902ffdf7fdf361db7cabe1c96c2dac
lightningd_handshake(123): TRACE: # h=0x927a29c4452c1cd59e871bd9053db8fae7d45540bdbdc9547add8baf76295381
lightningd_handshake(123): TRACE: # ss=0xd06631d2ae74d5cc1ac1f41c12f61d8c140dca6df61dee9231d1081fe159aa58
lightningd_handshake(123): TRACE: # HKDF(0xde3630964a098b3f2a68dabe6d5236d2c3bd54e2af4a265fca7cca821e8663f3,0xd06631d2ae74d5cc1ac1f41c12f61d8c140dca6df61dee9231d1081fe159aa58)
lightningd_handshake(123): TRACE: # ck,temp_k2=0xd7787b117ebef78ca660339153703c0bcc320244a3f2387489ce9f7b47e767ec,0x44417ecc4af29ec20a863e86061cf6b97719b553b941a09fe84acb71c9f51dbb
lightningd_handshake(123): TRACE: # decryptWithAD(0x44417ecc4af29ec20a863e86061cf6b97719b553b941a09fe84acb71c9f51dbb, 0x000000000000000000000000, 0x927a29c4452c1cd59e871bd9053db8fae7d45540bdbdc9547add8baf76295381, 0xd21d3f361f926c9c9a1b66f9db57ec6c)
lightningd_handshake(123): TRACE: # h=0x652929659e3e28f88108518bb674a1d80fcb542c7ca3e1c04d8e74057c7ce161
lightningd_handshake(123): UPDATE WIRE_INITR_ACT_THREE
lightningd_handshake(123): TRACE: # encryptWithAD(0x44417ecc4af29ec20a863e86061cf6b97719b553b941a09fe84acb71c9f51dbb, 0x000000000100000000000000, 0x652929659e3e28f88108518bb674a1d80fcb542c7ca3e1c04d8e74057c7ce161, 0x0385c62fa5d048f858de8407d4fbaa4e9bd3ec122392663797d9c15eede2b518d1)
lightningd_handshake(123): TRACE: # c=0x69cc0d5415c366ad23d3bd345b96ae7bff1d6594ba2897ed6c6ccebf24ac142422ac05731be399b5f5bc9945e387d52697
lightningd_handshake(123): TRACE: # h=0xa203963f08bf92e3e4cd984c94952f9fe1042ac3aaf04c298f472bd7122fa224
lightningd_handshake(123): TRACE: # ss=0x93755f8ffda9d561fbe399f5f60d477a339d81f4a047afcb7de2380989aba072
lightningd_handshake(123): TRACE: # HKDF(0xd7787b117ebef78ca660339153703c0bcc320244a3f2387489ce9f7b47e767ec,0x93755f8ffda9d561fbe399f5f60d477a339d81f4a047afcb7de2380989aba072)
lightningd_handshake(123): TRACE: # ck,temp_k3=0xea3b9c19062c5fadae8d42a51b32f47a6f7a2b22f7b6b2e1226675e20fe6302e,0x35dbb579d0511ac64b8cc8035f158709e37ca79841af437989d553f435176497
lightningd_handshake(123): TRACE: # encryptWithAD(0x35dbb579d0511ac64b8cc8035f158709e37ca79841af437989d553f435176497, 0x000000000000000000000000, 0xa203963f08bf92e3e4cd984c94952f9fe1042ac3aaf04c298f472bd7122fa224, <empty>)
lightningd_handshake(123): TRACE: # t=0x5e87542d0a216173573cf9f8c30fcfa0
lightningd_handshake(123): TRACE: output: 0x0069cc0d5415c366ad23d3bd345b96ae7bff1d6594ba2897ed6c6ccebf24ac142422ac05731be399b5f5bc9945e387d526975e87542d0a216173573cf9f8c30fcfa0
lightningd_handshake(123): TRACE: # HKDF(0xea3b9c19062c5fadae8d42a51b32f47a6f7a2b22f7b6b2e1226675e20fe6302e,zero)
lightningd_handshake(123): TRACE: output: sk,rk=0xec554ecda61ac380a7b4d8d3aaa55b6725bcbbea3f185f3d9d67b4cc3c4a1f6f,0x986c566cf33d647ece825345fa753cc87ef5783470744723fd9770a050543e5f
lightningd_handshake(123): TRACE: Read decrypt 00100000000108
lightningd_handshake(123): REPLY WIRE_HANDSHAKE_INITIATOR_REPLY with 1 fds
lightningd_handshake(123): Peer out to 02eccebd9ed98f6d267080a58194dbe554a2b33d976eb95bb7c116d00fd64c4a13
lightningd(1):jcon fd 14: Success
lightningd(1): peer 02eccebd9ed98f6d267080a58194dbe554a2b33d976eb95bb7c116d00fd64c4a13: Peer has reconnected, state OPENINGD
lightningd(1): **FATAL SIGNAL 11 RECEIVED**
Fatal signal 11. Log dumped in crash.log
root@ubuntu-32gb-lon1-01:~# 
./bitcoin-cli.sh getnetworkinfo
{
  "version": 140200,
  "subversion": "/Satoshi:0.14.2/",
  "protocolversion": 70015,
  "localservices": "000000000000000d",
  "localrelay": true,
  "timeoffset": 0,
  "networkactive": true,
  "connections": 22,
  "networks": [
    {
      "name": "ipv4",
      "limited": false,
      "reachable": true,
      "proxy": "",
      "proxy_randomize_credentials": false
    }, 
    {
      "name": "ipv6",
      "limited": false,
      "reachable": true,
      "proxy": "",
      "proxy_randomize_credentials": false
    }, 
    {
      "name": "onion",
      "limited": true,
      "reachable": false,
      "proxy": "",
      "proxy_randomize_credentials": false
    }
  ],
  "relayfee": 0.00001000,
  "incrementalfee": 0.00001000,
  "localaddresses": [
  ],
  "warnings": ""
}
root@ubuntu-32gb-lon1-01:~# 
root@ubuntu-32gb-lon1-01:~# ./lightning-cli.sh getinfo
{ "id" : "0385c62fa5d048f858de8407d4fbaa4e9bd3ec122392663797d9c15eede2b518d1", "port" : 9735, "testnet" : false, "version" : "v0.5.2-2016-11-21-820-g5db4e11", "blockheight" : 502332 }
@cdecker cdecker self-assigned this Jan 3, 2018
@cdecker
Copy link
Member

cdecker commented Jan 3, 2018

Thanks for reporting this @2pac1, I noticed that the build for that image is really old, so I fixed the Dockerfile and re-built the image, could you try again?

@2pac1
Copy link
Author

2pac1 commented Jan 3, 2018

i just did, same thing. will reboot server now and try it once again. i dont know what i am doing wrong
also, i tried to withdraw https://blockchain.info/address/17mUogNA1ozaM1y9pYmC94N8E6L7gQAk9h and it is stuck
is there a way to see the funds that i have linked up from the bitcoin wallet addy that was given to me by the system
as i am not sure how to claim back funds in case this does not work out

@2pac1
Copy link
Author

2pac1 commented Jan 3, 2018

./bitcoin-cli.sh getinfo
{
  "version": 140200,
  "protocolversion": 70015,
  "walletversion": 130000,
  "balance": 0.00000000,
  "blocks": 502358,
  "timeoffset": -23,
  "connections": 7,
  "proxy": "",
  "difficulty": 1931136454487.716,
  "testnet": false,
  "keypoololdest": 1514725738,
  "keypoolsize": 100,
  "paytxfee": 0.00000000,
  "relayfee": 0.00001000,
  "errors": ""
}
{ "id" : "0385c62fa5d048f858de8407d4fbaa4e9bd3ec122392663797d9c15eede2b518d1", "port" : 9735, "testnet" : false, "version" : "v0.5.2-2016-11-21-820-g5db4e11", "blockheight" : 502358 }
{
  "version": 140200,
  "subversion": "/Satoshi:0.14.2/",
  "protocolversion": 70015,
  "localservices": "000000000000000d",
  "localrelay": true,
  "timeoffset": -1,
  "networkactive": true,
  "connections": 15,
  "networks": [
    {
      "name": "ipv4",
      "limited": false,
      "reachable": true,
      "proxy": "",
      "proxy_randomize_credentials": false
    }, 
    {
      "name": "ipv6",
      "limited": false,
      "reachable": true,
      "proxy": "",
      "proxy_randomize_credentials": false
    }, 
    {
      "name": "onion",
      "limited": true,
      "reachable": false,
      "proxy": "",
      "proxy_randomize_credentials": false
    }
  ],
  "relayfee": 0.00001000,
  "incrementalfee": 0.00001000,
  "localaddresses": [
  ],
  "warnings": ""
}

when I try to connect with:
./lightning-cli.sh connect 45.77.7.202 9735 02eccebd9ed98f6d267080a58194dbe554a2b33d976eb95bb7c116d00fd64c4a13

ERROR I GET IS: lightning-cli: Non-object response

and

lightningd(1): Loaded 11 channels from DB
lightningd(1): Creating IPv6 listener on port 9735
lightningd(1): Failed to bind on 2 socket: Address already in use
lightningd(1): Feerate 461789 (was 0)
lightningd(1): Ignoring chaintip 0000000000000000000a7410239f8b13c41071a2e7032fdfb1876fa18a562256 status headers-only
lightningd(1): Ignoring chaintip 000000000000000001416af072f8989829f4c60a1a9658e1cec08411798e4ffa status headers-only
lightningd(1): Ignoring chaintip 0000000000000000000a7410239f8b13c41071a2e7032fdfb1876fa18a562256 status headers-only
lightningd(1): Ignoring chaintip 000000000000000001416af072f8989829f4c60a1a9658e1cec08411798e4ffa status headers-only
lightningd(1): Connected json input
lightningd(1):jcon fd 14: Success
lightningd(1):jcon fd 14: Closing (Bad file descriptor)
lightningd(1): Ignoring chaintip 0000000000000000000a7410239f8b13c41071a2e7032fdfb1876fa18a562256 status headers-only
lightningd(1): Ignoring chaintip 000000000000000001416af072f8989829f4c60a1a9658e1cec08411798e4ffa status headers-only
lightningd(1): Ignoring chaintip 0000000000000000000a7410239f8b13c41071a2e7032fdfb1876fa18a562256 status headers-only
lightningd(1): Ignoring chaintip 000000000000000001416af072f8989829f4c60a1a9658e1cec08411798e4ffa status headers-only
lightningd(1): Ignoring chaintip 0000000000000000000a7410239f8b13c41071a2e7032fdfb1876fa18a562256 status headers-only
lightningd(1): Ignoring chaintip 000000000000000001416af072f8989829f4c60a1a9658e1cec08411798e4ffa status headers-only
lightningd(1): Connected json input
lightningd(1): HSM TRACE: Control: type WIRE_HSMCTL_HSMFD_ECDH len 10
lightningd_handshake(126): pid 126, msgfd 18
lightningd_handshake(126): TRACE: # ck=2640f52eebcd9e882958951c794250eedb28002c05d7dc2ea0f195406042caf1
lightningd_handshake(126): TRACE: # h=036e263df62ac561559a4baec900183a3b1d098327f58b13c19f06ee59c9a5b7
lightningd_handshake(126): UPDATE WIRE_INITR_ACT_ONE
lightningd_handshake(126): TRACE: e.priv: 0xdf9f9aa9cc4c411a5b3ab4990629cb861a58cbccfd4f5143b059dc670cf0a333
lightningd_handshake(126): TRACE: e.pub: 0x03fd60735ade9771d81f43d44775228168502f9057f13350e776beb4317976fdca
lightningd_handshake(126): TRACE: # h=0x17d9511aa1dba3f2b96e7aeb74680fdb857cdcb8d4b4ada21c34115194f1fd43
lightningd_handshake(126): TRACE: # ss=0x94763715d742967032b158733988b59b69b0d1c10456edb5d5d3e8d897e8d42f
lightningd_handshake(126): TRACE: # HKDF(0x2640f52eebcd9e882958951c794250eedb28002c05d7dc2ea0f195406042caf1,0x94763715d742967032b158733988b59b69b0d1c10456edb5d5d3e8d897e8d42f)
lightningd_handshake(126): TRACE: # ck,temp_k1=0x810853914d5213e8f6645e5308eeafcda5a40627feea30776e0c02f665d392fe,0x9c49ea135a4845d2ab40ae08ee086a643644a741b2bad25fe836579144abb393
lightningd_handshake(126): TRACE: # encryptWithAD(0x9c49ea135a4845d2ab40ae08ee086a643644a741b2bad25fe836579144abb393, 0x000000000000000000000000, 0x17d9511aa1dba3f2b96e7aeb74680fdb857cdcb8d4b4ada21c34115194f1fd43, <empty>)
lightningd_handshake(126): TRACE: # c=766befbe5ba27c6003517c9f227cce46
lightningd_handshake(126): TRACE: # h=0x967d8b7be5eff599300ecce34ec87408d7cdf17c07850914088c6455be578505
lightningd_handshake(126): TRACE: output: 0x0003fd60735ade9771d81f43d44775228168502f9057f13350e776beb4317976fdca766befbe5ba27c6003517c9f227cce46
lightningd_handshake(126): UPDATE WIRE_INITR_ACT_TWO
lightningd_handshake(126): TRACE: input: 0x0003dfeb730bc783e028634f04003bd155eed190360762ff616b25261bb86ba09471734d27cd3f80f31cc9985c6f511d79a8
lightningd_handshake(126): TRACE: # re=0x03dfeb730bc783e028634f04003bd155eed190360762ff616b25261bb86ba09471
lightningd_handshake(126): TRACE: # h=0x30ec472fa138524c1c34505434315c81f240dee30be5a29dae73380c57a146c2
lightningd_handshake(126): TRACE: # ss=0x5f57ac31674b956f3423a64a5426ae2b8dafb725deecad75b624e849d03766a5
lightningd_handshake(126): TRACE: # HKDF(0x810853914d5213e8f6645e5308eeafcda5a40627feea30776e0c02f665d392fe,0x5f57ac31674b956f3423a64a5426ae2b8dafb725deecad75b624e849d03766a5)
lightningd_handshake(126): TRACE: # ck,temp_k2=0x40bcb8f37ec04d9e886c2e82b12b236ed6abc7de587cab59566e3fee8f69ea18,0xbfc16675016bc86d6c63d2249d1c29cbb95d6bf1277cb24585e333cb4f14969e
lightningd_handshake(126): TRACE: # decryptWithAD(0xbfc16675016bc86d6c63d2249d1c29cbb95d6bf1277cb24585e333cb4f14969e, 0x000000000000000000000000, 0x30ec472fa138524c1c34505434315c81f240dee30be5a29dae73380c57a146c2, 0x734d27cd3f80f31cc9985c6f511d79a8)
lightningd_handshake(126): TRACE: # h=0x1ca877dcb6c7379da91015ea04f391c54f479687dfee47ec6bf1cfb5525aae91
lightningd_handshake(126): UPDATE WIRE_INITR_ACT_THREE
lightningd_handshake(126): TRACE: # encryptWithAD(0xbfc16675016bc86d6c63d2249d1c29cbb95d6bf1277cb24585e333cb4f14969e, 0x000000000100000000000000, 0x1ca877dcb6c7379da91015ea04f391c54f479687dfee47ec6bf1cfb5525aae91, 0x0385c62fa5d048f858de8407d4fbaa4e9bd3ec122392663797d9c15eede2b518d1)
lightningd_handshake(126): TRACE: # c=0x36239dff8b65e38856d8f686e572b092e1b5c370506328ab6065d1504b7e269aa61b5d9ad99043a322c916fd9f1e89166f
lightningd_handshake(126): TRACE: # h=0x84f2a859b2c6e40288bf3c86027ae5d65c8a39a28dfa65220afed463f5105146
lightningd_handshake(126): TRACE: # ss=0x78602687ee6cb713fe416c3df8662ee195113b2fe392dd4f2edcdfb7cb68a0f3
lightningd_handshake(126): TRACE: # HKDF(0x40bcb8f37ec04d9e886c2e82b12b236ed6abc7de587cab59566e3fee8f69ea18,0x78602687ee6cb713fe416c3df8662ee195113b2fe392dd4f2edcdfb7cb68a0f3)
lightningd_handshake(126): TRACE: # ck,temp_k3=0x7338d07f63a2fe5e94be6b3c16b81237263bbdb5336745ae7d5370a48b08d054,0xdc284c763247947351e24259d713cd165eb5354f45296d81d482e2646fdaeafb
lightningd_handshake(126): TRACE: # encryptWithAD(0xdc284c763247947351e24259d713cd165eb5354f45296d81d482e2646fdaeafb, 0x000000000000000000000000, 0x84f2a859b2c6e40288bf3c86027ae5d65c8a39a28dfa65220afed463f5105146, <empty>)
lightningd_handshake(126): TRACE: # t=0x4c2a39600f8b3542ffb9b8b11faf71a7
lightningd_handshake(126): TRACE: output: 0x0036239dff8b65e38856d8f686e572b092e1b5c370506328ab6065d1504b7e269aa61b5d9ad99043a322c916fd9f1e89166f4c2a39600f8b3542ffb9b8b11faf71a7
lightningd_handshake(126): TRACE: # HKDF(0x7338d07f63a2fe5e94be6b3c16b81237263bbdb5336745ae7d5370a48b08d054,zero)
lightningd_handshake(126): TRACE: output: sk,rk=0x1f14272b91a7b385fa209a5b41b2b4d4d326e1b26a730b637d3895370d53144c,0xfebbe90008cad83a51fc3ce3c3c1be29b6ee22b59a25e0597b720095edd7d2f6
lightningd_handshake(126): TRACE: Read decrypt 00100000000108
lightningd_handshake(126): REPLY WIRE_HANDSHAKE_INITIATOR_REPLY with 1 fds
lightningd_handshake(126): Peer out to 02eccebd9ed98f6d267080a58194dbe554a2b33d976eb95bb7c116d00fd64c4a13
lightningd(1):jcon fd 14: Success
lightningd(1): peer 02eccebd9ed98f6d267080a58194dbe554a2b33d976eb95bb7c116d00fd64c4a13: Peer has reconnected, state OPENINGD
lightningd(1): FATAL SIGNAL 11 RECEIVED
Fatal signal 11. Log dumped in crash.log

@2pac1
Copy link
Author

2pac1 commented Jan 3, 2018 via email

@2pac1
Copy link
Author

2pac1 commented Jan 3, 2018 via email

@verretor
Copy link
Contributor

verretor commented Jan 3, 2018

"subversion": "/Satoshi:0.14.2/",

You need Bitcoin 0.15 or above. You have 0.14.2.

@2pac1
Copy link
Author

2pac1 commented Jan 3, 2018 via email

@verretor
Copy link
Contributor

verretor commented Jan 3, 2018

You can download it here https://bitcoin.org/en/download

@2pac1
Copy link
Author

2pac1 commented Jan 3, 2018

yes I know that, but I am following https://interfect.github.io/#!/posts/009-Ride-the-Lightning.md guide and I am not sure how to update it if I am pulling it from a docker container

@verretor
Copy link
Contributor

verretor commented Jan 3, 2018

Sorry. I don't know how they make their images.

@2pac1
Copy link
Author

2pac1 commented Jan 3, 2018

trying now with forked project that has latest btc wallet

docker run --rm --name bitcoind_mainnet -v /scratch/bitcoin/mainnet/bitcoind:/data -p 8333:8333 -p 9735:9735 idiogenes/bitcoin:latest

and will verify again in old VPS as I suspect maybe it was down to port not being opened

@2pac1
Copy link
Author

2pac1 commented Jan 4, 2018

I fixed it with a fork that gets latest

docker run --rm --name bitcoind_mainnet -v /scratch/bitcoin/mainnet/bitcoind:/data -p 8333:8333 -p 9735:9735 idiogenes/bitcoin:latest

@2pac1
Copy link
Author

2pac1 commented Jan 4, 2018

i am at the final step
i have connected to a node
i funded the channel
i am using modified docker version from above

when I run this

./lightning-cli.sh sendpay "[{\"id\": \"02eccebd9ed98f6d267080a58194dbe554a2b33d976eb95bb7c116d00fd64c4a13\", \"channel\" : \"502559:896:1\", \"msatoshi\" : 1000000, \"delay\" : 9 } ]" a9003f58181b4d4e14c061432ca0adae2cbfce99db34ccd318da16d803919464

i get

"failed: WIRE_FINAL_INCORRECT_CLTV_EXPIRY (reply from remote)"

please help, I am 99% done, I just want to send payment

@cdecker
Copy link
Member

cdecker commented Jan 5, 2018

You could generate an invoice and pay it using the pay command. Do you control the receiving node? If yes just execute cli/lightning-cli invoice 1000000 label1, which will give you a long string that can be passed to cli/lightning-cli pay <payment_req>.

If not, try to increae the delay in the route and see what happens :-)

@2pac1
Copy link
Author

2pac1 commented Jan 5, 2018

I figured out pay, and it worked! SUCCESS!
yes, I did generate an invoic
Tnx @cdecker
we made mainnet live transaction with success

Although C implementation is total pain
Need to try LND with GO
Tnx a ton

@cdecker
Copy link
Member

cdecker commented Jan 5, 2018

Glad it worked, let me know if you need anything else. I'll close this issue for now, feel free to reopen should the problem re-emerge.

@cdecker cdecker closed this as completed Jan 5, 2018
@2pac1
Copy link
Author

2pac1 commented Jan 6, 2018

one more question: how do I access wallet.dat as its within the docker?

and how do I withdraw? I tried doing it with
lightning-cli withdraw


and I got transaction that has no change and that got stuck
https://blockchain.info/address/17mUogNA1ozaM1y9pYmC94N8E6L7gQAk9h

tnx

@cdecker
Copy link
Member

cdecker commented Jan 6, 2018

There are two ways of retrieving the wallet.dat file from a docker image:

  • Mount the .bitcoin directory to a host directory using the -v option when first creating the docker instance
  • Use docker cp to copy a single file from a running or stopped container

As for the withdrawal transaction, it's using testnet fees (we do not encourage running lightning on mainnet just yet), so you'll have to wait for the transaction to confirm.

@2pac1
Copy link
Author

2pac1 commented Jan 6, 2018

now I run: docker run --rm --name bitcoind_mainnet -v /scratch/bitcoin/mainnet/bitcoind:/data -p 8333:8333 -p 9735:9735 idiogenes/bitcoin:latest
Do to idiogenes having latest Bitcoin core

and you suggest I run:

docker run --rm --name bitcoind_mainnet -v /scratch/bitcoin/mainnet/bitcoind:/data -v .bitcoin -p 8333:8333 -p 9735:9735 idiogenes/bitcoin:latest

Hope you can help

regarding fees, I saw it was using:
14.188 sat

But I see no change address and there is "Unable to decode output address " error showing on blockchain info

Tnx in advance

@cdecker
Copy link
Member

cdecker commented Jan 6, 2018

Do not run with --rm, it'll delete the docker container once it exits!

I see that you are running a modified amacneil/bitcoin version, so you might be lucky and find the wallet in /scratch/bitcoin/mainnet/bitcoind. The -v /scratch/bitcoin/mainnet/bitcoind:/data should have taken care of mounting an external directory as bitcoin datadir. If the wallet.dat file is not in that directory, I'm afraid you will not be able to recover the coins...

@2pac1
Copy link
Author

2pac1 commented Jan 7, 2018

how should I then get to the wallet, I am not sure I understand, as before mounting docker there is nothing, after mounting it I cannot access the command line in the same window as its running
Tnx

p.s.

you suggest instead of
docker run --rm --name bitcoind_mainnet -v /scratch/bitcoin/mainnet/bitcoind:/data -p 8333:8333 -p 9735:9735 idiogenes/bitcoin:latest

to run without --rm
docker run --name bitcoind_mainnet -v /scratch/bitcoin/mainnet/bitcoind:/data -p 8333:8333 -p 9735:9735 idiogenes/bitcoin:latest

like this?
and then do the LS -LA and see if it is there?

@2pac1
Copy link
Author

2pac1 commented Jan 7, 2018

was able to access it by running
CD /scratch/bitcoin/mainnet/bitcoind
tnx
wallet.dat is there

@cdecker
Copy link
Member

cdecker commented Jan 7, 2018

Great, you had me worried for a second there 😉

@2pac1
Copy link
Author

2pac1 commented Jan 8, 2018

Tnx @cdecker
I appreciate it.

@2pac1
Copy link
Author

2pac1 commented Jan 8, 2018

what I dont get now, the transaction I did with my old node that I had error in the title, I wanted to transfer something out:
https://blockchain.info/tx/c6bed9d9b61abca39dd6084f02e7922d2d3bc79a6fabff440191eb90a77e5e16
And it didnt ask for change address at all.

I now see with -help command
"settxfee amount"

@cdecker
Copy link
Member

cdecker commented Jan 8, 2018

The change address is an address owned by the lightning client, since you are transferring from the lightning wallet to somewhere else, that's the correct way of keeping the change in the builtin wallet.

lightningd will gauge the fees automatically, however, depending on how long your bitcoind was running, the estimates may be quite a bit off.

@2pac1
Copy link
Author

2pac1 commented Jan 9, 2018

tnx
but here change output is not listed https://blockchain.info/tx/c6bed9d9b61abca39dd6084f02e7922d2d3bc79a6fabff440191eb90a77e5e16
am I missing something? should it or not be listed when looking at blockchain info ?

so what you are saying when fees drop, and 38.044 sat/B gets into block, this should confirm? If it does not drop out before that
Tnx

can you set fees manually on mainnet currently?

@cdecker
Copy link
Member

cdecker commented Jan 9, 2018

You need to enable the advanced view in bc.i to see bech32 style addresses for p2wpkh outputs which is what lightningd uses internally.

@2pac1
Copy link
Author

2pac1 commented Jan 9, 2018

did not even see that advanced mode, tnx
and changing default fees when withdrawing?
I owe you a beer or whatever you drink

@cdecker
Copy link
Member

cdecker commented Jan 9, 2018

and changing default fees when withdrawing?

That is currently not exposed to the end-user, since it's a great way to get your funds stuck. Sadly the automatic way is also not guaranteed to work as exemplified in this case. You could attempt to bump the fee using CPFP, by spending the transaction output and attaching a large enough fee to pay for both transactions though for 0.15 USD I doubt that's a sensible thing to do.

@2pac1
Copy link
Author

2pac1 commented Jan 9, 2018

no no I was just asking as an example
awesome

@2pac1
Copy link
Author

2pac1 commented Jan 9, 2018

any way for auto mode to spit out fees it would use if you want to transfer out of lightning to btc address? so you check if they are all right tnx man!

@2pac1
Copy link
Author

2pac1 commented Jan 10, 2018

in this particular example https://blockchain.info/tx/c6bed9d9b61abca39dd6084f02e7922d2d3bc79a6fabff440191eb90a77e5e16?show_adv=true
to access the funds, you would just get the wallet.dat and get the private key for 3LwSHbp8epkjX5wKRgftgzb79GksCssRgu address, correct?
despite that all the change (99.99%) was returned to bc1q6wztvmh3augl5s4j0e4ez4fe9z08x4vef88dcz address
so are funds now located in lightning wallet no?
you should be able to transfer out with
lightning-cli.sh withdraw ADDRESS

right?

@cdecker
Copy link
Member

cdecker commented Jan 12, 2018

To sweep all funds from the c-lightning daemon into another wallet you can use lightning-cli withdraw [address] all, that should take all your funds (minus the computed fee) and send them to [address].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants