<?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[PM2 Error]]></title><description><![CDATA[<p dir="auto">Ok so I’m following the guide to install the mirror. I’m now at the auto start part. I did the command “sudo npm install -g pm2” as pi user. Next I did “pm2 startup”, I do the command I ask and I get and error. <img src="https://image.noelshack.com/fichiers/2017/12/1489975556-20170319-220509-hdr.jpg" alt="alt text" class=" img-fluid img-markdown" /></p>
<p dir="auto">Please help!</p>
]]></description><link>https://forum.magicmirror.builders/topic/2112/pm2-error</link><generator>RSS for Node</generator><lastBuildDate>Sun, 07 Jun 2026 02:14:32 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/2112.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 20 Mar 2017 02:06:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to PM2 Error on Tue, 21 Mar 2017 04:17:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/knottycord" aria-label="Profile: KnottyCord">@<bdi>KnottyCord</bdi></a> You are correct - you are running systemd (not plain old linux). PM2 does not seem to “realize” that.</p>
<p dir="auto">Note that there is ANOTHER problem with PM2 that is now reported as a bug - read all about it here:</p>
<p dir="auto"><a href="https://forum.magicmirror.builders/topic/2065/solved-pm2-does-not-start-on-reboot/10">https://forum.magicmirror.builders/topic/2065/solved-pm2-does-not-start-on-reboot/10</a></p>
<p dir="auto">Best of luck - and don’t hesitate to ask for help!</p>
]]></description><link>https://forum.magicmirror.builders/post/17956</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/17956</guid><dc:creator><![CDATA[amanzimdwini]]></dc:creator><pubDate>Tue, 21 Mar 2017 04:17:12 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 Error on Mon, 20 Mar 2017 20:04:55 GMT]]></title><description><![CDATA[<p dir="auto">Changing the command form this:<br />
<code>sudo su -c "env PATH=$PATH:/usr/bin pm2 startup linux -u pi --hp /home/pi"</code> to this:<br />
<code>sudo su -c "env PATH=$PATH:/usr/bin pm2 startup systemd -u pi --hp /home/pi"</code><br />
seem to work!</p>
]]></description><link>https://forum.magicmirror.builders/post/17941</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/17941</guid><dc:creator><![CDATA[KnottyCord]]></dc:creator><pubDate>Mon, 20 Mar 2017 20:04:55 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 Error on Mon, 20 Mar 2017 19:33:34 GMT]]></title><description><![CDATA[<p dir="auto">Yes that’s what i did. Run the command pm2 startup. It gave me a command to enter. When I pressed enter it was not working I keep giving me an error!</p>
]]></description><link>https://forum.magicmirror.builders/post/17936</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/17936</guid><dc:creator><![CDATA[KnottyCord]]></dc:creator><pubDate>Mon, 20 Mar 2017 19:33:34 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 Error on Mon, 20 Mar 2017 11:54:38 GMT]]></title><description><![CDATA[<p dir="auto">KnottyCord is right. <code>pm2 startup</code> is not used to start the mm2 process but to start and initialize pm2 itself.<br />
Just to be sure … you ran <code>pm2 startup</code> and that told you to run the command your screenshot shows? There are other users with similar problems: <a href="https://github.com/Unitech/pm2/issues/2574" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/Unitech/pm2/issues/2574</a></p>
]]></description><link>https://forum.magicmirror.builders/post/17909</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/17909</guid><dc:creator><![CDATA[yawns]]></dc:creator><pubDate>Mon, 20 Mar 2017 11:54:38 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 Error on Mon, 20 Mar 2017 11:37:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/preve" aria-label="Profile: Preve">@<bdi>Preve</bdi></a> I don’t think so so because if you follow the step on the guide this step of adding the <a href="http://mm.sh" target="_blank" rel="noopener noreferrer nofollow ugc">mm.sh</a> is after.</p>
]]></description><link>https://forum.magicmirror.builders/post/17908</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/17908</guid><dc:creator><![CDATA[KnottyCord]]></dc:creator><pubDate>Mon, 20 Mar 2017 11:37:34 GMT</pubDate></item><item><title><![CDATA[Reply to PM2 Error on Mon, 20 Mar 2017 09:13:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/knottycord" aria-label="Profile: KnottyCord">@<bdi>KnottyCord</bdi></a> Don’t you have to add your <a href="http://mm.sh" target="_blank" rel="noopener noreferrer nofollow ugc">mm.sh</a> in the start command? I’m also new at this, so I could be very wrong at this.</p>
]]></description><link>https://forum.magicmirror.builders/post/17892</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/17892</guid><dc:creator><![CDATA[Preve]]></dc:creator><pubDate>Mon, 20 Mar 2017 09:13:53 GMT</pubDate></item></channel></rss>