Android app constantly reports "too many connections"

Hello,…

We have a Nextcloud installation with about 70 users, so far everything is okay on the server, BUT if the customer wants to log in with the tablet, eg because he is on the road,… then comes after a short time that “too many connections” are and then a further work is not possible?

Is this an app problem or from the cloud installation and what and how can we do to eliminate the problem?

Hi @Noxxer,
You are missing the required support template. Please fill this form out and edit into your post.

This will give us the technical info and logs needed to help you! Thanks.

Further on I like to point out that the forum consists of volounteers and is aming towards homeusers first and foremost. With an installation for 70 users you’re clearly beyond the status of “homeuser” :wink: So it would only be fair if you’d apply for paid support at Nextcloud Inc, which would give THEM the opportunity to hire more devs to improve the code.

And by mentioning that: of course your don’t need to apply for a personal quote from NC. But you need to deal with free “support” here on the forum instead. :wink:

sorry, I did not know so, I’ll make up for it immediately… I have asked for paid support, but have not yet received an answer, I just wanted to see if someone else has such a problem or whether we can first find out whether it is the APP or the installation on the server is…

The solution I would then also share here, so that then all have what of it, even if I have acquired this through the paid support.

Support intro

Nextcloud version (eg, 20.0.5): Nextcloud Hub II (23.0.3)
Operating system and version (eg, Ubuntu 20.04): Managed Server - Mittwald
Apache or nginx version (eg, Apache 2.4.25): AĂĽache
PHP version (eg, 7.4): 7.4

The issue you are facing:

Is this the first time you’ve seen this error? NO:

Steps to replicate it: You log into the cloud with the Android app and after a short time you receive this error…

The output of your Nextcloud log in Admin > Logging:

{"reqId":"SvJUSPZIf8ZTi2ZKkftX","level":3,"time":"2022-04-26T10:15:52+00:00","remoteAddr":"24.134.63.81","user":"Verwaltung","app":"no app in context","method":"PUT","url":"/remote.php/webdav/xxx.pdf","message":"Erwartete Dateigröße von 624983 bytes, aber 122880 bytes gelesen (vom Nextcloud-Client) und geschrieben (in den Nextcloud-Speicher). Dies kann entweder ein Netzwerkproblem auf der sendenden Seite oder ein Problem beim Schreiben in den Speicher auf der Serverseite sein.","userAgent":"--","version":"23.0.3.2","exception":{"Exception":"Sabre\\DAV\\Exception\\BadRequest","Message":"Erwartete Dateigröße von 624983 bytes, aber 122880 bytes gelesen (vom Nextcloud-Client) und geschrieben (in den Nextcloud-Speicher). Dies kann entweder ein Netzwerkproblem auf der sendenden Seite oder ein Problem beim Schreiben in den Speicher auf der Serverseite sein.","Code":0,"Trace":[{"file":"/html/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":155,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1098,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->"},{"file":"/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/html/nextcloud/apps/dav/appinfo/v1/webdav.php","line":83,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/html/nextcloud/remote.php","line":166,"args":["/html/nextcloud/apps/dav/appinfo/v1/webdav.php"],"function":"require_once"}],"File":"/html/nextcloud/apps/dav/lib/Connector/Sabre/File.php","Line":267,"CustomMessage":"--"},"id":"6267c8103914f"}

and:

{"reqId":"WeXRnKefqzqwXCy6bybr","level":2,"time":"2022-04-26T10:15:30+00:00","remoteAddr":"24.134.63.81","user":"--","app":"core","method":"PROPFIND","url":"/remote.php/dav/files/username//xxx/","message":"Login failed: 'username' (Remote IP: '111111')","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.19.1","version":"23.0.3.2","id":"6267c81039197"}

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'passwordsalt' => 'HKZXdr+T13RseZVsEtLen0EYhdjcY+',
  'secret' => 'GE32tIjIo3Ad0saT6vFzlNNTLYvvvCd3F6K3ylcb+stkGrW2',
  'trusted_domains' => 
  array (
    0 => 'cloud.seniorenhelfer-sachsen.de',
  ),
  'datadirectory' => '/html/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '23.0.3.2',
  'overwrite.cli.url' => 'https://xxx.de/',
  'dbname' => 'xxx',
  'dbhost' => 'xxx',
  'dbport' => '',
  'dbtableprefix' => 'xxxc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'xx',
  'dbpassword' => ':)',
  'installed' => true,
  'default_language' => 'de',
  'default_locale' => 'de_DE',
  'force_language' => 'de',
  'instanceid' => 'ocdej3li5a2t',
  'htaccess.RewriteBase' => '/',
  'default_phone_region' => 'DE',
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'tls',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'xxx',
  'mail_domain' => 'xxxx',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'xxx',
  'mail_smtpport' => '25',
  'mail_smtpname' => 'xxxxx',
  'mail_smtppassword' => 'xxx',
  'check_for_working_wellknown_setup' => false,
  'maintenance' => false,
  'memcache.local' => '\\OC\\Memcache\\APCu',
);

The output of your Apache/nginx/system log in /var/log/____:

[26-Apr-2022 10:14:30] NOTICE: fpm is running, pid 11179
[26-Apr-2022 10:14:30] NOTICE: ready to handle connections
[26-Apr-2022 10:14:37] NOTICE: Finishing ...
[26-Apr-2022 10:14:37] NOTICE: exiting, bye-bye!