-
-
Notifications
You must be signed in to change notification settings - Fork 983
Description
Expected behaviour
Not to use much battery when not using the phone at all.
Actual behaviour
Extremely high battery drain when not using the phone.
The iOS battery info shows that the Nextcloud app ran in the background and also drained the battery a lot (Scroll to end of the post for a screenshot).
Auto upload and background app refresh are turned off but I think I enabled the iOS files integration.
Might be related to #1005
Steps to reproduce
Unknown but this happened on my iPhone and iPad. This might help:
Apache access log shows 139,222 entries (counted at 23.30) originating from my IP with this text in one day:
"DELETE /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications/39 HTTP/1.1" 200 5346 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/2.25.0"
And the Nextcloud log also shows this several times. Database max connections are set to 100.
[PHP] Error: Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occurred in driver: SQLSTATE[08006] [7] FATAL: remaining connection slots are reserved for non-replication superuser connections at /var/www/nextcloud/lib/private/DB/Connection.php#64
DELETE /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications/39
from [IP WITHHELD] at 2019-12-01T22:20:59+00:00
iOS version
13.2.3
App version
2.25.0
Server configuration
Operating system:
Debian 10
Web server:
2.4.38
Database:
PostgreSQL 11.6
PHP version:
7.2
Nextcloud version: (see Nextcloud admin page)
17.0.1
