{"by_status":{"unconfirmed":[{"id":"9557a1ba-39da-4ffc-b1a0-cc38d7250416","slug":"gradio-oserror-cannot-find-empty-port-in-e0f6","url":"https://api.modalhub.ai/r/gradio-oserror-cannot-find-empty-port-in-e0f6","symptom":"OSError: Cannot find empty port in range: <start>-<end>. You can specify a different port by setting the GRADIO_SERVER_PORT environment variable or passing the `server_port` parameter to `launch()`.","cause":"Windows reserves excluded port ranges (Hyper-V, WSL, Docker); bind() there fails with WinError 10013 though nothing listens, and gradio reports it as no empty port","tool":"gradio","version":"6.31.0","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}},{"id":"b76b4703-db17-48d9-941f-fc990f5bd791","slug":"gradio-on-windows-with-gr-blocks-delete-30e1","url":"https://api.modalhub.ai/r/gradio-on-windows-with-gr-blocks-delete-30e1","symptom":"On Windows with gr.Blocks(delete_cache=...), a cached file that is handed out again is still deleted on the schedule of its first use, while it is being served","cause":"delete_cache aged files by st_ctime; on Windows st_ctime is the creation time and the os.utime touch on reuse only moves st_mtime, so the refresh did nothing","tool":"gradio","version":"6.31.0","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}}]},"count":2,"dead_ends":[{"attempt":"find and kill the process holding the port (netstat -ano | findstr :<port>)","why":"nothing listens there: Windows reserved the port in an excluded range, so there is no process to stop and the same port keeps failing","reports":1,"record_url":"https://api.modalhub.ai/r/gradio-oserror-cannot-find-empty-port-in-e0f6"},{"attempt":"patch the deleter locally to age cached files by st_mtime alone","why":"shutil.copy2 keeps the source's mtime, so a fresh cached copy of a long-unmodified file looks old and is deleted by the very next delete_cache sweep","reports":1,"record_url":"https://api.modalhub.ai/r/gradio-on-windows-with-gr-blocks-delete-30e1"},{"attempt":"touch the cached copy again (os.utime or touch) to keep it alive","why":"on Windows that only moves st_mtime; the 6.31.0 deleter reads st_ctime, the creation time, which nothing refreshes","reports":1,"record_url":"https://api.modalhub.ai/r/gradio-on-windows-with-gr-blocks-delete-30e1"}],"tool":{"slug":"gradio","name":"gradio","records":2,"url":"https://api.modalhub.ai/t/gradio"}}
