Invoice ninja server 500 internal error
-
OK, I added the
PDF_GENERATOR=hosted_ninja
line to the env file, restarted the app and its working again.
Thanks humptydumpty. -
@AartJansen No problem. The health check can be found in the bottom left corner by clicking on the i icon.
-
I could reproduce the problem in my test instance. Debugging as to what has changed.
-
Hmpf.
PDF_GENERATOR=hosted_ninja
works, but it feels wrong to add a third-party provider to my invoicing app. An app where the creation of PDFs at the end of the month does not work is also a problem. -
This should be fixed now in the latest package.
-
@humptydumpty I have removed
PDF_GENERATOR=hosted_ninja
and can confirm that the PDF creation works.
Thank you Cloudron team. -
@luckow Invoices/quotes emails are not being sent to the client when I remove
PDF_GENERATOR=hosted_ninja
Create a fake client & invoice and send it to yourself. Is it working?
A tip I received from the upstream dev is to BCC yourself by going to:
IN dashboard > settings > Advanced Settings > Email Settings >BCC Email
-
@girish email delivery doesn't work for me unless I keep
PDF_GENERATOR=hosted_ninja
in the env file. PDF generation works fine with or without that line now. Should I report this upstream as a new/separate issue? -
oh crap neither does mine!
I've sent quite a few reminders today, and new invoices, I take it they are just failing silently and not queued anywhere? -
You are right. There is something wrong with sending emails. I tried to send offers to my own e-mail address and checked https://my.example.org/#/emails-eventlog.
The emails are going out, but to a completely different email address.
Investigating (Invoice Ninja 5.10.2) -
ok. a few hours later.
- Fresh install of invoice ninja seems to work.
- my updated instance sends email exclusively to the mail address from user 1.
- dashboard Recent Activity shows the problem
sending mails works
Stephan Luckow emailed invoice RG-240481 for ACME inc. to Jane Doesending mails does not work anymore
Stephan Luckow emailed quote 0023-0052 for ACME inc. toto
is empty. Maybe there is a default setting in the code, if no "to" is set, it will be sent to the administrator account (or user 1).I have restored old versions of IN from backups.
Up to v1.13.5, sending mails works. In v1.13.6 I have a problem with logging into my account. Next I will test v1.13.7.Side quest: In the latest version (in my updated instance) it is impossible to change the mail address of user 1 via the user interface.
-
In my case, the problem starts with the emails in v1.13.7. Maybe in v1.13.6, but I can't log in in that version.
Next: updating from v1.13.5 -
The moment I restore the settings (broken updated instance -> fresh instance), the new instance shows the same behavior. Data is not a problem.
-
restoring from a working v1.13.5 export -> fresh v1.14.2 produces same behaviour. the moment i restore settings, bam.
comparing json files is not one of my daily tasks, so I decide to do that:- install a fresh IN
- import data only
- manually click configuration options.
Fun fact: It is possible to set a password that starts with a space for the login. ONLY for login. After you have logged in and your action requires a password confirmation, the leading space will be removed, and your password is incorrect.
-
That leaves the email deliverability issue. How is PDF generation related to emails not getting sent?
-
@luckow could you try to switch
Attach PDF
optionoff
onIN dashboard > settings > Advanced Settings > Email Settings
and then try to send an email?v1.14.2 seems to be sending emails properly whilst
Attach PDF
is off.
I'm investigating it further now.