Excessive disk usage (49 GB of disk space for 18 GB of files) of Nextcloud server

Nextcloud version (eg, 12.0.2): 13.0.2
Operating system and version (eg, Ubuntu 17.04): hosted by manitu.de on a webpack, OS unknown
Apache or nginx version (eg, Apache 2.4.25): Apache
PHP version (eg, 7.1): 5.6

The issue you are facing:
I have uploaded 17.5 GB of data to my Nextcloud server, but the nextcloud directory uses 49.9GB of hard disk space. My disk quota is full as a consequence.

More details:

  • the nextcloud web interface says I used 17.5 GB of space
  • when I sync to Linux or Windows 10 using the desktop clients, the resulting folder takes up 17 GB
  • I got an email from my provider saying my 50 GB quota is exceeded, and the nextcloud client refuses to sync a 100MB file because of sync errors (I guess because the quota is full)
  • there is nothing on my webpack but nextcloud (and 2 files which are < 1kB each: my index.html and imprint.html files)
  • I used the curlftpfs tool under linux to mount the FTP directory of my server and had it compute the size of the nextcloud directory. It says it’s 49 GB.

Is this the first time you’ve seen this error? (Y/N): Yes, but I only recently installed Nextcloud.

Steps to replicate it:

  1. Install nextcloud
  2. upload data
  3. compare size of dir on the server with uploaded amount of data

The output of your Nextcloud log in Admin > Logging:

