[GH-ISSUE #1089] Something went wrong :/ 'AuthModel' object has no attribute 'model_dump' #12331

Closed
opened 2026-04-19 19:14:05 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @liucoj on GitHub (Mar 7, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/1089

Hi,
after running for long time OpenWebUi I can't register o login anymore,
An error "Something went wrong :/ 'AuthModel' object has no attribute 'model_dump'" pop-ups
For terminal i see:
INFO: 127.0.0.1:49949 - "POST /auths/signup HTTP/1.1" 500 Internal Server Error

I don't use Docker but manual installation.
No problem during install (npm, bun, pip) and localhost:8080 starts with no errors.
Any help?
Thank you!

ps:
I'm on a MacOS sonoma, python 3.11

Originally created by @liucoj on GitHub (Mar 7, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/1089 Hi, after running for long time OpenWebUi I can't register o login anymore, An error "Something went wrong :/ 'AuthModel' object has no attribute 'model_dump'" pop-ups For terminal i see: INFO: 127.0.0.1:49949 - "POST /auths/signup HTTP/1.1" 500 Internal Server Error I don't use Docker but manual installation. No problem during install (npm, bun, pip) and localhost:8080 starts with no errors. Any help? Thank you! ps: I'm on a MacOS sonoma, python 3.11
Author
Owner

@justinh-rahb commented on GitHub (Mar 7, 2024):

Possibly tangential to the issue you're having, but why are you using signup if you already have an account? Unless you're clearing your backend/data folder each time you update you should be able to login with the account you created previously.

<!-- gh-comment-id:1983958988 --> @justinh-rahb commented on GitHub (Mar 7, 2024): Possibly tangential to the issue you're having, but why are you using signup if you already have an account? Unless you're clearing your `backend/data` folder each time you update you should be able to login with the account you created previously.
Author
Owner

@liucoj commented on GitHub (Mar 7, 2024):

Possibly tangential to the issue you're having, but why are you using signup if you already have an account? Unless you're clearing your backend/data folder each time you update you should be able to login with the account you created previously.

Hi, I accidentally threw away open-webui folder so I installed it again with these commands:

  • cloned again from here
  • I created an env file: cp -RPp .env.example .env
  • Run "bun install" and "bun run build"
  • cd in backend and "pip install -r requirements.txt"
  • sh start.sh

No problem launching open-webui, no errors on terminal on launch, it stacks on registration with an error 500
I tried also to download version 0.1.109 but same error.

<!-- gh-comment-id:1983979077 --> @liucoj commented on GitHub (Mar 7, 2024): > Possibly tangential to the issue you're having, but why are you using signup if you already have an account? Unless you're clearing your `backend/data` folder each time you update you should be able to login with the account you created previously. Hi, I accidentally threw away open-webui folder so I installed it again with these commands: - cloned again from here - I created an env file: cp -RPp .env.example .env - Run "bun install" and "bun run build" - cd in backend and "pip install -r requirements.txt" - sh start.sh No problem launching open-webui, no errors on terminal on launch, it stacks on registration with an error 500 I tried also to download version 0.1.109 but same error.
Author
Owner

@liucoj commented on GitHub (Mar 7, 2024):

Solved, it was something related to python version after macOS update (maybe command line tools update)
Using python3 venv solved auth issue.

<!-- gh-comment-id:1984098168 --> @liucoj commented on GitHub (Mar 7, 2024): Solved, it was something related to python version after macOS update (maybe command line tools update) Using python3 venv solved auth issue.
Author
Owner

@dukai289 commented on GitHub (Jul 3, 2024):

I met the same problem: "ERROR:apps.webui.routers.chats:'ChatModel' object has no attribute 'model_dump'"
Just because i set the port "open-webui serve --port 8502", the I got that error.
First time when I excute "open-webui serve", it's ok. When I set the port, it raises errors like above.

<!-- gh-comment-id:2205244192 --> @dukai289 commented on GitHub (Jul 3, 2024): I met the same problem: "ERROR:apps.webui.routers.chats:'ChatModel' object has no attribute 'model_dump'" Just because i set the port "open-webui serve --port 8502", the I got that error. First time when I excute "open-webui serve", it's ok. When I set the port, it raises errors like above.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#12331