Nextcloud does not show the entire hard drive as storage space

The Basics

  • Nextcloud Server version:
    • 30.01
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 22
  • Web server and version (e.g, Apache 2.4.25):
    • Apache 2.4
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • replace me
  • PHP version (e.g, 8.3):
    • 8.2.24
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • Last week
  • Installation method (e.g. AIO, NCP, Bare Metal/Archive, etc.)
    • snap
  • Are you using Cloudflare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

Hi,
i use a 500GB SSD for a Nextcloudinstallation via snap. Nothing else installed. But i can only use 100GB. Under “System” i found this:
Storage: 5
Free space: 71 GB.
The used storage is about 30GB. There is one more user with about 5 GB. The contingent is set for both on “unlimited”.
Via console i got this:
Storage 455GB, Used 365GB
How ist this possible?
What is my mistake?
Can you help me?
Thanks!

1 Like

have you set system quotas?

check your snap retention settings, see also https://snapcraft.io/docs

you’ll need to find out what’s gobbling up your storage…

disk usage in Nextcloud snap data directory:

sudo du -hs /var/snap/nextcloud/common/nextcloud/data

largest file in Nextcloud snap data directory

sudo find /var/snap/nextcloud/common/nextcloud/data -type f -printf "%s\t%p\n" | sort -n | tail -1

view largest 5 files simply exchange tail -1 with tail -5 etc…

view Nextcloud log size!

sudo du -hs /var/snap/nextcloud/current/logs/nextcloud.log

truncate Nextcloud snap logs

sudo truncate -s 0 /var/snap/nextcloud/current/logs/nextcloud.log

see also Home · nextcloud-snap/nextcloud-snap Wiki · GitHub

Database, apps and files maintenance

check the size of your database and cleanup if necessary: database‐apps‐files‐maintenance · nextcloud-snap/nextcloud-snap Wiki · GitHub especially clear undo history

see scubamuc (scubamuc) · GitHub for some helpful scripts in SCUBA’s bash scripts

Thanks for the tips and sorry for my late reply! I ended up reinstalling the whole system. Everything works and the storage is shown correctly.
Thanks again for the help!

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.