rav
April 5, 2017, 9:06am
1
Hi
I am using the docker container and my recuring invoices are not generated and send via email.
The cron container logs tells me:
cron_1 | 2017-04-05 18:43:32 Running SendRecurringInvoices…
cron_1 | 12 recurring invoice(s) found
cron_1 | Processing Invoice 2 - Should send NO
cron_1 | Processing Invoice 13 - Should send NO
cron_1 | Processing Invoice 24 - Should send NO
cron_1 | Processing Invoice 35 - Should send NO
cron_1 | Processing Invoice 48 - Should send YES
cron_1 | Processing Invoice 52 - Should send NO
cron_1 | Processing Invoice 59 - Should send NO
cron_1 | Processing Invoice 61 - Should send NO
cron_1 | Processing Invoice 64 - Should send NO
cron_1 | Processing Invoice 68 - Should send NO
cron_1 | Processing Invoice 91 - Should send NO
cron_1 | Processing Invoice 110 - Should send NO
cron_1 | 0 due recurring invoice instance(s) found
cron_1 | 2017-04-05 18:43:32 Done
cron_1 | 2017-04-05 Running SendReminders…
cron_1 | 1 accounts found
cron_1 | Company name: 0 invoices found
cron_1 | Done
There is one with send yes but it is not sending an email.
Thanks
Sandro
hillel
April 5, 2017, 9:14am
2
Are there any errors in storage/logs/laravel-error.log
rav
April 5, 2017, 9:27am
3
the only message there is:
[2017-04-05 15:32:37] production.ERROR: Local PhantomJS Error: 408 - https://domain.xx/view/r61tszbgrjuo3shkeksnokoxt1hkld5j?phantomjs=true&phantomjs_secret= {“context”:“PHP”,“user_id”:0,“account_id”:0,“user_name”:"",“method”:“GET”,“url”:“https://domain.xx ”,“previous”:“https://domain.xx ”,“user_agent”:"",“ip”:“127.0.0.1”,“count”:1} []
[2017-04-05 15:32:37] production.ERROR: PhantomJS - Invalid response: {“context”:“PHP”,“user_id”:0,“account_id”:0,“user_name”:"",“method”:“GET”,“url”:“https://domain.xx ”,“previous”:“https://domain.xx ”,“user_agent”:"",“ip”:“127.0.0.1”,“count”:2} []
hillel
April 5, 2017, 9:30am
4
If you create a new recurring invoice does it send?
Maybe the client or invoice are archived.
rav
April 5, 2017, 9:57am
5
New one is not sending. Client and invoice are not archived.
hillel
April 5, 2017, 9:58am
6
To clarify, is a new invoice also saying ‘Should send YES’ but not sending.
Are you able to email invoices manually from within the app?
rav
April 5, 2017, 10:02am
7
Yes a new one shows as “should send yes” but I am getting an error now when I am trying to send the invoice manually: " unable to save invoice
internal server error
but there is nothing in storage/logs
hillel
April 5, 2017, 10:03am
8
Check your web server error logs.
rav
April 5, 2017, 10:03am
9
oh I forgot… after this the recuring invoice is on status send but no mail has been delivered
rav
April 5, 2017, 10:06am
10
This is what I can see in the webserver logs:
hillel
April 5, 2017, 10:09am
11
I think that’s your access log, check the error log.
rav
April 5, 2017, 10:18am
12
I will check how I can get this out of the docker container
rav
April 5, 2017, 10:38pm
13
the nginx error log is empty and is redirected to /dev/stderr which I should see in the Docker logs. The only thing in this logs are GET requests
hillel
April 5, 2017, 10:47pm
14
I’m not sure, if you’re seeing “unable to save invoice internal server error” there should be an error logged somewhere with details.
rav
April 5, 2017, 10:48pm
15
Is there any way to find where it could be logged? It is a bit strange that I can’t see any errors
hillel
April 5, 2017, 10:58pm
16
Sorry, I don’t know.
You may want to recheck storage/logs/laravel-error.log
rav
April 5, 2017, 11:01pm
17
Still the same in laravel-error.log
rav
April 5, 2017, 11:01pm
18
and thank you for your help
hillel
April 5, 2017, 11:09pm
19
Happy to help but I’m not sure what to suggest next.
rav
April 5, 2017, 11:10pm
20
Is there a way to get out all settings like payment gateways etc.? I will copy this then to a new setup and check if the problem is the same there