Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] "Starlette.status" Can not install/deinstall extensions #2470

Open
DoktorShift opened this issue Apr 26, 2024 · 1 comment
Open

[BUG] "Starlette.status" Can not install/deinstall extensions #2470

DoktorShift opened this issue Apr 26, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@DoktorShift
Copy link

Describe the bug
I run my own lnbits server. I did not do some custom modifications. All i did is downloading extensions from external resources i trust.

Following i will paste some log output. In this cases i wanted to install or deinstall extensions.

For example when i want to install Scheduler (by bitkarott) i get the following error:


Apr 24 12:34:27 2016-xx poetry[1881470]: 2024-04-24 12:34:27.47 | INFO | Downloading extension scheduler (v0.1.1).
Apr 24 12:34:27 2016-xx poetry[1881470]: 2024-04-24 12:34:27.83 | INFO | Extracting extension scheduler (v0.1.1).
Apr 24 12:34:27 2016-xx poetry[1881470]: 2024-04-24 12:34:27.84 | SUCCESS | Extension Scheduler (v0.1.1) installed.
Apr 24 12:34:27 2016-xx poetry[1881470]: running migration scheduler.3
Apr 24 12:34:27 2016-xx poetry[1881470]: 2024-04-24 12:34:27.97 | WARNING | (sqlite3.OperationalError) near "DROP": syntax error

Apr 24 12:34:27 2016-xx poetry[1881470]: [SQL: ALTER TABLE scheduler.jobs DROP COLUMN command;]
Apr 24 12:34:27 2016-xx poetry[1881470]: (Background on this error at: http://sqlalche.me/e/13/e3q8)

[...]

Apr 24 12:34:28 2016-xx poetry[1881470]: AttributeError: module 'starlette.status' has no attribute 'INTERNAL_SERVER_ERROR'. Did you mean: 'HTTP_500_INTERNAL_SERVER_ERROR'?
Apr 24 12:34:28 2016-xx poetry[1881470]: 2024-04-24 12:34:28.03 | ERROR | Exception: module 'starlette.status' has no attribute 'INTERNAL_SERVER_ERROR'

Same for extension Strike

Apr 24 12:32:38 2016-xx poetry[1881470]: 2024-04-24 12:32:38.87 | INFO | Downloading extension strike (0.1.1).
Apr 24 12:32:39 2016-xx poetry[1881470]: 2024-04-24 12:32:39.24 | INFO | Extracting extension strike (0.1.1).
Apr 24 12:32:39 2016-xx poetry[1881470]: 2024-04-24 12:32:39.25 | SUCCESS | Extension Strike (0.1.1) installed.

Apr 24 12:32:39 2016-xx poetry[1881470]: AttributeError: module 'starlette.status' has no attribute 'BAD_REQUEST'
Apr 24 12:32:39 2016-xx poetry[1881470]: 2024-04-24 12:32:39.28 | ERROR | Exception: module 'starlette.status' has no attribute 'BAD_REQUEST'

even when i want to deinstall Cashu (which is from the original extension source) i got an error like this which is promting

module 'starlette.status' has no attribute 'BAD_REQUEST'
500 

Desktop (please complete the following information):

  • LNbits version: 0.12.5
  • Database sqlite

Additional data
I migrated my /lnbits/data structure one time to another VPS (like 4 month ago) with the same version of lnbits. This just as information for potential database problems occuring during migration process.
Migration process was smooth at all.

@DoktorShift DoktorShift added the bug Something isn't working label Apr 26, 2024
@santyr
Copy link

santyr commented May 4, 2024

I also have this issue.

  • LNbits version: 0.12.5
    
  • Database postgres
    

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants