Skip to content

ModuleNotFoundError: No module named 'app.models.password_reset_token' #229

@wangxianjin028

Description

@wangxianjin028

Pre-checks

Deployment Method

Docker

Steps to Reproduce

  1. docker-compose build
  2. docker-compose up -d
  3. 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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions