• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Trying to update node.js fails

Scheduled Pinned Locked Moved Solved Troubleshooting
26 Posts 3 Posters 6.3k Views 3 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.
  • T Offline
    thad
    last edited by Jan 12, 2022, 5:43 PM

    @sdetweil

    That worked for around 20 minutes and now it’s restarting randomly again. Let me get the pm2 logs…

    Here they are:

    0|MagicMirror | Newsfeed-Fetcher: Broadcasting 54 items.
    0|MagicMirror | [12.01.2022 11:40.16.970] [INFO]
    0|MagicMirror | Calendar-Fetcher: Broadcasting 9 events.
    PM2 | pm2 has been killed by signal, dumping process list before exit…
    PM2 | Deleting process 0
    PM2 | Stopping app:MagicMirror id:0
    PM2 | App [MagicMirror:0] exited with code [0] via signal [SIGTERM]
    0|MagicMirror | [12.01.2022 11:41.34.434] [LOG] Shutting down server…
    0|MagicMirror | [12.01.2022 11:41.34.457] [LOG] Stopping module helper: updatenotification
    0|MagicMirror | [12.01.2022 11:41.34.459] [LOG] Stopping module helper: MMM-AVStock
    0|MagicMirror | [12.01.2022 11:41.34.460] [LOG] Stopping module helper: calendar
    0|MagicMirror | [12.01.2022 11:41.34.461] [LOG] Stopping module helper: newsfeed
    0|MagicMirror | [1561:0112/114134.512661:ERROR:command_buffer_proxy_impl.cc(328)] GPU state invalid after WaitForGetOffsetInRange.
    0|MagicMirror | [1561:0112/114134.561597:ERROR:zygote_communication_linux.cc(276)] Failed to send GetTerminationStatus message to zygote
    0|MagicMirror | [1561:0112/114134.568770:ERROR:zygote_communication_linux.cc(276)] Failed to send GetTerminationStatus message to zygote
    PM2 | pid=1533 msg=process killed
    PM2 | Exited peacefully
    0|MagicMirror | > magicmirror@2.18.0 start
    0|MagicMirror | > DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js
    0|MagicMirror | [12.01.2022 11:41.39.771] [LOG]
    0|MagicMirror | Starting MagicMirror: v2.18.0

    S 1 Reply Last reply Jan 12, 2022, 5:51 PM Reply Quote 0
    • S Offline
      sdetweil @thad
      last edited by sdetweil Jan 12, 2022, 5:55 PM Jan 12, 2022, 5:51 PM

      @thad fun times

      edit package.json and add

      --disable-gpu
      

      between the node_modules/electron and the js/electron.js

      on the start statement

      on my phone so hard to build good statement result… like this…

      "start":"DISPLAY=${DISPLAY:=:0}./node_modules/.bin/electron --disable-gpu js/electron.js"
      

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      T 1 Reply Last reply Jan 12, 2022, 7:07 PM Reply Quote 0
      • T Offline
        thad @sdetweil
        last edited by Jan 12, 2022, 7:07 PM

        @sdetweil

        Looking good. Right at an hour with no restarts.

        S 1 Reply Last reply Jan 12, 2022, 7:12 PM Reply Quote 0
        • S Offline
          sdetweil @thad
          last edited by Jan 12, 2022, 7:12 PM

          @thad what pi is this? and what os?

          lsb_release -a
          

          will show the os release info

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          T 1 Reply Last reply Jan 12, 2022, 7:15 PM Reply Quote 0
          • T Offline
            thad @sdetweil
            last edited by Jan 12, 2022, 7:15 PM

            @sdetweil

            It’s a pi4 running Raspbian release 10.

            S 1 Reply Last reply Jan 12, 2022, 7:16 PM Reply Quote 0
            • S Offline
              sdetweil @thad
              last edited by sdetweil Jan 12, 2022, 7:17 PM Jan 12, 2022, 7:16 PM

              @thad release 10, is that buster or bullseye?

              pi4, 2,4,8 gig?

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              T 1 Reply Last reply Jan 12, 2022, 7:37 PM Reply Quote 0
              • T Offline
                thad @sdetweil
                last edited by Jan 12, 2022, 7:37 PM

                @sdetweil

                It’s buster and I believe the pi4 is a 2GB model.

                S T 2 Replies Last reply Jan 12, 2022, 9:16 PM Reply Quote 0
                • S Offline
                  sdetweil @thad
                  last edited by Jan 12, 2022, 9:16 PM

                  @thad do

                  uname - a

                  so I can see if legacy buster or real…

                  free -m

                  will tell u how much memory

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    thad @thad
                    last edited by Jan 12, 2022, 9:38 PM

                    @sdetweil

                    pi@raspberrypi:~/MagicMirror $ uname -a
                    Linux raspberrypi 4.19.97-v7l+ #1294 SMP Thu Jan 30 13:21:14 GMT 2020 armv7l GNU/Linux
                    pi@raspberrypi:~/MagicMirror $ free -m
                    total used free shared buff/cache available
                    Mem: 1939 342 888 254 708 1261

                    S 1 Reply Last reply Jan 12, 2022, 10:32 PM Reply Quote 0
                    • S Offline
                      sdetweil @thad
                      last edited by Jan 12, 2022, 10:32 PM

                      @thad thx… original buster (4.19.97), legacy is 5.??? something)

                      and yes, 2gig memory

                      did u do any display config settings info in the /boot/confg.txt

                      i have gpu trouble on my jetson nano, but never on any pi so far…

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      T 1 Reply Last reply Jan 12, 2022, 10:53 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 2 / 3
                      2 / 3
                      • First post
                        19/26
                        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