--- Log opened Tue Feb 12 00:00:47 2019 01:00 -!- rh0nj [~rh0nj@88.99.167.175] has quit [Remote host closed the connection] 01:01 -!- EagleTM [~EagleTM@unaffiliated/eagletm] has joined #c-lightning 01:02 <@cdecker> fiatjaf: that means that the rpc socket will also be in /tmp/ 01:02 <@cdecker> m-schmoock: channel_config is what we exchange with the peer, whereas `channel` is what we keep locally. I'd say `channel` is the better place 01:08 -!- bitonic-cjp [~bitonic-c@92-111-70-106.static.v4.ziggozakelijk.nl] has joined #c-lightning 01:34 < m-schmoock> thx 01:51 <@cdecker> NP 02:03 -!- kexkey [~kexkey@173.209.48.156] has quit [Read error: Connection reset by peer] 02:04 -!- spinza [~spin@155.93.246.187] has quit [Quit: Coyote finally caught up with me...] 02:18 -!- EagleTM [~EagleTM@unaffiliated/eagletm] has quit [Remote host closed the connection] 02:19 -!- spinza [~spin@155.93.246.187] has joined #c-lightning 02:52 -!- EagleTM [~EagleTM@unaffiliated/eagletm] has joined #c-lightning 03:35 -!- deusexbeer [~deusexbee@093-092-176-118-dynamic-pool-adsl.wbt.ru] has quit [Ping timeout: 246 seconds] 05:07 -!- mn3monic [jsz@unaffiliated/mn3monic] has quit [Excess Flood] 05:08 -!- mn3monic [jsz@unaffiliated/mn3monic] has joined #c-lightning 05:23 -!- bitdex [~bitdex@gateway/tor-sasl/bitdex] has quit [Quit: = ""] 05:23 < bitonic-cjp> I am re-implementing the Python code for the plugin interface, and therfore I am reading the reference code. 05:23 < bitonic-cjp> Some things seem very convoluted to me; I don't understand the reasoning behind it. 05:25 < bitonic-cjp> For instance, _exec_func is very complicated for something that just has to read request['params'] to fill a method's arguments. 05:29 < bitonic-cjp> Why not do, e.g. `func(*request['params'])` ? 05:38 -!- copumpkin [~copumpkin@haskell/developer/copumpkin] has joined #c-lightning 05:48 -!- mn3monic [jsz@unaffiliated/mn3monic] has quit [Ping timeout: 258 seconds] 05:50 -!- mn3monic [jsz@unaffiliated/mn3monic] has joined #c-lightning 05:56 -!- rh0nj [~rh0nj@88.99.167.175] has joined #c-lightning 06:21 < bitonic-cjp> Also, how is this supposed to work if the plugin doesn't provide an init method? 06:45 -!- Victorsueca [~Victorsue@unaffiliated/victorsueca] has quit [Read error: Connection reset by peer] 07:12 -!- EagleTM [~EagleTM@unaffiliated/eagletm] has quit [Remote host closed the connection] 07:32 < t0mix> hmm.. lightningd failed again. "STATUS_FAIL_INTERNAL_ERROR: Failed parsing get_addrs_reply gossipctl" .. what might be wrong =/ 07:58 < fiatjaf> cdecker, that's where I'm looking for it 07:58 < fiatjaf> cdecker, the folder has lightning.sqllite3 and hsm-secret, no lightning-rpc 07:58 < fiatjaf> could it be because lack of permissions? no, that makes no sense 07:58 < fiatjaf> maybe it's impossible to create socket files on /tmp/? 07:59 < fiatjaf> I see no indication of errors in the program log 08:06 < m-schmoock> fiatjaf: its possible that your system forbidds the creation of sockets in /tmp 08:06 < m-schmoock> you can try to open a fifo socket pipe something by hand in /tmp and show if it suceeds 08:07 < m-schmoock> $> mkfifo /tmp/foobar 08:09 < m-schmoock> but its still possible that pipes are allowed an sockets not. dunno how to create a sock by shell 08:28 -!- Victorsueca [~Victorsue@unaffiliated/victorsueca] has joined #c-lightning 08:47 -!- StopAndDecrypt [~StopAndDe@unaffiliated/stopanddecrypt] has quit [Remote host closed the connection] 09:00 -!- spinza [~spin@155.93.246.187] has quit [Quit: Coyote finally caught up with me...] 09:08 -!- bitonic-cjp [~bitonic-c@92-111-70-106.static.v4.ziggozakelijk.nl] has quit [Quit: Leaving] 09:09 < fiatjaf> m-schmoock, the pipe works 09:09 < fiatjaf> meh, I'll try specifying the location of the socket file explicitly 09:14 -!- spinza [~spin@155.93.246.187] has joined #c-lightning 09:17 -!- StopAndDecrypt [~StopAndDe@unaffiliated/stopanddecrypt] has joined #c-lightning 09:32 -!- spinza [~spin@155.93.246.187] has quit [Ping timeout: 246 seconds] 09:41 < fiatjaf> if I do it manually it works on /tmp/.../ 09:41 < fiatjaf> in my script it doesn't 09:41 -!- spinza [~spin@155.93.246.187] has joined #c-lightning 09:42 < fiatjaf> I get 'Error: Specified data directory "" does not exist.' 09:44 < fiatjaf> actually, that's only when trying to call lightning-cli from inside the script, probably because lightning-rpc doesn't exist 09:44 < fiatjaf> I get no error when starting lightningd, but I only see 09:44 < fiatjaf> 2019-02-12T17:43:29.203Z lightningd(27793): Creating database 09:44 < fiatjaf> 2019-02-12T17:43:29.239Z lightning_hsmd(27802): HSM: created new hsm_secret file 09:44 < fiatjaf> nothing else 11:04 -!- queip [~queip@unaffiliated/rezurus] has quit [Ping timeout: 240 seconds] 11:08 -!- queip [~queip@unaffiliated/rezurus] has joined #c-lightning 11:31 -!- Kostenko [~Kostenko@185.183.106.227] has quit [Ping timeout: 250 seconds] 11:36 -!- Kostenko [~Kostenko@185.183.106.227] has joined #c-lightning 12:42 < m-schmoock> fiatjaf: how do you call lightning-cli within the script? what kind of script? does it reset the environment variables? Does it have the env variable LIGHTNINGD_DATA ? 12:42 < m-schmoock> forget the LIGHTNINGD_DATA, this is only if you use docker 12:46 < m-schmoock> have you tried using the "--lightning-dir" switch for the lightning-cli calls ? 12:52 < m-schmoock> fiatjaf: does the lightningd print those two lines and exits with error 1 (check by 'echo $?' afterwards)? if yes, which version of clightningd are you using? 13:31 < fiatjaf> m-schmoock, I'm using golang and starting it with exec.Command(lightningd_path, "--network", "regtest", "--bitcoin-datadir", bitcoindir, "--lightning-dir", lightningdir, "--bitcoin-cli", bitcoincli_path) 13:32 < fiatjaf> the paths are correct 13:32 < fiatjaf> running the latest master 13:32 < fiatjaf> I don't know if it exits, that's a good thing, I'll check that 13:33 < m-schmoock> there was a reent bug when bitcoind was not found in path, it exits without error... current master is fixed 13:34 < m-schmoock> if thats the case you can either uprage, see the error and fix it, or simply ensure that the bitcoin-cli is in the PATH variable of the environment you use 13:38 < fiatjaf> would that be an error 1? 13:39 < fiatjaf> I've seen other error 1s in other situations, looked at the code but didn't find any 'return 1' statements 13:39 < fiatjaf> (call me naïve, but I wanted to know what are these error 1s) 13:39 -!- spinza [~spin@155.93.246.187] has quit [Ping timeout: 250 seconds] 13:40 < fiatjaf> actually, one of the error 1s I got when testing this same setup and forgot to pass the path to the bitcoin-cli executable 13:41 < m-schmoock> what version of clightning are you using? master build or last release? 13:49 < m-schmoock> anyway, when the bitcoin-cli is not in the current environment PATH lightning-cli will complain about that and exit(1). but in the last release the message was suppressed 13:50 < m-schmoock> maybe you upgrade to a master build. at least you need this patch https://github.com/ElementsProject/lightning/pull/2323 13:50 < m-schmoock> (only to make the error messages from lightningd visible) 15:01 -!- spinza [~spin@155.93.246.187] has joined #c-lightning 17:18 -!- mn3monic [jsz@unaffiliated/mn3monic] has quit [Ping timeout: 250 seconds] 17:19 -!- mn3monic [jsz@unaffiliated/mn3monic] has joined #c-lightning 18:04 -!- bitdex [~bitdex@gateway/tor-sasl/bitdex] has joined #c-lightning 18:26 < ctrlbreak> Just wanted to say Hi to everyone. Being back to a regular job certainly sucks. I miss all time I was able to spend exploring LN :-( 18:31 < ctrlbreak> Ummm... wtf... 18:31 < ctrlbreak> I have a bunch of 'CHANNELD_AWAITING_LOCKIN' and non of the funding_txids appear valid? 18:31 -!- mn3monic [jsz@unaffiliated/mn3monic] has quit [Quit: ZNC - http://znc.in] 18:32 -!- mn3monic [jsz@unaffiliated/mn3monic] has joined #c-lightning 18:42 -!- mn3monic [jsz@unaffiliated/mn3monic] has quit [Ping timeout: 258 seconds] 18:44 < ctrlbreak> oh... just looks like maybe they haven't confirmed yet ... (or even show in mempool??? that's strange I guess) 18:54 -!- mn3monic [jsz@unaffiliated/mn3monic] has joined #c-lightning 20:09 -!- spinza [~spin@155.93.246.187] has quit [Quit: Coyote finally caught up with me...] 20:16 -!- spinza [~spin@155.93.246.187] has joined #c-lightning 20:28 -!- bitdex [~bitdex@gateway/tor-sasl/bitdex] has quit [Quit: = ""] 21:09 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-evztbxqdurfwpjrm] has left #c-lightning [] 21:10 -!- blockstream_bot [blockstrea@gateway/shell/sameroom/x-evztbxqdurfwpjrm] has joined #c-lightning 21:52 -!- StopAndDecrypt [~StopAndDe@unaffiliated/stopanddecrypt] has quit [Read error: Connection reset by peer] 23:53 < t0mix> another clightning crash.. wtf, why out of the sudden so many crashes 23:54 < t0mix> ctrlbreak, I had similar problem few days ago. somebody opened channel with me using invalid funding transacion. I don't know how that happened. I forcefully closed the channel 23:56 < t0mix> clightning run like happy cat for months. now 3rd crash in 4 days. --- Log closed Wed Feb 13 00:00:49 2019