Keep getting errors when exporting with module Exports

Hello everyone,

I installed the module Exports and set the directory to /var/www/html/omeka-s/files/exports. Then I tried several times to create exports but kept getting the following error:

2026-02-26T08:23:02+00:00 ERR (3):
2026-02-26T08:23:02+00:00 ERR (3): Command “command -v ‘zip’” failed with status code 127.
2026-02-26T08:23:02+00:00 ERR (3): sh: 1: --recurse-paths: not found

2026-02-26T08:23:02+00:00 ERR (3): Command “cd /var/www/html/omeka-s/files/exports/resources_1772094156_4652 && --recurse-paths …/resources_1772094156_4652.zip .” failed with status code 127.
2026-02-26T08:23:02+00:00 ERR (3): Omeka\Job\Exception\RuntimeException in /var/www/html/omeka-s/modules/Exports/src/Job/AbstractExportJob.php:120
Stack trace:
#0 /var/www/html/omeka-s/modules/Exports/src/Job/ExportJob.php(43): Exports\Job\AbstractExportJob->execute()
#1 /var/www/html/omeka-s/application/src/Job/DispatchStrategy/Synchronous.php(34): Exports\Job\ExportJob->perform()
#2 /var/www/html/omeka-s/modules/Common/src/Job/Dispatcher.php(27): Omeka\Job\DispatchStrategy\Synchronous->send()
#3 /var/www/html/omeka-s/application/data/scripts/perform-job.php(66): Common\Job\Dispatcher->send()
#4 {main}

Could anyone help explain what the problem is. I guess it may be because Omeka cannot write to the subfolders in exports. If so, how should I change the setting for it to be able to?

Thank you!

I figured out the problem with the first error, which was with Ubuntu missing the zip command. I installed it and tried again, and now I get this error:

2026-02-26T08:58:24+00:00 ERR (3): Omeka\File\Exception\RuntimeException: Failed to copy “/var/www/html/omeka-s/files/exports/resources_1772096278_5253.zip” to “/var/www/html/omeka-s/files/exports/resources_1772096278_5253.zip”. in /var/www/html/omeka-s/application/src/File/Store/Local.php:49
Stack trace:
#0 /var/www/html/omeka-s/modules/Exports/src/Job/ExportJob.php(46): Omeka\File\Store\Local->put()
#1 /var/www/html/omeka-s/application/src/Job/DispatchStrategy/Synchronous.php(34): Exports\Job\ExportJob->perform()
#2 /var/www/html/omeka-s/modules/Common/src/Job/Dispatcher.php(27): Omeka\Job\DispatchStrategy\Synchronous->send()
#3 /var/www/html/omeka-s/application/data/scripts/perform-job.php(66): Common\Job\Dispatcher->send()
#4 {main}

I guess this is because the job is too big it runs out of time, but if is not, can anyone help me understand the error?

Thank you!

The “Exports directory path” you set when configuring the module cannot be the files/exports directory. You need to set another directory were the exports will be built, separate from the director where exports are stored.

1 Like

Thank you so much for your help. I changed the folder and was able to complete an export.