Could not find zip member zip:///tmp/laravel-excel-T5A9BDAC4Or0mFJNvDX7bJqg81ZdbVv #4123
Replies: 3 comments 2 replies
-
I noticed something else, it works randomly. Out of 10 trials, it works great like once. And I noticed that when it fails, the temporary excel file is saved outside of the /tmp folder of my s3 bucket. |
Beta Was this translation helpful? Give feedback.
-
I am getting the same error. It seems the issue lies with the Multi-server setup. When scaling occurs, the new container doesn't have the local file, and before syncing with S3, a touch command is executed, which creates an empty file. This results in an error because there are no rels in the empty file, as it seems the next job is already reading this file. |
Beta Was this translation helpful? Give feedback.
-
@mishabachkur @djibrilcolynat @ceejayoz , @jbajou has introduced a PR, for this exact same case. His PR has been merged |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
My implementation of Laravel-Excel stopped working for a reason I can't figure out. When I queue an export, here is what I get:
Could not find zip member zip:///tmp/laravel-excel-T5A9BDAC4Or0mFJNvDX7bJqg81ZdbVvF.xlsx#_rels\.rels {"exception":"[object] (PhpOffice\\PhpSpreadsheet\\Reader\\Exception(code: 0): Could not find zip member zip:///tmp/laravel-excel-T5A9BDAC4Or0mFJNvDX7bJqg81ZdbVvF.xlsx#_rels\\.rels at /var/task/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/File.php:162)"} []
Here is my code:
Excel::queue(new ArchivesExport($data), 'archives/exports/'.$account->id.'/'.$log_name, 's3', $writerType)->chain([ new ArchivesExportReady($account->id, $log_name), ]);
I am hosted on AWS with Laravel Vapor. It worked fine till now. Where should I start looking ?
Beta Was this translation helpful? Give feedback.
All reactions