MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    PM2 logs

    Scheduled Pinned Locked Moved Troubleshooting
    8 Posts 3 Posters 7.8k Views 2 Watching
    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 Offline
      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

      KirAsh4K 1 Reply Last reply Reply Quote 0
      • KirAsh4K Offline
        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 Offline
          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
          • KirAsh4K Offline
            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 Offline
              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
              • KirAsh4K Offline
                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 Offline
                  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?

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

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

                    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 Sam, technical setup by Karsten.
                    This forum is using NodeBB as its core | Contributors
                    Contact | Privacy Policy
                      OSZAR »