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.

    Something went wrong displaying this web page error

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    16 Posts 2 Posters 4.7k 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 @kellogg76
      last edited by

      @kellogg76 is pm2 used to start mirror app?

      if so, pm2 logs --lines=100
      might show the error

      if u have modules that have a package.json file, they also needed an npm install done in their folders too…

      my upgrade script handles all that
      see here https://github.com/sdetweil/MagicMirror_scripts

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      K 1 Reply Last reply Reply Quote 0
      • K Offline
        kellogg76 @sdetweil
        last edited by

        @sdetweil said in Something went wrong displaying this web page error:

        pm2 logs --lines=100

        Your updater script doesn’t work on a Pi Zero.

        I’ll try running npm install in the three non default module folders.

        Thanks

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

          @kellogg76 >Your updater script doesn’t work on a Pi Zero.

          say what? i have tested on pi 0, 3, 4, odroid, jetson nano, and mac.
          a bunch of folks have tested on all kinds of pi’s…

          show me the log, ~/MagicMirror/installers/upgrade.log

          just for clarity the , updater doesn’t do anything by default except test the upgrade

          if u want it to DO the upgrade, u have to add the parm at the end ‘apply’

          from https://github.com/sdetweil/MagicMirror_scripts

          it should handle all the work… and give you a trial run of all that…
          
          only applying changes if u request them
          
          give it a try this works on Mac as well
          
          bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)"
          
          no changes are made to the local repo or the working copy
          
          if you WANT to actually apply the changes do
          
          bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" apply
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          K 1 Reply Last reply Reply Quote 1
          • K Offline
            kellogg76 @sdetweil
            last edited by

            @sdetweil said in Something went wrong displaying this web page error:

            ~/MagicMirror/installers/upgrade.log

            Apologies, when I ran

            curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh | bash
            

            I stopped reading after “Sorry, your Pi is not supported”, I just re-ran it and see the bit about Pi Zero’s.

            The install log is as follows

            Upgrade started - Fri Jan 24 13:47:22 AST 2020
            system is Linux raspberrypi 4.19.75+ #1270 Tue Sep 24 18:38:54 BST 2019 armv6l GNU/Linux
            the os is Distributor ID: Raspbian Description: Raspbian GNU/Linux 10 (buster) Release: 10 Codename: buster
            doing test run = true
            
            saving custom.css
            remote name = origin
            upgrading from version 2.10.1 to 2.10.1
            fetching latest revisions
            git fetch rc=0
            current branch = master
            On branch master
            Your branch is up to date with 'origin/master'.
            
            Changes not staged for commit:
              (use "git add <file>..." to update what will be committed)
              (use "git checkout -- <file>..." to discard changes in working directory)
            
                    modified:   vendor/package-lock.json
            
            Untracked files:
              (use "git add <file>..." to include in what will be committed)
            
                    css/save_custom.css
            
            no changes added to commit (use "git add" and/or "git commit -a")
            there are 1 local files that are different than the master repo
            
               vendor/package-lock.json
            
            save/restore files selection = n
            restoring vendor/package-lock.json from repo
            skipping restore for vendor/package-lock.json, doing test run
            test merge result rc='' , if empty, no conflicts
            skipping merge, only test run
            
            processing dependency changes for active modules with package.json files
            processing for module MMM-BackgroundSlideshow please wait
            ----------------------------------
            skipped processing for MMM-BackgroundSlideshow, doing test run
            processing complete for module MMM-BackgroundSlideshow
            processing for module MMM-DarkSkyForecast please wait
            ----------------------------------
            skipped processing for MMM-DarkSkyForecast, doing test run
            processing complete for module MMM-DarkSkyForecast
            processing for module mmm-suncalc please wait
            ----------------------------------
            skipped processing for mmm-suncalc, doing test run
            processing complete for module mmm-suncalc
            restoring custom.css
            removing git alias
            Upgrade ended - Fri Jan 24 13:48:09 AST 2020
            

            It doesn’t appear there are any updates to apply as far as i can tell.

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

              @kellogg76 said in Something went wrong displaying this web page error:

              doing test run = true

              which means you didn’t add

              apply
              

              to the end to actually DO the upgrade
              like this

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

              upgrading from version 2.10.1 to 2.10.1

              correct

              u can do force instead of apply to redo the upgrade

              like this

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

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              K 2 Replies Last reply Reply Quote 0
              • K Offline
                kellogg76 @sdetweil
                last edited by

                @sdetweil

                I’ll give it a try with the force option.

                Thanks

                1 Reply Last reply Reply Quote 0
                • K Offline
                  kellogg76 @sdetweil
                  last edited by

                  @sdetweil

                  Unfortunately it doesn’t seem to have made any difference.

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

                    Ok, we/I made a change to how the mirror app starts on pi 0 or other armv6l systems.

                    But I introduced a bug. Download the fixed run-start.sh like this

                    cd ~/MagicMirror
                    curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/run-start.sh > run-start.sh
                    

                    Then start the mirror app again

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    K 1 Reply Last reply Reply Quote 0
                    • K Offline
                      kellogg76 @sdetweil
                      last edited by

                      @sdetweil
                      Still the same error after doing the above and then rebooting.

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

                        @kellogg76 ok, some module did not get updated with the new mm.

                        Can you do

                        cd ~/MagicMirror
                        node installers/dumpactivemodules.js
                        

                        This should return a list of modules that have package.json files

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        K 1 Reply Last reply Reply Quote 0
                        • K Offline
                          kellogg76 @sdetweil
                          last edited by kellogg76

                          @sdetweil said in Something went wrong displaying this web page error:

                          node installers/dumpactivemodules.js

                          When I do that nothing appears on screen

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

                            @kellogg76 ok

                            Then do this

                            ls ~/MagicMirror/modules
                            

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            K 1 Reply Last reply Reply Quote 0
                            • K Offline
                              kellogg76 @sdetweil
                              last edited by kellogg76

                              @sdetweil
                              The only non-default modules I have are
                              MMM-BackgroundSlideshow
                              MMM-DarkSkyForecast
                              mmm-suncalc

                              I’m going to remove them one by one from the config and see if that identifies which is the problem module.

                              Edit: it looks like it’s the BackgroundSlideshow module, removing that from my config file makes everything stable again. Thanks for your help.

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

                                @kellogg76

                                ok, great feedback

                                I was wrong before

                                cd ~/MagicMirror/modules
                                node installers/dumpactivemodules.js
                                

                                this will list off all the modules which are active in config.js

                                i would go the the MMM-BackgroundSlideshowfolder and do

                                npm install 
                                

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

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

                                  @kellogg76 also, the first script u listed is raspberry.sh which is new install.

                                  Upgrade-script is the one that does version upgrades of existing installations (get rid of that message)

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  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 / 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