Invoice template take very long to load and defaulting to the same

Hello,

Many thanks for IN, i have done fresh install on Docker in V5 with the white label license.

I have done many try with the template to find what I need.
Everything was fine with the logo and the change I made, and I was seeing the template with an invoice that I made before.

After a certain time, every change is defaulting to this (but the name of the html change), and the loading time is very long.


In this case, it should be using poppins text font, tech templates and some other change.

In the custom models, everything works, loading time, logo.

There is any way I can reset this process ?

Thanks in advance!

Hi,

It looks like it’s using placeholder text, do you have any active invoices in your account?

Hello,

yes i have 3 invoice active.

I had to remove several from the db to reset the counter.

Did you mark the invoices deleted in the app or did you run SQL queries against the database?

We strongly advise against running SQL queries and can not provide support if you do as it can put the app into an invalid state.

I was deleting with db, so I know that’s not good, but I have tried :

For testing purposes, I have done a new fresh install in an other vm and test just to import the logo in it, and the same happens

I have tried in demo, but the logo charge in template design.

In selfhosted the logo do not show in template.

Maybe it’s loading issue ? LOCAL_DOWNLOAD=true maybe before uploading any logo ?

thanks,

Do you see any failed requests in the network tab of the browser console?

No nothing in this tab

I’m not sure, if the logo isn’t loading I’d expect there to be a failed request

Yes it’s the same problem as Running invoiceninja 5 behind nginx proxy

I did get a failed request in my browser, sorry

So the solution is to : well I added another redirect to the reverse proxy, so that http and https traffic is redirected.

I’m trying to solve it now

After looking a the log :

2024/09/10 22:48:23 [error] 676619#676619: *108300 upstream timed out (110: Connection timed out) while reading response header from upstream, client: IP.IP.IP.IP, server: domain.domain.com, request: “POST /api/v1/live_design HTTP/1.1”, upstream: “http://10.0.1.41:80/api/v1/live_design”, host: “domain.domain.com”, referrer: “https://domain.domain.com/settings/invoice_design”

When doing a post is taking a timed out for acessing the livedesign.

Fresh install to test this, and also tested with Nginx and npm.

Which PDF renderer are you using?

Hello,

Default snappdf

Thanks,

I suggest checking if changing to hosted_ninja help