cryptosharks131 / lndg

Lite GUI web interface to analyze lnd data and leverage the backend database for automation tools around rebalancing and other basic maintenance tasks.
MIT License
232 stars 49 forks source link

Error on main page after upgrade from 1.7.1 to 1.8.0 #392

Closed ssurfertuga closed 2 months ago

ssurfertuga commented 3 months ago

After manually upgrading from 1.7.1 to 1.8.0 (I got no errors during the upgrade) I get this error on the homepage:

"Error Code: module 'lndg.settings' has no attribute 'LND_MAX_MESSAGE'"

Screenshot 2024-08-07 at 14 30 58

OS: Ubuntu 22.04 LNDG: 1.8.0 Installation: Manual

cryptosharks131 commented 3 months ago

Seems you are missing a parameter in your settings.py file that was introduced in v1.7.1. These steps will help you solve the issue.

Delete your settings.py file and re-initialize it OR add the required section manually in lndg/settings.py. rm lndg/settings.py .venv/bin/python initialize.py

OR

LND_MAX_MESSAGE = '35'

ref: https://github.com/cryptosharks131/lndg/releases/tag/v1.7.1

ssurfertuga commented 3 months ago

You're right. After I posted here I solved the problem by adding the LND_MAX_MESSAGE = '35' parameter in settings.py. I have another node that had the correct parameter after upgrading and using diff I got there. However it would be interesting to understand why this parameter was not present after upgrading to 1.7.1 or 1.8.0.