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.

    MM startup problem after update

    Scheduled Pinned Locked Moved Unsolved Requests
    42 Posts 3 Posters 5.2k 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.
    • M Offline
      manu85340 @sdetweil
      last edited by

      @sdetweil

      pi@MagicMirror:~ $ sudo npm I-g n
      Unknown command: "I-g"
      
      To see a list of supported npm commands, run:
        npm help
      pi@MagicMirror:~ $ sudo n 20
        installing : node-v20.15.0
             mkdir : /usr/local/n/versions/node/20.15.0
             fetch : https://nodejs.org/dist/v20.15.0/node-v20.15.0-linux-armv7l.tar.x                                                                                                                                                             z
           copying : node/20.15.0
      node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not foun                                                                                                                                                             d (required by node)
      /usr/local/bin/node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3                                                                                                                                                             .4.26' not found (required by /usr/local/bin/node)
         installed :  (with npm )
      pi@MagicMirror:~ $ node -v
      node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not foun                                                                                                                                                             d (required by node)
      pi@MagicMirror:~ $ node-v
      -bash: node-v : commande introuvable
      pi@MagicMirror:~ $ node -v
      node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not foun                                                                                                                                                             d (required by node)
      pi@MagicMirror:~ $
      
      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @manu85340
        last edited by

        @manu85340 grr… that was the problem finding the c++ lib for buster.

        let me research, be a couple hours

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          manu85340 @sdetweil
          last edited by

          @sdetweil OK thanks to you

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

            @manu85340 so, after research. there is no way to get to the latest MagicMirror release on buster.

            unless there is some fix you NEED , I recommend staying where you were til you can plan to upgrade the os.

            now we’ve already tried going forward, so need to jump back.

            can you look in the upgrade log ~/MagicMirror/installers/upgrade.log
            for the string

            upgrading from version

            so we can get you back to that earlier release

            in prep for os migration, and general health backup your MagicMirror system
            see my backup restore
            https://github.com/sdetweil/MagicMirror-backup-restore

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              manu85340 @sdetweil
              last edited by

              @sdetweil I’ll give you part of upgrade.log I hope it suits you and I’ll look at the link you provided I hope I’ll manage to understand what to do

              restoring custom.css
              removing git alias
              Upgrade ended - mar. avril 2 10:35:49 CEST 2024

              Upgrade started - mar. avril 2 10:37:27 CEST 2024
              system is Linux MagicMirror 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l GNU/Linux
              user requested to apply changes
              doing test run = false
              the os is Distributor ID: Raspbian Description: Raspbian GNU/Linux 10 (buster) Release: 10 Codename: buster
              Node currently installed. Checking version number.
              Minimum Node version: v18.18.0
              Installed Node version: v18.18.0
              Check current Node installation …
              Node currently installed. Checking version number.
              Minimum Node version: v18.18.0
              Installed Node version: v18.18.0
              No Node.js upgrade necessary.
              Check current NPM installation …
              NPM currently installed. Checking version number.
              Minimum npm version: V9.8.1
              Installed npm version: V9.8.1
              No npm upgrade necessary.

              saving custom.css
              remote name = origin
              upgrading from version 2.26.0 to 2.27.0
              fetching latest revisions
              git fetch rc=0
              current branch = master
              On branch master
              Your branch is behind ‘origin/master’ by 1 commit, and can be fast-forwarded.
              (use “git pull” to update your local branch)

              Untracked files:
              (use “git add …” to include in what will be committed)

              core
              css/icons/
              css/save_custom.css
              modules/default/currentweather/
              nohup.out
              

              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
              executing merge, apply specified
              merge result rc= 0
              Updating 118e2123…5ea8a346 Fast-forward .eslintignore
              3 ± .eslintrc.json
              18 ± .github/codecov.yaml
              10 - .github/dependabot.yaml
              15 + .github/workflows/depsreview.yaml
              2 ± .github/workflows/electronRebuild.yaml
              20 + .github/workflows/enforce-pullrequest-rules.yaml
              2 ± .gitignore
              6 ± .husky/pre-commit
              2 - .npmrc
              1 + .prettierignore
              2 + CHANGELOG.md
              199 ± Collaboration.md
              24 ± LICENSE.md
              2 ± README.md
              10 ± clientonly/index.js
              4 ± config/config.js.sample
              5 ± css/custom.css.sample
              8 ± fonts/package-lock.json
              18 ± fonts/package.json
              11 ± js/animateCSS.js
              7 - js/app.js
              42 ± js/check_config.js
              23 ± js/defaults.js
              8 ± js/deprecated.js
              8 - js/electron.js
              1 + js/loader.js
              6 - js/logger.js
              43 ± js/main.js
              6 - js/module.js
              6 ± js/node_helper.js
              6 - js/server.js
              16 ± js/server_functions.js
              4 ± js/socketclient.js
              6 - js/translator.js
              6 - js/utils.js
              37 ± mm2.png
              Bin 0 -> 6947 bytes modules/default/alert/alert.js
              6 - modules/default/calendar/calendar.js
              33 ± modules/default/calendar/calendarfetcher.js
              9 ± modules/default/calendar/calendarfetcherutils.js
              268 ± modules/default/calendar/calendarutils.js
              6 - modules/default/calendar/debug.js
              3 - modules/default/calendar/node_helper.js
              15 ± modules/default/clock/clock.js
              11 ± modules/default/compliments/compliments.js
              8 ± modules/default/defaultmodules.js
              5 ± modules/default/helloworld/helloworld.js
              6 - modules/default/newsfeed/newsfeed.js
              43 ± modules/default/newsfeed/newsfeedfetcher.js
              13 ± modules/default/newsfeed/node_helper.js
              7 - modules/default/updatenotification/git_helper.js
              10 ± …/default/updatenotification/update_helper.js
              57 ± …/updatenotification/updatenotification.js
              10 ± modules/default/weather/current.njk
              56 ± modules/default/weather/providers/envcanada.js
              8 ± modules/default/weather/providers/openmeteo.js
              12 ± …/default/weather/providers/openweathermap.js
              9 ± modules/default/weather/providers/pirateweather.js
              11 ± modules/default/weather/providers/smhi.js
              12 ± modules/default/weather/providers/ukmetoffice.js
              9 ± …/weather/providers/ukmetofficedatahub.js
              9 ± modules/default/weather/providers/weatherbit.js
              11 ± modules/default/weather/providers/weatherflow.js
              10 ± modules/default/weather/providers/weathergov.js
              10 ± modules/default/weather/providers/yr.js
              10 ± modules/default/weather/weather.js
              14 ± modules/default/weather/weatherobject.js
              12 - modules/default/weather/weatherprovider.js
              9 ± modules/default/weather/weatherutils.js
              6 - package-lock.json
              4180 ++++++++++++±------ package.json
              60 ± serveronly/index.js
              2 ± tests/configs/default.js
              5 - tests/configs/empty_ipWhiteList.js
              5 - tests/configs/modules/alert/default.js
              5 - tests/configs/modules/calendar/auth-default.js
              5 - tests/configs/modules/calendar/bad_rrule.js
              5 - tests/configs/modules/calendar/basic-auth.js
              5 - tests/configs/modules/calendar/changed-port.js
              5 - tests/configs/modules/calendar/custom.js
              6 ± tests/configs/modules/calendar/default.js
              5 - …/{exdate.js => exdate_la_at_midnight_dst.js}
              13 ± …/modules/calendar/exdate_la_at_midnight_std.js
              37 + …/modules/calendar/exdate_la_before_midnight.js
              37 + …/modules/calendar/exdate_syd_at_midnight_dst.js
              37 + …/modules/calendar/exdate_syd_at_midnight_std.js
              37 + …/modules/calendar/exdate_syd_before_midnight.js
              37 + tests/configs/modules/calendar/fail-basic-auth.js
              7 - …/configs/modules/calendar/long-fullday-event.js
              28 + tests/configs/modules/calendar/old-basic-auth.js
              5 - tests/configs/modules/calendar/recurring.js
              5 - tests/configs/modules/calendar/rrule_until.js
              30 + …/calendar/show-duplicates-in-calendar.js
              5 - …/modules/calendar/single-fullday-event.js
              28 + tests/configs/modules/clock/clock_12hr.js
              5 - tests/configs/modules/clock/clock_24hr.js
              5 - tests/configs/modules/clock/clock_analog.js
              4 - …/modules/clock/clock_displaySeconds_false.js
              5 - …/configs/modules/clock/clock_showDateAnalog.js
              5 - …/configs/modules/clock/clock_showPeriodUpper.js
              5 - tests/configs/modules/clock/clock_showSunMoon.js
              5 - tests/configs/modules/clock/clock_showTime.js
              5 - tests/configs/modules/clock/clock_showWeek.js
              5 - tests/configs/modules/clock/es/clock_12hr.js
              5 - tests/configs/modules/clock/es/clock_24hr.js
              5 - …/modules/clock/es/clock_showPeriodUpper.js
              5 - tests/configs/modules/clock/es/clock_showWeek.js
              6 - …/modules/compliments/compliments_animateCSS.js
              6 - …/compliments_animateCSS_fallbackToDefault.js
              7 - …compliments_animateCSS_invertedAnimationName.js
              6 - …/modules/compliments/compliments_anytime.js
              5 - …/modules/compliments/compliments_date.js
              5 - …/compliments/compliments_only_anytime.js
              5 - …/modules/compliments/compliments_parts_day.js
              5 - …/modules/compliments/compliments_remote.js
              5 - tests/configs/modules/display.js
              5 - tests/configs/modules/helloworld/helloworld.js
              5 - …/modules/helloworld/helloworld_default.js
              5 - tests/configs/modules/newsfeed/default.js
              5 - tests/configs/modules/newsfeed/ignore_items.js
              4 - tests/configs/modules/newsfeed/incorrect_url.js
              4 - tests/configs/modules/newsfeed/prohibited_words.js
              4 - tests/configs/modules/positions.js
              5 - …/modules/weather/currentweather_compliments.js
              5 - …/modules/weather/currentweather_default.js
              6 ± …/modules/weather/currentweather_options.js
              7 ± …/modules/weather/currentweather_units.js
              7 ± …/modules/weather/forecastweather_absolute.js
              5 - …/modules/weather/forecastweather_default.js
              5 - …/modules/weather/forecastweather_options.js
              5 - …/modules/weather/forecastweather_units.js
              5 - …/modules/weather/hourlyweather_default.js
              5 - …/modules/weather/hourlyweather_options.js
              5 - …/weather/hourlyweather_showPrecipitation.js
              5 - tests/configs/noIpWhiteList.js
              5 - tests/configs/port_8090.js
              5 - tests/configs/port_variable.js.template
              5 - tests/configs/without_modules.js
              5 - tests/e2e/animateCSS_spec.js
              7 - tests/e2e/fonts_spec.js
              2 ± tests/e2e/helpers/basic-auth.js
              2 ± tests/e2e/modules/calendar_spec.js
              31 + tests/e2e/modules/weather_current_spec.js
              16 ± tests/e2e/serveronly_spec.js
              2 ± tests/e2e/template_spec.js
              2 ± tests/e2e/translations_spec.js
              4 ± tests/electron/env_spec.js
              2 ± tests/electron/helpers/global-setup.js
              6 ± tests/electron/modules/calendar_spec.js
              105 ± tests/mocks/calendar_test_exdate.ics
              34 - tests/mocks/calendar_test_full_day_events.ics
              33 + …/calendar_test_multi_day_starting_today.ics
              33 + tests/mocks/exdate_la_at_midnight_dst.ics
              15 + tests/mocks/exdate_la_at_midnight_std.ics
              15 + tests/mocks/exdate_la_before_midnight.ics
              15 + tests/mocks/exdate_syd_at_midnight_dst.ics
              15 + tests/mocks/exdate_syd_at_midnight_std.ics
              15 + tests/mocks/exdate_syd_before_midnight.ics
              15 + tests/mocks/rrule_until.ics
              24 + tests/unit/classes/class_spec.js
              2 ± tests/unit/classes/translator_spec.js
              2 ± tests/unit/classes/utils_spec.js
              35 ± tests/unit/functions/cmp_versions_spec.js
              2 ± tests/unit/functions/updatenotification_spec.js
              22 ± tests/unit/global_vars/defaults_modules_spec.js
              4 ± tests/unit/global_vars/root_path_spec.js
              4 ± tests/utils/weather_mocker.js
              13 ± translations/et.json
              31 ± translations/translations.js
              7 - vendor/package-lock.json
              10 ± vendor/package.json
              9 ± vendor/vendor.js
              6 - 173 files changed, 4108 insertions(+), 2557 deletions(-) delete mode 100644 .github/codecov.yaml
              create mode 100644 .github/workflows/electronRebuild.yaml
              create mode 100644 mm2.png rename tests/configs/modules/calendar/{exdate.js => exdate_la_at_midnight_dst.js} (50%)
              create mode 100644 tests/configs/modules/calendar/exdate_la_at_midnight_std.js
              create mode 100644 tests/configs/modules/calendar/exdate_la_before_midnight.js
              create mode 100644 tests/configs/modules/calendar/exdate_syd_at_midnight_dst.js
              create mode 100644 tests/configs/modules/calendar/exdate_syd_at_midnight_std.js
              create mode 100644 tests/configs/modules/calendar/exdate_syd_before_midnight.js
              create mode 100644 tests/configs/modules/calendar/long-fullday-event.js
              create mode 100644 tests/configs/modules/calendar/rrule_until.js
              create mode 100644 tests/configs/modules/calendar/single-fullday-event.js delete mode 100644 tests/mocks/calendar_test_exdate.ics
              create mode 100644 tests/mocks/calendar_test_full_day_events.ics
              create mode 100644 tests/mocks/calendar_test_multi_day_starting_today.ics
              create mode 100644 tests/mocks/exdate_la_at_midnight_dst.ics
              create mode 100644 tests/mocks/exdate_la_at_midnight_std.ics
              create mode 100644 tests/mocks/exdate_la_before_midnight.ics
              create mode 100644 tests/mocks/exdate_syd_at_midnight_dst.ics
              create mode 100644 tests/mocks/exdate_syd_at_midnight_std.ics
              create mode 100644 tests/mocks/exdate_syd_before_midnight.ics
              create mode 100644 tests/mocks/rrule_until.ics
              processor architecture is armv7l
              updating MagicMirror runtime, please wait

              magicmirror@2.27.0 postinstall
              npm run install-vendor && npm run install-fonts && echo "MagicMirror² installation finished successfully!
              "

              magicmirror@2.27.0 install-vendor
              echo "Installing vendor files …
              " && cd vendor && npm install --loglevel=error --no-audit --no-fund --no-update-notifier

              Installing vendor files …

              changed 1 package in 3s

              magicmirror@2.27.0 install-fonts
              echo "Installing fonts …
              " && cd fonts && npm install --loglevel=error --no-audit --no-fund --no-update-notifier

              Installing fonts …

              changed 2 packages in 6s
              MagicMirror² installation finished successfully!

              magicmirror@2.27.0 prepare
              [ -f node_modules/.bin/husky ] && husky || echo no husky installed.

              no husky installed.

              added 483 packages in 2m

              112 packages are looking for funding
              run npm fund for details
              npm install completed - mar. avril 2 10:39:31 CEST 2024 on base
              fixing sandbox permissions

              Checking for modules with removed libraries
              downloading dumpactivemodules script

              updating dependencies for active modules with package.json files

              processing for module MMM-OneCallWeather please wait
              
              ----------------------------------
              

              added 1 package, and audited 2 packages in 4s

              found 0 vulnerabilities

              processing complete for module MMM-OneCallWeather
              
              processing for module MMM-ISS-Map please wait
              
              ----------------------------------
              

              added 1 package, and audited 2 packages in 7s

              found 0 vulnerabilities

              processing complete for module MMM-ISS-Map
              
              processing for module MMM-ISS-Live please wait
              
              ----------------------------------
              

              up to date, audited 1 package in 2s

              found 0 vulnerabilities

              processing complete for module MMM-ISS-Live
              

              restoring custom.css
              removing git alias
              Upgrade ended - mar. avril 2 10:39:54 CEST 2024

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

                @manu85340 ok, we need to back up to version 2.27 and node 18

                so, first lets go back to node 18

                sudo n 18
                

                verify

                node -v
                

                should return something like this

                ~/MagicMirror$ node -v
                v18.20.3
                

                if that is successful, then on to MagicMirror

                cd ~/MagicMirror
                git fetch --tags
                git checkout -b temp v.2.27.0
                rm package-lock.json
                rm -rf node_modules
                npm run install-mm
                

                then MagicMirror should start and run

                npm start 
                

                and not for startup

                sudo reboot
                

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                M 1 Reply Last reply Reply Quote 0
                • M Offline
                  manu85340 @sdetweil
                  last edited by

                  @sdetweil Sam I have an error when I pass the line

                  git checkout -b temp v.2.27.0
                  
                  

                  pi@MagicMirror:~ $ node -v
                  v18.20.3
                  pi@MagicMirror:~ $ cd ~/MagicMirror
                  pi@MagicMirror:~/MagicMirror $ git fetch --tags
                  remote: Enumerating objects: 4, done.
                  remote: Counting objects: 100% (4/4), done.
                  remote: Compressing objects: 100% (4/4), done.
                  remote: Total 4 (delta 0), reused 0 (delta 0), pack-reused 0
                  D▒paquetage des objets: 100% (4/4), fait.
                  Depuis https://github.com/MagicMirrorOrg/MagicMirror

                  • [nouvelle branche] dependabot/npm_and_yarn/develop/stylistic/eslint-plugin-2.3.0 -> origin/dependabot/npm_and_yarn/develop/stylistic/eslint-plugin-2.3.0
                    ! [rejet▒] v2.17.0 -> v2.17.0 (▒craserait l’▒tiquette existante)
                    pi@MagicMirror:~/MagicMirror $ git checkout -b temp v.2.27.0
                    fatal: ‘v.2.27.0’ n’est pas un commit et une branche ‘temp’ ne peut pas en ▒tre cr▒▒e depuis
                  
                  
                  

                  so I’m not going any further, I’m waiting for your instructions

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

                    @manu85340 said in MM startup problem after update:

                    git checkout -b temp v.2.27.0

                    my fault (that little dot after the v!..) sorry

                    git checkout -b temp v2.27.0
                    

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    M 1 Reply Last reply Reply Quote 0
                    • M Offline
                      manu85340 @sdetweil
                      last edited by

                      @sdetweil I have an error see below, thanks Sam

                      pi@MagicMirror:~/MagicMirror $ git checkout -b temp v2.27.0
                      Basculement sur la nouvelle branche ‘temp’
                      pi@MagicMirror:~/MagicMirror $ rm package-lock.json
                      pi@MagicMirror:~/MagicMirror $ rm -rf node_modules
                      pi@MagicMirror:~/MagicMirror $ npm run install-mm

                      magicmirror@2.27.0 install-mm
                      npm install --no-audit --no-fund --no-update-notifier --only=prod --omit=dev

                      /
                      <— Last few GCs —>

                      [25028:0x4545870] 27358 ms: Mark-sweep (reduce) 226.0 (233.8) -> 225.8 (233.8) MB, 271.2 / 0.0 ms (average mu = 0.812, current mu = 0.296) allocation failure; scavenge might not succeed
                      [25028:0x4545870] 27592 ms: Mark-sweep (reduce) 226.3 (233.8) -> 226.2 (234.3) MB, 230.3 / 0.0 ms (average mu = 0.653, current mu = 0.018) allocation failure; scavenge might not succeed

                      <— JS stacktrace —>

                      FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
                      Aborted
                      pi@MagicMirror:~/MagicMirror $

                      BKeyportB 1 Reply Last reply Reply Quote 0
                      • BKeyportB Offline
                        BKeyport Module Developer @manu85340
                        last edited by

                        You know, I just realized that the “blank screen” I mentioned earlier was actually just my screen setup. In fact, this is the same errors I was having with the NPM/Node being out of date…

                        The "E" in "Javascript" stands for "Easy"

                        M 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 3 / 5
                        • 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