<?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[Settings in config.js aren&#x27;t loaded after reboot of RasPi]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/morozgrafix" aria-label="Profile: morozgrafix">@<bdi>morozgrafix</bdi></a> Thanks for the feedback. I did a re-install without the all the <code>sudo</code> commands. However I am running into a new problem now. After some other installations earlier I turned my raspberry off. When I turned it on again, and did a <code>npm start</code> from /MagicMirror MM started but it doesn’t seem to get the config.js file from /MagicMirror/Config. I have changed the file to match my local weather etc. When I start MM now after a full shutdown, I get the standard info displayed on MM. I did a <code>sudo halt</code> before I unplugged my raspberry.</p>
<p dir="auto">Edit: Getting the following errors:<br />
<img src="/uploads/files/1485033315072-23dd.png" alt="0_1485033314437_23dd.PNG" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.magicmirror.builders/topic/1507/settings-in-config-js-aren-t-loaded-after-reboot-of-raspi</link><generator>RSS for Node</generator><lastBuildDate>Fri, 12 Jun 2026 04:59:33 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/1507.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 21 Jan 2017 21:12:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Settings in config.js aren&#x27;t loaded after reboot of RasPi on Wed, 25 Jan 2017 21:36:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/morozgrafix" aria-label="Profile: morozgrafix">@<bdi>morozgrafix</bdi></a> sorry for the late reply, I didn’t want to waste your troubleshooting the MagicMirror files,  my suspicion was that these problems where caused by my autoboot fix for vnc-server. Which indeed was the issue. After a new clean install NOOBS install with a lot of less <code>sudo's</code> than the first time. Everything now works perfectly. I am definitely not the right person to talk about this stuff, but I think the problem was caused by a " No session for PID XXXX" error at every launch.<br />
Anyways, I really appreciate you taking your time to help. I wouldn’t have found all my problems and fixes without it :)</p>
]]></description><link>https://forum.magicmirror.builders/post/12503</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/12503</guid><dc:creator><![CDATA[LincolnClay]]></dc:creator><pubDate>Wed, 25 Jan 2017 21:36:15 GMT</pubDate></item><item><title><![CDATA[Reply to Settings in config.js aren&#x27;t loaded after reboot of RasPi on Wed, 25 Jan 2017 21:47:38 GMT]]></title><description><![CDATA[<p dir="auto">cool, glad you managed to get it resolved and up and running.</p>
]]></description><link>https://forum.magicmirror.builders/post/12504</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/12504</guid><dc:creator><![CDATA[morozgrafix]]></dc:creator><pubDate>Wed, 25 Jan 2017 21:47:38 GMT</pubDate></item><item><title><![CDATA[Reply to Settings in config.js aren&#x27;t loaded after reboot of RasPi on Wed, 25 Jan 2017 21:36:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/morozgrafix" aria-label="Profile: morozgrafix">@<bdi>morozgrafix</bdi></a> sorry for the late reply, I didn’t want to waste your troubleshooting the MagicMirror files,  my suspicion was that these problems where caused by my autoboot fix for vnc-server. Which indeed was the issue. After a new clean install NOOBS install with a lot of less <code>sudo's</code> than the first time. Everything now works perfectly. I am definitely not the right person to talk about this stuff, but I think the problem was caused by a " No session for PID XXXX" error at every launch.<br />
Anyways, I really appreciate you taking your time to help. I wouldn’t have found all my problems and fixes without it :)</p>
]]></description><link>https://forum.magicmirror.builders/post/12503</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/12503</guid><dc:creator><![CDATA[LincolnClay]]></dc:creator><pubDate>Wed, 25 Jan 2017 21:36:15 GMT</pubDate></item><item><title><![CDATA[Reply to Settings in config.js aren&#x27;t loaded after reboot of RasPi on Mon, 23 Jan 2017 03:31:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lincolnclay" aria-label="Profile: LincolnClay">@<bdi>LincolnClay</bdi></a> I’m not really sure why MM code is not picking up your <code>/home/pi/MagicMirror/config/config.js</code> after restart.</p>
<p dir="auto">By the way <code>config.js.sample</code> is just a sample config that can be copied into <code>config.js</code> and it comes along with MM code and doesn’t really play any role when MM starts up, so there is no need to modify that file in any way.</p>
<p dir="auto">If your <code>/home/pi/MagicMirror/config/config.js</code> keeps your desired changes, I wonder if you somehow have 2 different locations where MM is installed and configured. (I noticed that you have <code>node_modules</code> directory in <code>/home/pi</code> which seems a bit odd.)</p>
<p dir="auto">I’m assuming you are starting MM with pm2 on a startup. Can you please show post contents of your <code>/home/pi/mm.sh</code> file (you can run <code>cat /home/pi/mm.sh</code> and copy/paste contents of the output) and also run <code>pm2 list</code> and <code>pm2 show mm</code> and copy/paste output here?</p>
<p dir="auto">Sorry I’m kind of running out of ideas without knowing more information.</p>
<p dir="auto">Thanks.</p>
<p dir="auto">P.S. I’ve forked our conversation into a separate topic, this way we will not highjack original topic.</p>
]]></description><link>https://forum.magicmirror.builders/post/12132</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/12132</guid><dc:creator><![CDATA[morozgrafix]]></dc:creator><pubDate>Mon, 23 Jan 2017 03:31:37 GMT</pubDate></item><item><title><![CDATA[Reply to Settings in config.js aren&#x27;t loaded after reboot of RasPi on Sun, 22 Jan 2017 19:42:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/morozgrafix" aria-label="Profile: morozgrafix">@<bdi>morozgrafix</bdi></a> I really appreciate in depth answer. I am sorry for hijacking this thread, I had no intention to do so. I in fact closed my thread because I thought your last suggestion resolved my issues permanently. This was before I realized I got a new issue after rebooting my raspberry.</p>
<p dir="auto">Regarding your questions:</p>
<p dir="auto">Yes, I deleted the MagicMirror directory from <code>/home/pi</code>, before the re-install.</p>
<p dir="auto">I checked if pi had full access and it did.</p>
<pre><code>drwxr-xr-x  15 pi   pi   4096 Jan 21 23:10 MagicMirror
-rwxr-xr-x   1 pi   pi     38 Jan 21 14:37 mm.sh
-rwxr-xr-x   1 pi   pi     38 Jan 21 14:43 mm.sh.save
drwxr-xr-x 154 root root 4096 Jan 19 18:18 node_modules

