PM2 logs



  • Hi all,

    when i call pm2 logs mm i get these Errors:
    (node:24612) DeprecationWarning: sys is deprecated. Use util instead.
    { Error: listen EADDRINUSE

    8080
    at Object.exports._errnoException (util.js:1008:11)
    at exports._exceptionWithHostPort (util.js:1031:20)
    at Server._listen2 (net.js:1253:14)
    at listen (net.js:1289:10)
    at Server.listen (net.js:1385:5)
    at new Server (/home/pi/MagicMirror/js/server.js:17:9)
    at /home/pi/MagicMirror/js/app.js:129:17
    at loadConfig (/home/pi/MagicMirror/js/app.js:42:4)
    at App.start (/home/pi/MagicMirror/js/app.js:115:3)
    at Object. (/home/pi/MagicMirror/js/electron.js:81:6)
    code: ‘EADDRINUSE’,
    errno: ‘EADDRINUSE’,
    syscall: ‘listen’,
    address: ‘::’,
    port: 8080 }
    (node:1309) DeprecationWarning: sys is deprecated. Use util instead.
    (node:18091) DeprecationWarning: sys is deprecated. Use util instead.
    (node:18949) DeprecationWarning: sys is deprecated. Use util instead.
    (node:1319) DeprecationWarning: sys is deprecated. Use util instead.
    (node:2450) DeprecationWarning: sys is deprecated. Use util instead.
    (node:20215) DeprecationWarning: sys is deprecated. Use util instead.
    (node:26201) DeprecationWarning: sys is deprecated. Use util instead.
    (node:23501) DeprecationWarning: sys is deprecated. Use util instead.
    (node:23793) DeprecationWarning: sys is deprecated. Use util instead.
    (node:24045) DeprecationWarning: sys is deprecated. Use util instead.
    (node:29144) DeprecationWarning: sys is deprecated. Use util instead.
    (node:27949) DeprecationWarning: sys is deprecated. Use util instead.
    (node:31805) DeprecationWarning: sys is deprecated. Use util instead.
    (node:1372) DeprecationWarning: sys is deprecated. Use util instead.
    (node:1331) DeprecationWarning: sys is deprecated. Use util instead.

    Is this an error on the pm2 or the MM himself?

    Thanks for help
    Daniel


  • Moderator

    @ostfilinchen said in PM2 logs:

    { Error: listen EADDRINUSE ::: 8080
    … snip …
    code: ‘EADDRINUSE’,
    errno: ‘EADDRINUSE’,
    syscall: ‘listen’,
    address: ‘::’,
    port: 8080 }

    You’re telling Mm to use a port that’s already being used for something else. If you actually have something that’s using port 8080, change Mm to use something else. It’s in the config.js file. For example, set it to 8585 …

    If you don’t have or know what’s on port 8080, you have a bigger problem than either pm2 or MM.



  • @KirAsh4 i only have the mm on Port 8080. How can i check, what Use the Port 8080? If i open the address http://raspberrypi:8080 i only See the MagicMirror…


  • Moderator

    Did you try to launch it multiple times? That’s what pm2 is recording.



  • U mean to open the mm-webpage?

    I restart the pi and then i call pm2 logs mm and it shows me this log. The mirror by the way starts.


  • Moderator

    Flush the logs:
    pm2 flush

    Restart the pi:
    sudo reboot

    Check the pm2 logs again:
    pm2 logs



  • Hi @KirAsh4,

    i have done it and there are no Errors. But is it normal that the mirror stop working, if any module get an error. The module MMM-Soccer produces an error and then the module MMM-WurnderGround stop working.

    @RedNax: is it possible to debug the module?


  • Module Developer

    @ostfilinchen Working on it, testing as we speak :D


Log in to reply
 

Looks like your connection to MagicMirror Forum was lost, please wait while we try to reconnect.