[Bug]: Anomalous increase in attempts to update last activity/check #35506
Labels
0. Needs triage
Pending check for reproducibility or if it fits our roadmap
25-feedback
bug
feature: authentication
needs info
performance 🚀
stale
Ticket or PR with no recent activity
Bug description
I am running a PHPFPM+NGINX+NextCloud on a NixOS machine.
I am seeing anomalous increases in attempts from NextCloud to update last activity/check in PostgreSQL database that result in resource exhaustion and potentially deadlocks, see attached logs:
These processes seems to be PHPFPM spawning more and more children due to frontend sending more and more requests.
I do not really know if this is my bad of having PHPFPM going too far, it looks strange to me that backend is trying so much to update and not doing any kind of rate-limiting on this.
Steps to reproduce
Expected behavior
NextCloud should rate-limit last act/check updates to prevent locking deadlocks/exhaustion.
Installation method
Other Community project
Operating system
Other
PHP engine version
PHP 8.1
Web server
Nginx
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
Updated to a major version (ex. 22.2.3 to 23.0.1)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
We have distro-level patch on the integrity-failed files: NixOS/nixpkgs#192400 — see the patches here: https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/nextcloud/0001-Setup-remove-custom-dbuser-creation-behavior.patch
The text was updated successfully, but these errors were encountered: