Problem
Under certain conditions, the database entries can get out-of-sync with the physical file entries.
When this happens you may see the following issues:
- File sync errors
- Failure to download files that exist in the system
Cause
Many factors can cause this issue.
Resolution
Out-of-sync database issues can be fixed by using the following steps.
Prerequisite
Enable PHP CLI Mode
To check/repair database errors, PHP CLI mode access needs to be enabled.
Check for Errors
Once the CLI mode is enabled, follow these steps to check databases.
To check for errors, from the command line, run
# cd /var/www/resources/backup
# php ./checkfc.php > report.html
The html file contains a report of the errors found. If there are errors found, then you will need to run the repair operation.
Note you can pass in a specific path by passing in a -p flag
# cd /var/www/resources/backup
# php ./checkfc.php -p /john/folder1 > report.html
The html file will contain any errors found.
Repair Errors
To repair errors found in the check process, run
# cd /var/www/resources/backup
# php ./repairfc.php > report.html
Note you can pass in a specific path by passing in a -p flag
# cd /var/www/resources/backup
# php ./repairfc.php -p /john/folder1 > report.html