Read the statement by Michael Teeuw here.
trouble with MMM-GoogleTrafficTimes
-
ok, tried that and got the error:
Failed at the magicmirror@2.13.0 start script. -
@laschalkh there has got to be more than 1 line
-
ok, found that it created a log file for that process
0 info it worked if it ends with ok
1 verbose cli [ ‘/usr/local/bin/node’, ‘/usr/local/bin/npm’, ‘start’, ‘dev’ ]
2 info using npm@6.9.0
3 info using node@v10.16.0
4 verbose run-script [ ‘prestart’, ‘start’, ‘poststart’ ]
5 info lifecycle magicmirror@2.13.0~prestart: magicmirror@2.13.0
6 info lifecycle magicmirror@2.13.0~start: magicmirror@2.13.0
7 verbose lifecycle magicmirror@2.13.0~start: unsafe-perm in lifecycle true
8 verbose lifecycle magicmirror@2.13.0~start: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/
node-gyp-bin:/home/pi/MagicMirror/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bi
n:/usr/local/games:/usr/games
9 verbose lifecycle magicmirror@2.13.0~start: CWD: /home/pi/MagicMirror
10 silly lifecycle magicmirror@2.13.0~start: Args: [ ‘-c’,
10 silly lifecycle ‘DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js “dev”’ ]
11 info lifecycle magicmirror@2.13.0~start: Failed to exec start script
12 verbose stack Error: magicmirror@2.13.0 start:DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/ele ctron.js "dev"
12 verbose stack spawn ENOENT
12 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/li
b/spawn.js:48:18)
12 verbose stack at ChildProcess.emit (events.js:198:13)
12 verbose stack at maybeClose (internal/child_process.js:982:16)
12 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
13 verbose pkgid magicmirror@2.13.0
14 verbose cwd /home/pi/MagicMirror
15 verbose Linux 4.19.97+
16 verbose argv “/usr/local/bin/node” “/usr/local/bin/npm” “start” “dev”
17 verbose node v10.16.0
18 verbose npm v6.9.0
19 error file sh
20 error code ELIFECYCLE
21 error errno ENOENT
22 error syscall spawn
23 error magicmirror@2.13.0 start:DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js "dev"
23 error spawn ENOENT
24 error Failed at the magicmirror@2.13.0 start script.
24 error This is probably not a problem with npm. There is likely additional logging output above.
25 verbose exit [ 1, true ] -
@laschalkh is this a pi 0?
-
yup, zero w
-
@laschalkh ok, lots of setup, or, remove that mm folder and run my install script
see the instructions here
https://github.com/sdetweil/MagicMirror_scripts -
ok, the entire MagicMirror directory or just the modules?
-
@laschalkh the entire, rename it
the problem is there is no electron browser for armv6l (pi0/1) devices anymore, so you have to run split mode, server with chromium over the top
the script does all the work, so it looks like normal
-
Hi Sam,
I went through and rebuilt my pi and then ran your install script. It says it’s installed and when I do a pm status I see the MagicMirror is online. I don’t see the mirror tho. Is there something else I need to do for that to come up on boot?
Thanks,
Kevin -
@laschalkh pm2 logs – lines=100
in the status it shows how many times its been restarted
┌─────┬─────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐ │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │ ├─────┼─────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤ │ 1 │ MagicMirror │ default │ 2.13.0… │ fork │ N/A │ 0 │ 1 │ stopped │ 0% │ 0b │ sam │ disabled │ └─────┴─────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
that field next to uptime with the circle and arrow
pm2 stop 0 to stop it while u debug