mirror of
https://github.com/open-webui/docs.git
synced 2026-07-19 05:06:11 -04:00
issue: MCP stops working after recreating the container: Error decrypting tokens #115
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tuzumkuru on GitHub (Nov 14, 2025).
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.36
Ollama Version (if applicable)
No response
Operating System
N/A
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
OAuth sessions for Notion MCP should remain valid after recreating the OpenWebUI Docker container. Tokens should not become undecryptable simply from container recreation.
Actual Behavior
After recreating the doAfter updating or recreating the OpenWebUI container, Notion MCP OAuth sessions fail with errors like:
The only workaround is to change the MCP server ID or delete all OAuth sessions and reauthorize.cker container without having the WEBUI_SECRET_KEY set, the ol
Steps to Reproduce
Logs & Screenshots
ERROR | open_webui.models.oauth_sessions:_decrypt_token:105 - Error decrypting tokens
WARNING | open_webui.utils.oauth:get_oauth_token:525 - No OAuth session found for user 9b688d61-0b1c-4022-8358-337d2498dca9, client_id mcp:notion_mcp
Additional Information
@tjbck commented on GitHub (Nov 16, 2025):
WEBUI_SECRET_KEYis required, @silentoplayz @Classic298 our docs should be updated.@Classic298 commented on GitHub (Dec 20, 2025):
fixed in dev