Clawith
Clawith copied to clipboard
ModuleNotFoundError: No module named 'app.models.password_reset_token'
Pre-checks
- [x] I have searched existing issues and this is not a duplicate.
Deployment Method
Docker
Steps to Reproduce
- docker-compose build
- docker-compose up -d
- backend container report :ModuleNotFoundError: No module named 'app.models.password_reset_token'
Expected vs Actual Behavior
Expected: backend running without exit Actual:
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 691, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "<stdin>", line 26, in main
ModuleNotFoundError: No module named 'app.models.password_reset_token'
[entrypoint] Detected root user, fixing permissions...
[entrypoint] Dropping privileges to 'clawith' and re-executing...
[entrypoint] Step 1: Creating/verifying database tables...
Traceback (most recent call last):
File "<stdin>", line 78, in <module>
File "/usr/local/lib/python3.12/asyncio/runners.py", line 195, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 691, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "<stdin>", line 26, in main
ModuleNotFoundError: No module named 'app.models.password_reset_token'
Logs / Screenshots
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 691, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "<stdin>", line 26, in main
ModuleNotFoundError: No module named 'app.models.password_reset_token'
[entrypoint] Detected root user, fixing permissions...
[entrypoint] Dropping privileges to 'clawith' and re-executing...
[entrypoint] Step 1: Creating/verifying database tables...
Traceback (most recent call last):
File "<stdin>", line 78, in <module>
File "/usr/local/lib/python3.12/asyncio/runners.py", line 195, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 691, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "<stdin>", line 26, in main
ModuleNotFoundError: No module named 'app.models.password_reset_token'
+1
@yaojin3616
Thanks for the report! This issue has been resolved in the current version.
The app.models.password_reset_token module was referenced in an early version of the entrypoint bootstrap script. It has since been removed — password reset functionality is now handled entirely by app.services.password_reset_service, which does not require a separate model file.
To resolve: Pull the latest code and rebuild your Docker image:
git pull origin main
docker compose down && docker compose up -d --build
Closing this issue. Feel free to re-open if you encounter it on the latest version.