<?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[Starting mirror with PM2 on boot]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">I have a Pi3, running Magic mirror.<br />
<strong>grep version ~/MagicMirror/package.json:</strong><br />
“version”: “2.26.0”,<br />
<strong>node ver:</strong><br />
v20.10.0<br />
<strong>uname -a:</strong><br />
Linux xxxxPi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux<br />
<strong>lsb_release -a:</strong><br />
No LSB modules are available.<br />
Distributor ID: Debian<br />
Description:    Debian GNU/Linux 11 (bullseye)<br />
Release:        11<br />
Codename:       bullseye</p>
<p dir="auto">last I installed and run the PM2.<br />
followed the instruction <strong>“AutoStart your MagicMirror²”</strong> , Magic mirror starts OK with the command: <strong>“pm2 start <a href="http://mm.sh" target="_blank" rel="noopener noreferrer nofollow ugc">mm.sh</a>”</strong><br />
Last on the install list, <strong>enabling restarting of the Magic Mirror</strong> is the command <strong>pm2 save</strong> that ends successfully (no errors).<br />
rebooting the Pi, Magic Mirror  will not start automatically.<br />
running <strong>pm2 logs</strong> I see 2 errors:<br />
<strong>0|mm       | [1876:0121/103318.925547:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.portal.Settings.Read: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.portal.Desktop was not provided by any .service files<br />
0|mm       | /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT</strong><br />
can anybody help on this?<br />
Thank you</p>
]]></description><link>https://forum.magicmirror.builders/topic/18422/starting-mirror-with-pm2-on-boot</link><generator>RSS for Node</generator><lastBuildDate>Wed, 20 May 2026 10:38:35 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/18422.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 21 Jan 2024 10:38:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Starting mirror with PM2 on boot on Mon, 22 Jan 2024 12:39:30 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></p>
<p dir="auto">Thank you Sam,  for all your help.</p>
<p dir="auto">I can close the issue now.</p>
]]></description><link>https://forum.magicmirror.builders/post/114829</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/114829</guid><dc:creator><![CDATA[eitan]]></dc:creator><pubDate>Mon, 22 Jan 2024 12:39:30 GMT</pubDate></item><item><title><![CDATA[Reply to Starting mirror with PM2 on boot on Mon, 22 Jan 2024 12:31:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/eitan" aria-label="Profile: eitan">@<bdi>eitan</bdi></a> my name is in each of my replies.</p>
<p dir="auto">the script is ~/MagicMirror/installers/mm.sh</p>
<p dir="auto">you can also give pm2 a json file with a more descriptive name.</p>
<p dir="auto">see the file I create<br />
~/MagicMirror/installers/pm2_magicmirror.json</p>
<p dir="auto">see pm2 --help for all the things it can do</p>
<p dir="auto">by convention, each command is to provide help 2 ways.</p>
<p dir="auto">one in response to the only Parm --help and some usage man(ual) page(s)</p>
<p dir="auto">so</p>
<pre><code class="language-bash">man pm2 
</code></pre>
<p dir="auto">will.open that for pm2</p>
]]></description><link>https://forum.magicmirror.builders/post/114826</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/114826</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 22 Jan 2024 12:31:14 GMT</pubDate></item><item><title><![CDATA[Reply to Starting mirror with PM2 on boot on Mon, 22 Jan 2024 07:55:37 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></p>
<p dir="auto">Hi sdetweil (as I don’t have your name),</p>
<p dir="auto">Thank you, this worked perfect.<br />
I ran the script, afterwards PM2 had a second line in it named MagicMirror.<br />
<img src="/assets/uploads/files/1705909257066-pm2.jpg" alt="PM2.JPG" class=" img-fluid img-markdown" /> I deleted my own mm line (PM2 delete mm) and was left with only MagicMirror in PM2<br />
<img src="/assets/uploads/files/1705909371012-pm2_2.jpg" alt="PM2_2.JPG" class=" img-fluid img-markdown" /><br />
Stopped started the MagicMirror with PM2 and got an warning from PM2 about the incorrect mm:<br />
<strong>[PM2][WARN] Current process list is not synchronized with saved list. App mm differs. Type ‘pm2 save’ to synchronize.</strong><br />
Saved the new status <strong>PM2 save</strong><br />
Rebooted the Pi and MagicMirror was up after boot.</p>
<p dir="auto">I was wondering if you can share the content of <a href="http://MagicMirror.sh" target="_blank" rel="noopener noreferrer nofollow ugc">MagicMirror.sh</a>  (if it is an .sh script), so that I can understand what’s the different</p>
<p dir="auto">In any case, thank you</p>
]]></description><link>https://forum.magicmirror.builders/post/114823</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/114823</guid><dc:creator><![CDATA[eitan]]></dc:creator><pubDate>Mon, 22 Jan 2024 07:55:37 GMT</pubDate></item><item><title><![CDATA[Reply to Starting mirror with PM2 on boot on Sun, 21 Jan 2024 14:08:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/eitan" aria-label="Profile: eitan">@<bdi>eitan</bdi></a> ok, I have not used the install instructions for pm2,<br />
as I have an install script that does all the work ,</p>
<p dir="auto">you can use the fixuppm2 script<br />
it uses a different <a href="http://mm.sh" target="_blank" rel="noopener noreferrer nofollow ugc">mm.sh</a>, whcih we ship, in the MagicMirror/installers folder</p>
<p dir="auto">see this<br />
<a href="https://github.com/sdetweil/MagicMirror_scripts?tab=readme-ov-file#add-using-pm2-to-autostart-magicmirror-at-bootup" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/sdetweil/MagicMirror_scripts?tab=readme-ov-file#add-using-pm2-to-autostart-magicmirror-at-bootup</a></p>
<p dir="auto">you will have to delete one of the entries from pm2 after this so you don’t try to start 2.</p>
<p dir="auto">see</p>
<pre><code class="language-bash">pm2 --help
</code></pre>
<p dir="auto">for the command syntax</p>
]]></description><link>https://forum.magicmirror.builders/post/114804</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/114804</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 21 Jan 2024 14:08:09 GMT</pubDate></item><item><title><![CDATA[Reply to Starting mirror with PM2 on boot on Sun, 21 Jan 2024 13:47:33 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></p>
<p dir="auto">Thank you for your replay.</p>
<p dir="auto">Yes, Magic Mirror  starts with npm start,<br />
It also starts with PM2, when running it after boot - <strong>pm2 start mm</strong>.<br />
what I have not been able to do is for it to start automatically after boot.</p>
]]></description><link>https://forum.magicmirror.builders/post/114803</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/114803</guid><dc:creator><![CDATA[eitan]]></dc:creator><pubDate>Sun, 21 Jan 2024 13:47:33 GMT</pubDate></item><item><title><![CDATA[Reply to Starting mirror with PM2 on boot on Sun, 21 Jan 2024 13:10:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/eitan" aria-label="Profile: eitan">@<bdi>eitan</bdi></a> ok  let’s check mm first</p>
<pre><code>cd ~/MagicMirror
npm start
</code></pre>
<p dir="auto">does it start?<br />
if not show me the message from the terminal window</p>
<p dir="auto">those freedesktop messages are junk.</p>
]]></description><link>https://forum.magicmirror.builders/post/114797</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/114797</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 21 Jan 2024 13:10:30 GMT</pubDate></item></channel></rss>