Skip to content

The dev proxy didn't start

warning: Axle couldn't start the proxy on port 3000: Only one usage of each socket address is normally permitted.
hint: Another program may have the port: stop it, or choose another port under [proxy] in axle.toml.
warning: the [proxy] section of axle.toml has routes but no port, so Axle didn't start the proxy
hint: Add a port under [proxy], such as port = 3000.

The root axle.toml has a [proxy] section and the run includes a persistent task, so Axle tried to serve the dev servers on one address, and couldn’t: either another program, often a dev server or an earlier axle run dev still running, already listens on the port, or the section has routes but no port.

The run carries on without the proxy, and each dev server still answers on its own port.

  • Stop the program that has the port. On macOS and Linux, lsof -i :3000 shows which one; on Windows, netstat -ano | findstr :3000 shows its process ID.
  • Or choose a free port under [proxy], one that none of the dev servers uses itself:
[proxy]
port = 3000
routes = { "/" = 5173, "/api" = 4000 }