transformerlab-app icon indicating copy to clipboard operation
transformerlab-app copied to clipboard

Auto Updater freezes for user with ProcessLookupError

Open dadmobile opened this issue 10 months ago • 6 comments

Discord user ankh reported:

After i press ok on the found new update, and it downloads it to 100% it seems to get stuck on this screen. I can click out of it and it will work however it won't get updated.

Here is the log output:

ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/home/ankh/.transformerlab/envs/transformerlab/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 409, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ankh/.transformerlab/envs/transformerlab/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__
    return await self.app(scope, receive, send)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ankh/.transformerlab/envs/transformerlab/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in __call__
    await super().__call__(scope, receive, send)
  File "/home/ankh/.transformerlab/envs/transformerlab/lib/python3.11/site-packages/starlette/applications.py", line 112, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/ankh/.transformerlab/envs/transformerlab/lib/python3.11/site-packages/starlette/middleware/errors.py", line 187, in __call__
    raise exc
  File "/home/ankh/.transformerlab/envs/transformerlab/lib/python3.11/site-packages/starlette/middleware/errors.py", line 165, in __call__
    await self.app(scope, receive, _send)
  File "/home/ankh/.transformerlab/envs/transformerlab/lib/python3.11/site-packages/starlette/middleware/cors.py", line 85, in __call__
    await self.app(scope, receive, send)
  File "/home/ankh/.transformerlab/envs/transformerlab/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/home/ankh/.transformerlab/envs/transformerlab/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/ankh/.transformerlab/envs/transformerlab/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/ankh/.transformerlab/envs/transformerlab/lib/python3.11/site-packages/starlette/routing.py", line 715, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/home/ankh/.transformerlab/envs/transformerlab/lib/python3.11/site-packages/starlette/routing.py", line 735, in app
    await route.handle(scope, receive, send)
  File "/home/ankh/.transformerlab/envs/transformerlab/lib/python3.11/site-packages/starlette/routing.py", line 288, in handle
    await self.app(scope, receive, send)
  File "/home/ankh/.transformerlab/envs/transformerlab/lib/python3.11/site-packages/starlette/routing.py", line 76, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/home/ankh/.transformerlab/envs/transformerlab/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    raise exc
  File "/home/ankh/.transformerlab/envs/transformerlab/lib/python3.11/site-packages/starlette/_exception_handler.py", line 42, in wrapped_app
    await app(scope, receive, sender)
  File "/home/ankh/.transformerlab/envs/transformerlab/lib/python3.11/site-packages/starlette/routing.py", line 73, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/home/ankh/.transformerlab/envs/transformerlab/lib/python3.11/site-packages/fastapi/routing.py", line 301, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ankh/.transformerlab/envs/transformerlab/lib/python3.11/site-packages/fastapi/routing.py", line 212, in run_endpoint_function
    return await dependant.call(**values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ankh/.transformerlab/src/api.py", line 302, in server_worker_stop
    worker_process.terminate()
  File "/home/ankh/.transformerlab/envs/transformerlab/lib/python3.11/asyncio/subprocess.py", line 143, in terminate
    self._transport.terminate()
  File "uvloop/handles/process.pyx", line 659, in uvloop.loop.UVProcessTransport.terminate
  File "uvloop/handles/process.pyx", line 401, in uvloop.loop.UVProcessTransport._check_proc
ProcessLookupError

dadmobile avatar Feb 23 '25 21:02 dadmobile

I'm not sure if this is the same issue, but it's at least the same behaviour: when I start the app I'm told there is a new version available. I say "yes" to install it and a download happens, but then I see a modal that says "Auto Update" and nothing else. If I click anywhere the modal disappears. I'm not sure if I have the most recent version of the app or if there's just a bug telling me that I don't have the most recent version.

mcharters avatar Mar 10 '25 14:03 mcharters

@mcharters what platform are you on? Windows?

aliasaria avatar Mar 10 '25 15:03 aliasaria

Yes, I’m on Windows.


From: ali asaria @.> Sent: Monday, March 10, 2025 11:01:46 AM To: transformerlab/transformerlab-app @.> Cc: Matthew Charters @.>; Mention @.> Subject: Re: [transformerlab/transformerlab-app] Auto Updater freezes for user with ProcessLookupError (Issue #269)

@mchartershttps://github.com/mcharters what platform are you on? Windows?

— Reply to this email directly, view it on GitHubhttps://github.com/transformerlab/transformerlab-app/issues/269#issuecomment-2710898082, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAEEADGP5VGWQW3QSHI5GZ32TWZOVAVCNFSM6AAAAABXWWLBTOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMJQHA4TQMBYGI. You are receiving this because you were mentioned.Message ID: @.***>

[aliasaria]aliasaria left a comment (transformerlab/transformerlab-app#269)https://github.com/transformerlab/transformerlab-app/issues/269#issuecomment-2710898082

@mchartershttps://github.com/mcharters what platform are you on? Windows?

— Reply to this email directly, view it on GitHubhttps://github.com/transformerlab/transformerlab-app/issues/269#issuecomment-2710898082, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAEEADGP5VGWQW3QSHI5GZ32TWZOVAVCNFSM6AAAAABXWWLBTOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMJQHA4TQMBYGI. You are receiving this because you were mentioned.Message ID: @.***>

mcharters avatar Mar 10 '25 15:03 mcharters

Ok the autoupdater doesn't actually work on windows, but we haven't done a good job in the UI to show that. It tries to download the update but because the app is not signed, the update fails at the last step. The only way to update on Windows (for now) is to download the app from our website. I will work on the signing stuff -- it has been harder than originally planned.

aliasaria avatar Mar 10 '25 15:03 aliasaria

@dadmobile I wonder if the Discord user's issue is if the autoupdater tries to restart the app while a model is running.

aliasaria avatar Mar 10 '25 15:03 aliasaria

Ok the autoupdater doesn't actually work on windows, but we haven't done a good job in the UI to show that. It tries to download the update but because the app is not signed, the update fails at the last step. The only way to update on Windows (for now) is to download the app from our website. I will work on the signing stuff -- it has been harder than originally planned.

I'll update using the website for now - thanks!

mcharters avatar Mar 10 '25 16:03 mcharters

Hi, The autoupdater with Windows now works! Closing this now, please reopen if you face any issues with auto-updating now!

deep1401 avatar Sep 05 '25 18:09 deep1401