|
|
@@ -1,183 +1,18 @@
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 90, in __call__
|
|
|
- await self.middleware_stack(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 186, in __call__
|
|
|
- raise exc
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 164, in __call__
|
|
|
- await self.app(scope, receive, _send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/middleware/cors.py", line 88, in __call__
|
|
|
- await self.app(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
|
|
|
- await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
|
|
|
- raise exc
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
|
|
|
- await app(scope, receive, sender)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
|
|
|
- await self.app(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 660, in __call__
|
|
|
- await self.middleware_stack(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 680, in app
|
|
|
- await route.handle(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 276, in handle
|
|
|
- await self.app(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 134, in app
|
|
|
- await wrap_app_handling_exceptions(app, request)(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
|
|
|
- raise exc
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
|
|
|
- await app(scope, receive, sender)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 120, in app
|
|
|
- response = await f(request)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 674, in app
|
|
|
- raw_response = await run_endpoint_function(
|
|
|
- File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 328, in run_endpoint_function
|
|
|
- return await dependant.call(**values)
|
|
|
- File "/app/app/api/models.py", line 13, in list_models
|
|
|
- models = await model_service.list_cached_models()
|
|
|
- File "/app/app/services/model_service.py", line 126, in list_cached_models
|
|
|
- async with async_session() as session:
|
|
|
-AttributeError: __aenter__
|
|
|
-INFO: 172.20.0.4:55612 - "GET /api/v1/models/ HTTP/1.0" 500 Internal Server Error
|
|
|
-ERROR: Exception in ASGI application
|
|
|
-Traceback (most recent call last):
|
|
|
- File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/httptools_impl.py", line 421, in run_asgi
|
|
|
- result = await app( # type: ignore[func-returns-value]
|
|
|
- File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 56, in __call__
|
|
|
- return await self.app(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 1159, in __call__
|
|
|
- await super().__call__(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 90, in __call__
|
|
|
- await self.middleware_stack(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 186, in __call__
|
|
|
- raise exc
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 164, in __call__
|
|
|
- await self.app(scope, receive, _send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/middleware/cors.py", line 88, in __call__
|
|
|
- await self.app(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
|
|
|
- await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
|
|
|
- raise exc
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
|
|
|
- await app(scope, receive, sender)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
|
|
|
- await self.app(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 660, in __call__
|
|
|
- await self.middleware_stack(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 680, in app
|
|
|
- await route.handle(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 276, in handle
|
|
|
- await self.app(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 134, in app
|
|
|
- await wrap_app_handling_exceptions(app, request)(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
|
|
|
- raise exc
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
|
|
|
- await app(scope, receive, sender)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 120, in app
|
|
|
- response = await f(request)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 674, in app
|
|
|
- raw_response = await run_endpoint_function(
|
|
|
- File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 328, in run_endpoint_function
|
|
|
- return await dependant.call(**values)
|
|
|
- File "/app/app/api/models.py", line 13, in list_models
|
|
|
- models = await model_service.list_cached_models()
|
|
|
- File "/app/app/services/model_service.py", line 126, in list_cached_models
|
|
|
- async with async_session() as session:
|
|
|
-AttributeError: __aenter__
|
|
|
-INFO: 172.20.0.4:55622 - "GET /api/v1/models/ HTTP/1.0" 500 Internal Server Error
|
|
|
-ERROR: Exception in ASGI application
|
|
|
-Traceback (most recent call last):
|
|
|
- File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/httptools_impl.py", line 421, in run_asgi
|
|
|
- result = await app( # type: ignore[func-returns-value]
|
|
|
- File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 56, in __call__
|
|
|
- return await self.app(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 1159, in __call__
|
|
|
- await super().__call__(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 90, in __call__
|
|
|
- await self.middleware_stack(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 186, in __call__
|
|
|
- raise exc
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 164, in __call__
|
|
|
- await self.app(scope, receive, _send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/middleware/cors.py", line 88, in __call__
|
|
|
- await self.app(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
|
|
|
- await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
|
|
|
- raise exc
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
|
|
|
- await app(scope, receive, sender)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
|
|
|
- await self.app(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 660, in __call__
|
|
|
- await self.middleware_stack(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 680, in app
|
|
|
- await route.handle(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 276, in handle
|
|
|
- await self.app(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 134, in app
|
|
|
- await wrap_app_handling_exceptions(app, request)(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
|
|
|
- raise exc
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
|
|
|
- await app(scope, receive, sender)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 120, in app
|
|
|
- response = await f(request)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 674, in app
|
|
|
- raw_response = await run_endpoint_function(
|
|
|
- File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 328, in run_endpoint_function
|
|
|
- return await dependant.call(**values)
|
|
|
- File "/app/app/api/models.py", line 13, in list_models
|
|
|
- models = await model_service.list_cached_models()
|
|
|
- File "/app/app/services/model_service.py", line 126, in list_cached_models
|
|
|
- async with async_session() as session:
|
|
|
-AttributeError: __aenter__
|
|
|
-INFO: 172.20.0.4:55624 - "GET /api/v1/models/ HTTP/1.0" 500 Internal Server Error
|
|
|
-ERROR: Exception in ASGI application
|
|
|
-Traceback (most recent call last):
|
|
|
- File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/httptools_impl.py", line 421, in run_asgi
|
|
|
- result = await app( # type: ignore[func-returns-value]
|
|
|
- File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 56, in __call__
|
|
|
- return await self.app(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 1159, in __call__
|
|
|
- await super().__call__(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 90, in __call__
|
|
|
- await self.middleware_stack(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 186, in __call__
|
|
|
- raise exc
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 164, in __call__
|
|
|
- await self.app(scope, receive, _send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/middleware/cors.py", line 88, in __call__
|
|
|
- await self.app(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 63, in __call__
|
|
|
- await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
|
|
|
- raise exc
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
|
|
|
- await app(scope, receive, sender)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
|
|
|
- await self.app(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 660, in __call__
|
|
|
- await self.middleware_stack(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 680, in app
|
|
|
- await route.handle(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 276, in handle
|
|
|
- await self.app(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 134, in app
|
|
|
- await wrap_app_handling_exceptions(app, request)(scope, receive, send)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
|
|
|
- raise exc
|
|
|
- File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
|
|
|
- await app(scope, receive, sender)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 120, in app
|
|
|
- response = await f(request)
|
|
|
- File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 674, in app
|
|
|
- raw_response = await run_endpoint_function(
|
|
|
- File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 328, in run_endpoint_function
|
|
|
- return await dependant.call(**values)
|
|
|
- File "/app/app/api/models.py", line 13, in list_models
|
|
|
- models = await model_service.list_cached_models()
|
|
|
- File "/app/app/services/model_service.py", line 126, in list_cached_models
|
|
|
- async with async_session() as session:
|
|
|
-AttributeError: __aenter__
|
|
|
+2026-05-19 15:16:02 | INFO | peft-platform | Remote test result: code=1, stdout_len=0, stderr_len=408
|
|
|
+2026-05-19 15:16:02 | INFO | peft-platform | stderr (first 500): Traceback (most recent call last):
|
|
|
+ File "<stdin>", line 2, in <module>
|
|
|
+ File "/root/Fine-tuning/backend/app/services/model_service.py", line 7, in <module>
|
|
|
+ from app.core.db import async_session, ModelCache
|
|
|
+ File "/root/Fine-tuning/backend/app/core/db.py", line 3, in <module>
|
|
|
+ from sqlalchemy import Column, DateTime, Float, Integer, String, Text
|
|
|
+ModuleNotFoundError: No module named 'sqlalchemy'
|
|
|
+
|
|
|
+2026-05-19 15:16:02 | ERROR | peft-platform | Remote model test failed: Traceback (most recent call last):
|
|
|
+ File "<stdin>", line 2, in <module>
|
|
|
+ File "/root/Fine-tuning/backend/app/services/model_service.py", line 7, in <module>
|
|
|
+ from app.core.db import async_session, ModelCache
|
|
|
+ File "/root/Fine-tuning/backend/app/core/db.py", line 3, in <module>
|
|
|
+ from sqlalchemy import Column, DateTime, Float, Integer, String, Text
|
|
|
+ModuleNotFoundError: No module named 'sqlalchemy'
|
|
|
+
|
|
|
+INFO: 172.20.0.4:52338 - "POST /api/v1/models/test HTTP/1.0" 400 Bad Request
|