Error	PHP	Call to undefined function OCA\ServerInfo\sys_getloadavg() at /home/sites/site21/web/cloud/apps/serverinfo/lib/SystemStatistics.php#59	2018-07-01T16:32:20+0200
Error	PHP	is_readable(): open_basedir restriction in effect. File(/proc/meminfo) is not within the allowed path(s): (/home/sites/site21/:/home/sites/site21/tmp/:/home/sites/www.xsmd.org/:/home/sites/www.xsmd.org/tmp/:/usr/share/pear/:/tmp/:/dev/:/etc/ssl/certs/) at /home/sites/site21/web/cloud/apps/serverinfo/lib/SystemStatistics.php#74	2018-07-01T16:32:20+0200
Error	PHP	Call to undefined function OCA\ServerInfo\sys_getloadavg() at /home/sites/site21/web/cloud/apps/serverinfo/lib/SystemStatistics.php#59	2018-07-01T16:32:19+0200
Error	PHP	is_readable(): open_basedir restriction in effect. File(/proc/meminfo) is not within the allowed path(s): (/home/sites/site21/:/home/sites/site21/tmp/:/home/sites/www.xsmd.org/:/home/sites/www.xsmd.org/tmp/:/usr/share/pear/:/tmp/:/dev/:/etc/ssl/certs/) at /home/sites/site21/web/cloud/apps/serverinfo/lib/SystemStatistics.php#74	2018-07-01T16:32:19+0200
Error	PHP	Call to undefined function OCA\ServerInfo\sys_getloadavg() at /home/sites/site21/web/cloud/apps/serverinfo/lib/SystemStatistics.php#59	2018-07-01T16:32:18+0200
Error	PHP	is_readable(): open_basedir restriction in effect. File(/proc/meminfo) is not within the allowed path(s): (/home/sites/site21/:/home/sites/site21/tmp/:/home/sites/www.xsmd.org/:/home/sites/www.xsmd.org/tmp/:/usr/share/pear/:/tmp/:/dev/:/etc/ssl/certs/) at /home/sites/site21/web/cloud/apps/serverinfo/lib/SystemStatistics.php#74	2018-07-01T16:32:18+0200
Error	PHP	Call to undefined function OCA\ServerInfo\sys_getloadavg() at /home/sites/site21/web/cloud/apps/serverinfo/lib/SystemStatistics.php#59	2018-07-01T16:32:17+0200
Error	PHP	is_readable(): open_basedir restriction in effect. File(/proc/meminfo) is not within the allowed path(s): (/home/sites/site21/:/home/sites/site21/tmp/:/home/sites/www.xsmd.org/:/home/sites/www.xsmd.org/tmp/:/usr/share/pear/:/tmp/:/dev/:/etc/ssl/certs/) at /home/sites/site21/web/cloud/apps/serverinfo/lib/SystemStatistics.php#74	2018-07-01T16:32:17+0200
Fatal	webdav	Sabre\DAV\Exception: Error while copying file to target location (copied bytes: 8867840, expected filesize: 9936897 )	2018-07-01T15:29:01+0200
Fatal	webdav	Sabre\DAV\Exception\BadRequest: expected filesize 9936897 got 8871936	2018-07-01T15:28:48+0200
Fatal	webdav	Sabre\DAV\Exception\BadRequest: expected filesize 9936897 got 8871936	2018-07-01T15:28:24+0200
Fatal	webdav	Sabre\DAV\Exception: Error while copying file to target location (copied bytes: 8871936, expected filesize: 9936897 )	2018-07-01T15:28:10+0200
Fatal	webdav	Sabre\DAV\Exception: Error while copying file to target location (copied bytes: 8871936, expected filesize: 9936897 )	2018-07-01T15:27:41+0200
Fatal	webdav	Sabre\DAV\Exception: Error while copying file to target location (copied bytes: 8871936, expected filesize: 9936897 )	2018-07-01T15:27:28+0200
Fatal	webdav	Sabre\DAV\Exception: Error while copying file to target location (copied bytes: 18022400, expected filesize: -1 )	2018-06-29T17:50:00+0200
Fatal	webdav	Sabre\DAV\Exception: Error while copying file to target location (copied bytes: 8867840, expected filesize: 9936897 )	2018-06-29T11:41:48+0200
Fatal	webdav	Sabre\DAV\Exception\BadRequest: expected filesize 9936897 got 8871936	2018-06-29T11:41:35+0200
Fatal	webdav	Sabre\DAV\Exception: Error while copying file to target location (copied bytes: 8871936, expected filesize: 9936897 )	2018-06-29T11:41:13+0200
Fatal	webdav	Sabre\DAV\Exception: Error while copying file to target location (copied bytes: 8871936, expected filesize: 9936897 )	2018-06-29T11:40:59+0200
Fatal	webdav	Sabre\DAV\Exception: Error while copying file to target location (copied bytes: 8876032, expected filesize: 9936897 )	2018-06-29T11:40:24+0200
Fatal	webdav	Sabre\DAV\Exception: Error while copying file to target location (copied bytes: 8876032, expected filesize: 9936897 )	2018-06-29T11:40:11+0200
Warning	core	Login failed: 'someuser' (Remote IP: '109.91.39.248')	2018-06-29T11:17:56+0200
Fatal	webdav	Sabre\DAV\Exception: Error while copying file to target location (copied bytes: 108474368, expected filesize: -1 )	2018-06-28T15:59:42+0200
Fatal	webdav	Sabre\DAV\Exception: Error while copying file to target location (copied bytes: 108826624, expected filesize: -1 )	2018-06-27T13:22:37+0200
Fatal	webdav	Sabre\DAV\Exception: Error while copying file to target location (copied bytes: 108191744, expected filesize: -1 )	2018-06-25T13:04:50+0200
Fatal	webdav	Sabre\DAV\Exception: Error while copying file to target location (copied bytes: 91881472, expected filesize: -1 )	2018-06-24T14:07:53+0200
Fatal	webdav	Sabre\DAV\Exception: Error while copying file to target location (copied bytes: 92311552, expected filesize: -1 )	2018-06-22T21:19:51+0200
Fatal	webdav	Sabre\DAV\Exception: Error while copying file to target location (copied bytes: 92626944, expected filesize: -1 )	2018-06-22T19:19:15+0200
Fatal	webdav	Sabre\DAV\Exception: Error while copying file to target location (copied bytes: 92663808, expected filesize: -1 )	2018-06-22T18:13:13+0200
Fatal	webdav	Sabre\DAV\Exception: Error while copying file to target location (copied bytes: 92667904, expected filesize: -1 )	2018-06-22T16:12:02+0200
Fatal	webdav	Sabre\DAV\Exception: Error while copying file to target location (copied bytes: 92741632, expected filesize: -1 )	2018-06-22T14:11:05+0200
Fatal	webdav	Sabre\DAV\Exception\BadRequest: expected filesize 5141428 got 2162688	2018-06-21T00:10:00+0200
Fatal	webdav	Sabre\DAV\Exception\BadRequest: expected filesize 6228725 got 3325952	2018-06-21T00:10:00+0200
Fatal	webdav	Sabre\DAV\Exception\BadRequest: expected filesize 5023020 got 557056	2018-06-21T00:10:00+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Weezer/Blue Album/Weezer - In The Garage.mp3" is locked	2018-06-21T00:07:11+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Weezer/Blue Album/Weezer - My Name Is Jonas.mp3" is locked	2018-06-21T00:07:06+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Weezer/Blue Album/Weezer - No One Else.mp3" is locked	2018-06-21T00:07:06+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/10th Anniversary/Tocotronic - Ich M├Àchte Teil Einer Jugendbewegung Sein (International Version).mp3" is locked	2018-06-12T20:42:25+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/10th Anniversary/Tocotronic - Gott Sei Dank, Haben Wir Beide Uns Gehabt.mp3" is locked	2018-06-12T20:41:48+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/10th Anniversary/Tocotronic - Ich M├Àchte Teil Einer Jugendbewegung Sein (International Version).mp3" is locked	2018-06-12T20:41:42+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/10th Anniversary/Tocotronic - Gott Sei Dank, Haben Wir Beide Uns Gehabt.mp3" is locked	2018-06-12T20:41:05+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/10th Anniversary/Tocotronic - Ich M├Àchte Teil Einer Jugendbewegung Sein (International Version).mp3" is locked	2018-06-12T20:41:00+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/10th Anniversary/Tocotronic - Gott Sei Dank, Haben Wir Beide Uns Gehabt.mp3" is locked	2018-06-12T20:40:21+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/10th Anniversary/Tocotronic - Ich M├Àchte Teil Einer Jugendbewegung Sein (International Version).mp3" is locked	2018-06-12T20:40:11+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/Es ist egal, aber/Tocotronic - Der sch├Ânste Tag in meinem Leben.mp3" is locked	2018-06-12T20:39:21+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/Es ist egal, aber/Tocotronic - Der sch├Ànste Tag in meinem Leben.mp3" is locked	2018-06-12T20:39:18+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/10th Anniversary/Tocotronic - Gott Sei Dank, Haben Wir Beide Uns Gehabt.mp3" is locked	2018-06-12T20:39:10+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/10th Anniversary/Tocotronic - Ich M├Àchte Teil Einer Jugendbewegung Sein (International Version).mp3" is locked	2018-06-12T20:38:53+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/Es ist egal, aber/Tocotronic - Auf den Hund gekommen.mp3" is locked	2018-06-12T20:38:43+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/Es ist egal, aber/Tocotronic - Auf den Hund gekommen.mp3" is locked	2018-06-12T20:38:43+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/Es ist egal, aber/Tocotronic - Der sch├Ânste Tag in meinem Leben.mp3" is locked	2018-06-12T19:12:38+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/Es ist egal, aber/Tocotronic - Der sch├Ànste Tag in meinem Leben.mp3" is locked	2018-06-12T19:12:35+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/Es ist egal, aber/Tocotronic - Auf den Hund gekommen.mp3" is locked	2018-06-12T19:12:20+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/10th Anniversary/Tocotronic - Ich M├Àchte Teil Einer Jugendbewegung Sein (International Version).mp3" is locked	2018-06-12T19:12:10+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Neil Young/Neil Young - Harvest Moon/07 - Such A Woman.mp3" is locked	2018-06-12T19:12:03+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Neil Young/Neil Young - Harvest Moon/06 - One Of These Days.mp3" is locked	2018-06-12T19:11:52+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/10th Anniversary/Tocotronic - Gott Sei Dank, Haben Wir Beide Uns Gehabt.mp3" is locked	2018-06-12T19:11:28+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/Es ist egal, aber/Tocotronic - Der sch├Ânste Tag in meinem Leben.mp3" is locked	2018-06-12T19:09:54+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/Es ist egal, aber/Tocotronic - Der sch├Ànste Tag in meinem Leben.mp3" is locked	2018-06-12T19:09:53+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/Es ist egal, aber/Tocotronic - Auf den Hund gekommen.mp3" is locked	2018-06-12T19:09:37+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/10th Anniversary/Tocotronic - Ich M├Àchte Teil Einer Jugendbewegung Sein (International Version).mp3" is locked	2018-06-12T19:09:25+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Neil Young/Neil Young - Harvest Moon/06 - One Of These Days.mp3" is locked	2018-06-12T19:09:23+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Neil Young/Neil Young - Harvest Moon/07 - Such A Woman.mp3" is locked	2018-06-12T19:09:07+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/10th Anniversary/Tocotronic - Gott Sei Dank, Haben Wir Beide Uns Gehabt.mp3" is locked	2018-06-12T19:08:45+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/Es ist egal, aber/Tocotronic - Der sch├Ânste Tag in meinem Leben.mp3" is locked	2018-06-12T19:07:33+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/Es ist egal, aber/Tocotronic - Der sch├Ànste Tag in meinem Leben.mp3" is locked	2018-06-12T19:07:32+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/Es ist egal, aber/Tocotronic - Auf den Hund gekommen.mp3" is locked	2018-06-12T19:07:16+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/10th Anniversary/Tocotronic - Ich M├Àchte Teil Einer Jugendbewegung Sein (International Version).mp3" is locked	2018-06-12T19:07:01+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Neil Young/Neil Young - Harvest Moon/06 - One Of These Days.mp3" is locked	2018-06-12T19:07:01+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Neil Young/Neil Young - Harvest Moon/07 - Such A Woman.mp3" is locked	2018-06-12T19:06:44+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/10th Anniversary/Tocotronic - Gott Sei Dank, Haben Wir Beide Uns Gehabt.mp3" is locked	2018-06-12T19:06:23+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/Es ist egal, aber/Tocotronic - Der sch├Ânste Tag in meinem Leben.mp3" is locked	2018-06-12T19:05:11+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/Es ist egal, aber/Tocotronic - Der sch├Ànste Tag in meinem Leben.mp3" is locked	2018-06-12T19:05:10+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/Es ist egal, aber/Tocotronic - Auf den Hund gekommen.mp3" is locked	2018-06-12T19:04:52+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Neil Young/Neil Young - Harvest Moon/06 - One Of These Days.mp3" is locked	2018-06-12T19:04:38+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/10th Anniversary/Tocotronic - Ich M├Àchte Teil Einer Jugendbewegung Sein (International Version).mp3" is locked	2018-06-12T19:04:37+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Neil Young/Neil Young - Harvest Moon/07 - Such A Woman.mp3" is locked	2018-06-12T19:04:20+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/10th Anniversary/Tocotronic - Gott Sei Dank, Haben Wir Beide Uns Gehabt.mp3" is locked	2018-06-12T19:04:00+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/Es ist egal, aber/Tocotronic - Der sch├Ânste Tag in meinem Leben.mp3" is locked	2018-06-12T19:02:48+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/Es ist egal, aber/Tocotronic - Der sch├Ànste Tag in meinem Leben.mp3" is locked	2018-06-12T19:02:48+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/Es ist egal, aber/Tocotronic - Auf den Hund gekommen.mp3" is locked	2018-06-12T19:02:32+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Neil Young/Neil Young - Harvest Moon/06 - One Of These Days.mp3" is locked	2018-06-12T19:02:19+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/10th Anniversary/Tocotronic - Ich M├Àchte Teil Einer Jugendbewegung Sein (International Version).mp3" is locked	2018-06-12T19:02:17+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Neil Young/Neil Young - Harvest Moon/07 - Such A Woman.mp3" is locked	2018-06-12T19:02:00+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/10th Anniversary/Tocotronic - Gott Sei Dank, Haben Wir Beide Uns Gehabt.mp3" is locked	2018-06-12T19:01:40+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/Es ist egal, aber/Tocotronic - Der sch├Ànste Tag in meinem Leben.mp3" is locked	2018-06-12T16:58:50+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/Es ist egal, aber/Tocotronic - Der sch├Ânste Tag in meinem Leben.mp3" is locked	2018-06-12T16:58:49+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/Es ist egal, aber/Tocotronic - Auf den Hund gekommen.mp3" is locked	2018-06-12T16:58:28+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/10th Anniversary/Tocotronic - Ich M├Àchte Teil Einer Jugendbewegung Sein (International Version).mp3" is locked	2018-06-12T16:58:14+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Neil Young/Neil Young - Harvest Moon/06 - One Of These Days.mp3" is locked	2018-06-12T16:58:14+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Neil Young/Neil Young - Harvest Moon/07 - Such A Woman.mp3" is locked	2018-06-12T16:57:55+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/10th Anniversary/Tocotronic - Gott Sei Dank, Haben Wir Beide Uns Gehabt.mp3" is locked	2018-06-12T16:57:35+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/10th Anniversary/Tocotronic - Ich M├Àchte Teil Einer Jugendbewegung Sein (International Version).mp3" is locked	2018-06-12T16:48:43+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Neil Young/Neil Young - Harvest Moon/06 - One Of These Days.mp3" is locked	2018-06-12T16:48:01+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Neil Young/Neil Young - Harvest Moon/07 - Such A Woman.mp3" is locked	2018-06-12T16:47:58+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Tocotronic/10th Anniversary/Tocotronic - Gott Sei Dank, Haben Wir Beide Uns Gehabt.mp3" is locked	2018-06-12T16:47:34+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Neil Young/Neil Young - Harvest Moon/06 - One Of These Days.mp3" is locked	2018-06-12T14:52:02+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Neil Young/Neil Young - Harvest Moon/07 - Such A Woman.mp3" is locked	2018-06-12T14:51:47+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Neil Young/Neil Young - Harvest Moon/06 - One Of These Days.mp3" is locked	2018-06-12T13:30:38+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Neil Young/Neil Young - Harvest Moon/07 - Such A Woman.mp3" is locked	2018-06-12T13:30:32+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Neil Young/Neil Young - Harvest Moon/06 - One Of These Days.mp3" is locked	2018-06-12T10:26:15+0200
Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\FileLocked: "Music/Neil Young/Neil Young - Harvest Moon/07 - Such A Woman.mp3" is locked	2018-06-12T10:26:10+0200
Fatal	webdav	Sabre\DAV\Exception\BadRequest: expected filesize 5673748 got 2392064	2018-06-11T20:12:45+0200
Fatal	webdav	Sabre\DAV\Exception\BadRequest: expected filesize 5127982 got 114688	2018-06-11T20:12:45+0200
Fatal	webdav	Sabre\DAV\Exception\BadRequest: expected filesize 5679303 got 65536	2018-06-10T23:51:12+0200
Fatal	webdav	Sabre\DAV\Exception\BadRequest: expected filesize 5610150 got 5537792	2018-06-10T23:51:12+0200
Fatal	webdav	Sabre\DAV\Exception\BadRequest: expected filesize 5276521 got 4227072	2018-06-10T23:51:12+0200
Info	updater	\OC\Updater::resetLogLevel: Reset log level to Warning(2)	2018-06-10T23:11:53+0200
Info	updater	\OC\Updater::maintenanceDisabled: Turned off maintenance mode	2018-06-10T23:11:53+0200
Info	updater	\OC\Updater::updateEnd: Update successful	2018-06-10T23:11:53+0200
Info	updater	\OC\Updater::finishedCheckCodeIntegrity: Finished code integrity check	2018-06-10T23:11:53+0200
Info	updater	\OC\Updater::startCheckCodeIntegrity: Starting code integrity check...	2018-06-10T23:11:46+0200
Info	updater	\OC\Repair::info: Repair info: JS cache cleared	2018-06-10T23:11:46+0200
Info	updater	\OC\Repair::info: Repair info: SCSS cache cleared

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

