Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: ErrorException: fopen(/app/admin/storage/framework/cache/laravel-excel/laravel-excel-xIM1A10dexzvagCl77MwRCrHttq1zWYv.xlsx): failed to open stream: No such file or directory in /app/admin/vendor/maatwebsite/excel/src/Files/LocalTemporaryFile.php:55 #3862

Closed
1 task done
BamsWisnu opened this issue Jan 27, 2023 · 6 comments

Comments

@BamsWisnu
Copy link

BamsWisnu commented Jan 27, 2023

Is the bug applicable and reproducable to the latest version of the package and hasn't it been reported before?

  • Yes, it's still reproducable

What version of Laravel Excel are you using?

3.1

What version of Laravel are you using?

7.24

What version of PHP are you using?

7.2.5

Describe your issue

when generate excel file using queue

(new ReportLMSProgressExport($report))->queue('reports/'.$filename, 'public_media') ->chain([ new UpdateReportFilesOfCompletedExport($report), ]);

sometimes it works, but sometimes I get an error like this

ErrorException: fopen(/app/admin/storage/framework/cache/laravel-excel/laravel-excel-xIM1A10dexzvagCl77MwRCrHttq1zWYv.xlsx): failed to open stream: No such file or directory in /app/admin/vendor/maatwebsite/excel/src/Files/LocalTemporaryFile.php:55

How can the issue be reproduced?

When I try to export the excel file using queue.

What should be the expected behaviour?

excel file can be generated successfully

@BamsWisnu BamsWisnu added the bug label Jan 27, 2023
@stale stale bot added the stale label Mar 28, 2023
@stale
Copy link

stale bot commented Mar 29, 2023

This bug report has been automatically closed because it has not had recent activity. If this is still an active bug, please comment to reopen. Thank you for your contributions.

@stale stale bot closed this as completed Mar 29, 2023
@pmediavictor
Copy link

I am facing similar issue.

ErrorException: fopen(storage/framework/cache/laravel-excel/laravel-excel-5z46VOOHKGCbeglJ0kFcVQMgOWlXSsPA.csv): Failed to open stream: Permission denied

@KillerSquid
Copy link

As am I. It was working fine until yesterday and then just... stopped. Getting this error any time I try to queue an export now.
Using Laradock - Laravel 7.8 - Laravel Excel 3.1
Permissions and ownership for storage/framework/cache/* are correct

@phuclh
Copy link

phuclh commented Jul 23, 2023

I got the same error

1 similar comment
@ajitirto
Copy link

I got the same error

@MaximoBrandi
Copy link

If someone wants to temporarily solve it, here i found a solution

Create the file and then store the data in it, after that simply download it, there's an example

fopen(storage_path('app/public/tmp/calls.xlsx'), 'w');
Excel::store((new CallsExport)->ids($calls), storage_path('app/public/tmp/calls.xlsx'));

return response()->download(storage_path('app/public/tmp/calls.xlsx'));

I hope it helps, i anyways wish a better solution and not a atado con alambre one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants