MagicMirror icon indicating copy to clipboard operation
MagicMirror copied to clipboard

Pi3-- MM Does not start after fresh install of it.

Open arka9ine opened this issue 7 years ago • 3 comments

Used both curl and manual install methods. There are warnings of a few packages being deprecated that show up during install. 'This is probably not a problem with npm' is a bold statement for a freshly installed program to make, by the way. Kind of off-putting. Might I suggest something a bit less brash like "hey check the log and see what it says"?

Anyway this is the log generated whenever trying to run a fresh install of MM on my RPi3b:

0 info it worked if it ends with ok 1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ] 2 info using [email protected] 3 info using [email protected] 4 verbose run-script [ 'prestart', 'start', 'poststart' ] 5 info lifecycle [email protected]~prestart: [email protected] 6 info lifecycle [email protected]~start: [email protected] 7 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true 8 verbose lifecycle [email protected]~start: PATH: /usr/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:/$ 9 verbose lifecycle [email protected]~start: CWD: /home/pi/MagicMirror 10 silly lifecycle [email protected]~start: Args: [ '-c', 'sh run-start.sh' ] 11 silly lifecycle [email protected]~start: Returned: code: 1 signal: null 12 info lifecycle [email protected]~start: Failed to exec start script 13 verbose stack Error: [email protected] start: sh run-start.sh 13 verbose stack Exit status 1 13 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16) 13 verbose stack at EventEmitter.emit (events.js:189:13) 13 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) 13 verbose stack at ChildProcess.emit (events.js:189:13) 13 verbose stack at maybeClose (internal/child_process.js:970:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) 14 verbose pkgid [email protected] 15 verbose cwd /home/pi/MagicMirror 16 verbose Linux 4.9.35-v7+ 17 verbose argv "/usr/bin/node" "/usr/bin/npm" "start" 18 verbose node v10.15.3 19 verbose npm v6.4.1 20 error code ELIFECYCLE 21 error errno 1 22 error [email protected] start: sh run-start.sh 22 error Exit status 1 23 error Failed at the [email protected] start script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 1, true ]

arka9ine avatar May 18 '19 13:05 arka9ine

Happened to me also, it worked after I flashed a fresh raspbian stretch.

On Sat, May 18, 2019 at 8:55 AM Arka9 [email protected] wrote:

Used both curl and manual install methods. There are warnings of a few packages being deprecated that show up during install. 'This is probably not a problem with npm' is a bold statement for a freshly installed program to make, by the way. Kind of off-putting. Might I suggest something a bit less brash like "hey check the log and see what it says"?

Anyway this is the log generated whenever trying to run a fresh install of MM on my RPi3b:

0 info it worked if it ends with ok 1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ] 2 info using [email protected] 3 info using [email protected] 4 verbose run-script [ 'prestart', 'start', 'poststart' ] 5 info lifecycle [email protected]: [email protected] 6 info lifecycle [email protected]: [email protected] 7 verbose lifecycle [email protected]: unsafe-perm in lifecycle true 8 verbose lifecycle [email protected]: PATH: /usr/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:/$ 9 verbose lifecycle [email protected]: CWD: /home/pi/MagicMirror 10 silly lifecycle [email protected]: Args: [ '-c', 'sh run-start.sh' ] 11 silly lifecycle [email protected]: Returned: code: 1 signal: null 12 info lifecycle [email protected]: Failed to exec start script 13 verbose stack Error: [email protected] start: sh run-start.sh 13 verbose stack Exit status 1 13 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16) 13 verbose stack at EventEmitter.emit (events.js:189:13) 13 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) 13 verbose stack at ChildProcess.emit (events.js:189:13) 13 verbose stack at maybeClose (internal/child_process.js:970:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) 14 verbose pkgid [email protected] 15 verbose cwd /home/pi/MagicMirror 16 verbose Linux 4.9.35-v7+ 17 verbose argv "/usr/bin/node" "/usr/bin/npm" "start" 18 verbose node v10.15.3 19 verbose npm v6.4.1 20 error code ELIFECYCLE 21 error errno 1 22 error [email protected] start: sh run-start.sh 22 error Exit status 1 23 error Failed at the [email protected] start script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 1, true ]

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/MichMich/MagicMirror/issues/1681?email_source=notifications&email_token=AKK72JG4LU5QGSJLKZGGCK3PWADGJA5CNFSM4HN2K22KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GURDY3Q, or mute the thread https://github.com/notifications/unsubscribe-auth/AKK72JCZTVLB4R7SPPQQVFDPWADGJANCNFSM4HN2K22A .

Marcreed48 avatar May 18 '19 14:05 Marcreed48

Please refer to http://forum.magicmirror.builders for support and troubleshooting.

I'm closing this issue for now. If you feel this issue should remain open, please let me know.

MichMich avatar May 18 '19 14:05 MichMich

Just made a fresh install of stretch on raspi3b, then installed MM. Same results.

0 info it worked if it ends with ok 1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ] 2 info using [email protected] 3 info using [email protected] 4 verbose run-script [ 'prestart', 'start', 'poststart' ] 5 info lifecycle [email protected]~prestart: [email protected] 6 info lifecycle [email protected]~start: [email protected] 7 verbose lifecycle [email protected]~start: unsafe-perm in lifecycle true 8 verbose lifecycle [email protected]~start: PATH: /usr/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:/$ 9 verbose lifecycle [email protected]~start: CWD: /home/pi/MagicMirror 10 silly lifecycle [email protected]~start: Args: [ '-c', 'sh run-start.sh' ] 11 info lifecycle [email protected]~start: Failed to exec start script 12 verbose stack Error: [email protected] start: sh run-start.sh 12 verbose stack spawn ENOENT 12 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18) 12 verbose stack at ChildProcess.emit (events.js:189:13) 12 verbose stack at maybeClose (internal/child_process.js:970:16) 12 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) 13 verbose pkgid [email protected] 14 verbose cwd /home/pi/MagicMirror 15 verbose Linux 4.14.98-v7+ 16 verbose argv "/usr/bin/node" "/usr/bin/npm" "start" 17 verbose node v10.15.3 18 verbose npm v6.4.1 19 error file sh 20 error code ELIFECYCLE 21 error errno ENOENT 22 error syscall spawn 23 error [email protected] start: sh run-start.sh 23 error spawn ENOENT 24 error Failed at the [email protected] start script. 24 error This is probably not a problem with npm. There is likely additional logging output above. 25 verbose exit [ 1, true ]

Only reference to this issue found on the site you linked was this one: https://forum.magicmirror.builders/topic/10274/elifecycle-error-after-fresh-install/17?page=2

Where the OP just restored from a backup and then updated. Doesn't really apply to first-time installers and isn't a real solution.

Please consider re-opening.

arka9ine avatar May 18 '19 23:05 arka9ine