View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0006244 | SOGo | with SOGo | public | 2026-09-03 11:37 | 2026-09-03 18:53 |
| Reporter | nordlead | Assigned To | qhivert | ||
| Priority | urgent | Severity | block | Reproducibility | always |
| Status | assigned | Resolution | open | ||
| Product Version | 5.12.10 | ||||
| Summary | 0006244: Possible SQL connection leak/regression in SOGo/SOPE 5.12.10 | ||||
| Description | SummaryAfter upgrading SOGo and SOPE from version 5.12.9 to 5.12.10, idle MariaDB connections opened by The connection count does not appear to return to a small stable pool. It can eventually reach MariaDB's Using the same configuration, database, workload and number of workers, downgrading SOGo and SOPE to 5.12.9 restores the previous behaviour: unused SQL connections are released and the number of connections remains stable. All customer names, domains, addresses, credentials and public IP addresses have been replaced or omitted from this report. Environment
Both versions were tested with the same SOGo configuration, MariaDB configuration, worker count and normal client workload. Relevant SOGo configurationSensitive values have been replaced with placeholders.
An additional SQL user source reads account information from a view in another database. Its database name, table/view name, domain and credentials have been omitted. Relevant MariaDB configurationThe following MariaDB settings were identical during both tests:
Symptoms with SOGo/SOPE 5.12.10With version 5.12.10, idle MariaDB connections belonging to the The connections appeared in
Example measurements:
The number therefore increased from 15 to 58 idle connections in approximately 45 minutes. During the measurements, MariaDB showed very little active work:
This suggests that the connections were not caused by blocked or long-running queries. Most connections were sleeping. Production impactDuring an earlier occurrence, the progressive accumulation eventually reached MariaDB's connection limit. MariaDB then logged errors similar to:
At the same time:
The container health check could still report SOGo as healthy because a simple unauthenticated HTTP request continued to receive a response, while authenticated DAV operations failed because no SQL connection was available. Restarting SOGo or MariaDB temporarily restored service, but the connections began accumulating again with version 5.12.10. Comparison with SOGo/SOPE 5.12.9SOGo and SOPE were rebuilt from the 5.12.9 tags. Only the SOGo container was recreated. MariaDB was not restarted, and its configuration was not changed. The SOGo container reported:
The process tree contained:
All workers had the same parent process and the same start time. No container or worker restart occurred during the following measurements. Results with version 5.12.9:
After an initial reduction from 14 connections, the SOGo connection count remained between approximately five and nine connections for more than 30 minutes under normal activity. At the end of this observation:
The increase previously seen in Interpretation of MariaDB TIMEFor a connection in the Some individual connections remained idle for more than 1,800 seconds with version 5.12.9. This is not itself considered abnormal because the total number of connections remained small and bounded. The significant difference is the connection-count behaviour:
The MariaDB With 5.12.9, most unused connections were released after approximately five minutes, well before the MariaDB timeout. With 5.12.10, the number continued increasing while older idle connections remained present. Database monitoring queryThe same query was used for both versions:
Global MariaDB status was monitored using:
Expected behaviourSQL connections opened by a fixed number of Actual behaviourWith SOGo/SOPE 5.12.10, idle SQL connections progressively accumulate. During a previous occurrence, they contributed to exhaustion of MariaDB's connection limit and caused DAV requests to fail. With SOGo/SOPE 5.12.9, using the same configuration and ten workers, the SQL connection count quickly decreases and remains bounded at approximately five to nine connections. Steps to reproduce
Possible affected componentThe issue may be related to SQL channel retention, reuse or cleanup in SOGo/SOPE 5.12.10, possibly in the GCS channel manager or MySQL/MariaDB channel implementation. QuestionsCould you please confirm:
Complete sanitized configuration files, longer monitoring data and debug logs can be provided if required. | ||||
| Tags | No tags attached. | ||||
|
Hello, thanks for reporting. I think it comes from this commit -> https://github.com/Alinto/sogo/commit/78807d01aee9195b95e2ed21344f260aadb2faef |
|
|
Thank you for your feedback; I hope this helps. |
|
|
I don't manage to reproduce the problem (even with caldav requests). However I've made a potential fix here -> https://github.com/Alinto/sogo/commit/152f44b90e08013b5c132473a2de249682d997df Would you be able to test the next nightly with it? |
|
I applied the patch you released.
|
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-09-03 11:37 | nordlead | New Issue | |
| 2026-09-03 11:55 | qhivert | Note Added: 0018537 | |
| 2026-09-03 11:55 | qhivert | Assigned To | => qhivert |
| 2026-09-03 11:55 | qhivert | Status | new => assigned |
| 2026-09-03 11:59 | nordlead | Note Added: 0018538 | |
| 2026-09-03 15:13 | qhivert | Note Added: 0018540 | |
| 2026-09-03 15:13 | qhivert | Status | assigned => feedback |
| 2026-09-03 18:53 | nordlead | Note Added: 0018541 | |
| 2026-09-03 18:53 | nordlead | Status | feedback => assigned |