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.

    New MagicMirrorOS build - mm Container in Restart Loop

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    4 Posts 3 Posters 36 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.
    • S Offline
      scottwalsh
      last edited by

      I’ve just done a clean install of MagicMirrorOS (based on @karsten13 ’s docker install) - 4 Jul 64 bit build.

      The mm container just seems to be stuck in a restart loop.

      Suggestions to troubleshoot?

      scottwalsh@calendar:/opt/mm/run $ docker ps
      CONTAINER ID   IMAGE                                      COMMAND                  CREATED         STATUS                          PORTS      NAMES
      7feb4bcf2b57   karsten13/magicmirror:latest               "/usr/bin/tini -- ./…"   3 minutes ago   Restarting (1) 35 seconds ago              mm
      c4ecd7a1a688   ghcr.io/nicholas-fedor/watchtower:latest   "/watchtower --inter…"   3 minutes ago   Up 3 minutes (healthy)          8080/tcp   watchtower
      c0d1ee7dcd97   karsten13/labwc:latest                     "/entrypoint.sh"         3 minutes ago   Up 3 minutes (healthy)                     labwc
      scottwalsh@calendar:/opt/mm/run $ 
      scottwalsh@calendar:/opt/mm/run $ 
      scottwalsh@calendar:/opt/mm/run $ 
      scottwalsh@calendar:/opt/mm/run $ docker logs mm
      /opt/magic_mirror/node_modules/electron/dist/electron: /opt/magic_mirror/node_modules/electron/dist/electron: cannot execute binary file
      /opt/magic_mirror/node_modules/electron/dist/electron: /opt/magic_mirror/node_modules/electron/dist/electron: cannot execute binary file
      /opt/magic_mirror/node_modules/electron/dist/electron: /opt/magic_mirror/node_modules/electron/dist/electron: cannot execute binary file
      /opt/magic_mirror/node_modules/electron/dist/electron: /opt/magic_mirror/node_modules/electron/dist/electron: cannot execute binary file
      /opt/magic_mirror/node_modules/electron/dist/electron: /opt/magic_mirror/node_modules/electron/dist/electron: cannot execute binary file
      /opt/magic_mirror/node_modules/electron/dist/electron: /opt/magic_mirror/node_modules/electron/dist/electron: cannot execute binary file
      /opt/magic_mirror/node_modules/electron/dist/electron: /opt/magic_mirror/node_modules/electron/dist/electron: cannot execute binary file
      /opt/magic_mirror/node_modules/electron/dist/electron: /opt/magic_mirror/node_modules/electron/dist/electron: cannot execute binary file
      /opt/magic_mirror/node_modules/electron/dist/electron: /opt/magic_mirror/node_modules/electron/dist/electron: cannot execute binary file
      /opt/magic_mirror/node_modules/electron/dist/electron: /opt/magic_mirror/node_modules/electron/dist/electron: cannot execute binary file
      /opt/magic_mirror/node_modules/electron/dist/electron: /opt/magic_mirror/node_modules/electron/dist/electron: cannot execute binary file
      /opt/magic_mirror/node_modules/electron/dist/electron: /opt/magic_mirror/node_modules/electron/dist/electron: cannot execute binary file
      scottwalsh@calendar:/opt/mm/run $ 
      scottwalsh@calendar:/opt/mm/run $ 
      scottwalsh@calendar:/opt/mm/run $ docker down
      docker: unknown command: docker down
      
      Run 'docker --help' for more information
      scottwalsh@calendar:/opt/mm/run $ docker compose down
      [+] down 5/5
       ✔ Container watchtower   Removed                                                                                                                               0.9s
       ✔ Container mmpm         Removed                                                                                                                               0.1s
       ✔ Container mm           Removed                                                                                                                               0.1s
       ✔ Container labwc        Removed                                                                                                                               1.4s
       ✔ Network magicmirror_mm Removed                                                                                                                               0.2s
      scottwalsh@calendar:/opt/mm/run $ docker compose up -d --force-recreate
      [+] up 4/5
       ✔ Network magicmirror_mm Created                                                                                                                               0.1s
       ✔ Container watchtower   Started                                                                                                                               2.1s
       ✔ Container labwc        Healthy                                                                                                                               7.6s
       ⠋ Container mm           Starting                                                                                                                              7.1s
       ✔ Container mmpm         Created                                                                                                                               0.2s
      magicmirror hook exited with status 137
      scottwalsh@calendar:/opt/mm/run $
      
      1 Reply Last reply Reply Quote 0
      • S Offline
        scottwalsh
        last edited by

        Looks like it may be related to the packaging, an x86 version of electron…

        scottwalsh@calendar:/opt/mm/run $ docker cp mm:/opt/magic_mirror/node_modules/electron/dist/electron /tmp/mm-electron
        Successfully copied 218MB (transferred 218MB) to /tmp/mm-electron
        
        scottwalsh@calendar:/opt/mm/run $ readelf -h /tmp/mm-electron | egrep 'Class|Machine|OS/ABI|Entry'
          Class:                             ELF64
          OS/ABI:                            UNIX - System V
          Machine:                           Advanced Micro Devices X86-64
          Entry point address:               0x577b8a0
        

        Resolved with adding the following override:

        scottwalsh@calendar:/opt/mm/run $ 
        scottwalsh@calendar:/opt/mm/run $ cat compose.override.yaml 
        services:
          magicmirror:
            image: karsten13/magicmirror:wolfi-electron-v2.37.0
            labels:
              - "com.centurylinklabs.watchtower.enable=false"
        scottwalsh@calendar:/opt/mm/run $
        
        S karsten13K 2 Replies Last reply Reply Quote 0
        • S Offline
          sdetweil @scottwalsh
          last edited by

          @scottwalsh did you open an issue on the repo on gitlab?

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • karsten13K Offline
            karsten13 @scottwalsh
            last edited by

            @scottwalsh

            thank you for bringing this up. And yes, the debian arm images had the amd64 electron version installed …

            I fixed this meanwhile.

            If you are happy with the wolfi image you can stay on this tag or use the wolfi-electron tag.

            You can set the image in the .env file too (without override).

            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