Nextcloud Android App: Unknown HTTP Error occured!

Nextcloud version (eg, 20.0.5): 26.0.2
Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.04
Apache or nginx version (eg, Apache 2.4.25): nginx 1.25.1
PHP version (eg, 7.4): 8.2.7

The issue you are facing:

I am unable to access Nextcloud from the official Android app. I get an “Unknown HTTP error occured!”. I have installed nextcloud in a bare metal kubernetes environment using the official helm charts. My cluster is kept up to date with Flux CD. Here is my Helm Release for my nextcloud instance. Nextcloud seems to be running fine. I am able to login to the web portal and connect using the desktop files app without issue.

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

Steps to replicate it:

  1. Install nextcloud into kubernetes using helm. See helm release
  2. Try and access Nextcloud server via official android app
  3. “Unknown HTTP Error occured!”

I only see the following logs in my nginx container when I try to login:

10.42.0.88 - - [23/Jun/2023:16:54:07 +0000] "GET /status.php HTTP/1.1" 200 181 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.25.0" "10.0.0.163"
10.42.0.88 - - [23/Jun/2023:16:54:07 +0000] "HEAD /remote.php/dav HTTP/1.1" 401 0 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.25.0" "10.0.0.163"

The output of your Nextcloud log in Admin > Logging:

The only log that looked relevant is this log:

Sabre\DAV\Exception\BadRequest: Expected filesize of 494396411 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 218497024 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.

I recently installed this instance and copied a lot of data into NextCloud via the Windows Files client, so I figured this particular log is dealing with that.

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

PASTE HERE

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

<?php
$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 =>
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'passwordsalt' => '<REDACTED>',
  'secret' => '<REDACTED>',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => '<REDACTED>',
  ),
  'datadirectory' => '/var/www/data',
  'dbtype' => 'pgsql',
  'version' => '26.0.2.1',
  'overwrite.cli.url' => 'http://localhost',
  'dbname' => 'nextcloud',
  'dbhost' => 'postgres-rw.database.svc.cluster.local',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => '<REDACTED>',
  'dbpassword' => '<REDACTED>',
  'installed' => true,
  'instanceid' => 'occmpzfiv3ct',
  'htaccess.RewriteBase' => '/',
  'trusted_proxies' =>
  array (
    0 => '10.0.0.0/8',
    1 => '<REDACTED>',
  ),
  'forwarded_for_headers' =>
  array (
    0 => 'HTTP_X_FORWARDED_FOR',
  ),
  'default_phone_region' => 'US',
  'trashbin_retention_obligation' => 'auto, 30',
  'auth.bruteforce.protection.enabled' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => '<REDACTED>',
  'mail_domain' => '<REDACTED>',
  'mail_smtphost' => '<REDACTED>',
  'mail_smtpport' => '587',
  'mail_smtpauth' => 1,
  'mail_smtpname' => '<REDACTED>',
  'mail_smtppassword' => '<REDACTED>',
);

I’m not sure why this isn’t working. Any help would be greatly appreciated!

What happens if you run curl against it - e.g.curl https://xxx/remote.php/dav?

Sorry, i’ve been out of town. I get a 503 Service Temporarily Unavailable when I curl internally and externally