Skip to content

[bug]: Cannot update from 6.0.0 to latest 6.9.0 #8648

@phrkr2600

Description

@phrkr2600

Is there an existing issue for this problem?

  • I have searched the existing issues

Install method

Invoke's Launcher

Operating system

Linux

GPU vendor

Nvidia (CUDA)

GPU model

RTX4090 laptop

GPU VRAM

16GB

Version number

v6.9.0

Browser

Chrome

System Information

Alienware m18

What happened

  1. Using the latest Invoke Launcher, I upgraded from v6.0.0 to v6.9.0.
  2. Installation completes successfully.
  3. Cannot launch Invoke, Error returned pasted below.
  4. Re-updated with Repair Mode enabled.
  5. Still cannot launch Invoke, same Error returned pasted below.

PLEASE HELP!!! I HAVE A WORK DEADLINE!!!!

===============================

Preparing first run of this install - may take a minute or two...
Started Invoke process with PID 38568
[2025-10-30 10:42:12,870]::[InvokeAI]::INFO --> Using torch device: NVIDIA GeForce RTX 4090 Laptop GPU
[2025-10-30 10:42:13,917]::[InvokeAI]::INFO --> cuDNN version: 90701

patchmatch.patch_match: INFO - Downloading patchmatch libraries from github release https://github.com/invoke-ai/PyPatchMatch/releases/download/0.1.1/libpatchmatch_windows_am
d64.dll
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 47.0k/47.0k [00:00<00:00, 1.94MB/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:01<00:00, 45.9MB/s]
[2025-10-30 10:42:17,994]::[InvokeAI]::INFO --> Patchmatch initialized
[2025-10-30 10:42:18,964]::[InvokeAI]::INFO --> InvokeAI version 6.9.0
[2025-10-30 10:42:18,964]::[InvokeAI]::INFO --> Root directory = C:\invokeAI-5-4-2
[2025-10-30 10:42:18,966]::[InvokeAI]::INFO --> Initializing database at C:\invokeAI-5-4-2\databases\invokeai.db
[2025-10-30 10:42:18,975]::[uvicorn.error]::ERROR --> Traceback (most recent call last):
File "C:\invokeAI-5-4-2.venv\Lib\site-packages\starlette\routing.py", line 694, in lifespan
async with self.lifespan_context(app) as maybe_state:
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\710av\AppData\Roaming\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "C:\invokeAI-5-4-2.venv\Lib\site-packages\fastapi\routing.py", line 209, in merged_lifespan
async with original_context(app) as maybe_original_state:
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\710av\AppData\Roaming\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "C:\invokeAI-5-4-2.venv\Lib\site-packages\fastapi\routing.py", line 209, in merged_lifespan
async with original_context(app) as maybe_original_state:
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\710av\AppData\Roaming\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "C:\invokeAI-5-4-2.venv\Lib\site-packages\fastapi\routing.py", line 209, in merged_lifespan
async with original_context(app) as maybe_original_state:
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\710av\AppData\Roaming\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "C:\invokeAI-5-4-2.venv\Lib\site-packages\fastapi\routing.py", line 209, in merged_lifespan
async with original_context(app) as maybe_original_state:
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\710av\AppData\Roaming\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "C:\invokeAI-5-4-2.venv\Lib\site-packages\fastapi\routing.py", line 209, in merged_lifespan
async with original_context(app) as maybe_original_state:
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\710av\AppData\Roaming\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "C:\invokeAI-5-4-2.venv\Lib\site-packages\fastapi\routing.py", line 209, in merged_lifespan
async with original_context(app) as maybe_original_state:
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\710av\AppData\Roaming\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "C:\invokeAI-5-4-2.venv\Lib\site-packages\fastapi\routing.py", line 209, in merged_lifespan
async with original_context(app) as maybe_original_state:
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\710av\AppData\Roaming\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "C:\invokeAI-5-4-2.venv\Lib\site-packages\fastapi\routing.py", line 209, in merged_lifespan
async with original_context(app) as maybe_original_state:
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\710av\AppData\Roaming\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "C:\invokeAI-5-4-2.venv\Lib\site-packages\fastapi\routing.py", line 209, in merged_lifespan
async with original_context(app) as maybe_original_state:
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\710av\AppData\Roaming\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "C:\invokeAI-5-4-2.venv\Lib\site-packages\fastapi\routing.py", line 209, in merged_lifespan
async with original_context(app) as maybe_original_state:
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\710av\AppData\Roaming\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "C:\invokeAI-5-4-2.venv\Lib\site-packages\fastapi\routing.py", line 209, in merged_lifespan
async with original_context(app) as maybe_original_state:
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\710av\AppData\Roaming\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "C:\invokeAI-5-4-2.venv\Lib\site-packages\fastapi\routing.py", line 209, in merged_lifespan
async with original_context(app) as maybe_original_state:
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\710av\AppData\Roaming\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "C:\invokeAI-5-4-2.venv\Lib\site-packages\invokeai\app\api_app.py", line 46, in lifespan
ApiDependencies.initialize(config=app_config, event_handler_id=event_handler_id, loop=loop, logger=logger)
File "C:\invokeAI-5-4-2.venv\Lib\site-packages\invokeai\app\api\dependencies.py", line 116, in initialize
ObjectSerializerDisk[torch.Tensor](
File "C:\Users\710av\AppData\Roaming\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\typing.py", line 1184, in call
result = self.origin(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\invokeAI-5-4-2.venv\Lib\site-packages\invokeai\app\services\object_serializer\object_serializer_disk.py", line 42, in init
shutil.rmtree(temp_dir)
File "C:\Users\710av\AppData\Roaming\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\shutil.py", line 781, in rmtree
return _rmtree_unsafe(path, onexc)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\710av\AppData\Roaming\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\shutil.py", line 623, in _rmtree_unsafe
for dirpath, dirnames, filenames in results:
^^^^^^^
File "", line 369, in walk
File "C:\Users\710av\AppData\Roaming\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\shutil.py", line 621, in onerror
onexc(os.scandir, err.filename, err)
File "", line 366, in walk
PermissionError: [WinError 5] Access is denied: 'C:\invokeAI-5-4-2\outputs\tensors\tmp5bdf93jo'

[2025-10-30 10:42:18,990]::[uvicorn.error]::ERROR --> Application startup failed. Exiting.
Task was destroyed but it is pending!
task: <Task pending name='Task-3' coro=<FastAPIEventService._dispatch_from_queue() done, defined at C:\invokeAI-5-4-2.venv\Lib\site-packages\invokeai\app\services\events\events
_fastapievents.py:33> wait_for= cb=[set.remove()]>
Exception ignored in: <function ObjectSerializerDisk.del at 0x0000028705920900>
Traceback (most recent call last):
File "C:\invokeAI-5-4-2.venv\Lib\site-packages\invokeai\app\services\object_serializer\object_serializer_disk.py", line 90, in del
self._tempdir_cleanup()
File "C:\invokeAI-5-4-2.venv\Lib\site-packages\invokeai\app\services\object_serializer\object_serializer_disk.py", line 85, in _tempdir_cleanup
if self._tempdir:
^^^^^^^^^^^^^
AttributeError: 'ObjectSerializerDisk' object has no attribute '_tempdir'
Invoke process exited normally

What you expected to happen

I expected Invoke to launch without errors after successful install.

How to reproduce the problem

No response

Additional context

No response

Discord username

No response

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