<?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[mmpm connection to MagicMirror failed]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">I just started using MagicMirror and wanted to use the package manager mpmm with it.</p>
<ul>
<li>MagicMirror has been installed via the MagicMirrorOS on a RaspberryPi</li>
<li>I can see the MagicMirror output on the screen connected to the Pi and via the URL (192.168.2.76:8080)</li>
<li>I installed mpmm via</li>
</ul>
<pre><code>sudo apt install libffi-dev nginx-full -y
python3 -m pip install --upgrade --no-cache-dir mmpm
mmpm --guided-setup
echo 'export PATH="$PATH:$HOME/.local/bin"' &gt;&gt; ~/.bashrc
</code></pre>
<ul>
<li>I can access the mpmm GUI but it is showing “Unable to retrieve active modules”</li>
<li>my mmpm settings are:</li>
</ul>
<pre><code>    MMPM_IS_DOCKER_IMAGE: false
    MMPM_MAGICMIRROR_DOCKER_COMPOSE_FILE: /home/pi/magicmirror/run/docker-compose.yml
    MMPM_MAGICMIRROR_PM2_PROCESS_NAME:
    MMPM_MAGICMIRROR_ROOT: /home/pi/magicmirror
    MMPM_MAGICMIRROR_URI: http://192.168.2.76:8080
