**Environment:** Carbonio CE, single server, Ubuntu 24.04.
Seen with carbonio-proxy 4.11.0 + carbonio-memcached 1.6.40 and still present after the upgrade to
carbonio-proxy 4.14.11 + carbonio-memcached 1.6.45 + carbonio-nginx 1.30.3.
**Symptom:** after the upgrade, nginx.log shows about 100 errors per hour:
[error] memcached returns unrecognized response, chomp all 295 bytes in buffer: HTTP/1.1 400 Bad Request
[info] client sent invalid method while reading client request line, client: 127.0.0.1,
server: <hostname>, request: "get 5efac243...c150674"
Before the upgrade the problem was already there, only quieter (info/notice level, ~30 000 lines/day):
[notice] reconnect to memcached channel 127.78.0.1:20014 (rc: -2)
[info] client closed connection while SSL handshaking, client: 127.0.0.1, server: 0.0.0.0:443
[info] client timed out (110: Connection timed out) while SSL handshaking, client: 127.0.0.1, server: 0.0.0.0:443
[notice] memcached channel:127.78.0.1:20014 orderly shutdown
[notice] memcached channel:127.78.0.1:20014 down, reconnect after:60000 ms
**Cause:** `/etc/zextras/service-discover/carbonio-memcached.hcl` (shipped by the package, unmodified,
`dpkg -V` clean) registers the service on port 443. Its health check uses 11211:
services {
check {
tcp = "127.0.0.1:11211"
timeout = "1s"
interval = "5s"
}
connect {
sidecar_service { }
}
name = "carbonio-memcached"
port = 443 # <----- should be 11211
}
nginx (`nginx.conf.memcache.template`, mesh upstream added in carbonio-proxy #202, CF-1592) sends memcache
requests to `127.78.0.1:20014`. That is the proxy sidecar's upstream for `carbonio-memcached`.
The memcached sidecar then forwards them to `local_app` 127.0.0.1:443, which is nginx itself.
Envoy admin `/clusters` on the memcached sidecar shows `local_app::127.0.0.1:443::cx_total::8573`.
**Expected:** `port = 11211` in carbonio-memcached.hcl.
**Side note:** the template comment says "First connect to the local instance, if that fails, connect via
service mesh". But nginx queries the mesh server regularly while the local memcached on 127.0.0.1:11211
is healthy. With the wrong port, part of the lookups therefore never get cached.
**Probably the same issue on the forum:** nginx.log excerpts with the same pattern (memcached channel 20014 +
SSL handshake failures from 127.0.0.1 to :443), not diagnosed there:
- https://community.zextras.com/forum/carbonio-setup/25-12-to-26-3-upgrade-errors-and-fixes-attempted-ios-imap-broken-3/#post-12102 (26.3, March 2026)
- https://community.zextras.com/forum/carbonio-general-thread/carbonio-25-12-web-access-problems-still/paged/4/#post-12139 (26.3, March 2026)
- https://community.zextras.com/forum/carbonio-news/carbonio-community-edition-new-release/paged/23/#post-12563 (26.6, July 2026)
**Workaround:** remove `servers 127.78.0.1:20014;` from the memcache template via `templates_custom`
(works on single-server installs). Fixing the port in the .hcl gets overwritten on the next upgrade,
because the file is not a conffile.
