<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Error on Start (fresh install) - Electron Illegal Access]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">Trying to get my class project started, but unable to get MagicMirror running on my monitor. When I attempt to start I keep getting:</p>
<pre><code>pi@raspberrypi:~/MagicMirror $ npm run start
&gt; 
&gt; &gt; magicmirror@2.15.0 start
&gt; &gt; node_modules/.bin/electron js/electron.js
&gt; 
&gt; [09.04.2021 14:35.19.085] [LOG]   Starting MagicMirror: v2.15.0
&gt; [09.04.2021 14:35.19.091] [LOG]   Loading config ...
&gt; [09.04.2021 14:35.19.098] [LOG]   Loading module helpers ...
&gt; [09.04.2021 14:35.19.100] [LOG]   No helper found for module: alert.
&gt; [09.04.2021 14:35.19.264] [LOG]   Initializing new module helper ...
&gt; [09.04.2021 14:35.19.265] [LOG]   Module helper loaded: updatenotification
&gt; [09.04.2021 14:35.19.266] [LOG]   No helper found for module: clock.
&gt; [09.04.2021 14:35.19.770] [LOG]   Initializing new module helper ...
&gt; [09.04.2021 14:35.19.771] [LOG]   Module helper loaded: calendar
&gt; [09.04.2021 14:35.19.772] [LOG]   No helper found for module: compliments.
&gt; [09.04.2021 14:35.19.772] [LOG]   No helper found for module: weather.
&gt; [09.04.2021 14:35.19.795] [LOG]   Initializing new module helper ...
&gt; [09.04.2021 14:35.19.796] [LOG]   Module helper loaded: newsfeed
&gt; [09.04.2021 14:35.19.796] [LOG]   All module helpers loaded.
&gt; [09.04.2021 14:35.19.880] [LOG]   Starting server on port 8080 ...
&gt; [09.04.2021 14:35.19.894] [LOG]   Server started ...
&gt; [09.04.2021 14:35.19.895] [LOG]   Connecting socket for: updatenotification
&gt; [09.04.2021 14:35.19.896] [LOG]   Connecting socket for: calendar
&gt; [09.04.2021 14:35.19.897] [LOG]   Starting node helper for: calendar
&gt; [09.04.2021 14:35.19.898] [LOG]   Connecting socket for: newsfeed
&gt; [09.04.2021 14:35.19.899] [LOG]   Starting node helper for: newsfeed
&gt; [09.04.2021 14:35.19.900] [LOG]   Sockets connected &amp; modules started ...
&gt; 
&gt; undefined:0
&gt; 
&gt; 
&gt; illegal access
&gt; (Use `electron --trace-uncaught ...` to show where the exception was thrown)
&gt; 
</code></pre>
<p dir="auto">I’m afraid I do not know much about electron and having trouble diagnosing what is going wrong.<br />
I began with doing the correction indicated here regarding common installation issues: <a href="https://docs.magicmirror.builders/getting-started/installation.html#manual-installation" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.magicmirror.builders/getting-started/installation.html#manual-installation</a></p>
<p dir="auto">I also tried a few suggestions for other issues that seemed possibly similar such as delete the node_modules/electron folder and rerun npm install in /MagicMirror directory</p>
<p dir="auto">Also tried npm rebuild in the MagicMirror directory and tried to start again and that was unsuccessful.</p>
<p dir="auto">Any advice? Struggling to get the basics up and running so I can jump full into my project and after about an hour of troubleshooting unsure of what to try next and any help is appreciated!</p>
]]></description><link>https://forum.magicmirror.builders/topic/14907/error-on-start-fresh-install-electron-illegal-access</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Jul 2026 09:07:02 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/14907.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 09 Apr 2021 18:38:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Error on Start (fresh install) - Electron Illegal Access on Fri, 09 Apr 2021 22:21:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/frosty_snow" aria-label="Profile: frosty_snow">@<bdi>frosty_snow</bdi></a> cool…</p>
]]></description><link>https://forum.magicmirror.builders/post/90509</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90509</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 09 Apr 2021 22:21:02 GMT</pubDate></item><item><title><![CDATA[Reply to Error on Start (fresh install) - Electron Illegal Access on Fri, 09 Apr 2021 22:20:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a><br />
I’d like to thank you so much for taking the time on this. I’ve figured out that it is a hardware issue. I switched up to a different monitor that is not display port and the MM is working correctly. I don’t know if its the Displayport that is the problem or not but I can use my other monitor for the actual MM build and just use this displayPort monitor as my secondary “reading” monitor.</p>
<p dir="auto">Hope you have a lovely weekend and thank you again for working with me.</p>
]]></description><link>https://forum.magicmirror.builders/post/90508</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90508</guid><dc:creator><![CDATA[frosty_snow]]></dc:creator><pubDate>Fri, 09 Apr 2021 22:20:23 GMT</pubDate></item><item><title><![CDATA[Reply to Error on Start (fresh install) - Electron Illegal Access on Fri, 09 Apr 2021 22:15:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/frosty_snow" aria-label="Profile: frosty_snow">@<bdi>frosty_snow</bdi></a>   correction  , see I added a little on to the bash -x   line to capture the bash output</p>
<p dir="auto">sorry try again</p>
]]></description><link>https://forum.magicmirror.builders/post/90507</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90507</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 09 Apr 2021 22:15:00 GMT</pubDate></item><item><title><![CDATA[Reply to Error on Start (fresh install) - Electron Illegal Access on Fri, 09 Apr 2021 22:14:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/frosty_snow" aria-label="Profile: frosty_snow">@<bdi>frosty_snow</bdi></a> ok, stop mm</p>
<pre><code>pm2 stop 0
</code></pre>
<p dir="auto">then do</p>
<pre><code>cd ~/MagicMirror
bash -x ./run-start.sh  &gt;somefile 2&gt;&amp;1
wait 10 seconds, then ctrl-c
</code></pre>
<p dir="auto">and post or send me somefile</p>
<p dir="auto">my email is the same userid at <a href="http://gmail.com" target="_blank" rel="noopener noreferrer nofollow ugc">gmail.com</a></p>
]]></description><link>https://forum.magicmirror.builders/post/90506</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90506</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 09 Apr 2021 22:14:23 GMT</pubDate></item><item><title><![CDATA[Reply to Error on Start (fresh install) - Electron Illegal Access on Fri, 09 Apr 2021 21:58:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a><br />
currently im only at 1 but it said 2 before i rebooted my pi<br />
The below is the result of those cmds in the ssh session into the pi on my desktop</p>
<pre><code>pi@raspberrypi:~ $ which chromium
pi@raspberrypi:~ $ which chromium-browser
/usr/bin/chromium-browser
pi@raspberrypi:~ $
</code></pre>
<p dir="auto">I’ve rebooted the pi before trying to start MM up again</p>
]]></description><link>https://forum.magicmirror.builders/post/90505</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90505</guid><dc:creator><![CDATA[frosty_snow]]></dc:creator><pubDate>Fri, 09 Apr 2021 21:58:25 GMT</pubDate></item><item><title><![CDATA[Reply to Error on Start (fresh install) - Electron Illegal Access on Fri, 09 Apr 2021 21:49:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/frosty_snow" aria-label="Profile: frosty_snow">@<bdi>frosty_snow</bdi></a> ok, that is my <a href="http://run-start.sh" target="_blank" rel="noopener noreferrer nofollow ugc">run-start.sh</a> script which is put in in the case where electron won’t run …</p>
<p dir="auto">BUT  it should start  chromium-browser</p>
<p dir="auto">can u do</p>
<pre><code>which chromium 
</code></pre>
<p dir="auto">and</p>
<pre><code>which cromium-browser
</code></pre>
<p dir="auto">on a terminal window on the pi (or ssh session to the pi)</p>
<p dir="auto">because electron won’t run, we launch MM in server mode<br />
and then launch chrome  over it…</p>
<p dir="auto">i had a case where the previous server mode was still running, and so I don’t have to tell u how to correct that, I kill it…</p>
<p dir="auto">pm2 job is to keep MM running… so, when the script ends, pm2 restarts it…<br />
over and over…</p>
<p dir="auto">oh by the way… the column on the pm2 status that looks like a circle with an arrow tip is the number of restarts…   for your case at the moment, it should be going up</p>
]]></description><link>https://forum.magicmirror.builders/post/90504</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90504</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 09 Apr 2021 21:49:48 GMT</pubDate></item><item><title><![CDATA[Reply to Error on Start (fresh install) - Electron Illegal Access on Fri, 09 Apr 2021 21:43:58 GMT]]></title><description><![CDATA[<p dir="auto">Ok when I do pm2 status i do see that the status is “online” after I do the pm2 start MagicMirror. However yes it appears there is another issue, as my display simply remains blank (I’ve 3 screens, 2 connected to my desktop with the 3rd connected to the Rpi4).<br />
The log files show the following errors, which would seem its related to this line 102. Is it possible I need to edit this?</p>
<pre><code>/home/pi/.pm2/logs/MagicMirror-error.log last 50 lines:
0|MagicMir | ./run-start.sh: line 102:   841 Killed                  node server                                                                                                                                                             only
0|MagicMir | npm ERR! code ELIFECYCLE
0|MagicMir | npm ERR! errno 137
0|MagicMir | npm ERR! magicmirror@2.15.0 start: `./run-start.sh $1`
0|MagicMir | npm ERR! Exit status 137
0|MagicMir | npm ERR!
0|MagicMir | npm ERR! Failed at the magicmirror@2.15.0 start script.
0|MagicMir | npm ERR! This is probably not a problem with npm. There is likely a                                                                                                                                                             dditional logging output above.
0|MagicMir |
0|MagicMir | npm ERR! A complete log of this run can be found in:
0|MagicMir | npm ERR!     /home/pi/.npm/_logs/2021-04-09T20_25_23_729Z-debug.log
0|MagicMir | ./run-start.sh: line 102:  2087 Killed                  node server                                                                                                                                                             only
0|MagicMir | npm ERR! code ELIFECYCLE
0|MagicMir | npm ERR! errno 137
0|MagicMir | npm ERR! magicmirror@2.15.0 start: `./run-start.sh $1`
0|MagicMir | npm ERR! Exit status 137
0|MagicMir | npm ERR!
0|MagicMir | npm ERR! Failed at the magicmirror@2.15.0 start script.
0|MagicMir | npm ERR! This is probably not a problem with npm. There is likely a                                                                                                                                                             dditional logging output above.
0|MagicMir |
0|MagicMir | npm ERR! A complete log of this run can be found in:
0|MagicMir | npm ERR!     /home/pi/.npm/_logs/2021-04-09T20_27_20_593Z-debug.log
0|MagicMir | ./run-start.sh: line 102:   814 Killed                  node server                                                                                                                                                             only
0|MagicMir | npm ERR! code ELIFECYCLE
0|MagicMir | npm ERR! errno 137
0|MagicMir | npm ERR! magicmirror@2.15.0 start: `./run-start.sh $1`
0|MagicMir | npm ERR! Exit status 137
0|MagicMir | npm ERR!
0|MagicMir | npm ERR! Failed at the magicmirror@2.15.0 start script.
0|MagicMir | npm ERR! This is probably not a problem with npm. There is likely a                                                                                                                                                             dditional logging output above.
0|MagicMir |
0|MagicMir | npm ERR! A complete log of this run can be found in:
0|MagicMir | npm ERR!     /home/pi/.npm/_logs/2021-04-09T20_53_27_407Z-debug.log
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/90503</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90503</guid><dc:creator><![CDATA[frosty_snow]]></dc:creator><pubDate>Fri, 09 Apr 2021 21:43:58 GMT</pubDate></item><item><title><![CDATA[Reply to Error on Start (fresh install) - Electron Illegal Access on Fri, 09 Apr 2021 21:08:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/frosty_snow" aria-label="Profile: frosty_snow">@<bdi>frosty_snow</bdi></a> it should show, the startup sets the linux xwindows DISPLAY=:0</p>
<p dir="auto">unless there is another problem…</p>
<p dir="auto">do<br />
pm2 logs --lines=50</p>
<p dir="auto">pm2 status to show whats running</p>
<p dir="auto">pm2 stop  all</p>
<p dir="auto">pm2 --help<br />
for more options</p>
]]></description><link>https://forum.magicmirror.builders/post/90500</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90500</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 09 Apr 2021 21:08:59 GMT</pubDate></item><item><title><![CDATA[Reply to Error on Start (fresh install) - Electron Illegal Access on Fri, 09 Apr 2021 20:54:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a><br />
Thank you! I think that solved that problem.</p>
<p dir="auto">Should the monitor that is connected (its connected via a microHDMI to HDMI and then an HDMI to DisplayPort adapter at the other end) automatically display once I’ve run pm2 start MagicMirror? Or do I need to take an additional step?</p>
<p dir="auto">It indicates process successfully started, however the monitor doesn’t show anything.<br />
I should note we’ve only ever ssh’d into the Pi from our desktops and I’ve never used a GUI connected to the Pi before, so very possible I’m not doing something correctly in that regard.</p>
]]></description><link>https://forum.magicmirror.builders/post/90498</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90498</guid><dc:creator><![CDATA[frosty_snow]]></dc:creator><pubDate>Fri, 09 Apr 2021 20:54:51 GMT</pubDate></item><item><title><![CDATA[Reply to Error on Start (fresh install) - Electron Illegal Access on Fri, 09 Apr 2021 18:50:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/frosty_snow" aria-label="Profile: frosty_snow">@<bdi>frosty_snow</bdi></a> can u try running the automated install script</p>
<p dir="auto">see here<br />
<a href="https://github.com/sdetweil/MagicMirror_scripts" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/sdetweil/MagicMirror_scripts</a></p>
<p dir="auto">remove or rename the MagicMirror folder to some other name<br />
the script assumes starting fresh</p>
]]></description><link>https://forum.magicmirror.builders/post/90496</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/90496</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 09 Apr 2021 18:50:48 GMT</pubDate></item></channel></rss>