</code></pre>
<p dir="auto">Regarding if I saved the <code>/config</code> folder files: Yes, I copied the edited text from <code>/home/pi/MagicMirror/config.js</code> and pasted it in <code>config.js.sample</code> both where saved. What I meant was after I have edited these files, MM starts with my desired weather and news info, which I input in the <code>/config</code> files. So before reboot, MM is not displaying any default settings.</p>
<p dir="auto">When the raspberry is rebooted, MM now starts with default settings, even though the files in <code>/config</code> is exactly the same as before the reboot. (still in <code>/home/pi/MagicMirror/config</code> with edited text as before).</p>
]]></description><link>https://forum.magicmirror.builders/post/12083</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/12083</guid><dc:creator><![CDATA[LincolnClay]]></dc:creator><pubDate>Sun, 22 Jan 2017 19:42:15 GMT</pubDate></item><item><title><![CDATA[Reply to Settings in config.js aren&#x27;t loaded after reboot of RasPi on Sat, 21 Jan 2017 23:02:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lincolnclay" aria-label="Profile: LincolnClay">@<bdi>LincolnClay</bdi></a> before reinstalling did you delete MagicMirror directory from <code>/home/pi</code> directory? I just want to make sure that your <code>pi</code> user has full access to files inside of MagicMirror directory. You can check who owns MagicMirror directory by running following command in the terminal:</p>
<pre><code>ls -l /home/$USER
</code></pre>
<p dir="auto">which will give you output similar to this:</p>
<pre><code>drwxr-xr-x  2 pi       4.0K Jan 21 14:30 foo/
drwxr-xr-x  2 root     4.0K Jan 21 14:31 foo1/
drwxr-xr-x 14 pi       4.0K Jan  8 14:52 MagicMirror/
</code></pre>
<p dir="auto">as you can see in the example above directory <code>foo</code> and <code>MagicMirror</code> are owned by  <code>pi</code> user and <code>foo1</code> is owned by <code>root</code>. To change ownership from <code>root</code> to <code>pi</code> this command needs to be executed (in the example below it will change ownership of <code>foo1</code> directory from <code>root</code> to currently logged in user):</p>
<pre><code>sudo chown -R $USER /home/$USER/foo1/
</code></pre>
<p dir="auto">basically it does translates to this: Running as root user (one who currently owns <code>foo1</code> directory  and has write permissions) change owner (‘chown’) recursively (<code>-R</code>) to currently logged in user (<code>$USER</code> which is <code>pi</code> in our case) for directory <code>foo1</code>. After running this command <code>foo1</code> will belong to <code>pi</code> and running <code>ls -l /home/$USER</code> should produce results similar to this:</p>
<pre><code>drwxr-xr-x  2 pi       4.0K Jan 21 14:30 foo/
drwxr-xr-x  2 pi       4.0K Jan 21 14:31 foo1/
drwxr-xr-x 14 pi       4.0K Jan  8 14:52 MagicMirror/
</code></pre>
<p dir="auto"><strong>QUESTION</strong>: When you changed <code>/home/pi/MagicMirror/config/config.js</code> did you actually save that file? I’m trying to understand what you mean by <em>“I get the standard info displayed on MM”</em> Does it show default settings? Did it ever show info with your local weather?</p>
<p dir="auto">I also see some Xlib: errors or warnings in your logs and I have no idea where that coming from.</p>
<p dir="auto">P.S. It maybe worth opening your own thread with exact steps that you already did for easier troubleshooting and not to highjack another thread.</p>
]]></description><link>https://forum.magicmirror.builders/post/11950</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/11950</guid><dc:creator><![CDATA[morozgrafix]]></dc:creator><pubDate>Sat, 21 Jan 2017 23:02:23 GMT</pubDate></item></channel></rss>