eDrive does not upload any more when nextcloud user quota is set to unlimited
- /e/OS version: 2.9-t-20250321478215-official-FP5
- Device model(s): FP5
- Impacted Application: eDrive
The problem
Describe precisely the problem you're facing and add screenshots to illustrate
My eDrive stopped uploading in March 2025, but it was still downloading. It's configured with a self-hosted nextcloud instance.
After investigating (https://community.e.foundation/t/e-drive-stopped-syncing-since-march-2025/68622), I found it was due to my nextcloud account being configured with an unlimited quota, that is wrongly interpreted by eDrive as if there was no space left for this user
Steps to reproduce
- deploy a nextcloud instance (I faced the issue with a version 31.0.2)
- configure an account on it, with unlimited quota
- configure this account on your /e/OS device (I faced the issue with a version 2.9)
- take photos on your device: they are not uploaded
Workaround
Set a quota for the user on nextcloud side
Technical details
Paste any relevant logs (adb logcat
) in the codeblock below if you have any
Have a look at the forum thread mentioned above for more detail about what I tested. There is no error reported on the device side.
But I noticed that eDrive calls this API: /ocs/v2.php/cloud/user?format=json
, which returns a negative value (-3) in the quota section:
{
"ocs": {
"meta": {
"status": "ok",
"statuscode": 200,
"message": "OK"
},
"data": {
"enabled": true,
(...)
"firstLoginTimestamp": -1,
"lastLoginTimestamp": 1745164376,
"lastLogin": 1745164376000,
"backend": "Database",
"subadmin": [],
"quota": {
"free": -3,
"used": 16992121481,
"total": -3,
"relative": 0,
"quota": -3
},
"manager": "",
"avatarScope": "v2-federated",
"emailScope": "v2-federated",
"additional_mail": [],
"additional_mailScope": [],
"phone": "",
"phoneScope": "v2-local",
"address": "",
"addressScope": "v2-local",
"website": "",
"websiteScope": "v2-local",
"twitter": "",
"twitterScope": "v2-local",
"fediverse": "",
"fediverseScope": "v2-local",
"organisation": "",
"organisationScope": "v2-local",
"role": "",
"roleScope": "v2-local",
"headline": "",
"headlineScope": "v2-local",
"biography": "",
"biographyScope": "v2-local",
"profile_enabled": "1",
"profile_enabledScope": "v2-local",
"pronouns": "",
"pronounsScope": "v2-federated",
"groups": [
(...)
],
"language": "fr",
"locale": "fr_FR",
"notify_email": null,
"backendCapabilities": {
"setDisplayName": true,
"setPassword": true
}
}
}
}
It looks like this "-3" value means "unlimited quota" in some nextcloud APIs, see https://docs.nextcloud.com/server/latest/developer_manual/client_apis/WebDAV/basic.html#supported-properties. I suppose eDrive does not interpret this value this way, and wrongly assumes the quota has been reached. So it does not upload anything.