<?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[MM won&#x27;t launch at startup, but will launch manually]]></title><description><![CDATA[<p dir="auto">I installed MM via sdetweil’s script on Ubuntu 24.04. Everything seems to work fine after installation, but after a reboot MM doesn’t start up. Checking the pm2 logs shows these errors, and then it just keeps looping.</p>
<pre><code>[35781:0511/163537.061675:ERROR:ozone_platform_x11.cc(244)] Missing X server or $DISPLAY
[35781:0511/163537.061869:ERROR:env.cc(257)] The platform failed to initialize.  Exiting.
Authorization required, but no authorization protocol specified
</code></pre>
<p dir="auto">I can run MM successfully using</p>
<pre><code>npm start
</code></pre>
<p dir="auto">from the MagicMirror folder. Any ideas on how I can get it to run at startup?</p>
]]></description><link>https://forum.magicmirror.builders/topic/18730/mm-won-t-launch-at-startup-but-will-launch-manually</link><generator>RSS for Node</generator><lastBuildDate>Wed, 13 May 2026 01:43:36 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/18730.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 11 May 2024 21:43:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MM won&#x27;t launch at startup, but will launch manually on Mon, 28 Oct 2024 17:06:44 GMT]]></title><description><![CDATA[<p dir="auto">Hi, this is how I’m running it for now, maybe it will help someone.</p>
<p dir="auto">I will install PM2 according to the <a href="https://docs.magicmirror.builders/configuration/autostart.html#using-pm2" target="_blank" rel="noopener noreferrer nofollow ugc">instructions</a></p>
<p dir="auto">I will skip the command “pm2 startup”</p>
<p dir="auto">After installation i proceed like this</p>
<p dir="auto">i will create another boot file</p>
<pre><code>cd ~
nano mm_start.sh
</code></pre>
<p dir="auto">Add the following lines:</p>
<pre><code>echo Start PM2......
pm2 start mm.sh
read;
</code></pre>
<p dir="auto">set permissions</p>
<pre><code>chmod +x mm_start.sh
</code></pre>
<p dir="auto">we will set up the script after booting Ubuntu</p>
<p dir="auto"><img src="/assets/uploads/files/1730134860839-screenshot_5.jpg" alt="Screenshot_5.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto">now i can start and stop services at will.</p>
]]></description><link>https://forum.magicmirror.builders/post/120882</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/120882</guid><dc:creator><![CDATA[majsoft]]></dc:creator><pubDate>Mon, 28 Oct 2024 17:06:44 GMT</pubDate></item><item><title><![CDATA[Reply to MM won&#x27;t launch at startup, but will launch manually on Mon, 28 Oct 2024 18:35:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/majsoft" aria-label="Profile: majsoft">@<bdi>majsoft</bdi></a> cool. don’t know if we have that on other systems</p>
<p dir="auto">sometimes if you do</p>
<pre><code>sudo npm remove pm2 -g
</code></pre>
<p dir="auto">then reboot and run the fixuppm2 script in my scripts list</p>
]]></description><link>https://forum.magicmirror.builders/post/120883</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/120883</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 28 Oct 2024 18:35:26 GMT</pubDate></item><item><title><![CDATA[Reply to MM won&#x27;t launch at startup, but will launch manually on Mon, 28 Oct 2024 17:06:44 GMT]]></title><description><![CDATA[<p dir="auto">Hi, this is how I’m running it for now, maybe it will help someone.</p>
<p dir="auto">I will install PM2 according to the <a href="https://docs.magicmirror.builders/configuration/autostart.html#using-pm2" target="_blank" rel="noopener noreferrer nofollow ugc">instructions</a></p>
<p dir="auto">I will skip the command “pm2 startup”</p>
<p dir="auto">After installation i proceed like this</p>
<p dir="auto">i will create another boot file</p>
<pre><code>cd ~
nano mm_start.sh
</code></pre>
<p dir="auto">Add the following lines:</p>
<pre><code>echo Start PM2......
pm2 start mm.sh
read;
</code></pre>
<p dir="auto">set permissions</p>
<pre><code>chmod +x mm_start.sh
</code></pre>
<p dir="auto">we will set up the script after booting Ubuntu</p>
<p dir="auto"><img src="/assets/uploads/files/1730134860839-screenshot_5.jpg" alt="Screenshot_5.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto">now i can start and stop services at will.</p>
]]></description><link>https://forum.magicmirror.builders/post/120882</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/120882</guid><dc:creator><![CDATA[majsoft]]></dc:creator><pubDate>Mon, 28 Oct 2024 17:06:44 GMT</pubDate></item><item><title><![CDATA[Reply to MM won&#x27;t launch at startup, but will launch manually on Sun, 02 Jun 2024 13:19:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ajgonzales" aria-label="Profile: ajgonzales">@<bdi>ajgonzales</bdi></a> yeh 24.04</p>
<p dir="auto">pm2 has an issue on 24.04 during boot up.  I opened an issue a couple weeks ago.<br />
<a href="https://github.com/Unitech/pm2/issues/5820" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/Unitech/pm2/issues/5820</a></p>
<p dir="auto">I think you are also running the new Wayland display manager…</p>
<p dir="auto">to verify</p>
<pre><code class="language-sh">ps -ef | grep wayfire
</code></pre>
<p dir="auto">so x11 commands won’t work</p>
]]></description><link>https://forum.magicmirror.builders/post/118092</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118092</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 02 Jun 2024 13:19:18 GMT</pubDate></item><item><title><![CDATA[Reply to MM won&#x27;t launch at startup, but will launch manually on Sun, 02 Jun 2024 13:09: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><br />
I did try adding the command to the first line of the <a href="http://mm.sh" target="_blank" rel="noopener noreferrer nofollow ugc">mm.sh</a> script in the installers folder but that didn’t work. Here’s the sequence I run after rebooting, after which I have no issues.</p>
<pre><code>pm2 stop 0
xhost +si:localuser:[username]
pm2 start 0
</code></pre>
<p dir="auto">Here’s the output from those other two commands:</p>
<pre><code>lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 24.04 LTS
Release:        24.04
Codename:       noble

