lnbits / lnbits

LNbits, free and open-source Lightning wallet and accounts system.
https://lnbits.com
MIT License
1.01k stars 328 forks source link

[BUG] Bolt Cards and User Manager extensions 404 after upgrading from 0.9.4 to 0.10.4 #1646

Open 20a8vnf30 opened 1 year ago

20a8vnf30 commented 1 year ago

Describe the bug I upgraded from LNbits 0.10.0 to 0.10.4, two of my four installed extensions failed to download. When starting up the log shows this:

Apr 23 16:27:54 NUC poetry[252134]: 2023-04-23 16:27:54.37 | INFO | Downloading extension Bolt Cards.
Apr 23 16:27:54 NUC poetry[252134]: 2023-04-23 16:27:54.60 | WARNING | HTTP Error 404: Not Found
Apr 23 16:27:54 NUC poetry[252134]: 2023-04-23 16:27:54.60 | WARNING |
Apr 23 16:27:54 NUC poetry[252134]: 2023-04-23 16:27:54.60 | WARNING | Failed to re-install extension: boltcards
Apr 23 16:27:54 NUC poetry[252134]: 2023-04-23 16:27:54.60 | INFO | Downloading extension User Manager.
Apr 23 16:27:54 NUC poetry[252134]: 2023-04-23 16:27:54.84 | WARNING | HTTP Error 404: Not Found
Apr 23 16:27:54 NUC poetry[252134]: 2023-04-23 16:27:54.84 | WARNING |
Apr 23 16:27:54 NUC poetry[252134]: 2023-04-23 16:27:54.84 | WARNING | Failed to re-install extension: usermanager
Apr 23 16:27:54 NUC poetry[252134]: 2023-04-23 16:27:54.84 | INFO | Downloading extension LndHub.
Apr 23 16:27:55 NUC poetry[252134]: 2023-04-23 16:27:55.28 | INFO | Extracting extension LndHub.
Apr 23 16:27:55 NUC poetry[252134]: 2023-04-23 16:27:55.29 | SUCCESS | Extension LndHub installed.
Apr 23 16:27:55 NUC poetry[252134]: 2023-04-23 16:27:55.33 | INFO | ✔️ Successfully re-installed extension: lndhub
Apr 23 16:27:55 NUC poetry[252134]: 2023-04-23 16:27:55.33 | INFO | Downloading extension LNURLp.
Apr 23 16:27:55 NUC poetry[252134]: 2023-04-23 16:27:55.75 | INFO | Extracting extension LNURLp.
Apr 23 16:27:55 NUC poetry[252134]: 2023-04-23 16:27:55.76 | SUCCESS | Extension LNURLp installed.
Apr 23 16:27:56 NUC poetry[252134]: 2023-04-23 16:27:56.07 | INFO | ✔️ Successfully re-installed extension: lnurlp
Apr 23 16:27:56 NUC poetry[252134]: 2023-04-23 16:27:56.08 | INFO | Application startup complete.

The two offending extensions were also missing from the GUI. I was able to reinstall the extensions from the Manage Extensions GUI and the extension`s data (a bolt card, and a created user and their wallet) was still there.

Expected behavior Upgrading LNbits does not break installed extensions.

motorina0 commented 1 year ago

One possible scenario for this issue:

motorina0 commented 1 year ago

There is also a low probability that GitHub had issues for a few seconds.

Keeping this issue open for a few weeks in case someone else experiences the same problems.

20a8vnf30 commented 1 year ago

If downloading a newer version of an extension fails, I would prefer the older version not to be deleted yet so it can still be used.

motorina0 commented 1 year ago

@20a8vnf30 are you using docker? I'm just curious why the extension was deleted in the first place.

20a8vnf30 commented 1 year ago

@motorina0 Im not using docker. My currenct LNbits instal was done through poetry, the previous version was installed with venv.