I cant seem to properly restart CLN with the extra line –min_emergency_msat=0 or –min-emergency-msat=546000 (dust limit).
How do I properly restart CLN with this extra line?
The second problem is UTXO B, it has been over 2 months and it is still unconfirmed. If I look it up in the mempool, it isnt there.
Also in RTL there are 15 channels awaiting unilateral close, but it has been 2 months.
I have tried everything, resynched the blockchain, reinstalled CLN, but it just stays unconfirmed.
CLN’s min-emergency-msat reserve (default 25,000 sats) is enforced only when you have anchor channels that may need on-chain fee bumps. The withdraw command will refuse to spend amounts below that “if we have any anchor channels.”
In your case RTL shows “15 channels awaiting unilateral close” — CLN considers those 15 force-closes in flight and is keeping the 25k to fee-bump their anchor outputs. Forcing a withdrawal can let you take that one UTXO, but it won’t touch the funds locked in the 15 channels (which are likely much more valuable). Once those 15 closes finish, the reserve is released and you won’t need the config workaround.
You’ll have to close all your channels before you can access any onchain funds, you should try closing them again. For 15 cooperative channels to not close, either you’re not connected to the internet, or you’ve not got that latest information from Bitcoin or CLNs graph.
The only thing is that the 15 channels were openend by CLBoss, never properly openend but were all still stuck pending for a long time, so I forced closed them. But there are now stuck in awaiting unilateral close for a while (longer than expected >2 months). I’m properly connected to the internet, blockchain is synced, have reinstalled CLN and performed a rescan.
In CLN it just shows the 25k sats, but in RTL it shows this, with disconnected peers, even though I am connected to other peers.
I’m kind of confused about whether you have open channels or not. If you have open channels then you can’t and should not be moving any onchain funds anywhere and CLN is completely right to stop you from doing so.
I would assume these channels you have open and never closed are very small, otherwise you’d notice the missing funds onchain, right? I assume you also don’t want to lose those funds.
I think your first steps should be:
lightning-cli listpeerchannels (or listfunds) and note each channel’s state and its funding txid:output.
Look up each funding txid on mempool.space and check whether that funding output has been spent or not
If you’re convinced that everything you had is currently on chain and it’s CLN that’s wrong, we can instead look at prying CLN’s sticky hands off the UTXOs
1 confirmed closed channel, closing complete, but peer is not connected
15 channels are awaiting unilateral close, but the peer is not connected
All funding transactions cannot be found in the mempool or a block explorer. Even from the confirmed closed channel!
If I try to connect to the peers I get error 401, error connecting, tor server reply host unreachable, connection refused
I don’t think it’s my connection, because all blocks are coming in, I succesfully openend and closed other channels before. These channels are the remnant of CLBoss.
Tried to reset my tor connection, but having the same error.
Yeah, we’re in territory here where this isn’t StartOS support, but fully within the world of CLN issues and where your funds are in your hands.
In my opinion, yes, you now need to go through a series of steps to force CLN into a correct state since everything it seems to think it knows about itself is wrong. The CLN docs and the CLN github issues are your friends here.
While not a CLN expert myself, I would check if you need to do something else before forgetting channels. I don’t recall if you’re supposed to make sure your funds reappear onchain before or after that step. Check that first.
lightning-cli dev-rescan-outputs solved my UTXO problem, the incorrect non confirmed UTXO got removed
after that I still got the min_emergency_sat error, but after forgetting the onconfirmed channels with lightning-cli dev-forget-channel $NODEID, CLN accepted the sending of the remaining UTXO’s.