uname -a
Linux [computername] 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/118091</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118091</guid><dc:creator><![CDATA[ajgonzales]]></dc:creator><pubDate>Sun, 02 Jun 2024 13:09:33 GMT</pubDate></item><item><title><![CDATA[Reply to MM won&#x27;t launch at startup, but will launch manually on Fri, 31 May 2024 12:59:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ajgonzales" aria-label="Profile: ajgonzales">@<bdi>ajgonzales</bdi></a> add that to the launch script</p>
<p dir="auto">you can find that  by doing<br />
pm2 status<br />
then use the name or number of the row of the app</p>
<p dir="auto">pm2 info x<br />
where x is the name or number</p>
<p dir="auto">can you give more info on the system?</p>
<p dir="auto">lsb_release -a<br />
uname -a</p>
]]></description><link>https://forum.magicmirror.builders/post/118051</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118051</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 31 May 2024 12:59:52 GMT</pubDate></item><item><title><![CDATA[Reply to MM won&#x27;t launch at startup, but will launch manually on Fri, 31 May 2024 12:49:26 GMT]]></title><description><![CDATA[<p dir="auto">In case anyone else has this issue, I was able to able to get it to run via pm2 by running this command first:</p>
<pre><code>xhost +si:localuser:[username]
</code></pre>
<p dir="auto">Next steps are to figure out how to automatically run that command at startup prior to MM.</p>
]]></description><link>https://forum.magicmirror.builders/post/118050</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/118050</guid><dc:creator><![CDATA[ajgonzales]]></dc:creator><pubDate>Fri, 31 May 2024 12:49:26 GMT</pubDate></item><item><title><![CDATA[Reply to MM won&#x27;t launch at startup, but will launch manually on Sun, 12 May 2024 15:31:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ajgonzales" aria-label="Profile: ajgonzales">@<bdi>ajgonzales</bdi></a> yep, I can recreate this… so far no hack fix has helped…</p>
<p dir="auto">I now have my system where it won’t finish booting… pm2 is  uninstalled…</p>
<p dir="auto">so something is different between UBUNTU and RASPI OS<br />
cause we don’t see this problem on raspi</p>
]]></description><link>https://forum.magicmirror.builders/post/117705</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/117705</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 12 May 2024 15:31:30 GMT</pubDate></item><item><title><![CDATA[Reply to MM won&#x27;t launch at startup, but will launch manually on Sun, 12 May 2024 01:32:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ajgonzales" aria-label="Profile: ajgonzales">@<bdi>ajgonzales</bdi></a> ok thanks.</p>
]]></description><link>https://forum.magicmirror.builders/post/117694</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/117694</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 12 May 2024 01:32:14 GMT</pubDate></item><item><title><![CDATA[Reply to MM won&#x27;t launch at startup, but will launch manually on Sun, 12 May 2024 00:55: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 />
was logged in as a user, not root. got the same errors after running the fixuppm2 script and rebooting. here are the results from the other command. looks like it does use wayland:</p>
<pre><code>aj          2524    2226  0 16:06 tty2     00:00:00 /usr/libexec/gdm-wayland-session env GNOME_SHELL_SESSION_MODE=ubuntu /usr/bin/gnome-session --session=ubuntu
aj          2938    2674  0 16:06 ?        00:00:03 /usr/bin/Xwayland :0 -rootless -noreset -accessx -core -auth /run/user/1000/.mutter-Xwaylandauth.QXB9M2 -listenfd 4 -listenfd 5 -displayfd 6 -initfd 7 -byteswappedclients
aj        393102  390657  0 19:44 pts/0    00:00:00 grep --color=auto -i way

</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/117693</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/117693</guid><dc:creator><![CDATA[ajgonzales]]></dc:creator><pubDate>Sun, 12 May 2024 00:55:23 GMT</pubDate></item><item><title><![CDATA[Reply to MM won&#x27;t launch at startup, but will launch manually on Sat, 11 May 2024 22:39:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ajgonzales" aria-label="Profile: ajgonzales">@<bdi>ajgonzales</bdi></a> I am downloading 24.04 now to test in vm…</p>
]]></description><link>https://forum.magicmirror.builders/post/117689</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/117689</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 11 May 2024 22:39:44 GMT</pubDate></item><item><title><![CDATA[Reply to MM won&#x27;t launch at startup, but will launch manually on Sat, 11 May 2024 22:36:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ajgonzales" aria-label="Profile: ajgonzales">@<bdi>ajgonzales</bdi></a> said in <a href="/post/117686">MM won't launch at startup, but will launch manually</a>:</p>
<blockquote>
<p dir="auto">[35781:0511/163537.061675:ERROR:ozone_platform_x11.cc(244)] Missing X server or $DISPLAY</p>
</blockquote>
<p dir="auto">is 24.04 using wayland instead of x11??<br />
do</p>
<pre><code>ps -ef | grep -i way
</code></pre>
<p dir="auto">is a terminal window</p>
]]></description><link>https://forum.magicmirror.builders/post/117688</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/117688</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 11 May 2024 22:36:20 GMT</pubDate></item><item><title><![CDATA[Reply to MM won&#x27;t launch at startup, but will launch manually on Sat, 11 May 2024 22:32:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ajgonzales" aria-label="Profile: ajgonzales">@<bdi>ajgonzales</bdi></a> what user were you logged on as when you can my script?</p>
<p dir="auto">can u try to run the fixuppm2 script?  last one on the list of my scripts…</p>
<p dir="auto">as a user, not root</p>
]]></description><link>https://forum.magicmirror.builders/post/117687</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/117687</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 11 May 2024 22:32:40 GMT</pubDate></item></channel></rss>