thilojaeggi / WinGetty

An open source REST Backend for creating a private WinGet Repo without having to rely on cloud dependencies.
https://wingetty.dev
GNU Affero General Public License v3.0
185 stars 17 forks source link

Worker Timeout with Large Package #20

Closed ImNtReal closed 11 months ago

ImNtReal commented 11 months ago

Describe the bug I'm trying to upload a nested installer that is a hefty 2.4 GB. Nothing seems to happen in the GUI once the upload is complete, but I see a message in the log like: [1] [CRITICAL] WORKER TIMEOUT

To Reproduce Steps to reproduce the behavior:

  1. Click Add Package
  2. Fill out form, and select an installer that's large enough to trigger the timeout
  3. Wait
  4. See error in log

Expected behavior Package is generated and available for install.

General Information:

Additional context Just having a way to adjust the timeout for the worker process might be enough to take care of this one.

kdpuvvadi commented 11 months ago

Noticied same thing with smaller packages also [1] [CRITICAL] WORKER TIMEOUT (pid:11) package size was around 25Mb.

thilojaeggi commented 11 months ago

I've switched to the gevent worker for gunicorn now and tried some larger files without issues, keen on hearing if it is fixed for you as well?

ImNtReal commented 10 months ago

I'm still seeing worker timeouts with my large package in 0.0.8. It's a nested package, so if the process includes unzipping it, that could be where it's timing out.

ImNtReal commented 10 months ago

Or is it a hash?