mirror of
https://github.com/open-webui/docs.git
synced 2026-11-05 01:38:13 +00:00
[GH-ISSUE #822] issue: MCP stops working after recreating the container: Error decrypting tokens #115
Labels
No labels
bug
documentation
documentation
duplicate
enhancement
enhancement
good first issue
good first issue
good first issue
help wanted
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/docs#115
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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).
Original GitHub issue: https://github.com/open-webui/docs/issues/822
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