<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — netdata connection refused after upgrade to iredmail 1.6.3]]></title>
		<link>https://forum.iredmail.org/topic20540-netdata-connection-refused-after-upgrade-to-iredmail-163.html</link>
		<atom:link href="https://forum.iredmail.org/feed-rss-topic20540.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in netdata connection refused after upgrade to iredmail 1.6.3.]]></description>
		<lastBuildDate>Mon, 12 Aug 2024 16:42:40 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: netdata connection refused after upgrade to iredmail 1.6.3]]></title>
			<link>https://forum.iredmail.org/post89274.html#p89274</link>
			<description><![CDATA[<p>I was able to copy a working <a href="http://www.conf">www.conf</a> from /etc/php//7.4/fpm/pool.d/ and web mail is working now. I must have installed the default file during the upgrade.</p>]]></description>
			<author><![CDATA[null@example.com (clarknova)]]></author>
			<pubDate>Mon, 12 Aug 2024 16:42:40 +0000</pubDate>
			<guid>https://forum.iredmail.org/post89274.html#p89274</guid>
		</item>
		<item>
			<title><![CDATA[Re: netdata connection refused after upgrade to iredmail 1.6.3]]></title>
			<link>https://forum.iredmail.org/post89226.html#p89226</link>
			<description><![CDATA[<p>Restarting php-fpm didn&#039;t help. I don&#039;t see that line:<br /></p><div class="codebox"><pre><code># grep listen /etc/php/8.2/fpm/pool.d/www.conf 
; - &#039;listen&#039; (unixsocket)
;   &#039;ip.add.re.ss:port&#039;    - to listen on a TCP socket to a specific IPv4 address on
;   &#039;[ip:6:addr:ess]:port&#039; - to listen on a TCP socket to a specific IPv6 address on
;   &#039;port&#039;                 - to listen on a TCP socket to all addresses
;   &#039;/path/to/unix/socket&#039; - to listen on a unix socket.
listen = /run/php/php8.2-fpm.sock
; Set listen(2) backlog.
;listen.backlog = 511
listen.owner = www-data
listen.group = www-data
;listen.mode = 0660
; When set, listen.owner and listen.group are ignored
;listen.acl_users =
;listen.acl_groups =
; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address
;listen.allowed_clients = 127.0.0.1
;listen.setfib = 1
;   listen queue         - the number of request in the queue of pending
;                          connections (see backlog in listen(2));
;   max listen queue     - the maximum number of requests in the queue
;   listen queue len     - the size of the socket queue of pending connections;
;   listen queue:         0
;   max listen queue:     1
;   listen queue len:     42
;   &#039;ip.add.re.ss:port&#039;    - to listen on a TCP socket to a specific IPv4 address on
;   &#039;[ip:6:addr:ess]:port&#039; - to listen on a TCP socket to a specific IPv6 address on
;   &#039;port&#039;                 - to listen on a TCP socket to all addresses
;   &#039;/path/to/unix/socket&#039; - to listen on a unix socket.
; Default Value: value of the listen option
;pm.status_listen = 127.0.0.1:9001</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (clarknova)]]></author>
			<pubDate>Sat, 03 Aug 2024 05:12:36 +0000</pubDate>
			<guid>https://forum.iredmail.org/post89226.html#p89226</guid>
		</item>
		<item>
			<title><![CDATA[Re: netdata connection refused after upgrade to iredmail 1.6.3]]></title>
			<link>https://forum.iredmail.org/post89223.html#p89223</link>
			<description><![CDATA[<p>Port 9999 is php-fpm. Try to restart it first.<br />If failed, check /etc/php/&lt;VERSION&gt;/fpm/pool.d/www.conf, is it configured to listen on port 9999?<br /></p><div class="codebox"><pre><code>listen = 127.0.0.1:9999</code></pre></div><p>FYI <a href="https://github.com/iredmail/iRedMail/blob/master/samples/php/fpm/pool.d/www.conf">https://github.com/iredmail/iRedMail/bl … d/www.conf</a></p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Sat, 03 Aug 2024 01:59:24 +0000</pubDate>
			<guid>https://forum.iredmail.org/post89223.html#p89223</guid>
		</item>
		<item>
			<title><![CDATA[netdata connection refused after upgrade to iredmail 1.6.3]]></title>
			<link>https://forum.iredmail.org/post89222.html#p89222</link>
			<description><![CDATA[<p>==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====<br />- iRedMail version (check /etc/iredmail-release): 1.6.1<br />- Deployed with iRedMail Easy or the downloadable installer? not sure, just ran upgrade<br />- Linux/BSD distribution name and version: Debian 12.6 bookworm<br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Mariadb<br />- Web server (Apache or Nginx): nginx<br />- Manage mail accounts with iRedAdmin-Pro? no<br />- [IMPORTANT] Related original log or error message is required if you&#039;re experiencing an issue.<br />====</p><p>I followed the tutorial to upgrade from 1.6.1 to 1.6.3. The only error I saw during the upgrade related to iRedAdmin, however iRedAdmin is working. I upgraded to the latest available versions of netdata and Roundcube because the versions listed in the tutorial were not available.</p><p>Now when I attempt to load <a href="https://mail.my.domain">https://mail.my.domain</a> I get an error 502 Bad Gateway. The nginx error.log shows this:</p><div class="codebox"><pre><code>2024/08/02 11:56:15 [error] 701#701: *2 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: mail.my.domain, request: &quot;GET /status?full&amp;json HTTP/1.1&quot;, upstream: &quot;fastcgi://127.0.0.1:9999&quot;, host: &quot;127.0.0.1&quot;

2024/08/02 11:57:00 [error] 701#701: *4 connect() failed (111: Connection refused) while connecting to upstream, client: 104.37.148.71, server: mail.my.domain, request: &quot;GET /mail/?_task=mail&amp;_mbox=INBOX HTTP/2.0&quot;, upstream: &quot;fastcgi://127.0.0.1:9999&quot;, host: &quot;mail.my.domain&quot;, referrer: &quot;[url]https://mail.my.domain/mail/?_task=mail&amp;_mbox=INBOX[/url]&quot;

2024/08/02 11:59:03 [error] 701#701: *11 connect() failed (111: Connection refused) while connecting to upstream, client: 104.37.148.71, server: mail.my.domain, request: &quot;GET /mail/ HTTP/2.0&quot;, upstream: &quot;fastcgi://127.0.0.1:9999&quot;, host: &quot;mail.my.domain&quot;</code></pre></div><p>It looks to me like netdata is refusing connections on port 9999, however netstat shows otherwise:</p><div class="codebox"><pre><code># netstat -lntp|grep 9999
tcp        0      0 127.0.0.1:19999         0.0.0.0:*               LISTEN      580/netdata </code></pre></div><br /><p>/opt/netdata/etc/netdata.conf looks like this:<br /></p><div class="codebox"><pre><code># Get config from [url]http://127.0.0.1[/url]:&lt;netdata_port&gt;/netdata.conf
[registry]
    # Disable public central registry and become registry locally
    enabled = yes

    # Register to internal server instead
    registry to announce = [url]http://127.0.0.1:19999[/url]

[global]
    # The number of entries the netdata daemon will by default keep in memory
    # for each chart dimension. This setting can also be configured per chart.
    history = 172800

    # memory mode
    # - `save` is the default mode, data are maintained in memory and saved to
    #          disk when netdata exits.
    # - `ram` data are exclusively on memory and never saved on disk.
    # - `map` like swap, files are mapped to memory on demand.
    #
    #         WARNING: We suggest not to use this mode on nodes that run other
    #                  applications.
    #
    # - `none` no local database (used when data are streamed to a remote netdata).
    # - `dbengine`: data are in database files.
    #               The Database Engine works like a traditional database.
    memory mode = dbengine

    #
    # dbengine.
    #
    # determines the amount of RAM in MiB that is dedicated to caching netdata
    # metric values themselves.
    page cache size = 32

    # determines the amount of disk space in MiB that is dedicated to storing
    # netdata metric values and all related metadata describing them.
    dbengine disk space = 256

    # Bind to 127.0.0.1 by default.
    bind to = 127.0.0.1
    # Bind to all available network interfaces, but allow access from specified
    # IP addresses or networks.
    #bind to = *
    #allow connections from =

    run as user = netdata
    default port = 19999

    # The frequency in seconds, for data collection.
    update every = 3

    # Log files
    # Nginx logs access log, netdata no need to log it again.
    access log = none
    #error log = syslog
    #debug log = syslog

[plugin:proc]
    # Disable IPVS check since iRedMail doesn&#039;t use ipvs by default
    /proc/net/ip_vs/stats = no

    # inbound packets dropped
    /proc/net/dev = no</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (clarknova)]]></author>
			<pubDate>Fri, 02 Aug 2024 18:10:53 +0000</pubDate>
			<guid>https://forum.iredmail.org/post89222.html#p89222</guid>
		</item>
	</channel>
</rss>
