Skip to content

Docker container crashes immediately #19

@DekFTW

Description

@DekFTW

log:
claude-wrapper-1 | INFO: Will watch for changes in these directories: ['/app']
claude-wrapper-1 | INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
claude-wrapper-1 | INFO: Started reloader process [1] using WatchFiles
claude-wrapper-1 | Process SpawnProcess-1:
claude-wrapper-1 | Traceback (most recent call last):
claude-wrapper-1 | File "/usr/local/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap
claude-wrapper-1 | self.run()
claude-wrapper-1 | File "/usr/local/lib/python3.12/multiprocessing/process.py", line 108, in run
claude-wrapper-1 | self._target(*self._args, **self._kwargs)
claude-wrapper-1 | File "/root/.cache/pypoetry/virtualenvs/claude-code-openai-wrapper-9TtSrW0h-py3.12/lib/python3.12/site-packages/uvicorn/_subprocess.py", line 80, in subprocess_started
claude-wrapper-1 | target(sockets=sockets)
claude-wrapper-1 | File "/root/.cache/pypoetry/virtualenvs/claude-code-openai-wrapper-9TtSrW0h-py3.12/lib/python3.12/site-packages/uvicorn/server.py", line 65, in run
claude-wrapper-1 | return asyncio.run(self.serve(sockets=sockets))
claude-wrapper-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
claude-wrapper-1 | File "/usr/local/lib/python3.12/asyncio/runners.py", line 195, in run
claude-wrapper-1 | return runner.run(main)
claude-wrapper-1 | ^^^^^^^^^^^^^^^^
claude-wrapper-1 | File "/usr/local/lib/python3.12/asyncio/runners.py", line 118, in run
claude-wrapper-1 | return self._loop.run_until_complete(task)
claude-wrapper-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
claude-wrapper-1 | File "uvloop/loop.pyx", line 1518, in uvloop.loop.Loop.run_until_complete
claude-wrapper-1 | File "/root/.cache/pypoetry/virtualenvs/claude-code-openai-wrapper-9TtSrW0h-py3.12/lib/python3.12/site-packages/uvicorn/server.py", line 69, in serve
claude-wrapper-1 | await self._serve(sockets)
claude-wrapper-1 | File "/root/.cache/pypoetry/virtualenvs/claude-code-openai-wrapper-9TtSrW0h-py3.12/lib/python3.12/site-packages/uvicorn/server.py", line 76, in _serve
claude-wrapper-1 | config.load()
claude-wrapper-1 | File "/root/.cache/pypoetry/virtualenvs/claude-code-openai-wrapper-9TtSrW0h-py3.12/lib/python3.12/site-packages/uvicorn/config.py", line 434, in load
claude-wrapper-1 | self.loaded_app = import_from_string(self.app)
claude-wrapper-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
claude-wrapper-1 | File "/root/.cache/pypoetry/virtualenvs/claude-code-openai-wrapper-9TtSrW0h-py3.12/lib/python3.12/site-packages/uvicorn/importer.py", line 19, in import_from_string
claude-wrapper-1 | module = importlib.import_module(module_str)
claude-wrapper-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
claude-wrapper-1 | File "/usr/local/lib/python3.12/importlib/init.py", line 90, in import_module
claude-wrapper-1 | return _bootstrap._gcd_import(name[level:], package, level)
claude-wrapper-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
claude-wrapper-1 | File "", line 1387, in _gcd_import
claude-wrapper-1 | File "", line 1360, in _find_and_load
claude-wrapper-1 | File "", line 1331, in _find_and_load_unlocked
claude-wrapper-1 | File "", line 935, in _load_unlocked
claude-wrapper-1 | File "", line 999, in exec_module
claude-wrapper-1 | File "", line 488, in _call_with_frames_removed
claude-wrapper-1 | File "/app/src/main.py", line 18, in
claude-wrapper-1 | from src.models import (
claude-wrapper-1 | ImportError: cannot import name 'MCPServerConfig' from 'src.models' (/app/src/models.py)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions