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.

    MMM-Fuel black screen

    Scheduled Pinned Locked Moved Solved Troubleshooting
    20 Posts 4 Posters 1.8k Views 4 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.
    • ArzegA Offline
      Arzeg @sdetweil
      last edited by

      @sdetweil Thanks for your help. How can I check if electron is up to date. Possibly that is where the problem lies

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

        @Arzeg we use version 19 in this release

        at the commandline do

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

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        ArzegA 1 Reply Last reply Reply Quote 0
        • ArzegA Offline
          Arzeg @sdetweil
          last edited by

          @sdetweil My version is: 6.1.12 how can i update this?

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

            @Arzeg eh?

            can’t be

            should be this

            grep  version ~/MagicMirror/node_modules/electron/package.json
              "version": "19.0.15",
            

            the release upgrade moved us from 17 to 19 (I am incorrect here, see later posts)

            hm… how did u upgrade?

            manual or my script?

            lets check the package.json requested version

            grep \"electron\": ~/MagicMirror/package.json 
            		"electron": "^19.0.15"
            

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            ArzegA 1 Reply Last reply Reply Quote 0
            • karsten13K Offline
              karsten13
              last edited by

              @sdetweil said in MMM-Fuel black screen:

              the release upgrade moved us from 17 to 19

              no, we were already on v19 with release v2.20.0, now we are on v19.1.0 (not v19.0.15)

              1 Reply Last reply Reply Quote 1
              • ArzegA Offline
                Arzeg @sdetweil
                last edited by sdetweil

                @sdetweil ehm … i copied your command:

                grep  version ~/MagicMirror/node_modules/electron/package.json
                  "version": "6.1.12",
                

                But that’s weird, I completely rebuilt the mirror about half a year ago. I can’t imagine that in that time the versions have moved from 6 to 19.

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

                  @Arzeg weird try this updated

                  grep  version /home/pi/MagicMirror/node_modules/electron/package.json
                  "electron": "^6.1.12"
                  

                  please advise how you upgraded

                  manual (git pull & npm install )
                  or automated (my script)

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  ArzegA 1 Reply Last reply Reply Quote 0
                  • ArzegA Offline
                    Arzeg @sdetweil
                    last edited by

                    @sdetweil manual with pull and npm install

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

                      @Arzeg starting to look like it failed

                      can u do this

                      run my script

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

                      two passes

                      with no parameter, I want to see what it says

                      then with force (instead of the documented apply)
                      as u have 2.21 installed already and it would normally abort…

                      then I want to see
                      ~/MagicMirror/installers/upgrade.log

                      It may be too big to post here

                      you could attach it to the cert issue I opened
                      or email it to me

                      my same userid at gmail (the userid I posted this message under)

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      ArzegA 1 Reply Last reply Reply Quote 1
                      • ArzegA Offline
                        Arzeg @sdetweil
                        last edited by

                        @sdetweil
                        with no params:

                        install log being saved to /home/pi/install.log
                        Installing helper tools ...
                        Updating packages ...
                        [           <=>                                                                                                     ]
                        Check current Node installation ...
                        Node currently installed. Checking version number.
                        Minimum Node version: v16.9.1
                        Installed Node version: v16.15.1
                        No Node.js upgrade necessary.
                        Check current NPM installation ...
                        NPM currently installed. Checking version number.
                        Minimum npm version: V7.11.2
                        Installed npm version: V8.11.0
                        No npm upgrade necessary.
                        It seems like MagicMirror is already installed.
                        To prevent overwriting, the installer will be aborted.
                        Please rename the ~/MagicMirror folder and try again.
                        

                        with force:

                        bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)" force
                        No LSB modules are available.
                        doing test run = false
                        update log will be in /home/pi/MagicMirror/installers/upgrade.log
                        Check current Node installation ...
                        Node currently installed. Checking version number.
                        Minimum Node version: v16.9.1
                        Installed Node version: v16.15.1
                        No Node.js upgrade necessary.
                        Check current NPM installation ...
                        NPM currently installed. Checking version number.
                        Minimum npm version: V7.11.2
                        Installed npm version: V8.11.0
                        No npm upgrade necessary.
                        
                        upgrading from version 2.21.0 to 2.21.0
                        fetching latest revisions
                        updating MagicMirror runtime, please wait
                        npm WARN invalid config omit="dev --no-audit --no-fund --no-update-notifier" set in command line options
                        npm WARN invalid config Must be one or more of: dev, optional, peer
                        
                        > magicmirror@2.21.0 postinstall
                        > npm run install-vendor && npm run install-fonts && echo "MagicMirror² installation finished successfully! 
                        > "
                        
                        
                        > magicmirror@2.21.0 install-vendor
                        > echo "Installing vendor files ...
                        > " && cd vendor && npm install --loglevel=error --no-audit --no-fund --no-update-notifier
                        
                        Installing vendor files ...
                        
                        
                        up to date in 2s
                        
                        > magicmirror@2.21.0 install-fonts
                        > echo "Installing fonts ...
                        > " && cd fonts && npm install --loglevel=error --no-audit --no-fund --no-update-notifier
                        
                        Installing fonts ...
                        
                        
                        up to date in 2s
                        MagicMirror² installation finished successfully! 
                        
                        
                        > magicmirror@2.21.0 prepare
                        > [ -f node_modules/.bin/husky ] && husky install || echo no husky installed.
                        
                        husky - Git hooks installed
                        
                        up to date, audited 754 packages in 58s
                        
                        91 packages are looking for funding
                          run `npm fund` for details
                        
                        3 moderate severity vulnerabilities
                        
                        To address all issues (including breaking changes), run:
                          npm audit fix --force
                        
                        Run `npm audit` for details.
                        Checking for modules with removed libraries
                         
                                 require for request in module MMM-Reddit not found in package.json package.json for module MMM-Reddit
                        installing request for module MMM-Reddit
                        npm WARN old lockfile 
                        npm WARN old lockfile The package-lock.json file was created with an old version of npm,
                        npm WARN old lockfile so supplemental metadata must be fetched from the registry.
                        npm WARN old lockfile 
                        npm WARN old lockfile This is a one-time fix-up, please be patient...
                        npm WARN old lockfile 
                        npm ERR! code ENOTEMPTY
                        npm ERR! syscall rename
                        npm ERR! path /home/pi/MagicMirror/modules/MMM-Reddit/node_modules/ajv
                        npm ERR! dest /home/pi/MagicMirror/modules/MMM-Reddit/node_modules/.ajv-s6Phgkfd
                        npm ERR! errno -39
                        npm ERR! ENOTEMPTY: directory not empty, rename '/home/pi/MagicMirror/modules/MMM-Reddit/node_modules/ajv' -> '/home/pi/MagicMirror/modules/MMM-Reddit/node_modules/.ajv-s6Phgkfd'
                        
                        npm ERR! A complete log of this run can be found in:
                        npm ERR!     /home/pi/.npm/_logs/2022-10-02T16_46_07_715Z-debug-0.log
                        processing dependency changes for active modules with package.json files
                        
                        processing for module MMM-Fuel please wait
                        ----------------------------------
                        npm WARN invalid config omit="dev --no-audit --no-fund --no-update-notifier" set in command line options
                        npm WARN invalid config Must be one or more of: dev, optional, peer
                        npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
                        
                        added 537 packages, and audited 538 packages in 3m
                        
                        89 packages are looking for funding
                          run `npm fund` for details
                        
                        found 0 vulnerabilities
                        processing complete for module MMM-Fuel
                        
                        processing for module MMM-Strava please wait
                        ----------------------------------
                        npm WARN invalid config omit="dev --no-audit --no-fund --no-update-notifier" set in command line options
                        npm WARN invalid config Must be one or more of: dev, optional, peer
                        npm WARN deprecated har-validator@5.1.5: this library is no longer supported
                        npm WARN deprecated request-promise@4.2.6: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
                        npm WARN deprecated @stylelint/postcss-markdown@0.36.2: Use the original unforked package instead: postcss-markdown
                        npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
                        npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
                        
                        added 441 packages, and audited 442 packages in 3m
                        
                        81 packages are looking for funding
                          run `npm fund` for details
                        
                        2 moderate severity vulnerabilities
                        
                        To address all issues (including breaking changes), run:
                          npm audit fix --force
                        
                        Run `npm audit` for details.
                        processing complete for module MMM-Strava
                        
                        processing for module MMM-Todoist please wait
                        ----------------------------------
                        npm WARN invalid config omit="dev --no-audit --no-fund --no-update-notifier" set in command line options
                        npm WARN invalid config Must be one or more of: dev, optional, peer
                        npm WARN deprecated har-validator@5.1.5: this library is no longer supported
                        npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
                        npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
                        
                        added 50 packages, and audited 51 packages in 19s
                        
                        3 packages are looking for funding
                          run `npm fund` for details
                        
                        found 0 vulnerabilities
                        processing complete for module MMM-Todoist
                        

                        This was the second time i run the command with force, because at the first time, it stuck for about 30 minutes at the same point

                        ⠸ reify:lodash: timing reify:audit Completed in 125567ms
                        

                        so i decided to restart the script with force.

                        I restartet the mm and it works now! Thanks!

                        Do you still want to see the upgrade.log?

                        S 1 Reply Last reply Reply Quote 0
                        • 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