Upload error message: faulty server configuration

Hey everyone!

For some pictures that the android app 3.11 tries to upload to my server 18.0.3 I get the error message: faulty server configuration (German Fehlerhafte Serverkonfiguration). It does neither work automatically nor manually.

What does that error message mean?

Other pictures are uploaded without problems.

Since the latest update for the nextcloud app on android (3.11.0) (26th march) I have the same problem while auto uploading pictures. If I take a couple of pictures in a row, some of them are uploaded correctly others fail with the already mentioned error message (faulty server configuration (Fehlerhafte Serverkonfiguration)).

I updated the nextcloud server from 18.0.1 to 18.0.3, both versions behave the same.

While auto upload the server responds with HTTP 405 to mkcol and HTTP 500 to PROPFIND.
Here are the logs for a failed upload:

Web server log:

ipv4, ipv4 - username [09/Apr/2020:17:48:51 +0000] "MKCOL /remote.php/dav/uploads/username/1efa0ed3d391bfa0d37ab7cbf0855eeb HTTP/1.1" 405 258 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.11.0"
ipv4, ipv4 - username [09/Apr/2020:17:48:52 +0000] "PROPFIND /remote.php/dav/uploads/username/1efa0ed3d391bfa0d37ab7cbf0855eeb HTTP/1.1" 500 284 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.11.0"

NextCloud log:

{"reqId":"Bk1Fh6UriYYuQZNpb1dC","level":4,"time":"2020-04-09T17:48:52+00:00","remoteAddr":"ipv4","user":"username","app":"webdav","method":"PROPFIND","url":"/remote.php/dav/uploads/username/1efa0ed3d391bfa0d37ab7cbf0855eeb","message":{"Exception":"OCP\\Files\\NotFoundException","Message":"/username/files/1efa0ed3d391bfa0d37ab7cbf0855eeb/0000000000000000-0000000008816479","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/Node/Folder.php","line":137,"function":"get","class":"OC\\Files\\Node\\Root","type":"->","args":["/username/files/1efa0ed3d391bfa0d37ab7cbf0855eeb/0000000000000000-0000000008816479"]},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/SharesPlugin.php","line":157,"function":"get","class":"OC\\Files\\Node\\Folder","type":"->","args":["/1efa0ed3d391bfa0d37ab7cbf0855eeb/0000000000000000-0000000008816479"]},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/SharesPlugin.php","line":210,"function":"getShares","class":"OCA\\DAV\\Connector\\Sabre\\SharesPlugin","type":"->","args":[{"__class__":"OCA\\DAV\\Connector\\Sabre\\File"}]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/PropFind.php","line":98,"function":"OCA\\DAV\\Connector\\Sabre\\{closure}","class":"OCA\\DAV\\Connector\\Sabre\\SharesPlugin","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/SharesPlugin.php","line":213,"function":"handle","class":"Sabre\\DAV\\PropFind","type":"->","args":["{http://nextcloud.org/ns}sharees",{"__class__":"Closure"}]},{"function":"handleGetProperties","class":"OCA\\DAV\\Connector\\Sabre\\SharesPlugin","type":"->","args":[{"__class__":"Sabre\\DAV\\PropFind"},{"__class__":"OCA\\DAV\\Connector\\Sabre\\File"}]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php","line":105,"function":"call_user_func_array","args":[[{"__class__":"OCA\\DAV\\Connector\\Sabre\\SharesPlugin"},"handleGetProperties"],[{"__class__":"Sabre\\DAV\\PropFind"},{"__class__":"OCA\\DAV\\Connector\\Sabre\\File"}]]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1059,"function":"emit","class":"Sabre\\Event\\EventEmitter","type":"->","args":["propFind",[{"__class__":"Sabre\\DAV\\PropFind"},{"__class__":"OCA\\DAV\\Connector\\Sabre\\File"}]]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":981,"function":"getPropertiesByNode","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\DAV\\PropFind"},{"__class__":"OCA\\DAV\\Connector\\Sabre\\File"}]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1666,"function":"getPropertiesIteratorForPath","class":"Sabre\\DAV\\Server","type":"->","args":["uploads/username/1efa0ed3d391bfa0d37ab7cbf0855eeb",["{DAV:}creationdate","{DAV:}getetag","{http://owncloud.org/ns}permissions","{DAV:}getlastmodified","{http://owncloud.org/ns}id","{DAV:}getcontentlength","{http://owncloud.org/ns}favorite","{DAV:}resourcetype","{http://nextcloud.org/ns}sharees","{DAV:}displayname","{DAV:}getcontenttype","{http://nextcloud.org/ns}has-preview","{http://owncloud.org/ns}size"],1]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":355,"function":"generateMultiStatus","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Generator"},false]},{"function":"httpPropFind","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"absoluteUrl":"https://hostname.domain.tld/remote.php/dav/uploads/username/1efa0ed3d391bfa0d37ab7cbf0855eeb","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php","line":105,"function":"call_user_func_array","args":[[{"__class__":"Sabre\\DAV\\CorePlugin"},"httpPropFind"],[{"absoluteUrl":"https://hostname.domain.tld/remote.php/dav/uploads/username/1efa0ed3d391bfa0d37ab7cbf0855eeb","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":479,"function":"emit","class":"Sabre\\Event\\EventEmitter","type":"->","args":["method:PROPFIND",[{"absoluteUrl":"https://hostname.domain.tld/remote.php/dav/uploads/username/1efa0ed3d391bfa0d37ab7cbf0855eeb","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":254,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"absoluteUrl":"https://hostname.domain.tld/remote.php/dav/uploads/username/1efa0ed3d391bfa0d37ab7cbf0855eeb","__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":319,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/nextcloud/remote.php","line":165,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Files/Node/Root.php","Line":203,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.11.0","version":"18.0.3.0"}

I’m not yet sure which component is responsible for the HTTP 405, could be php-fpm, nginx or nextcloud. I’m trying to find out more.

Hi again, I couldn’t find any more details in the logs, so I manually downgraded to the previous version of the nextcloud android app from https://github.com/nextcloud/android/releases/tag/stable-3.10.1 and with this version the auto upload works without any problems.

Hi, with the lastest Version of the app releases yesterday (3.11.1) the problem is solved again. See the changelog. On my device the Auto upload works again.

I had the same Problem with a Samsung Galaxy, while working on every other device.
I think I found the solution:
“drwxr-xr-x” was the folder with the problems, while the others were “drwxrwxrwx”

I changed it and now it seems to work. Curiously some files were uploaded, idk.

I have UNRAID <–SMB–> Nextcloud <–App–> Smartphone Backup