0 votes
27 views
in Cloud by
edited by

I am getting an error as attached in the below image when syncing, anyone knows about this error


logs

[12/06/24 18:15:23] CDC: failed to open C:/Users/yuvan/Seafile\Finance/Mothly and Yearly Report/New and Non Renew Report/7434g010. [12/06/24 18:15:23] Failed to chunk file with CDC. [12/06/24 18:15:23] Failed to index file C:/Users/Yuvan/Seafile\Finance/Mothly and Yearly Report/New and Non Renew Report/7434g010.

4 Answers

+1 vote
by
selected by
 
Best answer

Check Logs for Specific Errors

  • Log Location:

    • Seafile Logs: Located in seafile-server-latest/logs/seafile.log.

    • Indexer Logs: Look in seafile-server-latest/logs/index.log or seahub.log.

  • Action: Identify error messages (e.g., permission issues, corrupted files) to pinpoint the root cause.

2. Verify File Permissions

  • Ensure the Seafile service account has read/write access to:

    • The seafile-data directory.

    • The ccnet directory.

    • The seahub-data directory.

  • Fix: Run chown -R seafile_user:seafile_group /path/to/seafile/directories (replace seafile_user and paths with your setup).

3. Rebuild the Search Index

  • Steps:

    1. Stop Seafile: ./seahub.sh stop and ./seafile.sh stop.

    2. Delete the index folder (default: seafile-server-latest/pro-data/search/index).

    3. Restart Seafile: ./seafile.sh start and ./seahub.sh start.

    4. Trigger reindexing via System Admin > Settings > Index Libraries in Seahub.

4. Check for Corrupted Files

  • Troubleshoot:

    • Remove recently added files/libraries and retry indexing.

    • Use seaf-fsck to check data integrity:

      ./seaf-fsck.sh

5. Update Seafile

  • Ensure you’re using the latest version. Bugs in older versions may cause indexing failures.

6. Antivirus/Security Software Conflicts

  • Temporarily disable antivirus/firewall to test if they’re blocking file access.

7. Database Consistency

  • For MySQL/MariaDB:

    • Run mysqlcheck -u root -p --auto-repair --optimize seafile_db.

8. Increase Indexer Resources (For Large Libraries)

  • In seafevents.conf, adjust:

    [INDEX FILES]
    ...
    interval = 10m
  • Allocate more CPU/memory if the server is under-resourced.

0 votes
by

Corrupted files in the library. If there are files that Seafile can't process, like corrupted PDFs or documents, that might cause the indexer to crash. They could try removing recently added files to see if that helps.

Also, maybe the search index itself is corrupted. Rebuilding the index might fix it. I should mention stopping the service, deleting the index directory, and restarting.

Outdated versions can have bugs. Upgrading Seafile to the latest version could resolve issues that were fixed in updates.

Checking the logs is crucial. The seafile.log or index.log might have specific error messages pointing to the exact problem. Directing the user to look there would help narrow things down.

If the libraries are very large, the indexer might be taking too long or timing out. Increasing timeout settings or resource allocation could help, but that's more of a server-side adjustment.

Database issues could also be a culprit. Maybe running a consistency check with seaf-fsck would identify problems.

Antivirus or other security software might interfere with file indexing. Temporarily disabling them to test could be a troubleshooting step.

Lastly, if all else fails, reinstalling Seafile or reaching out to their support with logs might be necessary

0 votes
by

This issue may arise if the library contains an excessive number of files. The sync client might fail to synchronize large libraries. Consider splitting the library into smaller, more manageable ones

+1 vote
by
Indexing errors typically occur before uploading, as the index must be calculated first. If the file cannot be located or a permission error arises while attempting to open it during the indexing process,

Based on the log, it appears the file may be locked by either the application itself or antivirus software. If an antivirus program is scanning the file, it could cause a permission error. To resolve this, try exiting the antivirus software or any other programs that might be using the file. Alternatively, ask the user to modify the file (e.g., open and save it again). This typically resolves the issue, allowing the file to be successfully indexed and uploaded.
...