Read the statement by Michael Teeuw here.
MagicMirror fails to start
-
@droidus and the os is the full version w desktop, right?
rename the MagicMirror folder to some other name, and use my install script
-
@sdetweil OK, I installed it. What web port does it use?
-
@droidus what port does what use? mm is on port 8080, but you shouldn’t need that
-
Still getting an error message:
npm run start > magicmirror@2.16.0 start /home/pi/MagicMirror > ./run-start.sh $1 [19.09.2021 13:23.34.576] [LOG] Starting MagicMirror: v2.16.0 [19.09.2021 13:23.34.584] [LOG] Loading config ... [19.09.2021 13:23.34.595] [LOG] Loading module helpers ... [19.09.2021 13:23.34.602] [LOG] No helper found for module: alert. [19.09.2021 13:23.34.803] [LOG] Initializing new module helper ... [19.09.2021 13:23.34.805] [LOG] Module helper loaded: updatenotification [19.09.2021 13:23.34.807] [LOG] No helper found for module: clock. [19.09.2021 13:23.34.981] [LOG] Initializing new module helper ... [19.09.2021 13:23.34.983] [LOG] Module helper loaded: calendar [19.09.2021 13:23.34.985] [LOG] No helper found for module: compliments. [19.09.2021 13:23.34.988] [LOG] No helper found for module: weather. [19.09.2021 13:23.35.025] [LOG] Initializing new module helper ... [19.09.2021 13:23.35.027] [LOG] Module helper loaded: newsfeed [19.09.2021 13:23.35.029] [LOG] All module helpers loaded. [19.09.2021 13:23.35.143] [LOG] Starting server on port 8080 ... [19.09.2021 13:23.35.164] [LOG] Server started ... [19.09.2021 13:23.35.166] [LOG] Connecting socket for: updatenotification [19.09.2021 13:23.35.168] [LOG] Connecting socket for: calendar [19.09.2021 13:23.35.170] [LOG] Starting node helper for: calendar [19.09.2021 13:23.35.172] [LOG] Connecting socket for: newsfeed [19.09.2021 13:23.35.174] [LOG] Starting node helper for: newsfeed [19.09.2021 13:23.35.179] [LOG] Sockets connected & modules started ... Invalid MIT-MAGIC-COOKIE-1 key/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! magicmirror@2.16.0 start: `./run-start.sh $1` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the magicmirror@2.16.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2021-09-19T17_23_35_342Z-debug.log
-
@droidus what display are u using on the pi?
must have something, running in graphics mode, not text mode.
do u see the temples when u boot the pi?
do
echo $DISPLAY DISPLAY=
then
npm start
-
I am using the default one that comes with raspbian os.
:0.0
I get this error message: no such file or directory, open ‘/home//package.json’. -
@droidus have to be IN the MagicMirror folder for npm start
-
@sdetweil said in MagicMirror fails to start:
@droidus have to be IN the MagicMirror folder for npm start
I get the same error as before about a magic-cookie.
-
@droidus no idea, did u install as pi and now running as another user?
did u install as root (using sudo), now running as pi?
if you used my script (just copy/paste the one line from my github page) , logged on as pi, it should have done everything for you
what I do
use the OS imager tool, install the latest OS image (full desktop, code name buster) on the sd card
boot the sd card,
turn on ssh
reboot the sd cardlogon via ssh from windows (or linux) machine
copy/paste my install script line into the ssh terminal window
wait…