• 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.

Synology Docker Tutorial?

Scheduled Pinned Locked Moved Unsolved Troubleshooting
15 Posts 9 Posters 4.1k Views 10 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.
  • O Offline
    oscarb
    last edited by May 12, 2021, 8:08 PM

    @kusselin said in Synology Docker Tutorial?:

    Error: Cannot find module ‘/opt/magic_mirror/js/…/modules/default/defaultmodules.js’

    Maybe this will help someone else running into the same issue. I was unable to start Magic Mirror in Docker on my Synology NAS (using the karsten13/magicmirror image because v.2.15.0 is not in the bastilimbach one) and I got the same error as above.

    Turned out to be some permission issue I was able to solve by adding two more environment variables to the docker container:

    USER_ID: 1024
    GROUP_ID: 100
    

    This will run the docker container as the admin user on your NAS. If you wish to run it as some other user (which is preferable) you need to find the right user/group id (SSH into the NAS and then sudo cat /etc/passwd I believe).

    O 1 Reply Last reply Dec 5, 2023, 1:55 PM Reply Quote 0
    • O Offline
      odolmach3 @oscarb
      last edited by Dec 5, 2023, 1:55 PM

      @oscarb said in Synology Docker Tutorial?:

      @kusselin said in Synology Docker Tutorial?:

      Error: Cannot find module ‘/opt/magic_mirror/js/…/modules/default/defaultmodules.js’

      Maybe this will help someone else running into the same issue. I was unable to start Magic Mirror in Docker on my Synology NAS (using the karsten13/magicmirror image because v.2.15.0 is not in the bastilimbach one) and I got the same error as above.

      Turned out to be some permission issue I was able to solve by adding two more environment variables to the docker container:

      USER_ID: 1024
      GROUP_ID: 100
      

      This will run the docker container as the admin user on your NAS. If you wish to run it as some other user (which is preferable) you need to find the right user/group id (SSH into the NAS and then sudo cat /etc/passwd I believe).

      Hi, im not able to get the newest Karsten13 2.25 version running on the Synology (the 2.15 bastilimbach runs fine). The files in the mounts were created but the container stops after a few seconds. Do you have any tips?

      S K W 3 Replies Last reply Dec 5, 2023, 2:52 PM Reply Quote 0
      • S Offline
        sdetweil @odolmach3
        last edited by Dec 5, 2023, 2:52 PM

        @odolmach3 @karsten13

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • K Offline
          karsten13 @odolmach3
          last edited by Dec 5, 2023, 6:29 PM

          @odolmach3

          we need the logs of the container

          1 Reply Last reply Reply Quote 0
          • W Offline
            wishmaster270 Module Developer @odolmach3
            last edited by Dec 5, 2023, 6:59 PM

            @odolmach3
            Hi,

            just tried to run the latest Image of karsten13 on my Synology.
            You need to make sure you add “npm run server” as “command” during the creating of the container settings.

            O 1 Reply Last reply Dec 5, 2023, 8:25 PM Reply Quote 0
            • O Offline
              odolmach3 @wishmaster270
              last edited by Dec 5, 2023, 8:25 PM

              @wishmaster270 said in Synology Docker Tutorial?:

              npm run server

              Thank you, that does the Trick!

              1 Reply Last reply Reply Quote 0
              • T Offline
                techeros
                last edited by Dec 24, 2024, 1:25 AM

                @wishmaster270 said in Synology Docker Tutorial?:

                karsten13 on my Synology

                Hi everyone so I was having a lot of issues getting MagicMirror installed.
                Do not bother trying to install bastilimbach, it will install but you wont be able to get the calendar working.
                Instead follow these steps on your Synology. I made it simple incase you are not used to working with putty etc etc

                Download and install Putty
                setup the connection to poin to your IP address and port 22
                Once you connect, type your admin user and pass

                1. Uninstall MagicMirror
                  Run these commands to completely remove the existing MagicMirror setup:

                Stop and Remove the Container
                bash

                sudo docker stop magicmirror
                sudo docker rm magicmirror
                Remove the Image
                bash

                sudo docker rmi karsten13/magicmirror:latest
                Delete Configuration Files
                (Optional, if you want a clean start):

                sudo rm -rf /volume1/docker/magicmirror

                1. Install MagicMirror
                  Follow these steps to reinstall MagicMirror:

                Create Necessary Directories

                Copy code
                mkdir -p /volume1/docker/magicmirror/{config,modules,css}
                sudo chown -R 1000:1000 /volume1/docker/magicmirror
                Pull the MagicMirror Image

                sudo docker pull karsten13/magicmirror:latest
                Run the MagicMirror Container

                sudo docker run -d
                –name magicmirror
                –publish 8036:8080
                –restart unless-stopped
                -e TZ=America/Chicago
                –volume /volume1/docker/magicmirror/config:/opt/magic_mirror/config
                –volume /volume1/docker/magicmirror/modules:/opt/magic_mirror/modules
                –volume /volume1/docker/magicmirror/css:/opt/magic_mirror/css
                karsten13/magicmirror:latest

                1. Verify the Installation
                  Check that the container is running:

                sudo docker ps
                Look for magicmirror in the list.
                The STATUS column should say Up.
                Open MagicMirror in your browser:

                http://<Your_NAS_IP>:8036
                Replace <Your_NAS_IP> with your Synology NAS’s IP address in your web browser

                W 1 Reply Last reply Dec 24, 2024, 10:51 PM Reply Quote 0
                • W Offline
                  wishmaster270 Module Developer @techeros
                  last edited by Dec 24, 2024, 10:51 PM

                  @techeros Sorry. But you can use the container manager gui in the Web interface for most of the job. No need to pull or remove any images on the shell manually.

                  T S 2 Replies Last reply Dec 26, 2024, 7:02 PM Reply Quote 0
                  • T Offline
                    techeros @wishmaster270
                    last edited by Dec 26, 2024, 7:02 PM

                    @wishmaster270
                    Sure, If you could so kindly point me to the documentation, Id love to. Im just getting started with Containers on my synology and have been fighting tooth and nail to get it installed.

                    If I select the image kristen13 and install non of the directories are created, nothing works.
                    If You use the manual instructions i posted, it works (for me). I have a lot to learn here so , if im way off-base i’m all ears.
                    Thanks for chiming in
                    T

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @wishmaster270
                      last edited by Dec 26, 2024, 7:59 PM

                      @wishmaster270 my 416j+ doesn’t officially support docker, so there is no ui.

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      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