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 MM and now i get white screen with "ERR_CONNECTION_REFUSED"

    Scheduled Pinned Locked Moved Solved Troubleshooting
    25 Posts 2 Posters 8.0k 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.
    • S Offline
      sdetweil @onis_uk
      last edited by

      @onis_uk so, tell me more… what pi? sounds like pi 0?

      if using pm2, then

      pm2 stop all
      pm2 flush
      cd ~/MagicMirror
      npm run config:check 
      

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      O 1 Reply Last reply Reply Quote 0
      • O Offline
        onis_uk @sdetweil
        last edited by

        @sdetweil said in Updated MM and now i get white screen with "ERR_CONNECTION_REFUSED":

        npm run config:check

        yes running in a Pi zero!

        magicmirror@2.18.0 config:check /home/pi/MagicMirror
        node js/check_config.js

        /home/pi/MagicMirror/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2359
        const require$1 = Module.createRequire((typeof document === ‘undefined’ ? new (require(‘u’ + ‘rl’).URL)(‘file:’ + __filename).href : (document.currentScript && document.currentScript.src || new URL(‘eslintrc.cjs’, document.baseURI).href)));
        ^

        TypeError: Module.createRequire is not a function
        at Object. (/home/pi/MagicMirror/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2359:26)
        at Module._compile (internal/modules/cjs/loader.js:816:30)
        at Object.Module._extensions…js (internal/modules/cjs/loader.js:827:10)
        at Module.load (internal/modules/cjs/loader.js:685:32)
        at Function.Module._load (internal/modules/cjs/loader.js:620:12)
        at Module.require (internal/modules/cjs/loader.js:723:19)
        at require (internal/modules/cjs/helpers.js:14:16)
        at Object. (/home/pi/MagicMirror/node_modules/eslint/lib/cli-engine/cli-engine.js:33:5)
        at Module._compile (internal/modules/cjs/loader.js:816:30)
        at Object.Module._extensions…js (internal/modules/cjs/loader.js:827:10)
        npm ERR! code ELIFECYCLE
        npm ERR! errno 1
        npm ERR! magicmirror@2.18.0 config:check: node js/check_config.js
        npm ERR! Exit status 1
        npm ERR!
        npm ERR! Failed at the magicmirror@2.18.0 config:check script.
        npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

        npm ERR! A complete log of this run can be found in:
        npm ERR! /home/pi/.npm/_logs/2022-01-17T13_53_04_242Z-debug.log

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @onis_uk
          last edited by

          @onis_uk said in Updated MM and now i get white screen with "ERR_CONNECTION_REFUSED":

          const require$1 = Module.createRequire((typeof document === ‘undefined’ ? new (require(‘u’ + ‘rl’).URL)(‘file:’ + __filename).href : (document.currentScript &&

          see https://github.com/MichMich/MagicMirror/issues/2772

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          O 2 Replies Last reply Reply Quote 0
          • O Offline
            onis_uk @sdetweil
            last edited by

            @sdetweil said in Updated MM and now i get white screen with "ERR_CONNECTION_REFUSED":

            @onis_uk said in Updated MM and now i get white screen with "ERR_CONNECTION_REFUSED":

            const require$1 = Module.createRequire((typeof document === ‘undefined’ ? new (require(‘u’ + ‘rl’).URL)(‘file:’ + __filename).href : (document.currentScript &&

            see https://github.com/MichMich/MagicMirror/issues/2772

            ok thanks! looks like I only had version 11.14 installed, just updating now

            1 Reply Last reply Reply Quote 0
            • O Offline
              onis_uk @sdetweil
              last edited by

              @sdetweil I cant seem to update node beyond 11.15, any ideas why??

              pi@raspberrypi:~ $ sudo n latest
              installing : node-v11.15.0
              mkdir : /usr/local/n/versions/node/11.15.0
              fetch : https://nodejs.org/dist/v11.15.0/node-v11.15.0-linux-armv6l.tar.xz
              installed : v11.15.0 (with npm 6.7.0)

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @onis_uk
                last edited by

                @onis_uk armv6… hm… will have to work on this later today.

                off to pick up grandson…

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                O 1 Reply Last reply Reply Quote 0
                • O Offline
                  onis_uk @sdetweil
                  last edited by

                  @sdetweil ok many thanks!

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @onis_uk
                    last edited by sdetweil

                    @onis_uk look at this

                    https://blog.rodrigograca.com/how-to-install-latest-nodejs-on-raspberry-pi-0-w/

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    O 1 Reply Last reply Reply Quote 0
                    • O Offline
                      onis_uk @sdetweil
                      last edited by

                      @sdetweil Still just get a ton of errors, looks like I might just have to format and start again :anxious_face_with_sweat:

                      The fragility of MM is what kills it for me, one update and its all messed up, too many dependencies and fussy stuff going on, makes it so hard for the average user to deal with.

                      S 2 Replies Last reply Reply Quote 0
                      • S Offline
                        sdetweil @onis_uk
                        last edited by sdetweil

                        @onis_uk pi0 has been kicked to the side by the internet community, harder to find stuff still working on armv6l

                        nothing to do with mm

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        O 1 Reply Last reply Reply Quote 0
                        • S Offline
                          sdetweil @onis_uk
                          last edited by

                          @onis_uk the latest pi os also installs code that doesn’t work on pi0… chrome and firefox

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          1 Reply Last reply Reply Quote 0
                          • O Offline
                            onis_uk @sdetweil
                            last edited by

                            @sdetweil I’ve had MM for well over 2 years now and its always been like this to be fair, every time I’ve updated its broken it…

                            S 1 Reply Last reply Reply Quote 0
                            • S Offline
                              sdetweil @onis_uk
                              last edited by

                              @onis_uk yes, thats why I made the script for upgrade

                              but this time is worse

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              O 1 Reply Last reply Reply Quote 0
                              • O Offline
                                onis_uk @sdetweil
                                last edited by

                                @sdetweil Thank you for your help anyway!

                                S 1 Reply Last reply Reply Quote 0
                                • S Offline
                                  sdetweil @onis_uk
                                  last edited by sdetweil

                                  @onis_uk I have just updated the install and upgrade scripts to handle all this pi0w broken stuff…

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  O 2 Replies Last reply Reply Quote 0
                                  • O Offline
                                    onis_uk @sdetweil
                                    last edited by

                                    @sdetweil AH ok thanks, i’ll give it another try then!

                                    1 Reply Last reply Reply Quote 0
                                    • O Offline
                                      onis_uk @sdetweil
                                      last edited by

                                      @sdetweil Still got able to install 16…

                                      pi@raspberrypi:~/MagicMirror $ sudo n 16

                                      Error: no version found for ‘16’

                                      S 1 Reply Last reply Reply Quote 0
                                      • S Offline
                                        sdetweil @onis_uk
                                        last edited by sdetweil

                                        @onis_uk no… just run the upgrade script or install script, they will handle it
                                        see
                                        https://github.com/sdetweil/MagicMirror_scripts

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

                                        1 Reply Last reply Reply Quote 0
                                        • O Offline
                                          onis_uk
                                          last edited by

                                          @sdetweil done and done sir! many thanks

                                          pi@raspberrypi:~/MagicMirror $ node -v
                                          v16.9.1
                                          
                                          1 Reply Last reply Reply Quote 0

                                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                          With your input, this post could be even better 💗

                                          Register Login
                                          • 1
                                          • 2
                                          • 2 / 2
                                          • 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