I do not have shell access. While I have access to the file <nextcloud-dir>/config/config.php, it contains almost only data that is secret and should not be posted here I guess (sql server connection, secrets, etc). The only relevant information in there that I would post publicly is 'dbtype' => 'mysql', I guess.

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

Cannot be accessed, as this is running on a webpack.

Did you empty the trashbin?
https://docs.nextcloud.com/server/13/admin_manual/configuration_server/occ_command.html#trashbin

And the file versions?
https://docs.nextcloud.com/server/13/admin_manual/configuration_server/occ_command.html#versions

Hi Sanook,

thanks for your response. In the meantime I changed my PHP version to 7.1 and upgraded to Nextcloud v 13.0.4.

I also found the ‘Deleted files’ in the lower left corner of the Nextcloud web interface and cleared all of them. There were indeed some files in there which I had renamed. (Deleting them allowed me to upgrade Nextcloud.) But they were nowhere near 30 GB in size.

On the file versions: as I mentioned, I do not have shell access, so the command you linked are of little help to me. Is there any way to remove old file versions in the admin web interface? I could not find anything. UPDATE: But your comment helped me find the documentation on file versions, and I set a more aggressive deletion policy for old file versions using ‘versions_retention_obligation’ in config.php. This should do it.
(As described in https://docs.nextcloud.com/server/13/admin_manual/configuration_files/file_versioning.html)

Thanks a lot, I guess my problem is solved. (The computation of the disk size of the Nextcloud directory on the server is still running, but I could upload new files and I guess the trashbin and versioning were at least part of the problem.)

I have a general question, relating to the previous question: are you supposed to be able to run Nextcloud without shell access at all? I.e., does it make any sense to run it on a webpack like I currently do? Or will I get stuck sooner or later because you are expected to have command line access for some operations?

I recommend command line access to your Nextcloud instance.

1 Like

For future readers:
I ran into the same problem on the same provider (manitu) and my issue was this one:

Deleting the contents of the uploads folder of a certain user fixed the issue completely.