ZmnSCPxj / clboss

Automated Core Lightning Node Manager
MIT License
211 stars 32 forks source link

CLBOSS crash while using CLN v0.11.1 #137

Open grubles opened 2 years ago

grubles commented 2 years ago

Text was printed to console:

clboss: Boss/Mod/ChannelCreator/Planner.cpp:54: Boss::Mod::ChannelCreator::Planner::Impl::Impl(Boss::Mod::ChannelCreator::Plann
er::DowserFunc, Ln::Amount, std::vector<std::pair<Ln::NodeId, Ln::NodeId> >, std::size_t, Ln::Amount, Ln::Amount, Ln::Amount): Assertion `min_amount * 2 <= tot
al' failed.                                                                    
lightning_connectd: FATAL SIGNAL 6 (version v0.11.1)
0x80885c9dc8b send_backtrace                                                   
        common/daemon.c:33             
0x80885c9dd73 crashdump                
        common/daemon.c:46             
0x719605890443 ???                                                             
        ???:0                                                                  
0x7196054f867c ???                     
        ???:0                          
0x719605491e3b ???                     
        ???:0                          
0x71960546d25f ???                     
        ???:0                          
0x80885cfa193 call_error               
        ccan/ccan/tal/tal.c:93         
0x80885cfa2f3 check_bounds                                                     
        ccan/ccan/tal/tal.c:165        
0x80885cfa34b to_tal_hdr               
        ccan/ccan/tal/tal.c:176        
0x80885cfb4e3 tal_steal_               
        ccan/ccan/tal/tal.c:498        
0x80885c8f54b retry_peer_connected     
        connectd/connectd.c:225
0x80885ce9433 next_plan
        ccan/ccan/io/io.c:59
0x80885ce9c2b io_do_always
        ccan/ccan/io/io.c:435
0x80885cec017 handle_always
        ccan/ccan/io/poll.c:304
0x80885cec67b io_loop
        ccan/ccan/io/poll.c:385
0x80885c8fa97 main                                                                                                                                   
        connectd/connectd.c:2158
0x71960546d6a3 ???                     
        ???:0                          
0x71960546d887 ???                     
        ???:0                          
0xffffffffffffffff ???
        ???:0                          
lightning_connectd: FATAL SIGNAL (version v0.11.1)
0x80885c9dc8b send_backtrace
        common/daemon.c:33
0x80885ca9903 status_failed
        common/status.c:221
0x80885ca9b33 status_backtrace_exit
        common/subdaemon.c:18
0x80885c9dd83 crashdump
        common/daemon.c:49
0x719605890443 ???                     
        ???:0                          
0x7196054f867c ???                     
        ???:0                          
0x719605491e3b ???                     
        ???:0                          
0x71960546d25f ???                     
        ???:0                          
0x80885cfa193 call_error
        ccan/ccan/tal/tal.c:93
0x80885cfa2f3 check_bounds
        ccan/ccan/tal/tal.c:165
0x80885cfa34b to_tal_hdr
        ccan/ccan/tal/tal.c:176
0x80885cfb4e3 tal_steal_
        ccan/ccan/tal/tal.c:498
0x80885c8f54b retry_peer_connected
        connectd/connectd.c:225
0x80885ce9433 next_plan
        ccan/ccan/io/io.c:59
0x80885ce9c2b io_do_always
        ccan/ccan/io/io.c:435
0x80885cec017 handle_always
        ccan/ccan/io/poll.c:304
0x80885cec67b io_loop
        ccan/ccan/io/poll.c:385
0x80885c8fa97 main                     
        connectd/connectd.c:2158
0x71960546d6a3 ???                     
        ???:0                          
0x71960546d887 ???                     
        ???:0                          
0xffffffffffffffff ???
        ???:0                          
Lost connection to the RPC socket.Lost connection to the RPC socket.Lost connection to the RPC socket.
Lost connection to the RPC socket.

Lost connection to the RPC socket.
grubles commented 2 years ago

I'm not entirely sure if the clboss error is related to the crash. When checking the node, both clboss error and lightningd crash dump were printed to console.

ZmnSCPxj commented 2 years ago

What exact version of CLBOSS is this? 0.12, 0.13A, some master commit? CLBOSS should never hit any assertion check.

grubles commented 2 years ago

I removed clboss-min-channel=10000000 from the CLN config file and crashing stopped occurring, so I think it was related (or the cause).

G8XSU commented 1 year ago

clboss gets killed if both clboss-min-channel and clboss-max-channel are changed from defaults, I am not sure if that's the case. For me, I removed clboss-max-channel override and it started working.

JaviLib commented 1 year ago

Still not working. In the moment that you set clboss-max-channel the plugin crashes when it tries to create a new channel.

ksedgwic commented 1 year ago

Is this the same problem as #147?