Skip to content

[bug] Internal Error 500 on setup #855

@maxrdavidson

Description

@maxrdavidson

Describe the bug
When first setting up a fresh install, pressing "Save" on dbconfig page leads to a 500 error

To Reproduce
Steps to reproduce the behavior:

  1. Install CWA:latest (3.1.4) from docker hub
  2. log in to cwa (:8083)
  3. go to first setup page (:8083/admin/dbconfig)
  4. leave boxes unchecked, default location untouched as "/calibre-library"
  5. Press Save, see error

Expected behavior
The settings to save and then I can continue setting up CWA

Screenshots


Calibre-Web Automated
500 Internal Server Error
The server encountered an internal error and was unable to complete your request. There is an error in the application.
Traceback (most recent call last):
File "/lsiopy/lib/python3.10/site-packages/flask/app.py", line 1511, in wsgi_app
response = self.full_dispatch_request()
File "/lsiopy/lib/python3.10/site-packages/flask/app.py", line 919, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/lsiopy/lib/python3.10/site-packages/flask/app.py", line 917, in full_dispatch_request
rv = self.dispatch_request()
File "/lsiopy/lib/python3.10/site-packages/flask/app.py", line 902, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
File "/app/calibre-web-automated/cps/usermanagement.py", line 100, in decorated_view
return login_required(func)(*args, **kwargs)
File "/app/calibre-web-automated/cps/cw_login/utils.py", line 302, in decorated_view
return current_app.ensure_sync(func)(*args, **kwargs)
File "/app/calibre-web-automated/cps/admin.py", line 85, in inner
return f(*args, **kwargs)
File "/app/calibre-web-automated/cps/admin.py", line 275, in db_configuration
return _db_configuration_update_helper()
File "/app/calibre-web-automated/cps/admin.py", line 1746, in _db_configuration_update_helper
to_save['config_calibre_dir'],
KeyError: 'config_calibre_dir'

Configuration(please complete the following information):

  • OS: DSM/Docker
  • Hardware: Synology NAS
  • Version 3.1.4

Additional context
I have checked my permissions in my folders and have been able to place a book in the ingest file and have it process to the library folder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions