• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Updated MM2 - Local Host Refused Connection Error

Scheduled Pinned Locked Moved Unsolved Troubleshooting
6 Posts 2 Posters 683 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.
  • B Offline
    BD0G
    last edited by BD0G Oct 5, 2022, 6:09 AM Oct 5, 2022, 6:07 AM

    Re: Should I update?

    I just updated and I get a “Connection Refused message” when I launch MM2 .

    Here is the output from when I use npm start.

    pi@MagicMirror:~/MagicMirror/config $ npm start

    magicmirror@2.21.0 start
    ./run-start.sh $1

    node:internal/modules/cjs/loader:959
    throw err;
    ^

    Error: Cannot find module ‘module-alias/register’
    Require stack:

    • /home/pi/MagicMirror/js/app.js
    • /home/pi/MagicMirror/serveronly/index.js
      at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15)
      at Function.Module._load (node:internal/modules/cjs/loader:804:27)
      at Module.require (node:internal/modules/cjs/loader:1028:19)
      at require (node:internal/modules/cjs/helpers:102:18)
      at Object. (/home/pi/MagicMirror/js/app.js:9:1)
      at Module._compile (node:internal/modules/cjs/loader:1126:14)
      at Object.Module._extensions…js (node:internal/modules/cjs/loader:1180:10)
      at Module.load (node:internal/modules/cjs/loader:1004:32)
      at Function.Module._load (node:internal/modules/cjs/loader:839:12)
      at Module.require (node:internal/modules/cjs/loader:1028:19) {
      code: ‘MODULE_NOT_FOUND’,
      requireStack: [
      ‘/home/pi/MagicMirror/js/app.js’,
      ‘/home/pi/MagicMirror/serveronly/index.js’
      ]
      }
      Starting chromium browser now, have patience, it takes a minute
      –disable-quic --enable-tcp-fast-open --ppapi-flash-path=/usr/lib/chromium-browser/libpepflashplayer.so --ppapi-flash-args=enable_stagevideo_auto=0 --ppapi-flash-version=
    B 1 Reply Last reply Oct 5, 2022, 6:17 AM Reply Quote 0
    • B Offline
      BD0G @BD0G
      last edited by Oct 5, 2022, 6:17 AM

      @BD0G said in Updated and MM2 no longer launches:

      ‘module-alias/register’

      I used this update process https://github.com/sdetweil/MagicMirror_scripts

      bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)” apply

      Also updated npm to latest version

      S 1 Reply Last reply Oct 5, 2022, 10:55 AM Reply Quote 0
      • S Offline
        sdetweil @BD0G
        last edited by sdetweil Oct 5, 2022, 11:17 AM Oct 5, 2022, 10:55 AM

        @BD0G can u show me the MagicMirror/installers/upgrade.log

        you installed npm?

        the script would have upgraded npm if needed

        is this a pi 0w? (as it is usuing run-start)

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        B 1 Reply Last reply Oct 5, 2022, 3:31 PM Reply Quote 0
        • B Offline
          BD0G @sdetweil
          last edited by Oct 5, 2022, 3:31 PM

          @sdetweil Thank you Very Much for the reply.

          You have always been helpful with issues!
          I ended up running git pull && npm install --only=prod --omit=dev

          From https://docs.magicmirror.builders/getting-started/upgrade-guide.html

          It allows MM to launch. Appears to be reloading / relaunching periodically though.

          S 1 Reply Last reply Oct 5, 2022, 3:34 PM Reply Quote 0
          • S Offline
            sdetweil @BD0G
            last edited by Oct 5, 2022, 3:34 PM

            @BD0G

            I would still like to see the upgrade.log to fix the problem

            send it to my email, same userid as here, at gmail.com

            restarting

            need to see the output of

            pm2 logs --lines=100
            

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            B 1 Reply Last reply Oct 5, 2022, 3:34 PM Reply Quote 0
            • B Offline
              BD0G @sdetweil
              last edited by BD0G Oct 5, 2022, 3:40 PM Oct 5, 2022, 3:34 PM

              @sdetweil Thanks I’ll get right on it!

              Sent …

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              1 / 1
              • First post
                1/6
                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