Why is my channel stuck in a "pending" state when closing or opening?

This usually occurs when one of your channels gets force closed by the other party.

Force closing a channel happens when one side is offline for a while and takes much longer to go through the closing process as a penalty. It's possible that your node was temporarily offline and the other side closed the channel.

If you've got a channel that's been stuck closing (or opening) with you for over a month, that usually mean you're experiencing an LND bug that occasionally happens. The only way to get rid of the stuck channel in your node is if you closed all your lightning channels (and removed your funds) and performed a factory reset on the node. If you didn't want to bother with that, there's no harm in leaving it sitting as pending. 

Did this solve your problem?