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.

    install upgrade scripts changed for version 2.25 and node 20

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    35 Posts 4 Posters 16.4k 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.
    • mumblebajM Offline
      mumblebaj Module Developer @sdetweil
      last edited by

      @sdetweil Just to let you know this script worked fine on my Mirror first time. Did not need to run the Node one

      Check out my modules at: https://github.com/mumblebaj?tab=repositories
      Check my blog-post: https://mumblebaj.xyz/
      Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

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

        @mumblebaj said in install upgrade scripts changed for version 2.25 and node 20:

        Did not need to run the Node one

        correct… it is part of the install and upgrade scripts now

        did u run the testit branch version?

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        mumblebajM 1 Reply Last reply Reply Quote 0
        • mumblebajM Offline
          mumblebaj Module Developer @sdetweil
          last edited by

          @sdetweil That is correct and worked first time. Checked the installers log and no errors or issues either. Strange thing though, it had no issue with MMM-NewsAPI either and that works fine.

          Check out my modules at: https://github.com/mumblebaj?tab=repositories
          Check my blog-post: https://mumblebaj.xyz/
          Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

          1 Reply Last reply Reply Quote 0
          • B Offline
            bdream
            last edited by

            @sdetweil yes, script is running now :beaming_face_with_smiling_eyes:

            MM is not starting automatic, also not after reboot.
            But this work fine

              pm2 start 0
            

            Bildschirmfoto vom 2023-10-11 18-36-13.png

            –
            cheers, bdream

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

              @bdream ok

              probably missing library on some module

              do this

              pm2 stop all
              cd ~/MagicMirror
              npm start >/somefile.txt 2>&1
              

              wait 15 seconds
              in this same terminal window do
              ctrl-c

              then examine somefile.txt

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • B Offline
                bdream
                last edited by

                @sdetweil do I have to use sudo?
                Bildschirmfoto vom 2023-10-11 19-03-03.png

                And what exactly you mean “then examine somefile.txt”?

                –
                cheers, bdream

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

                  @bdream edit sorry, typo

                  2>./somefile.txt
                  (notice the missing leading .)

                  examine… edit, view, look inside

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  J 1 Reply Last reply Reply Quote 0
                  • J Offline
                    Jonae @sdetweil
                    last edited by

                    @sdetweil

                    this run this script:

                    bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/testit/raspberry.sh)”

                    get this error:
                    system running in command line mode, configured for graphical desktop, please reboot

                    after reboot, same error

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

                      @Jonae are you running the OS in commandline mode?

                      boot to prompt… not desktop

                      do , and show results
                      lsb_release -a
                      uname -a

                      or email me the ~/install.log
                      same userid at gmail

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      J 1 Reply Last reply Reply Quote 0
                      • J Offline
                        Jonae @sdetweil
                        last edited by Jonae

                        @sdetweil said in install upgrade scripts changed for version 2.25 and node 20:

                        @Jonae are you running the OS in commandline mode?

                        boot to prompt… not desktop

                        do , and show results
                        lsb_release -a
                        uname -a

                        or email me the ~/install.log
                        same userid at gmail

                        i think i have a problem with the imager software … checking right now

                        J 1 Reply Last reply Reply Quote 0
                        • J Offline
                          Jonae @Jonae
                          last edited by

                          i tryed to install on rpi4, i changed to rpi3 and now it works. Does MM not support rpi4 anymore?

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

                            @Jonae you have to use the new test versions.

                            listed at the top.of this topic… I just installed on the pi 4. which image did u pick? 32 bit or 64 bit?

                            uname -a

                            will show it

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            J 1 Reply Last reply Reply Quote 0
                            • J Offline
                              Jonae @sdetweil
                              last edited by

                              @sdetweil

                              32bit, as i always did …

                              S 3 Replies Last reply Reply Quote 0
                              • S Offline
                                sdetweil @Jonae
                                last edited by

                                @Jonae ok. I will be away for a couple hours, but will test that again when I return.

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

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

                                  @Jonae could u email me the ~/install.log
                                  same userid at gmail

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

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

                                    @Jonae can u try the install script again…

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    1 Reply Last reply Reply Quote 0
                                    • B Offline
                                      bdream
                                      last edited by

                                      Here is my somefile.txt

                                      > magicmirror@2.25.0 start
                                      > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
                                      
                                      [12.10.2023 09:50.23.491] [LOG]   Starting MagicMirror: v2.25.0
                                      [12.10.2023 09:50.23.502] [LOG]   Loading config ...
                                      [12.10.2023 09:50.23.510] [DEBUG] config template file not exists, no envsubst
                                      [12.10.2023 09:50.23.544] [LOG]   Loading module helpers ...
                                      [12.10.2023 09:50.23.705] [LOG]   Initializing new module helper ...
                                      [12.10.2023 09:50.23.707] [LOG]   Module helper loaded: MMM-ServerStatus
                                      [12.10.2023 09:50.23.715] [LOG]   Initializing new module helper ...
                                      [12.10.2023 09:50.23.716] [LOG]   Check MagicMirror² version for node helper 'MMM-Fuel' - Minimum version: 2.15.0 - Current version: 2.25.0
                                      [12.10.2023 09:50.23.719] [LOG]   Version is ok!
                                      [12.10.2023 09:50.23.720] [LOG]   Module helper loaded: MMM-Fuel
                                      [12.10.2023 09:50.23.735] [LOG]   No helper found for module: alert.
                                      [12.10.2023 09:50.23.748] [LOG]   Initializing new module helper ...
                                      [12.10.2023 09:50.23.748] [LOG]   Module helper loaded: updatenotification
                                      [12.10.2023 09:50.23.751] [LOG]   No helper found for module: MMM-bernwordclock.
                                      [12.10.2023 09:50.23.753] [LOG]   No helper found for module: MMM-Carousel.
                                      [12.10.2023 09:50.23.756] [LOG]   No helper found for module: clock.
                                      [12.10.2023 09:50.23.770] [LOG]   No helper found for module: MMM-WeatherChart.
                                      [12.10.2023 09:50.24.376] [LOG]   Initializing new module helper ...
                                      [12.10.2023 09:50.24.377] [LOG]   Module helper loaded: calendar
                                      [12.10.2023 09:50.25.685] [LOG]   Initializing new module helper ...
                                      [12.10.2023 09:50.25.686] [LOG]   Module helper loaded: MMM-Todoist
                                      [12.10.2023 09:50.25.689] [LOG]   No helper found for module: weather.
                                      [12.10.2023 09:50.25.781] [LOG]   Initializing new module helper ...
                                      [12.10.2023 09:50.25.782] [LOG]   Module helper loaded: MMM-PublicTransportHafas
                                      [12.10.2023 09:50.25.782] [LOG]   All module helpers loaded.
                                      [12.10.2023 09:50.25.803] [LOG]   Starting server on port 3336 ... 
                                      [12.10.2023 09:50.25.825] [WARN]  You're using a full whitelist configuration to allow for all IPs
                                      [12.10.2023 09:50.25.868] [LOG]   Server started ...
                                      [12.10.2023 09:50.25.870] [LOG]   Connecting socket for: MMM-ServerStatus
                                      [12.10.2023 09:50.25.871] [LOG]   Ping helper started; waiting for requests...
                                      [12.10.2023 09:50.25.872] [LOG]   Connecting socket for: MMM-Fuel
                                      [12.10.2023 09:50.25.873] [LOG]   Starting module helper: MMM-Fuel
                                      [12.10.2023 09:50.25.874] [LOG]   Connecting socket for: updatenotification
                                      [12.10.2023 09:50.25.875] [LOG]   Starting module helper: updatenotification
                                      [12.10.2023 09:50.25.875] [LOG]   Connecting socket for: calendar
                                      [12.10.2023 09:50.25.876] [LOG]   Starting node helper for: calendar
                                      [12.10.2023 09:50.25.877] [LOG]   Connecting socket for: MMM-Todoist
                                      [12.10.2023 09:50.25.878] [LOG]   Starting node helper for: MMM-Todoist
                                      [12.10.2023 09:50.25.878] [LOG]   Connecting socket for: MMM-PublicTransportHafas
                                      [12.10.2023 09:50.25.879] [LOG]   Sockets connected & modules started ...
                                      [12.10.2023 09:50.27.599] [LOG]   Launching application.
                                      [29556:1012/095028.951245:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.portal.Settings.Read: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.portal.Desktop was not provided by any .service files
                                      [29601:1012/095030.501129:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
                                      [12.10.2023 09:50.39.404] [LOG]   Create new calendarfetcher for url: https://<link> - Interval: 120000
                                      [12.10.2023 09:50.39.795] [ERROR] Calendar Error. Could not fetch calendar:  https://<link> TypeError: Request cannot be constructed from a URL that includes credentials: https://<link>
                                          at Object.fetch (node:internal/deps/undici/undici:11457:11)
                                          at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
                                      [12.10.2023 09:50.39.816] [LOG]   Create new calendarfetcher for url: https://<link> - Interval: 120000
                                      [12.10.2023 09:50.39.822] [ERROR] Calendar Error. Could not fetch calendar:  https://<link> TypeError: Request cannot be constructed from a URL that includes credentials: https://<link>
                                          at Object.fetch (node:internal/deps/undici/undici:11457:11)
                                          at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
                                      [12.10.2023 09:50.41.499] [LOG]   Create new calendarfetcher for url: https://www.schulferien.eu/downloads/ical4.php?land=HE&type=0&year=2022 - Interval: 120000
                                      [12.10.2023 09:50.41.520] [LOG]   Create new calendarfetcher for url: https://www.schulferien.eu/downloads/ical4.php?land=8&type=1&year=2022 - Interval: 120000
                                      [12.10.2023 09:50.41.650] [INFO]  Checking git for module: MMM-ServerStatus
                                      [12.10.2023 09:50.42.329] [INFO]  Calendar-Fetcher: Broadcasting 0 events from https://www.schulferien.eu/downloads/ical4.php?land=HE&type=0&year=2022.
                                      [12.10.2023 09:50.42.378] [INFO]  Calendar-Fetcher: Broadcasting 0 events from https://www.schulferien.eu/downloads/ical4.php?land=8&type=1&year=2022.
                                      [12.10.2023 09:50.42.566] [INFO]  Checking git for module: MMM-bernwordclock
                                      [12.10.2023 09:50.42.820] [INFO]  Checking git for module: MMM-Carousel
                                      /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
                                      

                                      –
                                      cheers, bdream

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

                                        @bdream said in install upgrade scripts changed for version 2.25 and node 20:

                                        12.10.2023 09:50.39.795] [ERROR] Calendar Error. Could not fetch calendar: https:// TypeError: Request cannot be constructed from a URL that includes credentials: https://
                                        at Object.fetch (node:internal/deps/undici/undici:11457:11)
                                        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

                                        that looks like the problem.

                                        note that we removed digest fetch in this release.
                                        I would disable the calendar module as a test to see if that fixes the problem.

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

                                        1 Reply Last reply Reply Quote 0
                                        • B Offline
                                          bdream
                                          last edited by

                                          @sdetweil as I made

                                          pm2 stop all
                                          cd ~/MagicMirror
                                          npm start >./somefile.txt 2>&1
                                          

                                          it worked fine until CTRL + C

                                          Yes the problem with the calendar is next I need help to fix. For now I wonder how to get MM starting after reboot again?

                                          –
                                          cheers, bdream

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

                                            @bdream

                                            pm2 start all
                                            pm2 save
                                            

                                            and

                                            sudo reboot
                                            

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 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