MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    PM2 logs

    Troubleshooting
    3
    8
    6566
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • O
      ostfilinchen last edited by

      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:28564) 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

      KirAsh4 1 Reply Last reply Reply Quote 0
      • KirAsh4
        KirAsh4 Moderator @ostfilinchen last edited by

        @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.

        A Life? Cool! Where can I download one of those from?

        O 1 Reply Last reply Reply Quote 0
        • O
          ostfilinchen @KirAsh4 last edited by

          @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…

          1 Reply Last reply Reply Quote 0
          • KirAsh4
            KirAsh4 Moderator last edited by

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

            A Life? Cool! Where can I download one of those from?

            1 Reply Last reply Reply Quote 0
            • O
              ostfilinchen last edited by

              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.

              1 Reply Last reply Reply Quote 0
              • KirAsh4
                KirAsh4 Moderator last edited by

                Flush the logs:
                ‘pm2 flush’

                Restart the pi:
                ‘sudo reboot’

                Check the pm2 logs again:
                ‘pm2 logs’

                A Life? Cool! Where can I download one of those from?

                1 Reply Last reply Reply Quote 1
                • O
                  ostfilinchen last edited by

                  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?

                  RedNax 1 Reply Last reply Reply Quote 0
                  • RedNax
                    RedNax Module Developer @ostfilinchen last edited by

                    @ostfilinchen Working on it, testing as we speak 😃

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    Enjoying MagicMirror? Please consider a donation!
                    MagicMirror created by Michael Teeuw.
                    Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                    This forum is using NodeBB as its core | Contributors
                    Contact | Privacy Policy