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.

    ERROR:node_controller.cc(585)] Trying to re-add dropped peer

    Scheduled Pinned Locked Moved Solved Troubleshooting
    19 Posts 2 Posters 3.3k 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.
    • T Offline
      travishardiman
      last edited by

      My MagicMirror works fine for a few days and then the screen goes black. The errors in the log look like this:

      <--- Last few GCs --->
      
      [1:0x28003d0000] 209716297 ms: Mark-sweep (reduce) 611.5 (708.2) -> 611.4 (686.2) MB, 2337.4 / 4.3 ms  (average mu = 0.625, current mu = 0.046) last resort GC in old space requested
      [1:0x28003d0000] 209718766 ms: Mark-sweep (reduce) 611.4 (686.2) -> 611.3 (680.0) MB, 2469.7 / 4.9 ms  (average mu = 0.444, current mu = 0.000) last resort GC in old space requested
      
      
      <--- JS stacktrace --->
      
      [1971:0624/001659.568718:ERROR:node_controller.cc(585)] Trying to re-add dropped peer DCF39E05685563B4.545691B8F0544120
      [1973:0624/001659.568999:ERROR:node_controller.cc(585)] Trying to re-add dropped peer DCF39E05685563B4.545691B8F0544120
      

      Here is the pm2 info:

      ┌───────────────────┬──────────────────────────────────────────┐
      │ status            │ online                                   │
      │ name              │ MagicMirror                              │
      │ namespace         │ default                                  │
      │ version           │ 2.19.0                                   │
      │ restarts          │ 3                                        │
      │ uptime            │ 36m                                      │
      │ script path       │ /home/pi/MagicMirror/installers/mm.sh    │
      │ script args       │ N/A                                      │
      │ error log path    │ /home/pi/.pm2/logs/MagicMirror-error.log │
      │ out log path      │ /home/pi/.pm2/logs/MagicMirror-out.log   │
      │ pid path          │ /home/pi/.pm2/pids/MagicMirror-0.pid     │
      │ interpreter       │ bash                                     │
      │ interpreter args  │ N/A                                      │
      │ script id         │ 0                                        │
      │ exec cwd          │ /home/pi/MagicMirror                     │
      │ exec mode         │ fork_mode                                │
      │ node.js version   │ N/A                                      │
      │ node env          │ N/A                                      │
      │ watch & reload    │ ✔                                        │
      │ unstable restarts │ 0                                        │
      │ created at        │ 2022-06-24T05:15:29.610Z                 │
      └───────────────────┴──────────────────────────────────────────┘
       Revision control metadata 
      ┌──────────────────┬────────────────────────────────────────────────┐
      │ revision control │ git                                            │
      │ remote url       │ https://github.com/MichMich/MagicMirror.git    │
      │ repository root  │ /home/pi/MagicMirror                           │
      │ last update      │ 2022-06-24T05:15:30.131Z                       │
      │ revision         │ a2d7cdcfb425c2a51715bbaf663c2feb267a9798       │
      │ comment          │ Merge pull request #2834 from MichMich/develop │
      │                  │                                                │
      │                  │ Release v2.1                                   │
      │ branch           │ master                                         │
      └──────────────────┴────────────────────────────────────────────────┘
       Divergent env variables from local env 
      ┌────────────────┬────────────────────────────────────────────────────┐
      │ PWD            │ /home/pi/MagicMirror                               │
      │ SSH_CONNECTION │ 192.168.1.64 40866 192.168.1.14 22                 │
      │ SHLVL          │ 2                                                  │
      │ XDG_SESSION_ID │ 4                                                  │
      │ SSH_CLIENT     │ 192.168.1.64 40866 22                              │
      │ PATH           │ /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin: │
      └────────────────┴────────────────────────────────────────────────────┘
      
      
      S 1 Reply Last reply Reply Quote 0
      • T Offline
        travishardiman @sdetweil
        last edited by

        @sdetweil long term update after trying a few things out, the MMM-GoogleMapsTraffic module was the culprit. I started going down the path of trying to update the javascript issues when I discovered that your fork fixed them already. I uninstalled the original and installed yours and I haven’t had the black screen once since.

        https://github.com/sdetweil/MMM-GoogleMapsTraffic

        Thanks!

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

          @travishardiman this is an electron error. I don’t see it fixed.

          can u tell me more about your environment.

          what pi, node --version,npm --version

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          T 1 Reply Last reply Reply Quote 0
          • T Offline
            travishardiman @sdetweil
            last edited by

            @sdetweil Raspberry Pi 4 Model B Rev 1.2, 4GB

            pi@smartmirror:~ $ node --version
            v16.15.1
            pi@smartmirror:~ $ npm --version
            8.11.0
            pi@smartmirror:~ $ uname -a
            Linux smartmirror 5.15.32-v8+ #1538 SMP PREEMPT Thu Mar 31 19:40:39 BST 2022 aarch64 GNU/Linux
            
            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @travishardiman
              last edited by

              @travishardiman ah, 64 bit version, aarch64

              please fall back to the 32 bit version, armv7l

              lots of untested things on aarch64

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              T 1 Reply Last reply Reply Quote 0
              • T Offline
                travishardiman @sdetweil
                last edited by

                @sdetweil is there an easy way to back-up/restore my current config? I don’t think there’s a way to switch to 32 bit without reinstalling the OS is there?

                S 1 Reply Last reply Reply Quote 0
                • T Offline
                  travishardiman
                  last edited by

                  /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
                  
                  <--- Last few GCs --->
                  
                  [1:0x24003c4000] 207008094 ms: Mark-sweep (reduce) 475.8 (523.7) -> 475.7 (523.7) MB, 1993.6 / 3.9 ms  (average mu = 0.920, current mu = 0.050) last resort GC in old space requested
                  [1:0x24003c4000] 207010245 ms: Mark-sweep (reduce) 475.7 (523.7) -> 475.6 (523.2) MB, 2150.4 / 6.2 ms  (average mu = 0.846, current mu = 0.000) last resort GC in old space requested
                  
                  
                  <--- JS stacktrace --->
                  
                  [38327:0626/104544.125499:ERROR:node_controller.cc(585)] Trying to re-add dropped peer 46DBA04CA2320621.3742B9BD63F3CD94
                  
                  
                  S 1 Reply Last reply Reply Quote -1
                  • S Offline
                    sdetweil @travishardiman
                    last edited by

                    @travishardiman when is that from?

                    did u do manual install or my script?

                    have seen that error before.

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    T 1 Reply Last reply Reply Quote 0
                    • T Offline
                      travishardiman @sdetweil
                      last edited by

                      @sdetweil I tried to update the error in the first message with the first line. I posted as new reply in case someone is searching for that.

                      I just found your scripts here so I’m going to try this today, thanks!
                      https://github.com/sdetweil/MagicMirror-backup-restore

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

                        @travishardiman said in ERROR:node_controller.cc(585)] Trying to re-add dropped peer:

                        is there an easy way to back-up/restore my current config

                        I have a backup/restore tool that will save the config, css and the location of all the installed modules (github links)
                        and tghen on restore downloads and re-installs the modules from the links

                        https://github.com/sdetweil/MagicMirror-backup-restore

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • T Offline
                          travishardiman
                          last edited by

                          The backup didn’t restore my custom.css, mmpm, or some of the configuration files for 2 of my plugins but luckily I had those backed up elsewhere. I’m back up and running again though and so far so good! I’ll post back with logs if I get black screens again. Thanks for your help!

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