Invoice ninja server 500 internal error
-
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.
-
wrote on Jun 26, 2024, 3:38 PM last edited by
That leaves the email deliverability issue. How is PDF generation related to emails not getting sent?
-
@luckow maybe good to report this password trimming upstream. Great catch and unlikely it gets detected by the devs on their own.
@nebulon I will try three more times to be sure the leading space is the problem. After hours of trillions of IN instances and attempts, my eyes feel square.
-
wrote on Jun 26, 2024, 6:51 PM last edited by
@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. -
@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.wrote on Jun 26, 2024, 7:03 PM last edited by@vladimir-d I can confirm that the emails get delivered if attach pdf is off. I deleted
PDF_GENERATOR=hosted_ninja
from the env file and restarted the app before testing. I'm on the lastest IN 1.14.2. -
wrote on Jun 27, 2024, 7:33 AM last edited by
The problem with sending emails has been fixed. A new app package is going to be released soon.
-
@luckow maybe good to report this password trimming upstream. Great catch and unlikely it gets detected by the devs on their own.
-
wrote on Jun 27, 2024, 12:04 PM last edited by
Well done @luckow @vladimir-d
-
wrote on Jun 29, 2024, 12:53 AM last edited by
so the end result is pdf generation & emails (with PDFs) now work without the added PDF_GENERATOR line ?
-
so the end result is pdf generation & emails (with PDFs) now work without the added PDF_GENERATOR line ?
wrote on Jun 29, 2024, 1:41 AM last edited by@AartJansen correct!
-
-
-
wrote on Jan 16, 2025, 5:46 AM last edited by
Interestingly I just ran across this issue. I was able to fix it by simply adding in the following:
PDF_GENERATOR=snappdf
Odd though as I see others didn't get that working and needed a value of
hosted_ninja
instead ofsnappdf
. So YMMV as they say. -
Interestingly I just ran across this issue. I was able to fix it by simply adding in the following:
PDF_GENERATOR=snappdf
Odd though as I see others didn't get that working and needed a value of
hosted_ninja
instead ofsnappdf
. So YMMV as they say.wrote on Jan 16, 2025, 1:14 PM last edited by@d19dotca take a look at this thread as the env has some major changes, simply adding those lines brings an existing app up to par with a fresh install https://forum.cloudron.io/topic/13069/not-creating-pdfs-after-updates/25
Look for Girishโs latest post in there
-
wrote on Jan 16, 2025, 3:38 PM last edited by
Yeah it makes me concerned that the package updates got messed up somewhere along the way to have duplicated some content in the ENV and remove others, but at least itโs an easy fix (manually).
-
wrote on Jan 29, 2025, 2:20 PM last edited by
-
Hi, I have the same problem and it is not solved after the updates.
Check the screenshots:
The question is how do I give permissions? I don't have a way to edit by commands, right?
@Esteban88 kernel.php not being writable is fine. On Cloudron, app code is readonly. This is for security. Per your screenshot, your PDF settings seem OK. You are unable to generate PDFs?
-
@Esteban88 see this thread - https://forum.cloudron.io/topic/13069/not-creating-pdfs-after-updates/18 . Can you check the env variables and respond in that thread if it doesn't work?
-
wrote on Jan 29, 2025, 3:15 PM last edited by Esteban88 Jan 29, 2025, 4:03 PM
Thanks! I had the pdf generator disabled.
I changed the line:
phantomjs_pdf_generation:false
to
phantomjs_pdf_generation:true