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.

    Failed update

    Scheduled Pinned Locked Moved Solved Troubleshooting
    10 Posts 2 Posters 656 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.
    • D Offline
      DarrenHill
      last edited by DarrenHill

      Just tried to update my mirror (running on a Pi3) using the update script and now just getting the RaspiOS desktop.

      In the error log I’m getting this:

      /tmp/start-ae66716a.sh: 1: /tmp/start-ae66716a.sh: ./node_modules/.bin/electron: not found
      /tmp/start-5f9bf958.sh: 1: /tmp/start-5f9bf958.sh: ./node_modules/.bin/electron: not found
      /tmp/start-61e117a4.sh: 1: /tmp/start-61e117a4.sh: ./node_modules/.bin/electron: not found
      /tmp/start-d066481b.sh: 1: /tmp/start-d066481b.sh: ./node_modules/.bin/electron: not found
      /tmp/start-e2a8c45b.sh: 1: /tmp/start-e2a8c45b.sh: ./node_modules/.bin/electron: not found
      /tmp/start-811c1067.sh: 1: /tmp/start-811c1067.sh: ./node_modules/.bin/electron: not found
      /tmp/start-0200e581.sh: 1: /tmp/start-0200e581.sh: ./node_modules/.bin/electron: not found
      /tmp/start-b6c97c53.sh: 1: /tmp/start-b6c97c53.sh: ./node_modules/.bin/electron: not found
      /tmp/start-1e98fa17.sh: 1: /tmp/start-1e98fa17.sh: ./node_modules/.bin/electron: not found
      /tmp/start-e0978d33.sh: 1: /tmp/start-e0978d33.sh: ./node_modules/.bin/electron: not found
      /tmp/start-23891cd1.sh: 1: /tmp/start-23891cd1.sh: ./node_modules/.bin/electron: not found
      /tmp/start-425db6c2.sh: 1: /tmp/start-425db6c2.sh: ./node_modules/.bin/electron: not found
      /tmp/start-4430a341.sh: 1: /tmp/start-4430a341.sh: ./node_modules/.bin/electron: not found
      /tmp/start-be15a75e.sh: 1: /tmp/start-be15a75e.sh: ./node_modules/.bin/electron: not found
      

      And there is indeed no electron in there, although there is .electron-7jst2j2U -> …/electron/cli.js ?

      pi@mirrorpi:~/MagicMirror/node_modules/.bin $ ls -al
      total 44
      drwxr-xr-x   2 pi pi  4096 Oct  2 17:59 .
      drwxr-xr-x 587 pi pi 36864 Oct  2 17:59 ..
      lrwxrwxrwx   1 pi pi    18 Jul  3 12:40 .acorn-IIB8cHVa -> ../acorn/bin/acorn
      lrwxrwxrwx   1 pi pi    18 Jul  3 12:40 .electron-7jst2j2U -> ../electron/cli.js
      lrwxrwxrwx   1 pi pi    23 Jul  3 12:40 .eslint-UE4ITVWN -> ../eslint/bin/eslint.js
      lrwxrwxrwx   1 pi pi    21 Sep  2  2020 extract-zip -> ../extract-zip/cli.js
      lrwxrwxrwx   1 pi pi    25 Jan  9  2022 js-yaml -> ../js-yaml/bin/js-yaml.js
      lrwxrwxrwx   1 pi pi    14 Jul  3 12:40 mime -> ../mime/cli.js
      lrwxrwxrwx   1 pi pi    20 Apr  2  2022 mkdirp -> ../mkdirp/bin/cmd.js
      lrwxrwxrwx   1 pi pi    23 Jul 25  2021 node-which -> ../which/bin/node-which
      lrwxrwxrwx   1 pi pi    16 Jul 25  2021 rimraf -> ../rimraf/bin.js
      lrwxrwxrwx   1 pi pi    23 Jul 25  2021 semver -> ../semver/bin/semver.js
      lrwxrwxrwx   1 pi pi    21 Jul 25  2021 uuid -> ../uuid/dist/bin/uuid
      

      Any tips to get things up and running again?
      The script itself seemed to run fine and finished back to the command prompt as expected.

      S 2 Replies Last reply Reply Quote 0
      • S Away
        sdetweil @DarrenHill
        last edited by

        @DarrenHill ok, try the latest… dang pi results different than other OS versons of npm

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        D 1 Reply Last reply Reply Quote 0
        • S Away
          sdetweil @DarrenHill
          last edited by

          @DarrenHill said in Failed update:

          tr

          rerun, I had to fix the order of parms on the npm install

          just updated use force at the end now as 2.21 is installed but not setup

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          D 1 Reply Last reply Reply Quote 0
          • S Away
            sdetweil @DarrenHill
            last edited by sdetweil

            @DarrenHill just had to fix it again…

            the npm commandline parser is a mess

            it sees this

             "--omit=dev --no-audit --no-fund --no-update-notifier"
            

            as this

            --omit=    "dev no-audit --no-fund --no-update-notifier "
            

            grrrrr

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • D Offline
              DarrenHill @sdetweil
              last edited by DarrenHill

              @sdetweil said in Failed update:

              @DarrenHill said in Failed update:

              tr

              rerun, I had to fix the order of parms on the npm install

              just updated use force at the end now as 2.21 is installed but not setup

              I assume you mean

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

              It ran, but didn’t seem to help. Still got the same in the logs. Also tried “apply force” at the end just in case, no different.

              The script also did display Unknown command: “dev” after each module listing, which may relate to your second post above? An example below - the same appears for all the modules.

              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.17.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.15.0
              No npm upgrade necessary.
              
              saving custom.css
              (23) Failed writing body
              upgrading from version 2.21.0 to 2.21.0
              fetching latest revisions
              updating MagicMirror runtime, please wait
              Unknown command: "dev"
              
              To see a list of supported npm commands, run:
                npm help
              Checking for modules with removed libraries
              processing dependency changes for active modules with package.json files
              
              processing for module MMM-ModuleScheduler please wait
              ----------------------------------
              Unknown command: "dev"
              
              
              S 1 Reply Last reply Reply Quote 0
              • S Away
                sdetweil @DarrenHill
                last edited by

                @DarrenHill ok,I am w grandchild til 7 us Central…

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                D 1 Reply Last reply Reply Quote 0
                • D Offline
                  DarrenHill @sdetweil
                  last edited by

                  @sdetweil said in Failed update:

                  @DarrenHill ok,I am w grandchild til 7 us Central…

                  No probs, take whatever time you need. Family comes first.

                  If you need any more logs etc, let me know (I’m in the UK, so about for another hour or two but can pick up tomorrow too).

                  S 1 Reply Last reply Reply Quote 0
                  • S Away
                    sdetweil @DarrenHill
                    last edited by

                    @DarrenHill try this update took quotes off the literal

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    D 1 Reply Last reply Reply Quote 0
                    • D Offline
                      DarrenHill @sdetweil
                      last edited by DarrenHill

                      @sdetweil Doesn’t look good

                      pi@mirrorpi:~ $ bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/                                                                             MagicMirror_scripts/master/upgrade-script.sh)" force
                      force: i#!/bin/bash: No such file or directory
                      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.17.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.15.0
                      No npm upgrade necessary.
                      
                      force: line 271: --no-fund: command not found
                      saving custom.css
                      upgrading from version 2.21.0 to 2.21.0
                      fetching latest revisions
                      updating MagicMirror runtime, please wait
                      npm WARN config only Use `--omit=dev` to omit dev dependencies from the install.
                      npm ERR! code ENOTEMPTY
                      npm ERR! syscall rename
                      npm ERR! path /home/pi/MagicMirror/node_modules/acorn
                      npm ERR! dest /home/pi/MagicMirror/node_modules/.acorn-pnTZ3fig
                      npm ERR! errno -39
                      npm ERR! ENOTEMPTY: directory not empty, rename '/home/pi/MagicMirror/node_modules/acorn' -> '/home/pi/MagicMirror/node_modules/.acorn-pnTZ3fig'
                      
                      npm ERR! A complete log of this run can be found in:
                      npm ERR!     /home/pi/.npm/_logs/2022-10-02T21_30_31_689Z-debug-0.log
                      Checking for modules with removed libraries
                      processing dependency changes for active modules with package.json files
                      
                      processing for module MMM-ModuleScheduler please wait
                      ----------------------------------
                      npm WARN config only Use `--omit=dev` to omit dev dependencies from the install.
                      
                      added 3 packages, and audited 4 packages in 20s
                      
                      found 0 vulnerabilities
                      processing complete for module MMM-ModuleScheduler
                      
                      processing for module MMM-DigClock please wait
                      ----------------------------------
                      npm WARN config only Use `--omit=dev` to omit dev dependencies from the install.
                      
                      up to date, audited 1 package in 827ms
                      
                      found 0 vulnerabilities
                      processing complete for module MMM-DigClock
                      
                      processing for module MMM-ping please wait
                      ----------------------------------
                      npm WARN config only Use `--omit=dev` to omit dev dependencies from the install.
                      
                      added 3 packages, and audited 4 packages in 44s
                      
                      found 0 vulnerabilities
                      processing complete for module MMM-ping
                      
                      processing for module MMM-network-signal please wait
                      ----------------------------------
                      npm WARN config only Use `--omit=dev` to omit dev dependencies from the install.
                      
                      added 3 packages, and audited 4 packages in 3s
                      
                      found 0 vulnerabilities
                      processing complete for module MMM-network-signal
                      
                      processing for module MMM-Space please wait
                      ----------------------------------
                      npm WARN config only Use `--omit=dev` to omit dev dependencies from the install.
                      
                      up to date, audited 1 package in 843ms
                      
                      found 0 vulnerabilities
                      processing complete for module MMM-Space
                      
                      processing for module MMM-NetworkScanner please wait
                      ----------------------------------
                      npm WARN config only Use `--omit=dev` to omit dev dependencies from the install.
                      
                      added 7 packages, and audited 8 packages in 40s
                      
                      found 0 vulnerabilities
                      processing complete for module MMM-NetworkScanner
                      
                      processing for module MMM-NewsAPI please wait
                      ----------------------------------
                      npm WARN config only Use `--omit=dev` to omit dev dependencies from the install.
                      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 52 packages, and audited 53 packages in 15s
                      
                      2 packages are looking for funding
                        run `npm fund` for details
                      
                      found 0 vulnerabilities
                      processing complete for module MMM-NewsAPI
                      
                      processing for module MMM-Mail please wait
                      ----------------------------------
                      npm WARN config only Use `--omit=dev` to omit dev dependencies from the install.
                      npm WARN deprecated emailjs-tcp-socket@1.0.2: This project is no longer maintained. Please reach out if you want to hop on as a maintainer.
                      
                      added 10 packages, and audited 11 packages in 4s
                      
                      3 vulnerabilities (2 moderate, 1 high)
                      
                      Some issues need review, and may require choosing
                      a different dependency.
                      
                      Run `npm audit` for details.
                      processing complete for module MMM-Mail
                      
                      processing for module MMM-GmailFeed please wait
                      ----------------------------------
                      npm WARN config only Use `--omit=dev` to omit dev dependencies from the install.
                      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 7s
                      
                      2 packages are looking for funding
                        run `npm fund` for details
                      
                      found 0 vulnerabilities
                      processing complete for module MMM-GmailFeed
                      
                      restoring custom.css
                      
                      

                      I’m off to bed in a few moments, so feel free to take your time over it. Don’t interrupt your family time for it, it can wait a while.

                      Thanks as ever for the support and effort though.

                      S 1 Reply Last reply Reply Quote 0
                      • S Away
                        sdetweil @DarrenHill
                        last edited by

                        @DarrenHill ok, try the latest… dang pi results different than other OS versons of npm

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        D 1 Reply Last reply Reply Quote 0
                        • D Offline
                          DarrenHill @sdetweil
                          last edited by

                          @sdetweil said in Failed update:

                          @DarrenHill ok, try the latest… dang pi results different than other OS versons of npm

                          Thanks - that’s fixed it :D

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