-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when I run npm start on fresh raspbian stretch install #1103
Error when I run npm start on fresh raspbian stretch install #1103
Comments
I did a manual install. I got a warning during installation onto my RPi2B with a new install of Raspbian Stretch. npm WARN deprecated [email protected]: CoffeeScript on NPM has moved to "coffeescript" (no hyphen) The installation continued, and after some 5 mins, finished. I'm a Linux & RPi newbie so I've no idea if I should now run 'npm install coffeescript' or not. 'npm start' worked and up popped the default mirror. |
Got same issue with a fresh installation for Rasbian Strech Lite. Any workaround on this issue ? |
Lite is not supported. Please state all the required version numbers to allow us to find an solution. Thanks! See: https://github.com/MichMich/MagicMirror/blob/master/.github/ISSUE_TEMPLATE.md |
Personally, I am using the full Raspbian Stretch. When I installed I had a fresh install of Stretch.
Thank you,
Andrew Bowman
From: Michael Teeuw
Sent: Saturday, December 30, 2017 3:11 PM
To: MichMich/MagicMirror
Cc: abacon118; Author
Subject: Re: [MichMich/MagicMirror] Error when I run npm start on freshraspbian stretch install (#1103)
Lite is not supported. Please state all the required version numbers to allow us to find an solution. Thanks!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I am using the full Raspbian Stretch install too. The mirror is working
fine. I was just curious about the Coffee script warning and thought the
developer should know.
…On 31 December 2017 at 12:20, abacon118 ***@***.***> wrote:
Personally, I am using the full Raspbian Stretch. When I installed I had a
fresh install of Stretch.
Thank you,
Andrew Bowman
From: Michael Teeuw
Sent: Saturday, December 30, 2017 3:11 PM
To: MichMich/MagicMirror
Cc: abacon118; Author
Subject: Re: [MichMich/MagicMirror] Error when I run npm start on
freshraspbian stretch install (#1103)
Lite is not supported. Please state all the required version numbers to
allow us to find an solution. Thanks!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1103 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABLg-t1Y_idIgfOlffxnNONW-dA6ywXyks5tFuFcgaJpZM4Q_3cn>
.
|
You can ignore the coffee script warning. So considering the mirror works. Can I close this issue? |
that's a yes from me.
…On 31 December 2017 at 22:38, Michael Teeuw ***@***.***> wrote:
You can ignore the coffee script warning. So considering the mirror works.
Can I close this issue?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1103 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABLg-jlZwA2n1nAM3MBqI20xGAAwxG-iks5tF3JQgaJpZM4Q_3cn>
.
|
No. When i have a chance i will send you a picture of the error message.
Thank you,
Andrew Bowman
…On Dec 31, 2017 7:59 AM, "mfread" ***@***.***> wrote:
that's a yes from me.
On 31 December 2017 at 22:38, Michael Teeuw ***@***.***>
wrote:
> You can ignore the coffee script warning. So considering the mirror
works.
> Can I close this issue?
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#1103
issuecomment-354599235>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/ABLg-
jlZwA2n1nAM3MBqI20xGAAwxG-iks5tF3JQgaJpZM4Q_3cn>
> .
>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1103 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Acnv-ixNn_IBZzLs9oNnVK8IFBxjmpqSks5tF4VNgaJpZM4Q_3cn>
.
|
When I run the script to start it, this is what comes out in the debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info prestart [email protected]
6 info start [email protected]
7 verbose unsafe-perm in lifecycle true
8 info [email protected] Failed to exec start script
9 verbose stack Error: [email protected] start: `sh run-start.sh`
9 verbose stack Exit status 1
9 verbose stack at EventEmitter.<anonymous>
(/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:214:16)
9 verbose stack at emitTwo (events.js:87:13)
9 verbose stack at EventEmitter.emit (events.js:172:7)
9 verbose stack at ChildProcess.<anonymous>
(/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)
9 verbose stack at emitTwo (events.js:87:13)
9 verbose stack at ChildProcess.emit (events.js:172:7)
9 verbose stack at maybeClose (internal/child_process.js:818:16)
9 verbose stack at Process.ChildProcess._handle.onexit
(internal/child_process.js:211:5)
10 verbose pkgid [email protected]
11 verbose cwd /home/pi/MagicMirror
12 error Linux 4.9.59-v7+
13 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
14 error node v4.2.1
15 error npm v2.14.7
16 error code ELIFECYCLE
17 error [email protected] start: `sh run-start.sh`
17 error Exit status 1
18 error Failed at the [email protected] start script 'sh run-start.sh'.
18 error This is most likely a problem with the magicmirror package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error sh run-start.sh
18 error You can get their info via:
18 error npm owner ls magicmirror
18 error There is likely additional logging output above.
19 verbose exit [ 1, true ]
…On Thu, Dec 28, 2017 at 7:15 AM, mfread ***@***.***> wrote:
I did a manual install. I got a warning during installation onto my RPi2B
with a new install of Raspbian Stretch.
npm WARN deprecated ***@***.***: CoffeeScript on NPM has moved
to "coffeescript" (no hyphen)
npm WARN prefer global ***@***.*** should be installed with -g
npm WARN prefer global ***@***.*** should be installed with -g
The installation continued, and after some 5 mins, finished.
I'm a Linux & RPi newbie so I've no idea if I should now run 'npm install
coffeescript' or not.
'npm start' worked and up popped the default mirror.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1103 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Acnv-sB_40LwC5-3xruSMO2YYi5Styhcks5tEz_1gaJpZM4Q_3cn>
.
--
Thank You,
Andrew Bowman
|
Could you try reinstalling MagicMirror? We made some changes to the dependencies. Make sure you backup your config.js file (and modules). |
I've just done a fresh install of MagicMirror and also encountered those errors above.
Info as follows: Node Version: v9.3.0 MagicMirror Version: v2.2.2 Description: Upon boot, I have errors in my log file as seen above. Steps to Reproduce: Boot up RPi3 Expected Results: No errors Actual Results: No actually degradation. Still works ok but thought you might like to know. Configuration: Config file can be seen here https://hastebin.com/efinepepek.js Additional Notes: Also getting a Fontconfig error: |
I just did all this yesterday on the latest full Raspbian Stretch on a Rpi3, and it works fine.
Yes, the installation script may need some tweaking for the Stretch...but it shouldn't fail. |
An updated installer script PR is extremely welcome! And would be rewarded with a bunch of internet-hugs! |
@MichMich What has been most annoying in the installation process, was to make sure all the node stuff was already installed properly, before running anything else. And that is the more HW and OS (release) dependent aspect of it. There are simply too many contorted, wrong and outdated descriptions of how to do that out there. |
I too am getting about the same error log on full stretch. Node.js (v9.3.0)
|
@leveneg Without seeing the exact command you did before getting this error log, its prety much useless. Also describe and post the exact commands you used for installing/updating. |
@E3V3A my apologies- I thought that had been included. I was running Initial installation was done on a fresh stretch install via install script. After that didn't work I reflashed stretch, installed latest node / npm, then installed once again via the installation script with the same result. |
Just FYI, I didn't use the full installation script. I basically went through it manually and skipping things that I had already changed or seemed irrelevant. That's why I can't be of much help here. Especially I recall skipping the part changing the bootup splash screen and themes. These are not ncessary, and seemed suspicious. Instead I just replaced the spalsh image manually later, once MM was working. |
I think one reason why people seem to be having issues is, whether or not they're booting into X or the CLI. I finally tracked down the problem I was having to trying to start MM without having X running first. This needs to be made clearer. |
@MichMich For now, we should tag this issue |
I got back around to this the other day, and a manual installation on a fresh stretch stretch install did do the job. I was also able to confirm that Mabu2's claim that MM needs to be started with X running first. At a minimum, it would be nice if README were updated to reflect that the installer problematic on stretch, and that X does in fact need to be running before starting MM. |
Perhaps the start up sequence should check to make sure X is running, and if not throw a specific error? Another thing is when you're installing the OS, there is the option to boot to CLI or GUI. If someone installs the boot to CLI option, they may never know why it won't work. The error messages are ambiguous. |
I agree, we should add some info to the README and add a check to the nam run start method. If anyone would be willing to send a PR, I would be very grateful. :) |
Hmm, yeah, IDK why people would try to install MM on a non-gui (no-X) machine, unless they start out from scratch trying to do serveronly install. Two other things:
# cat run-start.sh
if [ -z "$DISPLAY" ]; then #If not set DISPLAY is SSH remote or tty
export DISPLAY=:0 # Set by default display
fi
electron js/electron.js $1 well, i guess that was 3. |
Please send a PR. |
Hi @MichMich , #!/bin/bash
if [ -z "$DISPLAY" ]; then #If not set DISPLAY is SSH remote or tty
export DISPLAY=:0 # Set by default display
fi
electron js/electron.js $1 then do: $ chmod 755 ~/MagicMirror/run-start.sh now, try to re-run the installation. |
I got the same issue on Debian Jessie and Stretch. I tried to install the MagicMirror application as a new user Even after installing it into the Only after installing it into the |
We tried install npm using npm start command and although it launches the application, the new screen is just a blank black page. |
@d-Rickyy-b Yeah, MM should not be installed in root owned directories! Any directory above But, this issue is important for people on other machines than RPi's, where default user has a different name and directories have different root permissions. |
@E3V3A That's correct, especially on other machines, or even on the pi where the user goes with a different username (may it be for security reasons or whatsoever), it's not possible to use MM. I would highly appreciate a fix :) |
Just curious: did any of you try |
@MichMich Yes, and it produces the same outcome for me. If needed I can provide you with the log and command line output, but It's basically the same as in the initial bug report. |
To prevent some of the installation "problems". It might help to merge the README file from the developer branch to the very outdated current master README. I would guess that many new MM users don't even know about branches. And for all of the rest of you, who end up here with problems:
|
April 1st the next master will be released. So if you can just wait a little bit longer ... ;) |
@E3V3A If you're interested in the steps I did before the issue happened:
Even when I then tried If you need further information, don't hesitate to ask. PS: I am installing it on my RasPi 3, but would love to use another account (e.g. magicmirror) for it. |
I think we should just add to the readme that MagicMirror should be installed with the default user (Pi). |
That would be a workaround ofc. May I ask what's the issue with installing it with another user? I mean it shouldn't be different than the default user, should it? Also do other systems need to create a user "pi" when they want to use MM? |
It works fine on my Mac on my regular user account. I don’t see any reason why it shouldn’t work on an other account on a Raspberry Pi as well. That being said: I got a few reports like yours. And since it’s an edge case, it doesn’t really make sense to spent a lot of time investigating it (since it’s probably OS related, not mm related). My guess is it has something to do with the user rights of the node executables which electron uses. |
I'll try to investigate further. Will report my findings back (if I find any). |
@d-Rickyy-b IDK why you seem to insist running this as root. Please explain, because earlier you mentioned security concerns with using a default username?? To me running as root seem far more insecure and in addition, the root environment is totally different from any other users, including missing environment variables. |
@E3V3A I don't know where you see that I want to run it as root?! I want to run it as no login and no shell user (e.g. "magicmirror"). If you are asking because I added magicmirror to group sudo, that was for testing purposes. I agree and know that it's totally insecure running it as root user. I just want another user than "pi". I don't want to use the user "pi" as a user at all - if possible. I don't want to use the root user and I never said so in any previous comment. |
@d-Rickyy-b Try changing the |
I don't think this is a real issue in the code. If you really want to make it work with an other user, feel free to fix it and send a PR so others can benefit. Fo now, my suggestion is to just use Pi. Never use Root (not saying you do). Closing this for now, feel free to reopen or ask for some help on the forum. |
When I run npm start on a fresh install on raspbian stretch install i get the following in the debug file.
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/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]prestart: no script for prestart, continuing6 silly lifecycle [email protected]
7 info lifecycle [email protected]
start: [email protected]start: unsafe-perm in lifecycle true8 verbose lifecycle [email protected]
9 verbose lifecycle [email protected]
start: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/home/pi/MagicMirror/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/gamesstart: CWD: /home/pi/MagicMirror10 verbose lifecycle [email protected]
11 silly lifecycle [email protected]
start: Args: [ '-c', 'sh run-start.sh' ]start: Returned: code: 1 signal: null12 silly lifecycle [email protected]
13 info lifecycle [email protected]~start: Failed to exec start script
14 verbose stack Error: [email protected] start:
sh run-start.sh
14 verbose stack Exit status 1
14 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:255:16)
14 verbose stack at emitTwo (events.js:87:13)
14 verbose stack at EventEmitter.emit (events.js:172:7)
14 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack at emitTwo (events.js:87:13)
14 verbose stack at ChildProcess.emit (events.js:172:7)
14 verbose stack at maybeClose (internal/child_process.js:818:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
15 verbose pkgid [email protected]
16 verbose cwd /home/pi/MagicMirror
17 error Linux 4.9.59-v7+
18 error argv "/usr/local/bin/node" "/usr/bin/npm" "start"
19 error node v4.2.1
20 error npm v3.10.10
21 error code ELIFECYCLE
22 error [email protected] start:
sh run-start.sh
22 error Exit status 1
23 error Failed at the [email protected] start script 'sh run-start.sh'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the magicmirror package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error sh run-start.sh
23 error You can get information on how to open an issue for this project with:
23 error npm bugs magicmirror
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls magicmirror
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]
The text was updated successfully, but these errors were encountered: