Android: Malformed server configuration

Created on 24 Feb 2018  Â·  19Comments  Â·  Source: nextcloud/android

I'm able to connect my android device to my nextcloud server. It logs in, and is able to load the top-level folder list. I can view the files on the server.

If I try to make a new folder there, or upload files, I am given the error, "Malformed server configuration".

I can use the web interface, and create folders, and upload files, without any problem.

http://192.168.1.45/remote.php/webdav brings up a htpasswd login box, if I login there, I see:

This is the WebDAV interface. It can only be accessed by WebDAV clients such as the Nextcloud desktop sync client.

http://192.168.1.45/status.php shows me:

{"installed":true,"maintenance":false,"needsDbUpgrade":false,"version":"13.0.0.14","versionstring":"13.0.0","edition":"","productname":"Nextcloud"}

Expected behaviour

It should properly create folders and files

Environment data

Android version: 7.1.2

Device model: SM-T700

Stock or customized system: LineageOS

Nextcloud app version: 3.0.1

Nextcloud server version: 13.0

Logs

Web server error log

192.168.1.47 - micah [24/Feb/2018:09:48:56 -0500] "MKCOL /remote.php/webdav/Foo/ HTTP/1.1" 500 211 "-" "Mozilla/5.0 (Android) ownCloud-android/3.0.1"

Nextcloud log (data/nextcloud.log)

I'm having trouble finding this file

bug

Most helpful comment

I'm getting the same error with a Docker setup.

All 19 comments

in the config.php file under

'trusted_domains' =>
  array (
    0 => 'www.example.com,
1 => '192.168.1.45',
  ),
did you enter local ip is public ip?

tigernero79 notifications@github.com writes:

in the config.php file under

'trusted_domains' =>
  array (
    0 => 'www.example.com,
1 => '192.168.1.45',
  ),
did you enter local ip is public ip?

no, my nextcloud server is on a local, non-public network.

This request did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

Hi, I am facing the same exact issue. Can perfectly reach my NC via browser and upload/download with no issue. But when I do this via my Android phone, I get the "Malformed server configuration" problem

I am now facing this issue as well. NC Android reported "Malformed server configuration". NC Web works just fine. NC via WebDAV works just fine.
I have touched no configuration files in months, although the Snap I installed NC from has updated a few times.

This started happening for me today as well.

I've also begun to get this. Autoupload seems to work generally, it's large videos that fail, but with no obvious failure log. Here is access.log for the attempts

IP - - [02/Apr/2020:12:33:10 +0200] "GET /index.php/204 HTTP/1.1" 204 1370 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.11.0"
IP - - [02/Apr/2020:12:33:10 +0200] "GET /index.php/204 HTTP/1.1" 204 1364 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.11.0"
IP - - [02/Apr/2020:12:33:11 +0200] "GET /index.php/204 HTTP/1.1" 204 1364 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.11.0"
IP - user [02/Apr/2020:12:33:11 +0200] "HEAD /remote.php/webdav/Photos/Camera%20Uploads/2020/04/VID_20200401_200509.mp4 HTTP/1.1" 404 729 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.11.0"
IP - user [02/Apr/2020:12:33:11 +0200] "MKCOL /remote.php/dav/uploads/giardino/78b5d53b59e3b75cfe5100fda851e6cd HTTP/1.1" 405 954 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.11.0"
IP - user [02/Apr/2020:12:33:11 +0200] "PROPFIND /remote.php/dav/uploads/giardino/78b5d53b59e3b75cfe5100fda851e6cd HTTP/1.1" 500 1208 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.11.0"

I try to connect on Android my Threema Safe Backup (no large files involved, just a connectivity test), with the error message "malformed server response" on my NC 18.0.3.
Connecting via Windows Explorer work fine.
But curl in windows says:

Sabre\DAV\Exception\NotAuthenticated No public access to this resource., No 'Authorization: Bearer' header found. Either the client didn't send one, or the server is mis-configured, No 'Authorization: Basic' header found. Either the client didn't send one, or the server is misconfigured

access.log:

xxx.xxx.xxx.xxx - root [02/Apr/2020:12:52:02 +0000] "GET /nextcloud/remote.php/dav/files/root/Dokumente/threema_safe_rob/config HTTP/1.0" 200 1565 "-" "Threema"

I'm getting the same error with a Docker setup.

Also getting the issue as of today. Have Nextcloud installed in Docker also.

Same error as everyone else. manual install on a raspi, I can use generally, but auto upload fails and the android client shows this malformed server configuration (Configuration Serveur Erronée in french). Failed uploads end up in the "try again zone" with unknown errors. Happens both with videos and pics.
App version 3.11.0 on lineage+microg, srever 18.0.3.0
Adding the public IPs (including v6) does not help.
I get a log error:

    OCP\Files\NotFoundException: /photos/files/1ce39e4e8e2816d35eebd98b2b80941a/0000000000000000-0000000001023999
    /home/pi/nextcloud/lib/private/Files/Node/Folder.php - line 137:    OC\Files\Node\Root->get()
    /home/pi/nextcloud/apps/dav/lib/Connector/Sabre/SharesPlugin.php - line 157:    OC\Files\Node\Folder->get()
    /home/pi/nextcloud/apps/dav/lib/Connector/Sabre/SharesPlugin.php - line 210:    OCA\DAV\Connector\Sabre\SharesPlugin->getShares()
    /home/pi/nextcloud/3rdparty/sabre/dav/lib/DAV/PropFind.php - line 98:    OCA\DAV\Connector\Sabre\SharesPlugin->OCA\DAV\Connector\Sabre\{closure}("*** sensiti ... *")
    /home/pi/nextcloud/apps/dav/lib/Connector/Sabre/SharesPlugin.php - line 213:    Sabre\DAV\PropFind->handle()
    <<closure>>    OCA\DAV\Connector\Sabre\SharesPlugin->handleGetProperties()
    /home/pi/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105:    call_user_func_array()
    /home/pi/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1059:    Sabre\Event\EventEmitter->emit()
    /home/pi/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 981:    Sabre\DAV\Server->getPropertiesByNode()
    /home/pi/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1666:    Sabre\DAV\Server->getPropertiesIteratorForPath()
    /home/pi/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 355:    Sabre\DAV\Server->generateMultiStatus()
    <<closure>>    Sabre\DAV\CorePlugin->httpPropFind()
    /home/pi/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105:    call_user_func_array()
    /home/pi/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 479:    Sabre\Event\EventEmitter->emit()
    /home/pi/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254:    Sabre\DAV\Server->invokeMethod()
    /home/pi/nextcloud/apps/dav/lib/Server.php - line 319:    Sabre\DAV\Server->exec()
    /home/pi/nextcloud/apps/dav/appinfo/v2/remote.php - line 35:    OCA\DAV\Server->exec()
    /home/pi/nextcloud/remote.php - line 165:    require_once("/home/pi/ne ... p")

This happens when the auto-upload fails.

The path '/photos/files/1ce39e4e8e2816d35eebd98b2b80941a/0000000000000000-0000000001023999' does not makes any sense.

Oh wow, I thought this was just me, hopefully someone from the team can look into this soon

Update: I can no longer reproduce this as my Nextcloud instance on Snap auto-updated.

Note: I could get my failed files sent by RE-sending them manually, one by one. But the auto-upload was no happy with the existing entries, that kept failing in a loop. I had to remove them from the list.

The Malformed server configuration is still present but did not prevent upload. I susped there are different issues here.

I can confirm manually uploading works but auto upload complains of the
Malformed Server Configuration.

On Thu, 9 Apr 2020, 16:08 f4grx, notifications@github.com wrote:

Note: I could get my failed files sent by RE-sending them manually, one by
one. But the auto-upload was no happy with the existing entries, that kept
failing in a loop. I had to remove them from the list.

The Malformed server configuration is still present but did not prevent
upload. I susped there are different issues here.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/nextcloud/android/issues/2227#issuecomment-611580318,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABBTB3CIEBGD5YGWCAVRFB3RLXQH3ANCNFSM4ESHVLWA
.

Also having the same problem. Malformed server configuration on Android
Nextcloud 18.0.3
PHP 7.3.13
CentOS 7

I just recently updated NC to v18.0.3
Not sure but have the feeling it started after that update.

I can confirm upload issues: some files are successfully uploaded while others keep failing with "Unbekannter Fehler" (unknown error). The notification says "Fehlerhafte Serverkonfiguration" (Malformed server configuration)

NC 18.0.3
PHP 7.3
Apache2
Ubuntu 18.04

I have the same. See my comment here: https://github.com/nextcloud/android/issues/5459#issuecomment-612670096

Let us track this all in #5459

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tobiasKaminsky picture tobiasKaminsky  Â·  3Comments

ezaquarii picture ezaquarii  Â·  3Comments

tobiasKaminsky picture tobiasKaminsky  Â·  3Comments

JSoko picture JSoko  Â·  3Comments

AndyScherzinger picture AndyScherzinger  Â·  3Comments