Read the statement by Michael Teeuw here.
Unraid-Docker Based MM Container
-
I just set up my MM using a template to create it. Upon first installation I rearranged the default modules and setup the config.js to work with MMM-Civitai module for a nice dynamic background.
I was setting up MMM-Remote-Control & MM-Remote. Things were coming together! at first, got the module to show up and displaying the “magicmirrorip:8080/remote.html” on my MM. I had gotten the android app setup and showing Timer, Brightness, and Slideshow commands, but upon trying to use the app nothing happened. Reading github pages and docs for help I kept seeing to use a few npm commands to install modules or restart the MM.Now I’m uncertain of why. Maybe it’s because I didn’t do the setup correctly, but any npm command gives me a “bash: npm: command not found”.
I was under the impression that I needed to restart my MM to Maybe get everything working together. So I clicked the restart button on my docker container… Then my MM stopped itself, upon trying to restart it it stopped itself everything. So I took a look at the log.
It shows a similar [“ERROR] warning” feed that someone previously asked for help with.Re: Black Screen After MM Update
As a n00b I’m stuck. All help says npm, but I cant…
As I’m only on my 3rd module install I’m leaning to just rebuild but I’m curious as to how to fix what happened, or even learn what happened so I can avoid doing it again. Lol
-
@Linoge im not sure i understand what you posted
setup is a challenge for some, but docker makes it more confusing
for general module install, see the link below in my signature for a favorite post (i didn’t write it)
think of a docker container as a another raspberry pi, with network attached drives
you can put stuff on the drives from outside that pi, but it doesn’t know (that’s the git clone step). there is a problem here
if you run that command on your uniraid system, you are running under some user number. so the files are created with that users permissions.
later when you want to access them from a user running inside that pi (container typically configured to userid 1000) oops if the permissions don’t allow access!Also you have to make that code runnable INSIDE that pi
this is the npm install step
doing it via the uniraid user causes the same permissions problem. AND npm is trying to match libraries to the running system. but thats not the pi if you are doing via a uniraid user session
if it were a real pi, from outside you would have to ssh in, in docker terms this is docker exec container_namei don’t use remote control, but it will be issuing commands INSIDE that pi.
-
@Linoge did you get this resolved?