I actually asked AI and I had the datacenter implement it, successfully solving the problem:
Given that we’ve confirmed there’s plenty of free space on the partition and the web server account has adequate permissions, this points to a more subtle issue with how ownCloud is calculating and reporting available disk space. This can sometimes happen with older versions of ownCloud or due to a combination of configuration and database issues.
Here are some advanced troubleshooting steps to track down the source of this problem:
- The files:scan Command
The ownCloud file system is managed by its database. Sometimes, the database’s information about file sizes and free space can become out of sync with the actual file system. Running a scan can force a recalculation.
Access your server via SSH.
Navigate to the ownCloud installation directory.
Run the following command:
sudo -u www-data php occ files:scan --all
(Note: Replace www-data with the actual user your web server runs as, e.g., apache, nginx, etc.)
This command will rescan all files and folders for all users and update the database. It can take a while to complete if you have a large number of files.
- Check the config.php for Mismatched Paths
Even if you’ve checked the basic datadirectory setting, there could be other configuration issues.
Open your config/config.php file.
Look for any entries that might be related to storage paths or sizes.
Double-check the ‘datadirectory’ entry. Is the path exactly correct and does it point to the root of your large partition? A small typo or an incorrect path can cause ownCloud to look at the wrong disk.
Look for any quota or default_quota entries that might be hard-coded. While you said user quotas are unlimited, a misconfiguration in this file could be overriding that.
- Clear the Cache
A corrupt cache could be causing ownCloud to use outdated information about disk space.
Access your server via SSH.
Navigate to the ownCloud installation directory.
Clear the ownCloud cache:
sudo -u www-data php occ maintenance:mode --on
sudo rm -rf data/appdata_*
sudo -u www-data php occ maintenance:mode --off
(Again, replace www-data with your web server user.)
This will put ownCloud into maintenance mode, clear the cache, and then bring it back online.