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.

    mmpm connection to MagicMirror failed

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    9 Posts 2 Posters 1.9k 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.
    • karsten13K Offline
      karsten13 @Kab
      last edited by

      @kab

      Does anything of this makes sense to you?

      not really … never tested this setup.

      Would try to run with 2 containers, setup here.

      You have already all the files in ~/magicmirror/run/ folder, just save the content of docker-compose.yml (only if you changed something) and then cp ~/magicmirror/run/rpi_mmpm.yml ~/magicmirror/run/docker-compose.yml and restart the container.

      K 1 Reply Last reply Reply Quote 0
      • K Offline
        Kab @karsten13
        last edited by

        Hi @karsten13

        I did the cp ~/magicmirror/run/rpi_mmpm.yml ~/magicmirror/run/docker-compose.yml and reboot but got a black screen for the MagicMirror. So I replaced docker-compose.yml by the original file and rebooted again but the screen is still black.
        I don’t know much about docker containers. I tried docker exec -it mm bash and it opened as usual.
        What else is changed after reboot with the other container?

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

          @kab

          What else is changed after reboot with the other container?

          nothing

          You can look into these yaml files, it`s all text.

          You can see which containers are running with docker ps and may something is in the logs docker logs mm.

          It takes some time pulling new images (this is done after a reboot).

          K 1 Reply Last reply Reply Quote 0
          • K Offline
            Kab @karsten13
            last edited by

            Hi @karsten13

            docker ps shows

            CONTAINER ID   IMAGE                          COMMAND                  CREATED      STATUS          PORTS     NAMES
            04fcaa798d2e   karsten13/magicmirror:latest   "/usr/bin/tini -- ./…"   3 days ago   Up 28 minutes             mm
            

            and the first error in the log is

            npm ERR! code ELIFECYCLE
            npm ERR! errno 1
            npm ERR! magicmirror@2.17.1 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin                                                                          /electron js/electron.js`
            npm ERR! Exit status 1
            npm ERR!
            npm ERR! Failed at the magicmirror@2.17.1 start script.
            npm ERR! This is probably not a problem with npm. There is likely additional log                                                                          ging output above.
            
            npm ERR! A complete log of this run can be found in:
            npm ERR!     /home/node/.npm/_logs/2021-10-29T20_22_53_399Z-debug.log
            

            However, /home/node/.npm/_logs/2021-10-29T20_22_53_399Z-debug.log does not exist.

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

              @kab

              /home/node/.npm/_logs/2021-10-29T20_22_53_399Z-debug.log

              the file is in the container, after executing docker exec -it mm bash you are in the container and then you should be able to see this file.

              But the whole thing is strange.

              You could reset the setup by

              • stop the container: navigate to ~/magicmirror/run and run docker-compose down
              • test there is no container running with docker ps
              • navigate to home directory executing cd
              • rename magicmirror folder with mv magicmirror magicmirror-old
              • reboot your pi

              While starting the now missing magicmirror folder will be recreated from scratch.

              K 1 Reply Last reply Reply Quote 0
              • K Offline
                Kab @karsten13
                last edited by Kab

                Hi @karsten13

                Thanks, that helped. I could go back to the previous setup.
                mmpm still doesn’t work, though. I think I installed it wrong but need to dig deeper.
                If I just ssh on the PI I can use mmpm but If I go into the mm container with docker exec -it mm bash it cannot find the mmpm command. Now I need to figure out how to remove my mpmm installation.

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