nextcloud / nextcloud/server

[Bug]: Unknown error - NextCloud collapses Too many connection - MYSQL queries are not completed

Open
#44,411 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage 28-feedback bug feature: authentication feature: database performance 🚀
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

⚠️ This issue respects the following points: ⚠️
Bug description

We have a simple Nextcloud installation with 60 users. The cloud collapses after an unknown amount of time.
After consulting in the forum, we were able to narrow down the errors to the OCS-API.
The API creates entries in the oc_authtoken table.
Shortly before the server collapsed I was able to take the screenshot.
The processes are not terminated. Please check this error.
I would be happy to provide you with any further information.
The person who wrote his own API couldn't explain to me what he does/queries.

Steps to reproduce

NextcloudKunde

Expected behavior

The cloud is gradually becoming slower and working is no longer possible. We increased the MYSQL processes to 1000, but that wasn't the solution.

Installation method

Other Community project

Nextcloud Server version

28

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Updated from a MINOR version (ex. 22.1 to 22.2)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?
  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other
Configuration report
I am not allowed to make log files publicly available due to data protection regulations.
List of activated Apps
I am not allowed to make log files publicly available due to data protection regulations.
Nextcloud Signing status
No errors have been found.
Nextcloud Logs
I am not allowed to make log files publicly available due to data protection regulations.
Additional info

Please see my entry from the help forum:
https://help.nextcloud.com/t/unbekannter-fehler-cloud-bricht-zusammen-too-many-connection/185571

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked forum entry and the OCS-API behavior that creates rows in the oc_authtoken table; review the reported MariaDB connection exhaustion and the available reproduction details. Done means identifying a reproducible cause and a concrete fix, or documenting the missing logs and information needed to continue the investigation.

Written by the indexing model from the issue text.

Assessment

Tech stack
mariadb, php
Domain
api, backend, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.