[bug]: ERROR: Application startup failed. Exiting. Task was destroyed but it is pending!
Is there an existing issue for this?
- [X] I have searched the existing issues
OS
Windows
GPU
cuda
VRAM
No response
What version did you experience this issue on?
current
What happened?
Desired action:
- Generate images with the browser-based interface
- Explore InvokeAI nodes using a command-line interface
- Run textual inversion training
- Merge models (diffusers type only)
- Download and install models
- Change InvokeAI startup options
- Re-run the configure script to fix a broken install or to complete a major upgrade
- Open the developer console
- Update InvokeAI
- Command-line help Q - Quit Please enter 1-10, Q: [2] 1 Starting the InvokeAI browser-based UI.. A matching Triton is not available, some optimizations will not be enabled. Error caught was: No module named 'triton'
patchmatch.patch_match: INFO - Downloading patchmatch libraries from github release https://github.com/invoke-ai/PyPatchMatch/releases/download/0.1.1/libpatchmatch_windows_amd64.dll 100%|█████████████████████████████████████████████████████████████████████████████| 47.0k/47.0k [00:00<00:00, 2.65MB/s] patchmatch.patch_match: INFO - Downloading patchmatch libraries from github release https://github.com/invoke-ai/PyPatchMatch/releases/download/0.1.1/opencv_world460.dll 100%|█████████████████████████████████████████████████████████████████████████████| 61.4M/61.4M [00:09<00:00, 6.72MB/s] [2023-07-13 16:06:01,768]::[InvokeAI]::INFO --> Patchmatch initialized INFO: Started server process [4856] INFO: Waiting for application startup. [2023-07-13 16:06:03,598]::[InvokeAI]::DEBUG --> InvokeAI version 3.0.0+b5 [2023-07-13 16:06:03,598]::[InvokeAI]::DEBUG --> Internet connectivity is True [2023-07-13 16:06:03,790]::[InvokeAI]::DEBUG --> config file=C:\Users\antho\AppData\Local\Temp\Temp1_InvokeAI-installer-v3.0.0+b5.zip\InvokeAI-Installer\configs\models.yaml [2023-07-13 16:06:03,790]::[InvokeAI]::DEBUG --> GPU device = cuda [2023-07-13 16:06:03,790]::[InvokeAI]::DEBUG --> Maximum RAM cache size: 6.0 GiB ERROR: Traceback (most recent call last): File "C:\Users\antho\AppData\Local\Temp\Temp1_InvokeAI-installer-v3.0.0+b5.zip\InvokeAI-Installer.venv\lib\site-packages\starlette\routing.py", line 671, in lifespan async with self.lifespan_context(app): File "C:\Users\antho\AppData\Local\Temp\Temp1_InvokeAI-installer-v3.0.0+b5.zip\InvokeAI-Installer.venv\lib\site-packages\starlette\routing.py", line 566, in aenter await self._router.startup() File "C:\Users\antho\AppData\Local\Temp\Temp1_InvokeAI-installer-v3.0.0+b5.zip\InvokeAI-Installer.venv\lib\site-packages\starlette\routing.py", line 648, in startup await handler() File "C:\Users\antho\AppData\Local\Temp\Temp1_InvokeAI-installer-v3.0.0+b5.zip\InvokeAI-Installer.venv\lib\site-packages\invokeai\app\api_app.py", line 77, in startup_event ApiDependencies.initialize( File "C:\Users\antho\AppData\Local\Temp\Temp1_InvokeAI-installer-v3.0.0+b5.zip\InvokeAI-Installer.venv\lib\site-packages\invokeai\app\api\dependencies.py", line 123, in initialize model_manager=ModelManagerService(config,logger), File "C:\Users\antho\AppData\Local\Temp\Temp1_InvokeAI-installer-v3.0.0+b5.zip\InvokeAI-Installer.venv\lib\site-packages\invokeai\app\services\model_manager_service.py", line 286, in init self.mgr = ModelManager( File "C:\Users\antho\AppData\Local\Temp\Temp1_InvokeAI-installer-v3.0.0+b5.zip\InvokeAI-Installer.venv\lib\site-packages\invokeai\backend\model_management\model_manager.py", line 332, in init model_name, base_model, model_type = self.parse_key(model_key) File "C:\Users\antho\AppData\Local\Temp\Temp1_InvokeAI-installer-v3.0.0+b5.zip\InvokeAI-Installer.venv\lib\site-packages\invokeai\backend\model_management\model_manager.py", line 378, in parse_key base_model_str, model_type_str, model_name = model_key.split('/', 2) ValueError: not enough values to unpack (expected 3, got 1)
ERROR: Application startup failed. Exiting.
Task was destroyed but it is pending!
task: <Task pending name='Task-3' coro=<FastAPIEventService.__dispatch_from_queue() running at C:\Users\antho\AppData\Local\Temp\Temp1_InvokeAI-installer-v3.0.0+b5.zip\InvokeAI-Installer.venv\lib\site-packages\invokeai\app\api\events.py:48> wait_for=
- Generate images with the browser-based interface
- Explore InvokeAI nodes using a command-line interface
- Run textual inversion training
- Merge models (diffusers type only)
- Download and install models
- Change InvokeAI startup options
- Re-run the configure script to fix a broken install or to complete a major upgrade
- Open the developer console
- Update InvokeAI
- Command-line help Q - Quit Please enter 1-10, Q: [2]
Screenshots
Additional context
I installed everything 3 times fresh installs but keep running into this error.
ERROR: Application startup failed. Exiting.
Task was destroyed but it is pending!
task: <Task pending name='Task-3' coro=<FastAPIEventService.__dispatch_from_queue() running at C:\Users\antho\AppData\Local\Temp\Temp1_InvokeAI-installer-v3.0.0+b5.zip\InvokeAI-Installer.venv\lib\site-packages\invokeai\app\api\events.py:48> wait_for=
Contact Details
No response
Any help with this?
same problem here. any idea to help?
I had been running InvokeAI fine since September, but I'm getting this error now.
We have a totally new model manager in v4.0.0. This method of model loading is no longer used. The solution is to upgrade the app to the latest version.