sdetweil / MMM-Config

testing
30 stars 3 forks source link

EADDRINUSE: address already in use :::8200 #9

Closed jalibu closed 3 years ago

jalibu commented 3 years ago

System

Steps to reproduce

  1. Start MagicMirror with "npm run server"
  2. Open Browser at localhost:8080
  3. Refresh Page in Browser
[24.05.2021 19:48.55.548] [ERROR] Whoops! There was an uncaught exception...
[24.05.2021 19:48.55.551] [ERROR] Error: listen EADDRINUSE: address already in use :::8200
    at Server.setupListenHandle [as _listen2] (net.js:1318:16)
    at listenInCluster (net.js:1366:12)
    at Server.listen (net.js:1452:7)
    at Class.remote_start (/Users/me/git/MagicMirror/modules/MMM-Config/node_helper.js:961:12)
    at Class.startit (/Users/me/git/MagicMirror/modules/MMM-Config/node_helper.js:86:10)
    at Class.socketNotificationReceived (/Users/I543928/git/MagicMirror/modules/MMM-Config/node_helper.js:105:12)
    at Socket.<anonymous> (/Users/me/git/MagicMirror/js/node_helper.js:109:11)
    at Socket.emit (events.js:315:20)
    at Socket.emitUntyped (/Users/me/git/MagicMirror/node_modules/socket.io/dist/typed-events.js:69:22)
    at /Users/I543928/git/MagicMirror/node_modules/socket.io/dist/socket.js:428:39 {
  code: 'EADDRINUSE',
  errno: -48,
  syscall: 'listen',
  address: '::',
  port: 8200
}
khassel commented 3 years ago

The port 8200 is used by the module and it seems you are running another app on this port.

@sdetweil is it possible to set the port in the config instead of using the fix port 8200?

sdetweil commented 3 years ago

working on it now

khassel commented 3 years ago

do not stress, there is no rush ...

sdetweil commented 3 years ago

fix pushed, now find free port, passes to config page

git pull npm install

use the QR or http://mm_ip:mm_port/modules/MMM-Config/review

sdetweil commented 3 years ago

@khassel I hate having users be forced to change config when we can discover things programmatically

jalibu commented 3 years ago

Solved!