Marc File Stuck during Upload

 If marc file stuck during upload then 

1. Stop Koha Services

sudo systemctl stop koha-common 
 

2. Check and Clear Uploaded Files

Koha temporarily stores uploaded MARC files in specific directories. Check and clean them:

a. Locate the MARC Upload Directory

Look for the directory where Koha stores staged MARC files, usually in /var/lib/koha/<instance_name>/uploads.

Replace <instance_name> with your Koha instance (e.g., library):

cd /var/lib/koha/<instance_name>/uploads
ls

b. Delete Pending Files

If you see old or pending MARC files, remove them:

sudo rm -rf *

3. Clear Zebra Reindex Queue

Sometimes, records waiting for indexing can block the system. You can clear the queue:

a. Check the Zebra Queue

cd /var/lib/koha/<instance_name>/zebraqueue
ls

b. Remove Pending Jobs

If you see files in the zebraqueue directory, delete them:

sudo rm -rf /var/lib/koha/<instance_name>/zebraqueue/*

4. Restart Koha Services

After clearing the files, restart Koha:

sudo systemctl start koha-common

5. Re-upload MARC Files

Now that the pending files are cleared:

  • Go to Tools > Stage MARC Records for Import.
  • Upload your MARC files again.

 

 

No comments:

Post a Comment

Total Pageviews