I’m fighting a little bit with getting everything working now that the new year has entered and i have been calling many of my clients (more then would be normal) to remind them to pay us for the last years services or we will close there services -only for them all telling us that they have never received any invoice from us to pay… Then debugging on this I’m now at a point where I’m stuck and don’t know what to look for now or missing.
I’m running v5.8.20-W151 with docker-compose and have set the following ENV in the docker-compose:
FYI: the above SMTP details in the config works (both from our copier/scanners and other containers on the same docker environment).
In the REACT and Flutter is just gives me an success messages with sent/queued but there is not getting anything in the mail-trace when I’m looking on my tenant at Microsoft365 nor is there anything in the laravel.log or invoiceninja.log and my “Systems Log” on the dashboard is empty.
What can I do here ??? cron and queue is not something i need to run in the docker-compose as I’m understanding in the documentation and notes in the compose mentioning that it’s only for v4 the cron service. Or am I’m missing something here?
It looks like the queue isn’t running, this should work out of the box with the official dockerfile. Changing to sync will correct this but will cause a delay in the app since it will wait to send.
Hmm okay that was also the files i was look at, is it correct that they are contained/running within the Invoiceninja “app” service of the compose?
Because I can’t seam to get it to execute the queue… have tried to exec into the service and run the following command from the cronjob_v5.sh manual without any lock.
I’m using Maria10.4 and not MySQL8 don’t know it that really should give this issue.
also all jobs have 1 attempt so and no error/failed log - so where to see the result of the 1 init attempt
Hi there @sone
I believe to have read somewhere (GH or here) that ENV are legacy / EOL and that UI Settings will be the correct way in the future.
But personally running with docker-compose, I still have settings in the ENV of the compose, and in the UI - But I had some problems when it first was implemented in the UI with settings from ENV not working - and today I have configured both.
So I commented out the mail settings in the .env files and already had the settings in the UI. The test email feature now works but trying to send an email from an invoice still does not despite the notice saying its been queue to be sent. I see nothing in the jobs table and nothing in the system_logs table.
What else can I check to find the problem?
Also can someone outline how the whole process works so I can try and figure this out?
When we try and send an email from an invoice does this happen?
PDF is generated and attached to email
Email is sent to job table?
Cron picks this up? Is this the php artisan schedule:run command?