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.

    MM2 will not start after update

    Scheduled Pinned Locked Moved Solved Troubleshooting
    9 Posts 2 Posters 1.9k 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 @killing joke
      last edited by

      @killing-joke for every module that has a package.json file, you need to do an
      npm install
      in their folder too

      my upgrade script would have helped here, 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
      • K Offline
        killing joke
        last edited by killing joke

        Hi @sdetweil,
        this is my “second” pi and it´s an free-external-module pi.
        Anyhow. I used your code but it didn´t worked for me/my pi - same error occurs.

        Unfortunately there is no log file “install.log” in the MagicMirror folder.
        Files in my MM folder:

        • CHANGELOG.m d
        • core (without file ending)
        • dangerfile.js
        • Gruntfile.js
        • index.html
        • jsconfig.json
        • LICENSE.m d
        • module-types.ts
        • package.json
        • package-lock.json
        • README.m d

        confused any suggestions?

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

          @killing-joke said in MM2 will not start after update:

          Unfortunately there is no log file “install.log” in the MagicMirror folder.
          correct, if I am installing, I cannot out the loh IN the MM folder as it doesn’t exist yet,
          so its in the user root ~/install.log

          but there IS an upgrade.log in the installers folder as it said when it started
          and its two pass, right?? 1st time to test, second time with more arguments to actually DO the upgrade

          AND if you did it manually once, you will have to FORCE it
          bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)” force

          install is NEW (if u ran install again there should be a log at ~/install.log)
          upgrade is update MM versions

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • K Offline
            killing joke
            last edited by

            Hi @sdetweil,

            I found the log file. I translated it into english

            install starting  - Fr Mai 22 17:59:08 CEST 2020
            installing on armv7l processor system
            the os is Distributor ID: Raspbian Description: Raspbian GNU/Linux 9.11 (stretch) Release: 9.11 Codename: stretch
            Updating packages ...
            OK:1 http://archive.raspberrypi.org/debian stretch InRelease OK:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease Holen:3 https://deb.nodesource.com/node_9.x stretch InRelease [4.623 B] Es wurden 4.623 B in 1 s geholt (3.548 B/s). packages reading...
            apt-get update  completed ok
            apt-get upgrade  started
            apt upgrade result =rc=0 packages reading...
            building dependecie tree....
            status informationen reading....
            calculating packages updated (Upgrade) ...
            hold back the following packages:
              libavfilter6 libavformat57 omxplayer piwiz python-gpiozero python3-gpiozero
              python3-thonny sense-emu-tools wolfram-engine
            0 updated, 0 new installed, 0 deleted and 9 not updated.
            Installing helper tools ...
            packages reading...
            building dependecie tree....
            status informationen reading....
            build-essential is the newest version (12.3).
            curl is already the newest version (7.52.1-5+deb9u10).
            git is already the newest version (1:2.11.0-3+deb9u6).
            unzip is already the newest version (6.0-21+deb9u2).
            wget is already the newest version (1.18-5+deb9u3).
            0 updated, 0 new installed, 0 deleted and 9 not updated.
            Check current Node installation ...
            Node currently installed. Checking version number.
            Minimum Node version: v10.1.0
            Installed Node version: v9.11.2
            Node should be upgraded.
            A Node process is currently running. Can't upgrade.
            Please quit all Node processes and restart the installer.
            

            afterwards the same error as described in the first post…

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

              @killing-joke that is install, and something is already running.

              Upgrade is different script.

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • K Offline
                killing joke
                last edited by killing joke

                Hi @sdetweil

                yep, copied the wrong lines to my pi. Now i used the upgrade-code.

                
                Upgrade started - Fr Mai 22 18:39:20 CEST 2020
                system is Linux raspberrypi 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l GNU/Linux
                the os is Distributor ID: Raspbian Description: Raspbian GNU/Linux 9.11 (stretch) Release: 9.11 Codename: stretch
                doing test run = true, NO updates will be applied!
                
                remote name = origin
                upgrading from version 2.11.0 to 2.11.0
                fetching latest revisions
                git fetch rc=0
                current branch = master
                On branch master
                Your branch is up-to-date with 'origin/master'.
                Untracked files:
                  (use "git add <file>..." to include in what will be committed)
                
                	core
                
                nothing added to commit but untracked files present (use "git add" to track)
                no files different from github version
                test merge result rc='' , if empty, no conflicts
                skipping merge, only test run
                downloading dumpactivemodules script
                no modules found needing npm refresh
                removing git alias
                

                Afterwards I performed npm update and npm restart but didn´t helped.
                Now it´s working.
                Thank you very much for your patience!!!

                (how can I mark the thread as solved? - under "Topic Tool its only possible the “Delete Topic” or “Ask as question” )

                S K 2 Replies Last reply Reply Quote 0
                • S Offline
                  sdetweil @killing joke
                  last edited by

                  @killing-joke said in MM2 will not start after update:

                  doing test run = true, NO updates will be applied!

                  this is a two pass process… I tell you what MIGHT need to be done
                  then you run it again with ‘apply’ at the end of the command and i DO the update
                  this is for people that have lots of things that break on each update…

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • K Offline
                    killing joke @killing joke
                    last edited by

                    @killing-joke said in MM2 will not start after update:

                    Afterwards I performed npm update and npm restart but didn´t helped.

                    was a typo. It should be "Afterwards I performed npm update and npm restart and it helped.

                    Thank you very much.

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