[1.9.0rc2] 500 Internal Server Error

What is the problem?

Octoprint does not properly start up. octopi.local gives "500 Internal Server Error"
with redirected url
http://octopi.local/login/?redirect=%2F%3F&permissions=STATUS,SETTINGS_READ

Maybe this is causes by deleting the cookies in webbrowser, so autologin can't remeber webbrowser???

What did you already try to solve it?

i've tried booting octopi several times.
I've tried several webbrowsers Edge and Firefox.

Have you tried running in safe mode?

can't get in save mode.

Did running in safe mode solve the problem?

n/a

Systeminfo Bundle

can't download Systeminfo Bundle

Additional information about your setup

octoprint.log shows some ERROR Exception on /login/ [GET]

2023-03-14 10:34:39,749 - octoprint.startup - INFO - ******************************************************************************
2023-03-14 10:34:39,754 - octoprint.startup - INFO - Starting OctoPrint 1.9.0rc2
2023-03-14 10:34:39,762 - octoprint.startup - INFO - ******************************************************************************

2023-03-14 10:34:52,420 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python -m pip" as command to invoke pip
2023-03-14 10:34:54,250 - octoprint.util.pip - INFO - Version of pip is 22.3
2023-03-14 10:34:54,262 - octoprint.util.pip - INFO - pip installs to /home/pi/oprint/lib/python3.9/site-packages (writable -> yes), --user flag needed -> no, virtual env -> yes
2023-03-14 10:34:54,263 - octoprint.util.pip - INFO - ==> pip ok -> yes
2023-03-14 10:34:54,521 - octoprint.plugins.softwareupdate - INFO - Loaded version cache from disk
2023-03-14 10:34:54,553 - octoprint.plugins.softwareupdate - INFO - Loaded update log from disk
2023-03-14 10:34:54,699 - octoprint.plugins.firmwareupdater - INFO - Python binproto2 package installed: False
2023-03-14 10:34:54,750 - octoprint.plugin.core - INFO - Initialized 22 plugin implementation(s)
2023-03-14 10:34:54,822 - octoprint - INFO - Installing webcam compat overlay for configured default webcam <octoprint.webcams.ProvidedWebcam object at 0x750a32e0>
2023-03-14 10:34:54,825 - octoprint.plugin.core - INFO - 31 plugin(s) registered with the system:
|  Action Command Notification Support (bundled) = /home/pi/oprint/lib/python3.9/site-packages/octoprint/plugins/action_command_notification
|  Action Command Prompt Support (bundled) = /home/pi/oprint/lib/python3.9/site-packages/octoprint/plugins/action_command_prompt
|  Announcement Plugin (bundled) = /home/pi/oprint/lib/python3.9/site-packages/octoprint/plugins/announcements
|  Anonymous Usage Tracking (bundled) = /home/pi/oprint/lib/python3.9/site-packages/octoprint/plugins/tracking
| !Application Keys Plugin (bundled) = /home/pi/oprint/lib/python3.9/site-packages/octoprint/plugins/appkeys
| !Arc-Welder (1.0.0+u.bb71e8f) = /home/pi/oprint/lib/python3.9/site-packages/octoprint_arc_welder
|  Autoselect Plugin (0.3.0) = /home/pi/oprint/lib/python3.9/site-packages/octoprint_autoselect
|  Backup & Restore (bundled) = /home/pi/oprint/lib/python3.9/site-packages/octoprint/plugins/backup
|  Classic Webcam (bundled) = /home/pi/oprint/lib/python3.9/site-packages/octoprint/plugins/classicwebcam
|  Core Wizard (bundled) = /home/pi/oprint/lib/python3.9/site-packages/octoprint/plugins/corewizard
|  Cost Estimation (3.5.0) = /home/pi/oprint/lib/python3.9/site-packages/octoprint_costestimation
| !Discovery (bundled) = /home/pi/oprint/lib/python3.9/site-packages/octoprint/plugins/discovery
|  DisplayProgress (0.1.3) = /home/pi/oprint/lib/python3.9/site-packages/octoprint_displayprogress
|  Error Tracking (bundled) = /home/pi/oprint/lib/python3.9/site-packages/octoprint/plugins/errortracking
| !Event Manager (bundled) = /home/pi/oprint/lib/python3.9/site-packages/octoprint/plugins/eventmanager
|  File Check (2021.2.23) (bundled) = /home/pi/oprint/lib/python3.9/site-packages/octoprint_file_check
| !FileManager (0.1.6) = /home/pi/oprint/lib/python3.9/site-packages/octoprint_filemanager
| !Firmware Check (2021.10.11) (bundled) = /home/pi/oprint/lib/python3.9/site-packages/octoprint_firmware_check
|  Firmware Updater (1.13.3) = /home/pi/oprint/lib/python3.9/site-packages/octoprint_firmwareupdater
|  GCode Viewer (bundled) = /home/pi/oprint/lib/python3.9/site-packages/octoprint/plugins/gcodeviewer
|  Logging (bundled) = /home/pi/oprint/lib/python3.9/site-packages/octoprint/plugins/logging
|  Octoprint Display ETA (2.2.0) = /home/pi/oprint/lib/python3.9/site-packages/octoprint_display_eta
|  Pi Support Plugin (2022.6.13) (bundled) = /home/pi/oprint/lib/python3.9/site-packages/octoprint_pi_support
|  Plugin Manager (bundled) = /home/pi/oprint/lib/python3.9/site-packages/octoprint/plugins/pluginmanager
| !PortLister (0.1.10) = /home/pi/oprint/lib/python3.9/site-packages/octoprint_portlister
|  PrintTimeGenius Plugin (2.3.0) = /home/pi/oprint/lib/python3.9/site-packages/octoprint_PrintTimeGenius
|  RequestSpinner (0.2.0) = /home/pi/oprint/lib/python3.9/site-packages/octoprint_requestspinner
|  Resource Monitor (0.3.12) = /home/pi/oprint/lib/python3.9/site-packages/octoprint_resource_monitor
|  Software Update (bundled) = /home/pi/oprint/lib/python3.9/site-packages/octoprint/plugins/softwareupdate
| !Tab Order (0.5.12) = /home/pi/oprint/lib/python3.9/site-packages/octoprint_taborder
| !Virtual Printer (bundled) = /home/pi/oprint/lib/python3.9/site-packages/octoprint/plugins/virtual_printer
Prefix legend: ! = disabled, # = blacklisted, * = incompatible
2023-03-14 10:34:54,879 - octoprint.environment - INFO - Detected environment is Python 3.9.2 under Linux (linux). Details:
|  hardware:
|    cores: 4
|    freq: 1200.0
|    ram: 912883712
|  os:
|    bits: 32
|    id: linux
|    platform: linux
|  plugins:
|    pi_support:
|      model: Raspberry Pi 3 Model B Rev 1.2
|      octopi_version: 1.0.0
|      octopiuptodate_build: 1.0.0-1.8.6-20230222095002
|      throttle_check_enabled: true
|      throttle_check_functional: true
|      throttle_state: '0x0'
|  python:
|    pip: '22.3'
|    version: 3.9.2
|    virtualenv: /home/pi/oprint
2023-03-14 10:34:54,909 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/webassets...
2023-03-14 10:34:54,911 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/.webassets-cache...
2023-03-14 10:34:54,913 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/.webassets-manifest.json...
2023-03-14 10:34:55,177 - octoprint.plugins.costestimation - WARNING - The Blueprint of this plugin is relying on the default implementation of is_blueprint_csrf_protected (newly added in OctoPrint 1.8.3), which in a future version will be switched from False to True for security reasons. Plugin authors should ensure they explicitly declare the CSRF protection status in their BlueprintPlugin mixin implementation. Recommendation is to enable CSRF protection and exempt views that must not use it with the octoprint.plugin.BlueprintPlugin.csrf_exempt decorator.
2023-03-14 10:34:55,178 - octoprint.server - WARNING - CSRF Protection for Blueprint of plugin costestimation is DISABLED
2023-03-14 10:34:55,183 - octoprint.plugins.firmwareupdater - WARNING - The Blueprint of this plugin is relying on the default implementation of is_blueprint_csrf_protected (newly added in OctoPrint 1.8.3), which in a future version will be switched from False to True for security reasons. Plugin authors should ensure they explicitly declare the CSRF protection status in their BlueprintPlugin mixin implementation. Recommendation is to enable CSRF protection and exempt views that must not use it with the octoprint.plugin.BlueprintPlugin.csrf_exempt decorator.
2023-03-14 10:34:55,184 - octoprint.server - WARNING - CSRF Protection for Blueprint of plugin firmwareupdater is DISABLED
2023-03-14 10:34:55,189 - octoprint.plugins.resource_monitor - WARNING - The Blueprint of this plugin is relying on the default implementation of is_blueprint_csrf_protected (newly added in OctoPrint 1.8.3), which in a future version will be switched from False to True for security reasons. Plugin authors should ensure they explicitly declare the CSRF protection status in their BlueprintPlugin mixin implementation. Recommendation is to enable CSRF protection and exempt views that must not use it with the octoprint.plugin.BlueprintPlugin.csrf_exempt decorator.
2023-03-14 10:34:55,190 - octoprint.server - WARNING - CSRF Protection for Blueprint of plugin resource_monitor is DISABLED
2023-03-14 10:34:55,998 - octoprint.settings - WARNING - DeprecationWarning: Detected access to deprecated settings path ['webcam', 'snapshot'], returned value is derived from compatibility overlay. Please use the webcam system introduced with 1.9.0, this compatibility layer will be removed in a future release.
2023-03-14 10:34:56,029 - octoprint.plugins.firmwareupdater - INFO - Setting maximum upload size for /flash to 5243904
2023-03-14 10:34:56,030 - octoprint.server - INFO - Shutting down intermediary server...
2023-03-14 10:34:56,182 - octoprint.server - INFO - Intermediary server shut down
2023-03-14 10:34:56,188 - octoprint.events - INFO - Processing startup event, this is our first event
2023-03-14 10:34:56,189 - octoprint.events - INFO - Adding 2 events to queue that were held back before startup event
2023-03-14 10:34:56,203 - octoprint.filemanager - INFO - Adding backlog items from all storage types to analysis queue...
2023-03-14 10:34:56,206 - octoprint.server - INFO - Autoconnect on startup is configured, trying to connect to the printer...
2023-03-14 10:34:56,274 - octoprint.filemanager - INFO - Added 0 items from storage type "local" to analysis queue
2023-03-14 10:34:56,294 - octoprint.plugins.softwareupdate - INFO - Fetching check overlays from https://plugins.octoprint.org/update_check_overlay.json
2023-03-14 10:34:56,387 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from disk, was still valid
2023-03-14 10:34:56,514 - octoprint.server - INFO - Trying to connect to configured serial port None
2023-03-14 10:34:57,138 - octoprint.plugins.tracking - INFO - Sent tracking event system_unthrottled, payload: {'throttled_now': False, 'throttled_past': False, 'throttled_mask': 0, 'throttled_voltage_now': False, 'throttled_voltage_past': False, 'throttled_overheat_now': False, 'throttled_overheat_past': False}
2023-03-14 10:34:57,219 - octoprint.util.comm - INFO - Changing monitoring state from "Offline" to "Detecting serial connection"
2023-03-14 10:34:57,262 - octoprint.server - INFO - Starting autorefresh of serial port list
2023-03-14 10:34:57,293 - octoprint.server - INFO - Autorefresh of serial port list stopped
2023-03-14 10:34:57,310 - octoprint.util.comm - INFO - Serial detection: Performing autodetection with 1 port/baudrate candidates: /dev/ttyUSB0@115200
2023-03-14 10:34:57,331 - octoprint.server.util.watchdog - INFO - Running initial scan on watched folder...
2023-03-14 10:34:57,356 - octoprint.util.comm - INFO - Serial detection: Trying port /dev/ttyUSB0, baudrate 115200
2023-03-14 10:34:57,391 - octoprint.server.util.watchdog - INFO - ... initial scan done.
2023-03-14 10:34:57,416 - octoprint.util.comm - INFO - Connecting to port /dev/ttyUSB0, baudrate 115200
2023-03-14 10:34:57,559 - octoprint.util.comm - INFO - Serial detection: Handshake attempt #1 with timeout 2.0s
2023-03-14 10:34:57,572 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2023-03-14 10:34:57,869 - octoprint.server - INFO - Listening on http://127.0.0.1:5000
2023-03-14 10:34:58,021 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from disk, was still valid
2023-03-14 10:34:59,571 - octoprint.util.comm - INFO - Serial detection: Handshake attempt #2 with timeout 2.0s
2023-03-14 10:34:59,597 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2023-03-14 10:35:00,253 - octoprint.util.pip - INFO - Using "/home/pi/oprint/bin/python -m pip" as command to invoke pip
2023-03-14 10:35:00,255 - octoprint.util.pip - INFO - pip installs to /home/pi/oprint/lib/python3.9/site-packages (writable -> yes), --user flag needed -> no, virtual env -> yes
2023-03-14 10:35:00,255 - octoprint.util.pip - INFO - ==> pip ok -> yes
2023-03-14 10:35:00,403 - octoprint.plugins.softwareupdate - INFO - Minimum free storage across all update relevant locations is 23.4GB. That is considered sufficient for updating.
2023-03-14 10:35:00,587 - octoprint.plugins.pluginmanager - INFO - Loaded notice data from disk, was still valid
2023-03-14 10:35:01,095 - octoprint.plugins.tracking - INFO - Sent tracking event ping, payload: {'octoprint_uptime': 14, 'printer_state': 'DETECT_SERIAL'}
2023-03-14 10:35:01,500 - octoprint.plugins.tracking - INFO - Sent tracking event pong, payload: {'version': '1.9.0rc2', 'os': 'linux', 'bits': 32, 'python': '3.9.2', 'pip': '22.3', 'cores': 4, 'freq': 1200.0, 'ram': 912883712, 'pi_model': 'Raspberry Pi 3 Model B Rev 1.2', 'octopi_version': '1.0.0', 'octopiuptodate_build': '1.0.0-1.8.6-20230222095002', 'plugins': 'resource_monitor:0.3.12,requestspinner:0.2.0,printtimegenius:2.3.0,firmwareupdater:1.13.3,displayprogress:0.1.3,display_eta:2.2.0,costestimation:3.5.0,autoselect:0.3.0'}
2023-03-14 10:35:01,582 - octoprint.util.comm - INFO - Serial detection: Handshake attempt #3 with timeout 2.0s
2023-03-14 10:35:01,596 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2023-03-14 10:35:01,729 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'base_url': 'http://octopi.local/', 'path': '/', 'query_string': 'l10n=de'}
2023-03-14 10:35:01,824 - octoprint.plugins.tracking - INFO - Sent tracking event startup, payload: {'version': '1.9.0rc2', 'os': 'linux', 'bits': 32, 'python': '3.9.2', 'pip': '22.3', 'cores': 4, 'freq': 1200.0, 'ram': 912883712, 'pi_model': 'Raspberry Pi 3 Model B Rev 1.2', 'octopi_version': '1.0.0', 'octopiuptodate_build': '1.0.0-1.8.6-20230222095002'}
2023-03-14 10:35:02,011 - octoprint.plugins.pluginmanager - INFO - Loaded notice data from disk, was still valid
2023-03-14 10:35:03,601 - octoprint.util.comm - INFO - Changing monitoring state from "Detecting serial connection" to "Error"
2023-03-14 10:35:03,671 - octoprint.util.comm - INFO - Changing monitoring state from "Error" to "Offline after error"
2023-03-14 10:35:03,739 - octoprint.server - INFO - Starting autorefresh of serial port list
2023-03-14 10:35:03,768 - octoprint.plugins.action_command_notification - INFO - Notifications cleared
2023-03-14 10:35:03,784 - octoprint.server - INFO - Serial port list was updated, refreshing the port list in the frontend
2023-03-14 10:35:03,981 - octoprint.plugins.tracking - INFO - Sent tracking event commerror_autodetect, payload: {'commerror_text': 'No more candidates to test, and no working port/baudrate combination detected.'}
2023-03-14 10:39:51,861 - octoprint.server.preemptive_cache - INFO - ... done in 14.75s
2023-03-14 10:40:23,560 - octoprint - ERROR - Exception on /login/ [GET]
Traceback (most recent call last):
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 2528, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 1825, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 1823, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/home/pi/oprint/lib/python3.9/site-packages/octoprint/server/views.py", line 198, in login
    url_for("plugin.appkeys.handle_auth_dialog", app_token="*"),
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/helpers.py", line 256, in url_for
    return current_app.url_for(
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 2034, in url_for
    return self.handle_url_build_error(error, endpoint, values)
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 2023, in url_for
    rv = url_adapter.build(  # type: ignore[union-attr]
  File "/home/pi/oprint/lib/python3.9/site-packages/werkzeug/routing/map.py", line 917, in build
    raise BuildError(endpoint, values, method, self)
werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'plugin.appkeys.handle_auth_dialog' with values ['app_token']. Did you mean 'plugin.backup.delete_backup' instead?
2023-03-14 10:40:38,350 - octoprint - ERROR - Exception on /login/ [GET]
Traceback (most recent call last):
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 2528, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 1825, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 1823, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/home/pi/oprint/lib/python3.9/site-packages/octoprint/server/views.py", line 198, in login
    url_for("plugin.appkeys.handle_auth_dialog", app_token="*"),
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/helpers.py", line 256, in url_for
    return current_app.url_for(
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 2034, in url_for
    return self.handle_url_build_error(error, endpoint, values)
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 2023, in url_for
    rv = url_adapter.build(  # type: ignore[union-attr]
  File "/home/pi/oprint/lib/python3.9/site-packages/werkzeug/routing/map.py", line 917, in build
    raise BuildError(endpoint, values, method, self)
werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'plugin.appkeys.handle_auth_dialog' with values ['app_token']. Did you mean 'plugin.backup.delete_backup' instead?
2023-03-14 10:40:46,714 - octoprint - ERROR - Exception on /login/ [GET]
Traceback (most recent call last):
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 2528, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 1825, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 1823, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/home/pi/oprint/lib/python3.9/site-packages/octoprint/server/views.py", line 198, in login
    url_for("plugin.appkeys.handle_auth_dialog", app_token="*"),
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/helpers.py", line 256, in url_for
    return current_app.url_for(
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 2034, in url_for
    return self.handle_url_build_error(error, endpoint, values)
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 2023, in url_for
    rv = url_adapter.build(  # type: ignore[union-attr]
  File "/home/pi/oprint/lib/python3.9/site-packages/werkzeug/routing/map.py", line 917, in build
    raise BuildError(endpoint, values, method, self)
werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'plugin.appkeys.handle_auth_dialog' with values ['app_token']. Did you mean 'plugin.backup.delete_backup' instead?
2023-03-14 10:40:50,124 - octoprint - ERROR - Exception on /login/ [GET]
Traceback (most recent call last):
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 2528, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 1825, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 1823, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/home/pi/oprint/lib/python3.9/site-packages/octoprint/server/views.py", line 198, in login
    url_for("plugin.appkeys.handle_auth_dialog", app_token="*"),
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/helpers.py", line 256, in url_for
    return current_app.url_for(
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 2034, in url_for
    return self.handle_url_build_error(error, endpoint, values)
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 2023, in url_for
    rv = url_adapter.build(  # type: ignore[union-attr]
  File "/home/pi/oprint/lib/python3.9/site-packages/werkzeug/routing/map.py", line 917, in build
    raise BuildError(endpoint, values, method, self)
werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'plugin.appkeys.handle_auth_dialog' with values ['app_token']. Did you mean 'plugin.backup.delete_backup' instead?
2023-03-14 10:40:51,110 - octoprint - ERROR - Exception on /login/ [GET]
Traceback (most recent call last):
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 2528, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 1825, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 1823, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/home/pi/oprint/lib/python3.9/site-packages/octoprint/server/views.py", line 198, in login
    url_for("plugin.appkeys.handle_auth_dialog", app_token="*"),
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/helpers.py", line 256, in url_for
    return current_app.url_for(
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 2034, in url_for
    return self.handle_url_build_error(error, endpoint, values)
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 2023, in url_for
    rv = url_adapter.build(  # type: ignore[union-attr]
  File "/home/pi/oprint/lib/python3.9/site-packages/werkzeug/routing/map.py", line 917, in build
    raise BuildError(endpoint, values, method, self)
werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'plugin.appkeys.handle_auth_dialog' with values ['app_token']. Did you mean 'plugin.backup.delete_backup' instead?
2023-03-14 10:40:55,789 - octoprint - ERROR - Exception on /login/ [GET]
Traceback (most recent call last):
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 2528, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 1825, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 1823, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/home/pi/oprint/lib/python3.9/site-packages/octoprint/server/views.py", line 198, in login
    url_for("plugin.appkeys.handle_auth_dialog", app_token="*"),
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/helpers.py", line 256, in url_for
    return current_app.url_for(
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 2034, in url_for
    return self.handle_url_build_error(error, endpoint, values)
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 2023, in url_for
    rv = url_adapter.build(  # type: ignore[union-attr]
  File "/home/pi/oprint/lib/python3.9/site-packages/werkzeug/routing/map.py", line 917, in build
    raise BuildError(endpoint, values, method, self)
werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'plugin.appkeys.handle_auth_dialog' with values ['app_token']. Did you mean 'plugin.backup.delete_backup' instead?
2023-03-14 10:42:50,231 - octoprint - ERROR - Exception on /login/ [GET]
Traceback (most recent call last):
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 2528, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 1825, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 1823, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/home/pi/oprint/lib/python3.9/site-packages/octoprint/server/views.py", line 198, in login
    url_for("plugin.appkeys.handle_auth_dialog", app_token="*"),
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/helpers.py", line 256, in url_for
    return current_app.url_for(
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 2034, in url_for
    return self.handle_url_build_error(error, endpoint, values)
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 2023, in url_for
    rv = url_adapter.build(  # type: ignore[union-attr]
  File "/home/pi/oprint/lib/python3.9/site-packages/werkzeug/routing/map.py", line 917, in build
    raise BuildError(endpoint, values, method, self)
werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'plugin.appkeys.handle_auth_dialog' with values ['app_token']. Did you mean 'plugin.backup.delete_backup' instead?
2023-03-14 10:42:51,838 - octoprint - ERROR - Exception on /login/ [GET]
Traceback (most recent call last):
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 2528, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 1825, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 1823, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/home/pi/oprint/lib/python3.9/site-packages/octoprint/server/views.py", line 198, in login
    url_for("plugin.appkeys.handle_auth_dialog", app_token="*"),
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/helpers.py", line 256, in url_for
    return current_app.url_for(
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 2034, in url_for
    return self.handle_url_build_error(error, endpoint, values)
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 2023, in url_for
    rv = url_adapter.build(  # type: ignore[union-attr]
  File "/home/pi/oprint/lib/python3.9/site-packages/werkzeug/routing/map.py", line 917, in build
    raise BuildError(endpoint, values, method, self)
werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'plugin.appkeys.handle_auth_dialog' with values ['app_token']. Did you mean 'plugin.backup.delete_backup' instead?
2023-03-14 10:42:52,742 - octoprint - ERROR - Exception on /login/ [GET]
Traceback (most recent call last):
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 2528, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 1825, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 1823, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 1799, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/home/pi/oprint/lib/python3.9/site-packages/octoprint/server/views.py", line 198, in login
    url_for("plugin.appkeys.handle_auth_dialog", app_token="*"),
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/helpers.py", line 256, in url_for
    return current_app.url_for(
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 2034, in url_for
    return self.handle_url_build_error(error, endpoint, values)
  File "/home/pi/oprint/lib/python3.9/site-packages/flask/app.py", line 2023, in url_for
    rv = url_adapter.build(  # type: ignore[union-attr]
  File "/home/pi/oprint/lib/python3.9/site-packages/werkzeug/routing/map.py", line 917, in build
    raise BuildError(endpoint, values, method, self)
werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'plugin.appkeys.handle_auth_dialog' with values ['app_token']. Did you mean 'plugin.backup.delete_backup' instead?

Hello @JoGrob !

Can you do us a favour: Please put code snippets between code braces
Format

or upload them as file

Upload

You are running the 1.9.0 release candidate version, any bugs/issues/problems that you find should be reported on the issue tracker please!!. This is a bug that has been introduced in 1.9.0 as you have disabled the Application Keys plugin.

Please create a bug report ASAP (it doesn't have to be detailed, the problem is obvious - just similar to what you put here, but in a different place):
New Issue Β· OctoPrint/OctoPrint (github.com)

1 Like

Many many thanks for your very usefull hint.
I have enabled Application Keys plugin via SSH and octoprint is working again.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.