Zero byte downloads

When I try to download a document I uploaded, it takes forever until it downloads a 0 Byte file with the correct filename.
If it is a picture, the spin bar turns forever and shows after a while following error:
image

It is hosted with Docker behind Nginx Proxy Manager with White Label License

Hi,

What version do you see in the about dialog?

I tried Browser (Chrome), App gives no response at all

I just updated the Docker before I tried

Version: v5.6.21-C123

@david do you have any suggestions?

your http return status is 504, so looks like a gateway issue.

Any suggestions how to check or setup?

504 is gateway timeout, which matches my description

I checked the “laravel.log”

[2023-07-25 11:15:29] production.ERROR: file_get_contents(https://invoice.bamatics.de/storage/2HGmO*REPLACED*NhIdtlO/documents/xqyIXaOCCcZ1BuN3KO*REPLACED*6btXvIBNP9sy.pdf): Failed to open stream: Operation timed out {“userId”:1,“exception”:"[object] (ErrorException(code: 0): file_get_contents(https://invoice.bamatics.de/storage/2HGmO*REPLACED*NhIdtlO/documents/xqyIXaOCCcZ1BuN3KO*REPLACED*6btXvIBNP9sy.pdf): Failed to open stream: Operation timed out at /var/www/app/app/Http/Controllers/DocumentController.php:124)
[stacktrace]
#0 /var/www/app/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(270): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
#1 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}()
#2 /var/www/app/app/Http/Controllers/DocumentController.php(124): file_get_contents()
#3 /var/www/app/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(145): App\Http\Controllers\DocumentController->App\Http\Controllers\{closure}()
#4 /var/www/app/vendor/symfony/http-foundation/StreamedResponse.php(97): Illuminate\Routing\ResponseFactory->Illuminate\Routing\{closure}()
#5 /var/www/app/vendor/symfony/http-foundation/Response.php(423): Symfony\Component\HttpFoundation\StreamedResponse->sendContent()
#6 /var/www/app/public/index.php(61): Symfony\Component\HttpFoundation\Response->send()
#7 {main}
"}

Anyone any help? It’s pretty useless to upload without download…

@david do you have any ideas?

do you have the env variable

IS_DOCKER=true

It was not on in the env, I added it now but it is the same behavior

Can I somehow help to solve this issue?

@Rusticus - having same issue with docker behind caddy

Did you ever find solution?

Seems like it’s always true

Unfortunately, no

I stopped using InvoiceNinja, even I paid for the white label, as the effort I put into is to high and to risky for my business

1 Like

what do you use now?