Issue with recurring invoice and docker container

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

Are there any errors in storage/logs/laravel-error.log

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} []

If you create a new recurring invoice does it send?

Maybe the client or invoice are archived.

New one is not sending. Client and invoice are not archived.

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?

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

Check your web server error logs.

oh I forgot… after this the recuring invoice is on status send but no mail has been delivered

This is what I can see in the webserver logs:

I think that’s your access log, check the error log.

I will check how I can get this out of the docker container

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

I’m not sure, if you’re seeing “unable to save invoice internal server error” there should be an error logged somewhere with details.

Is there any way to find where it could be logged? It is a bit strange that I can’t see any errors

Sorry, I don’t know.

You may want to recheck storage/logs/laravel-error.log

Still the same in laravel-error.log

and thank you for your help :slight_smile:

Happy to help but I’m not sure what to suggest next.

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