Webdav 507 Insufficient Storage

Hi folks,

when triing to save a new contact via dav in evolution-maili get a 507 InsufficientStorage error.
In the nextcloud logs its called: webdav Sabre\DAV\Exception\InsufficientStorage: HTTP/1.1 507 Insufficient Storage
from the web-interface of nextcloud creating contacts is no problem.

my nexcloud instance is on a shared host (@ uberspace.de)

Nextcloud version : 11.0.1
Operating system and version : CentOS 6 (i think so, could also be 5 or 7)
Apache or nginx version : Apache 2.2
PHP version : 5.6.21
Is this the first time you’ve seen this error and can you replicate it?:
happens always when tiring to save a new contact.
migrated from owncloud some weeks ago, worked there.

The output of your Nextcloud log in Admin > Logging:

webdav Sabre\DAV\Exception\InsufficientStorage: HTTP/1.1 507 Insufficient Storage
[internal function] OCA\DAV\Connector\Sabre\QuotaPlugin->checkQuota(‘addressbooks/us…’, Resource id #35, Object(OCA\DAV\CardDAV\AddressBook), false)
/var/www/virtual/USER/html/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105: call_user_func_array(Array, Array)
/var/www/virtual/USER/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1070: Sabre\Event\EventEmitter->emit(‘beforeCreateFil…’, Array)
/var/www/virtual/USER/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 525: Sabre\DAV\Server->createFile(‘addressbooks/us…’, Resource id #35, NULL)
[internal function] Sabre\DAV\CorePlugin->httpPut(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/virtual/USER/html/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105: call_user_func_array(Array, Array)
/var/www/virtual/USER/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 479: Sabre\Event\EventEmitter->emit(‘method PUT’, Array)
/var/www/virtual/USER/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254: Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/virtual/USER/html/nextcloud/apps/dav/lib/Server.php - line 227: Sabre\DAV\Server->exec()
/var/www/virtual/USER/html/nextcloud/apps/dav/appinfo/v2/remote.php - line 30: OCA\DAV\Server->exec()
/var/www/virtual/USER/html/nextcloud/remote.php - line 165: require_once(’/var/www/virtua…’)
{main}

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

<?php $CONFIG = array ( 'instanceid' => 'xxx', 'passwordsalt' => 'xxx', 'secret' => 'xxx', 'trusted_domains' => array ( 0 => 'xxx', 1 => 'xxx', 2 => 'xxx', 3 => 'xxx', ), 'datadirectory' => '/home/USER/oc_data', 'overwrite.cli.url' => 'https://xxx', 'dbtype' => 'mysql', 'version' => '11.0.1.2', 'installed' => true, 'filelocking.enabled' => 'true', 'memcache.locking' => '\OC\Memcache\Redis', 'memcache.local' => '\OC\Memcache\Redis', 'redis' => array( 'host' => '/home/USER/.redis/sock', 'port' => 0, ), 'forcessl' => true, 'forceSSLforSubdomains' => true, 'theme' => '', 'maintenance' => false, 'appstore.experimental.enabled' => true, 'loglevel' => 2, 'dbname' => 'xxx', 'dbhost' => '127.0.0.1', 'dbuser' => 'xxx', 'dbpassword' => 'xxx', 'trashbin_retention_obligation' => 'auto', 'htaccess.RewriteBase' => '/', 'mail_smtpmode' => 'smtp', 'mail_smtpsecure' => 'tls', 'mail_from_address' => 'xxx', 'mail_domain' => 'xxx', 'mail_smtpauthtype' => 'LOGIN', 'mail_smtpauth' => 1, 'mail_smtphost' => 'xxx', 'mail_smtpport' => '587', 'mail_smtpname' => 'xxx', 'mail_smtppassword' => 'xxx', 'filesystem_check_changes' => 1, ); thanx in advance!

also editing contacts from evolution causes the same error.

no errors in Android / DAVDroid

Same issue here. I have LDAP with nearly 40 users. Two of those are unable to upload anything through the web interface 'cos an error claims “insufficient storage”. On the admin logs I have the same messages but I’m using nextcloud 11.0.2 (now 11.0.3). The default quota is 2GB but that error appeared to a user without any file on his personal area (1MB space occuped on the directory).

I had to set his quota to “unlimited” to permit him to use nextcloud.

The other users are working ok with no problems.

I got same kind of problem. I sync my calendars with android app One Calendar via CalDav url provided in nextcloud.
When I sync I get this error:

507 (Insufficient Storage) : <?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d=“DAV:” xmlns:s=“http://sabredav.org/ns”>
<s:exception>OCA\DAV\Exception\UnsupportedLimitOnInitialSyncException</s:exception>
<s:message/>
<d:number-of-matches-within-limits/>
</d:error>

Action: ReceiveCalendar
Calendar: Personnel

XCalendarApp.ProviderBase.Exceptions.AccountRequestException: 507 (Insufficient Storage) : <?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d=“DAV:” xmlns:s=“http://sabredav.org/ns”>
<s:exception>OCA\DAV\Exception\UnsupportedLimitOnInitialSyncException</s:exception>
<s:message/>
<d:number-of-matches-within-limits/>
</d:error>
—> XCalendarApp.Common.Net.HttpException: 507 (Insufficient Storage) —> System.Net.Http.HttpRequestException: 507 (Insufficient Storage)
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode () <0xa04524fc + 0x000a4> in <063bd9370e374ed5bedc8c6fd4f1b32d>:0
at XCalendarApp.Common.Net.CalendarHttpClient+d__38.MoveNext () [0x00391] in <3a6c31d2a7304d1198907d3073943956>:0
— End of inner exception stack trace —
at XCalendarApp.Common.Net.CalendarHttpClient+d__38.MoveNext () [0x00428] in <3a6c31d2a7304d1198907d3073943956>:0
— End of stack trace from previous location where exception was thrown —
at XCalendarApp.CalDavProvider.DavHttpWebRequest+d__11.MoveNext () [0x000dc] in :0
— End of inner exception stack trace —
at XCalendarApp.CalDavProvider.DavHttpWebRequest+d__11.MoveNext () [0x00174] in :0
— End of stack trace from previous location where exception was thrown —
at Dav.Client.Common.DavCommon+d__5.MoveNext () [0x000e2] in :0
— End of stack trace from previous location where exception was thrown —
at Dav.Client.CalDav.CalDavServerCalendar+d__17.MoveNext () [0x000fb] in :0
— End of stack trace from previous location where exception was thrown —
at XCalendarApp.CalDavBaseProvider.CalDavBaseAccount+d__9.MoveNext () [0x001a8] in <8d04e69a065d48acb6148d9c9a046be7>:0
— End of stack trace from previous location where exception was thrown —
at XCalendarApp.ProviderBase.AccountProviderBase`8+d__94[TCachedCalendar,TProviderCalendarItem,TCachedAppointment,TProviderAppointmentItem,TCachedContacts,TCachedContact,TProviderContactItem,TAppointmentDbData].MoveNext () [0x0011f] in <2bec7e4302554b18b00b0a6049a9defb>:0
RequestType: REPORT
RequestUrl: https://ncloud.zaclys.com/remote.php/da … personnel/
RequestData:

1

1000





ResponseData: <?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d=“DAV:” xmlns:s=“http://sabredav.org/ns”>
<s:exception>OCA\DAV\Exception\UnsupportedLimitOnInitialSyncException</s:exception>
<s:message/>
<d:number-of-matches-within-limits/>
</d:error>

Inner exception: XCalendarApp.Common.Net.HttpException: 507 (Insufficient Storage) —> System.Net.Http.HttpRequestException: 507 (Insufficient Storage)
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode () <0xa04524fc + 0x000a4> in <063bd9370e374ed5bedc8c6fd4f1b32d>:0
at XCalendarApp.Common.Net.CalendarHttpClient+d__38.MoveNext () [0x00391] in <3a6c31d2a7304d1198907d3073943956>:0
— End of inner exception stack trace —
at XCalendarApp.Common.Net.CalendarHttpClient+d__38.MoveNext () [0x00428] in <3a6c31d2a7304d1198907d3073943956>:0
— End of stack trace from previous location where exception was thrown —
at XCalendarApp.CalDavProvider.DavHttpWebRequest+d__11.MoveNext () [0x000dc] in :0
Inner exception: System.Net.Http.HttpRequestException: 507 (Insufficient Storage)
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode () <0xa04524fc + 0x000a4> in <063bd9370e374ed5bedc8c6fd4f1b32d>:0
at XCalendarApp.Common.Net.CalendarHttpClient+d__38.MoveNext () [0x00391] in <3a6c31d2a7304d1198907d3073943956>:0

1 Like

I too am encountering this and it’s driving me mad. I’ve been syncing Nextcloud via caldav to 2 remote clients - Thunderbird on desktop and One Calendar on android. This has been working since August last year just fine.

At the weekend I upgraded NC to 17.03 and yesterday noticed sync errors on Android. Looking at the logs it was 507 both on Android and in NGINX. Must emphasise - Thunderbird is fine.

I had deleted and re-added android accounts but it is not resolved. Even stranger… I add the account to my phone and it tries to do the initial sync and fails 507. However - if I add an appointment on the phone to local - it syncs towards NC…

For now I’m assuming it’s v 17.x

I have this same error with One Calendar