Skip to content
PidebugCLI & tooling

Kill stuck process on port 3000 and restart Vite dev server

Session from pi-for-excel-sessions on Hugging Face by thomasmustier · MIT · condensed by Coders Talk

18ssession
0interventions
GOAL

Free up port 3000 that had stuck processes bound to it and restart the local dev server for the project.

  1. Prompt · +0
    Kill whatever's using port 3000 and restart dev locally
  2. Agent did · +0m
    Found two PIDs bound to port 3000 (70573, 70629), killed them, and verified the port was free
  3. Agent did · +0m
    Created a start script and relaunched the dev server in the background with npm run dev, logging output to /tmp/excel-dev.log; Vite came up on port 3000
  4. Outcome · +0m
    Port 3000 freed and Vite dev server restarted successfully at https://localhost:3000/
VERDICT

This was a quick fix — I'd just ask for the same thing again: kill whatever's on 3000 and restart dev. No corrections needed, it found the PIDs, killed them, verified the port was free, and got Vite running again in under 20 seconds.

I tried this · 0

Discussion · 0

How Builds work