33 GB of usage, 177 GB system space occupied - how to find ghost files?
-
Hi,
I am running the following setup:
- Cloudron v8.2.4
- Nextcloud package com.nextcloud.cloudronapp@4.23.4
There are a few users in Nextcloud, using 33 GB in total storage if you add up the usage that is shown at //settings/users
When I open up Cloudron system information and let it calculate the disk usage, it shows me that Nextcloud is using 177.08 GB of storage on the Cloudron server.
When running
sudo -u www-data php -f /app/code/occ files:scan jay
I get the following output:
root@258e2da2-ade7-441e-a8b2-11897f7d8acf:/app/code# sudo -u www-data php -f /app/code/occ files:scan jay Starting scan for user 1 out of 1 (jay) +---------+-------+-----+---------+---------+--------+--------------+ | Folders | Files | New | Updated | Removed | Errors | Elapsed time | +---------+-------+-----+---------+---------+--------+--------------+ | 233 | 6319 | 0 | 6547 | 0 | 0 | 00:00:09 | +---------+-------+-----+---------+---------+--------+--------------+
User "jay" is the only one having more than just a few KB of files.
I remember that some file uploads to the Nextcloud system failed a few months ago and I think these might be still stored somewhere, where the application cannot find it, but still take space.
How can I find those?
Best
Jay -
root@258e2da2-ade7-441e-a8b2-11897f7d8acf:/app/code# sudo -u www-data php -f /app/code/occ files:cleanup 0 orphaned file cache entries deleted 0 orphaned file cache extended entries deleted 0 orphaned mount entries deleted
This also didn't help. Recreating the index for all users also doesn't bring any change in the calculated used space.
-
root@258e2da2-ade7-441e-a8b2-11897f7d8acf:/app/code# sudo -u www-data php -f /app/code/occ files:cleanup 0 orphaned file cache entries deleted 0 orphaned file cache extended entries deleted 0 orphaned mount entries deleted
This also didn't help. Recreating the index for all users also doesn't bring any change in the calculated used space.
@jayonrails have you checked Jay's Nextcloud trash/ deleted files?
-
Thanks for your suggeestions, deleted files is empty on all users.
-
Hi,
I am running the following setup:
- Cloudron v8.2.4
- Nextcloud package com.nextcloud.cloudronapp@4.23.4
There are a few users in Nextcloud, using 33 GB in total storage if you add up the usage that is shown at //settings/users
When I open up Cloudron system information and let it calculate the disk usage, it shows me that Nextcloud is using 177.08 GB of storage on the Cloudron server.
When running
sudo -u www-data php -f /app/code/occ files:scan jay
I get the following output:
root@258e2da2-ade7-441e-a8b2-11897f7d8acf:/app/code# sudo -u www-data php -f /app/code/occ files:scan jay Starting scan for user 1 out of 1 (jay) +---------+-------+-----+---------+---------+--------+--------------+ | Folders | Files | New | Updated | Removed | Errors | Elapsed time | +---------+-------+-----+---------+---------+--------+--------------+ | 233 | 6319 | 0 | 6547 | 0 | 0 | 00:00:09 | +---------+-------+-----+---------+---------+--------+--------------+
User "jay" is the only one having more than just a few KB of files.
I remember that some file uploads to the Nextcloud system failed a few months ago and I think these might be still stored somewhere, where the application cannot find it, but still take space.
How can I find those?
Best
Jay@jayonrails said in 33 GB of usage, 177 GB system space occupied - how to find ghost files?:
I remember that some file uploads to the Nextcloud system failed a few months ago and I think these might be still stored somewhere, where the application cannot find it, but still take space.
I was right on this one. I downloaded all the files that are present on the Nextcloud, deleted all the servers on the web interface and then re-synced from my computer. The ghost files are gone, it is now using around the 33 GB as I would have expected it.
Nextcloud is great tool, but sometimes does weird things. This is one example of being weird.
The issue is resolved for now, thanks for your ideas on it.
-
@jayonrails said in 33 GB of usage, 177 GB system space occupied - how to find ghost files?:
I remember that some file uploads to the Nextcloud system failed a few months ago and I think these might be still stored somewhere, where the application cannot find it, but still take space.
I was right on this one. I downloaded all the files that are present on the Nextcloud, deleted all the servers on the web interface and then re-synced from my computer. The ghost files are gone, it is now using around the 33 GB as I would have expected it.
Nextcloud is great tool, but sometimes does weird things. This is one example of being weird.
The issue is resolved for now, thanks for your ideas on it.
@jayonrails good one!
Out of interest I asked ChatGPT where partially uploaded files might be within Nextcloud and the advice it gave was:
- Delete files in /data/<user>/uploads/
- Clear /data/tmp/
- Remove .part files
- Fix database with occ files:scan --all
- Run occ files:cleanup to remove orphaned files