<?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[Intermittent &#96;localhost err_connection_refused&#96; error on browser]]></title><description><![CDATA[<p dir="auto">Hello!<br />
I know there are many articles addressing this already, but I haven’t found one to work yet so hoping someone can shed new light.</p>
<p dir="auto">MM 2.7.0 on an RaspberryPi Zero W and chromium</p>
<p dir="auto">MM was working after initial setup, I was tweaking modules just to get my initial layout all set (occasionally getting the “please use a config.js” message, fixing my js then it worked again…<br />
So now the issue:<br />
Twice now after <code>pm2 restart mmrestart</code> from just changing config.js I get the browser page that the <code>Site can't be reached... localhost refused to connect</code></p>
<p dir="auto">1st time it happened I started going back through the whole setup again doing npm install, etc and nothing worked. I was just about to burn the whole thing down when…<br />
Finally after one more <code>sudo reboot</code> after no changes… it just worked.<br />
This time, it’s not coming back yet.</p>
<p dir="auto"><code> tail -n 50 ~/.pm2/logs/mmstart-out.log:</code></p>
<pre><code>wm_set_cursor_visibility: visible using XCreateFontCursor
Starting MagicMirror: v2.7.1
Loading config ...
Loading module helpers ...
No helper found for module: alert.
Initializing new module helper ...
Module helper loaded: updatenotification
No helper found for module: clock.
Initializing new module helper ...
Module helper loaded: MMM-CalendarExt
Loading module helpers ...
No helper found for module: alert.
Initializing new module helper ...
Module helper loaded: updatenotification
No helper found for module: clock.
Initializing new module helper ...
Module helper loaded: MMM-CalendarExt
Whoops! There was an uncaught exception...
MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
wm_set_cursor_visibility: visible using XCreateFontCursor
Starting MagicMirror: v2.7.1
Loading config ...
Loading module helpers ...
No helper found for module: alert.
Initializing new module helper ...
Module helper loaded: updatenotification
No helper found for module: clock.
Initializing new module helper ...
Module helper loaded: MMM-CalendarExt
Loading module helpers ...
No helper found for module: alert.
Initializing new module helper ...
Module helper loaded: updatenotification
No helper found for module: clock.
Initializing new module helper ...
Module helper loaded: MMM-CalendarExt
Whoops! There was an uncaught exception...
MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
</code></pre>
<p dir="auto"><code>nmap -A -T4 localhost:</code></p>
<pre><code>Starting Nmap 7.40 ( https://nmap.org ) at 2019-04-24 06:55 EDT
Nmap scan report for localhost (127.0.0.1)
Host is up (0.0021s latency).
Other addresses for localhost (not scanned): ::1
Not shown: 998 closed ports
PORT    STATE SERVICE VERSION
22/tcp  open  ssh     (protocol 2.0)
| fingerprint-strings:
|   NULL:
|_    SSH-2.0-OpenSSH_7.4p1 Raspbian-10+deb9u4
| ssh-hostkey:
|   2048 66:12:9f:31:9f:17:1c:07:1e:f4:73:e5:66:95:ea:1a (RSA)
|_  256 17:08:1d:39:a9:ff:3f:1d:5a:66:c7:2a:e6:36:78:5f (ECDSA)
111/tcp open  rpcbind 2-4 (RPC #100000)
| rpcinfo:
|   program version   port/proto  service
|   100000  2,3,4        111/tcp  rpcbind
|_  100000  2,3,4        111/udp  rpcbind
1 service unrecognized despite returning data. If you know the service/version, please submit the following fingerprint at https://nmap.org/cgi-bin/submit.cgi?new-service :
SF-Port22-TCP:V=7.40%I=7%D=4/24%Time=5CC040A8%P=arm-unknown-linux-gnueabih
SF:f%r(NULL,29,"SSH-2\.0-OpenSSH_7\.4p1\x20Raspbian-10\+deb9u4\n");

Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 23.12 seconds
</code></pre>
<p dir="auto"><code>/etc/hosts/:</code></p>
<pre><code>127.0.0.1       localhost
::1             localhost ip6-localhost ip6-loopback
ff02::1         ip6-allnodes
ff02::2         ip6-allrouters

127.0.1.1       juddpi
</code></pre>
<p dir="auto"><code>sudo iptables -L --verbose:</code></p>
<pre><code>Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination
</code></pre>
<p dir="auto">Any help is greatly appreciated.<br />
Thanks, all!</p>
]]></description><link>https://forum.magicmirror.builders/topic/10342/intermittent-localhost-err_connection_refused-error-on-browser</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 05:46:31 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/10342.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 24 Apr 2019 11:02:27 GMT</pubDate><ttl>60</ttl></channel></rss>