Read the statement by Michael Teeuw here.
mmpm connection to MagicMirror failed
-
Hi @karsten13
I did the
cp ~/magicmirror/run/rpi_mmpm.yml ~/magicmirror/run/docker-compose.ymland 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 trieddocker exec -it mm bashand it opened as usual.
What else is changed after reboot with the other container? -
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 psand may something is in the logsdocker logs mm.It takes some time pulling new images (this is done after a reboot).
-
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 mmand 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.logHowever,
/home/node/.npm/_logs/2021-10-29T20_22_53_399Z-debug.logdoes not exist. -
/home/node/.npm/_logs/2021-10-29T20_22_53_399Z-debug.log
the file is in the container, after executing
docker exec -it mm bashyou 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/runand rundocker-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.
- stop the container: navigate to
-
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 withdocker exec -it mm bashit cannot find the mmpm command. Now I need to figure out how to remove my mpmm installation.