</code></pre>
<p dir="auto">Alsp a <code>mmpm mm-ctl --status</code> shows that it failed to connect to MagicMirror. At least I am not aware that I use pm2.</p>
<p dir="auto">The mmpm log file shows a <code>Connection to namespace /mmpm was rejected</code>:</p>
<pre><code>
Back up of database complete
2021-10-28 00:23:57,221.221 INFO core - display_magicmirror_modules_status: attempting to connect to '/mmpm' namespace within MagicMirror websocket
attempting to connect to '/mmpm' namespace within MagicMirror websocket
2021-10-28 00:23:57,273.273 INFO client - _handle_eio_connect: Engine.IO connection established
Engine.IO connection established
2021-10-28 00:23:57,311.311 INFO client - _handle_error: Connection to namespace /mmpm was rejected
Connection to namespace /mmpm was rejected
2021-10-28 00:23:58,315.315 INFO client - _handle_eio_disconnect: Engine.IO connection dropped
Engine.IO connection dropped
2021-10-28 00:23:58,328.328 ERROR utils - error_msg: Failed to connect to MagicMirror, closing socket. Is MagicMirror running?
Failed to connect to MagicMirror, closing socket. Is MagicMirror running?
2021-10-28 00:23:58,330.330 ERROR core - display_magicmirror_modules_status: One or more namespaces failed to connect
One or more namespaces failed to connect
2021-10-28 00:23:58,332.332 INFO utils - socketio_client_disconnect: attempting to disconnect from MagicMirror websocket
attempting to disconnect from MagicMirror websocket 
</code></pre>
<p dir="auto">What could be wrong? Is the MMPM_MAGICMIRROR_ROOT correct for the MagicMirrorOS installation?</p>
<p dir="auto">Thanks for reading that far,<br />
Kab</p>
]]></description><link>https://forum.magicmirror.builders/topic/15797/mmpm-connection-to-magicmirror-failed</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 02:39:59 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/15797.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 27 Oct 2021 23:46:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to mmpm connection to MagicMirror failed on Sat, 30 Oct 2021 23:48:08 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/karsten13" aria-label="Profile: karsten13">@<bdi>karsten13</bdi></a></p>
<p dir="auto">Thanks, that helped. I could go back to the previous setup.<br />
mmpm still doesn’t work, though. I think I installed it wrong but need to dig deeper.<br />
If I just ssh on the PI I can use mmpm but If I go into the mm container with <code>docker exec -it mm bash</code> it cannot find the mmpm command. Now I need to figure out how to remove my mpmm installation.</p>
]]></description><link>https://forum.magicmirror.builders/post/95884</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/95884</guid><dc:creator><![CDATA[Kab]]></dc:creator><pubDate>Sat, 30 Oct 2021 23:48:08 GMT</pubDate></item><item><title><![CDATA[Reply to mmpm connection to MagicMirror failed on Sat, 30 Oct 2021 08:13:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kab" aria-label="Profile: kab">@<bdi>kab</bdi></a></p>
<blockquote>
<p dir="auto">/home/node/.npm/_logs/2021-10-29T20_22_53_399Z-debug.log</p>
</blockquote>
<p dir="auto">the file is in the container, after executing <code>docker exec -it mm bash</code> you are in the container and then you should be able to see this file.</p>
<p dir="auto">But the whole thing is strange.</p>
<p dir="auto">You could reset the setup by</p>
<ul>
<li>stop the container: navigate to <code>~/magicmirror/run</code> and run <code>docker-compose down</code></li>
<li>test there is no container running with <code>docker ps</code></li>
<li>navigate to home directory executing <code>cd</code></li>
<li>rename magicmirror folder with <code>mv magicmirror magicmirror-old</code></li>
<li>reboot your pi</li>
</ul>
<p dir="auto">While starting the now missing magicmirror folder will be recreated from scratch.</p>
]]></description><link>https://forum.magicmirror.builders/post/95860</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/95860</guid><dc:creator><![CDATA[karsten13]]></dc:creator><pubDate>Sat, 30 Oct 2021 08:13:38 GMT</pubDate></item><item><title><![CDATA[Reply to mmpm connection to MagicMirror failed on Fri, 29 Oct 2021 22:38:15 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/karsten13" aria-label="Profile: karsten13">@<bdi>karsten13</bdi></a></p>
<p dir="auto">docker ps shows</p>
<pre><code>CONTAINER ID   IMAGE                          COMMAND                  CREATED      STATUS          PORTS     NAMES
04fcaa798d2e   karsten13/magicmirror:latest   "/usr/bin/tini -- ./…"   3 days ago   Up 28 minutes             mm
</code></pre>
<p dir="auto">and the first error in the log is</p>
<pre><code>npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! magicmirror@2.17.1 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin                                                                          /electron js/electron.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the magicmirror@2.17.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional log                                                                          ging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/node/.npm/_logs/2021-10-29T20_22_53_399Z-debug.log
</code></pre>
<p dir="auto">However, <code>/home/node/.npm/_logs/2021-10-29T20_22_53_399Z-debug.log</code> does not exist.</p>
]]></description><link>https://forum.magicmirror.builders/post/95857</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/95857</guid><dc:creator><![CDATA[Kab]]></dc:creator><pubDate>Fri, 29 Oct 2021 22:38:15 GMT</pubDate></item><item><title><![CDATA[Reply to mmpm connection to MagicMirror failed on Fri, 29 Oct 2021 22:05:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kab" aria-label="Profile: kab">@<bdi>kab</bdi></a></p>
<blockquote>
<p dir="auto">What else is changed after reboot with the other container?</p>
</blockquote>
<p dir="auto">nothing</p>
<p dir="auto">You can look into these yaml files, it`s all text.</p>
<p dir="auto">You can see which containers are running with <code>docker ps</code> and may something is in the logs <code>docker logs mm</code>.</p>
<p dir="auto">It takes some time pulling new images (this is done after a reboot).</p>
]]></description><link>https://forum.magicmirror.builders/post/95856</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/95856</guid><dc:creator><![CDATA[karsten13]]></dc:creator><pubDate>Fri, 29 Oct 2021 22:05:42 GMT</pubDate></item><item><title><![CDATA[Reply to mmpm connection to MagicMirror failed on Fri, 29 Oct 2021 21:59:58 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/karsten13" aria-label="Profile: karsten13">@<bdi>karsten13</bdi></a></p>
<p dir="auto">I did the <code>cp ~/magicmirror/run/rpi_mmpm.yml ~/magicmirror/run/docker-compose.yml</code> and reboot but got a black screen for the MagicMirror. So I replaced docker-compose.yml by the original file and rebooted again but the screen is still black.<br />
I don’t know much about docker containers. I tried <code>docker exec -it mm bash</code> and it opened as usual.<br />
What else is changed after reboot with the other container?</p>
]]></description><link>https://forum.magicmirror.builders/post/95855</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/95855</guid><dc:creator><![CDATA[Kab]]></dc:creator><pubDate>Fri, 29 Oct 2021 21:59:58 GMT</pubDate></item><item><title><![CDATA[Reply to mmpm connection to MagicMirror failed on Fri, 29 Oct 2021 17:46:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kab" aria-label="Profile: kab">@<bdi>kab</bdi></a></p>
<blockquote>
<p dir="auto">Does anything of this makes sense to you?</p>
</blockquote>
<p dir="auto">not really … never tested this setup.</p>
<p dir="auto">Would try to run with 2 containers, setup <a href="https://gitlab.com/khassel/mmpm#running-magicmirror-and-mmpm-as-docker-container" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>.</p>
<p dir="auto">You have already all the files in <code>~/magicmirror/run/</code> folder, just save the content of <code>docker-compose.yml</code> (only if you changed something) and then <code>cp ~/magicmirror/run/rpi_mmpm.yml ~/magicmirror/run/docker-compose.yml</code> and restart the container.</p>
]]></description><link>https://forum.magicmirror.builders/post/95852</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/95852</guid><dc:creator><![CDATA[karsten13]]></dc:creator><pubDate>Fri, 29 Oct 2021 17:46:50 GMT</pubDate></item><item><title><![CDATA[Reply to mmpm connection to MagicMirror failed on Fri, 29 Oct 2021 11:50:21 GMT]]></title><description><![CDATA[<p dir="auto">Thanks <a class="plugin-mentions-user plugin-mentions-a" href="/user/karsten13" aria-label="Profile: karsten13">@<bdi>karsten13</bdi></a></p>
<h4>MagicMirrorPackageManager</h4>
<p dir="auto">The debug console on the mmpm shows an error that it couldn’t find a favicon and several source map Errors (as Warnings) like :</p>
<pre><code>Source-Map-Fehler: Error: request failed with status 404
Ressourcen-Adresse: http://192.168.2.76:7890/static/assets/monaco/vs/editor/editor.main.js
Source-Map-Adresse: ../../../min-maps/vs/editor/editor.main.js.map
</code></pre>
<p dir="auto">Its also the</p>
<ul>
<li><code>assets/monaco/vs/loader.js</code></li>
<li><code>assets/monaco/vs/editor/editor.main.js</code></li>
<li><code>assets/monaco/vs/editor/editor.main.nls.js</code></li>
<li><code>assets/monaco/vs/base/worker/workerMain.js#editorWorkerService</code></li>
<li><code>assets/monaco/vs/base/worker/workerMain.js#json</code></li>
<li><code>assets/monaco/vs/editor/editor.main.nls.js</code></li>
</ul>
<p dir="auto">with the same Warnings. Plus it complains about the zoom property.</p>
<h4>MagicMirror</h4>
<p dir="auto">On the MagicMirror site it shows</p>
<pre><code>GEThttp://192.168.2.76:8080/modules/mmpm/mmpm.js
[HTTP/1.1 404 Not Found 16ms]

Die Ressource von "http://192.168.2.76:8080/modules/mmpm/mmpm.js" wurde wegen eines MIME-Typ-Konfliktes ("text/html") blockiert (X-Content-Type-Options: nosniff).
192.168.2.76:8080
Error on loading script: modules/mmpm/mmpm.js
onerror http://192.168.2.76:8080/js/loader.js:194
    (Async: EventHandlerNonNull)
    loadFile http://192.168.2.76:8080/js/loader.js:193
    loadModule http://192.168.2.76:8080/js/loader.js:140
    loadNextModule http://192.168.2.76:8080/js/loader.js:27
    loadNextModule http://192.168.2.76:8080/js/loader.js:29
    afterLoad http://192.168.2.76:8080/js/loader.js:130
    bootstrapModule http://192.168.2.76:8080/js/loader.js:166
    loadTranslations http://192.168.2.76:8080/js/module.js:316
    bootstrapModule http://192.168.2.76:8080/js/loader.js:163
    loadNextDependency http://192.168.2.76:8080/js/module.js:296
    loadNextDependency http://192.168.2.76:8080/js/module.js:293
    onload http://192.168.2.76:8080/js/loader.js:210
    (Async: EventHandlerNonNull)
    loadFile http://192.168.2.76:8080/js/loader.js:208
    loadFile http://192.168.2.76:8080/js/loader.js:268
    loadNextDependency http://192.168.2.76:8080/js/module.js:291
    loadDependencies http://192.168.2.76:8080/js/module.js:300
    loadStyles http://192.168.2.76:8080/js/module.js:267
    bootstrapModule http://192.168.2.76:8080/js/loader.js:161
    loadNextDependency http://192.168.2.76:8080/js/module.js:296
    loadNextDependency http://192.168.2.76:8080/js/module.js:293
    loadFile http://192.168.2.76:8080/js/loader.js:245
    loadNextDependency http://192.168.2.76:8080/js/module.js:291
    loadDependencies http://192.168.2.76:8080/js/module.js:300
    loadScripts http://192.168.2.76:8080/js/module.js:276
    bootstrapModule http://192.168.2.76:8080/js/loader.js:159
    afterLoad http://192.168.2.76:8080/js/loader.js:129
    loadModule http://192.168.2.76:8080/js/loader.js:142
    onload http://192.168.2.76:8080/js/loader.js:190
    (Async: EventHandlerNonNull)
    loadFile http://192.168.2.76:8080/js/loader.js:188
    loadModule http://192.168.2.76:8080/js/loader.js:140
    loadNextModule http://192.168.2.76:8080/js/loader.js:27
    loadNextModule http://192.168.2.76:8080/js/loader.js:29
    afterLoad http://192.168.2.76:8080/js/loader.js:130
    bootstrapModule http://192.168.2.76:8080/js/loader.js:166
    loadTranslations http://192.168.2.76:8080/js/module.js:332
    load http://192.168.2.76:8080/js/translator.js:117
    onreadystatechange http://192.168.2.76:8080/js/translator.js:30
    (Async: EventHandlerNonNull)
    loadJSON http://192.168.2.76:8080/js/translator.js:20
    load http://192.168.2.76:8080/js/translator.js:114
    loadTranslations http://192.168.2.76:8080/js/module.js:328
    bootstrapModule http://192.168.2.76:8080/js/loader.js:163
    loadNextDependency http://192.168.2.76:8080/js/module.js:296
</code></pre>
<p dir="auto">and</p>
<pre><code>Template render error: (templates/module.njk) [Line 64, Column 55]
  ReferenceError: version is not defined
    t lib.js:38
    render environment.js:489
    root nunjucks.min.js line 2 &gt; Function:256
    render environment.js:478
    render environment.js:314
    getTemplate environment.js:261
    o environment.js:273
    getSource web-loaders.js:50
    onreadystatechange web-loaders.js:74
module.js:94:11
    getDom module.js:94
    x environment.js:20
    call browser-asap.js:48
    u browser-raw.js:52
</code></pre>
<p dir="auto">Does anything of this makes sense to you?</p>
<p dir="auto">Or can it be the installation procedure? I installed the Docker-based MagicMirrorOS. Do I need to install the mmpm also via the Docker route?</p>
]]></description><link>https://forum.magicmirror.builders/post/95838</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/95838</guid><dc:creator><![CDATA[Kab]]></dc:creator><pubDate>Fri, 29 Oct 2021 11:50:21 GMT</pubDate></item><item><title><![CDATA[Reply to mmpm connection to MagicMirror failed on Thu, 28 Oct 2021 18:31:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kab" aria-label="Profile: kab">@<bdi>kab</bdi></a></p>
<p dir="auto">you should check for errors when loading the GUI in the browser, CTRL+SHIFT+I opens then console.</p>
]]></description><link>https://forum.magicmirror.builders/post/95828</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/95828</guid><dc:creator><![CDATA[karsten13]]></dc:creator><pubDate>Thu, 28 Oct 2021 18:31:18 GMT</pubDate></item></channel></rss>