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

Update Electron failed - MagicMirror is broken on physical screen only

Scheduled Pinned Locked Moved Bug Hunt
12 Posts 3 Posters 1.8k Views 3 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.
  • P Offline
    Pade2204
    last edited by May 3, 2024, 9:08 PM

    Hi.

    I have some issue with an image not updating in Electron browser but works fine in webinterface.

    I tried to update Electron in Terminal and that failed. Now I have a broken Electron browser that will not start and my Magic mirror is not showing on the screen. Webinterface still works fine.

    I have this version of Magic Mirror
    “version”: “2.12.0”,

    and further down in package.json file it says:
    “optionalDependencies”: {
    “electron”: “^6.1.7”

    Is this really the version? seems awful old though.

    Can someone help me roleback regarding the browser or can I do diagnotics of magic mirror and it will reinstall what is broken?

    Thanks.

    S 1 Reply Last reply May 3, 2024, 9:22 PM Reply Quote 0
    • S Offline
      sdetweil @Pade2204
      last edited by sdetweil May 3, 2024, 9:24 PM May 3, 2024, 9:22 PM

      @Pade2204 said in Update Electron failed - MagicMirror is broken on physical screen only:

      6.1.7

      @Pade2204 yes, quite old…

      can u tell what the message was when you tried to update? and how update?? electron

      only thing you could do it reinstall it .

      npm install electron@6.1.7

      it may not be available anymore…

      2.12
      we are at 2.27, so 15 cycles later, 4 cycles/year… almost 4 years…

      just about everything has changed…
      need a new OS, new version of node/npm, …

      so… use my backup script to get all the MM config/css/module list, see
      https://github.com/sdetweil/MagicMirror-backup-restore
      then copy the ~/MM_backup folder off somewhere, or use the github private repo storage approach.

      I don’t think you can upgrade MM from there (as we depend on latest stuff, which won’t run on that OS probably)

      what os level are you running… this command will tell

      lsb_release -a

      so, then the best way is flash a new sd card with the latest OS… hm… what pi is this ? 4 years… still a pi 3 probably
      and run my install script, see
      https://github.com/sdetweil/MagicMirror_scripts

      verify MM is working,
      then run the restore script from the copied back MM_backup, or same from an external disk, or from github saved

      this will get you the closest… some module may still fail due to other problems…

      were you just adding photo display?

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      P 1 Reply Last reply May 3, 2024, 9:40 PM Reply Quote 0
      • P Offline
        Pade2204 @sdetweil
        last edited by May 3, 2024, 9:40 PM

        @sdetweil
        I just saw a local image in module MMM-globe was not updating on the screen, but on webinterface it updated fine. So I just read that it could be the Electron browser failing. So I tried to update it. It failed, because it said that something was not compatible.

        And from now on I just tried to install Electron again - and actually 6.1.7 is avaible still, but it didnt solve my problem now.

        The Pi just shows the desktop and not MagicMirror when booted up. MagicMirror is just fine on webinterface.

        S 1 Reply Last reply May 3, 2024, 10:06 PM Reply Quote 0
        • S Offline
          sdetweil @Pade2204
          last edited by May 3, 2024, 10:06 PM

          @Pade2204 can you show the messages from where npm start is issued?

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          P 1 Reply Last reply May 3, 2024, 10:28 PM Reply Quote 0
          • P Offline
            Pade2204 @sdetweil
            last edited by May 3, 2024, 10:28 PM

            @sdetweil Im not that experienced in Linux, so Im not sure what you mean here.

            S 1 Reply Last reply May 3, 2024, 10:55 PM Reply Quote 0
            • S Offline
              sdetweil @Pade2204
              last edited by May 3, 2024, 10:55 PM

              @Pade2204 how do you start MagicMirror?

              if it starts at boot, do you use the MagicMirror instructions to create a service or something else?
              if you start it manually, what do you do

              all things lead to the command
              npm start
              in the MagicMirror folder

              that command starts MagicMirror and it outputs a bunch of messages when it’s running. including error messages from some modules

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • P Offline
                Pade2204
                last edited by May 4, 2024, 9:19 PM

                Thanks.

                I had to reinstall MagicMirror.

                S 1 Reply Last reply May 4, 2024, 9:30 PM Reply Quote 0
                • S Offline
                  sdetweil @Pade2204
                  last edited by May 4, 2024, 9:30 PM

                  @Pade2204 did u reinstall the same version?

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  P 1 Reply Last reply May 6, 2024, 7:55 PM Reply Quote 0
                  • P Offline
                    Pade2204 @sdetweil
                    last edited by May 6, 2024, 7:55 PM

                    @sdetweil I reinstalled using the guide inhere. So latest version I’m sure.

                    S 1 Reply Last reply May 6, 2024, 8:18 PM Reply Quote 0
                    • S Offline
                      sdetweil @Pade2204
                      last edited by May 6, 2024, 8:18 PM

                      @Pade2204 i’m surprized that its running…

                      just to check

                      output of

                      grep version ~/MagicMirror/node_modules/electron/package.json
                      

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

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