Skip to end of metadata
Go to start of metadata

           

Do you have an error code?


 Yes...

 If not, use the following list of problems on this page to read about possible causes and resolutions. 


 Repair Database Entries

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.

Please be very careful doing these operations, please consult with Technical support before attempting these operations.


Prerequisite

Enable PHP CLI Mode

To check/repair database errors, PHP CLI mode access needs to be enabled.

Note: For example in Linux, edit the file /etc/php5/cli/php.ini and make sure the module mongo.so is enabled. Without this the following steps will fail.
To enable mongo.so, add the following line at the end of file /etc/php5/cli/php.ini (if this line doesn't exist in the file)

extension=mongo.so

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

Note

The above command needs sudo access, to have enough permissions to remove stray thumb and versioned files.
The script was called checksyncdb.php and repairsyncdb.php in older versions of FileCloud.



  • No labels