Address already in use after restarting Wappler

Wappler Version : 4.6.4
Operating System : mac
Server Model: Wappler Local Server
Database Type:
Hosting Type:

Expected behavior

The Wappler local server should load when opening Wappler.

Actual behavior

After having the Wappler Local Server running, sometimes when switching projects, or just restarting Wappler, the editor responds with this error:

Error: listen EADDRINUSE: address already in use :::3000
    at Server.setupListenHandle [as _listen2] (net.js:1318:16)
    at listenInCluster (net.js:1366:12)
    at Server.listen (net.js:1452:7)
    at Object.start (/Users/pauka/WapplerProjects/cf/lib/server.js:80:16)
    at Object.<anonymous> (/Users/pauka/WapplerProjects/cf/index.js:3:8)
    at Module._compile (internal/modules/cjs/loader.js:1078:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10)
    at Module.load (internal/modules/cjs/loader.js:935:32)
    at Module._load (internal/modules/cjs/loader.js:776:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12913) {
  code: 'EADDRINUSE',
  errno: -48,
  syscall: 'listen',
  address: '::',
  port: 3000

If I kill the port, and restart, everything is fine.

Still in 4.8.1 and is perhaps only on a restart of Wappler using Restart or Restart with logging, rather than quitting Wappler and starting fresh.

1 Like

Good catch - I wondered when it happens exactly because on project switch or normal Wappler quit, we auto close the running local web servers.

Will check the restart option, it might be missing there

Fixed in Wappler 4.8.2

This topic was automatically closed after 31 hours. New replies are no longer allowed.