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 5.2k 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
                          • S Offline
                            sdetweil @travishardiman
                            last edited by

                            @travishardiman the backup folder has a specific name which u can override with parameters to the scripts

                            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

                              Well nuts, I thought I was good but it’s black screen again:

                              0|MagicMir | 
                              0|MagicMir | <--- Last few GCs --->
                              0|MagicMir | 
                              0|MagicMir | [1:0x2dd94000] 359113688 ms: Scavenge 882.9 (978.3) -> 879.5 (978.5) MB, 4.7 / 0.0 ms  (average mu = 0.974, current mu = 0.583) task 
                              0|MagicMir | [1:0x2dd94000] 359113908 ms: Scavenge 883.0 (978.5) -> 879.7 (978.8) MB, 5.4 / 0.0 ms  (average mu = 0.974, current mu = 0.583) allocation failure 
                              0|MagicMir | [1:0x2dd94000] 359114166 ms: Scavenge 883.4 (978.8) -> 880.0 (986.8) MB, 16.4 / 0.1 ms  (average mu = 0.974, current mu = 0.583) allocation failure 
                              0|MagicMir | 
                              0|MagicMir | 
                              0|MagicMir | <--- JS stacktrace --->
                              0|MagicMir |
                              
                              S 1 Reply Last reply Reply Quote 0
                              • S Offline
                                sdetweil @travishardiman
                                last edited by

                                @travishardiman looks like there may be a module eating storage

                                what do you have installed beyond the base?

                                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 MMM-GoogleMapsTraffic, MMM-MyGarbage, and MMM-GooglePhotos

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

                                    @travishardiman hm…not seen problems related to those, but time to run disabling one at a time

                                    add

                                    disabled:true,
                                    

                                    after the

                                      module:
                                    

                                    line
                                    and restart mm

                                    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 ok, I’m starting with the google photos module and see how it goes. Are there any other logs that might be helpful for debugging?

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

                                        @travishardiman the console which you know and the browser console

                                        ctrl-shift-i, select the console tab and scroll up
                                        red text is typically errors

                                        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 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 cool

                                            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 / 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