Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recurring invoices not made on docker #1131

Open
CountOlaf87 opened this issue Jan 9, 2023 · 4 comments
Open

Recurring invoices not made on docker #1131

CountOlaf87 opened this issue Jan 9, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@CountOlaf87
Copy link

Describe the bug
I'm trying to send recurring invoices, but they don't seem to be made. I looked at the documentation, but it says for docker that I shouldn't add cron? I'm running 6.0.6 on docker-compose

Expected behavior
Recurring invoices should be made and sent to my customer

Screenshots
image

Please complete the following information:

  • Crater version: 6.0.6
  • PHP version: ?
  • Database type and version: ?

Optional info

  • OS: Ubuntu 20.04 - docker 20.10.17
  • Browser: chrome
@c-nv-s
Copy link

c-nv-s commented Jan 19, 2023

not sure if this helps you but if you are using a postgres database with crafter then you also have to amend the ./docker-compose/cron.dockerfile to include installing libpq-dev and install the php extension pdo_pgsql like this:

FROM php:8.0-fpm-alpine

RUN apk add --no-cache \
    php8-bcmath libpq-dev

RUN docker-php-ext-install pdo pdo_mysql bcmath pdo_pgsql

COPY docker-compose/crontab /etc/crontabs/root

CMD ["crond", "-f"]

I had the issue that that the recurring jobs were not being processed because when I checked the logs of the cron container docker logs crater_cron_1(or whatever yours container is called) it was showing an error along the lines that the sql driver was not working properly.

@CountOlaf87
Copy link
Author

I installed it the way it is mentioned here on Github, it's using a mariadb database and no cron container is being spun up...

@mohitpanjwani mohitpanjwani added the bug Something isn't working label Mar 9, 2023
@mohitpanjwani mohitpanjwani self-assigned this Mar 9, 2023
@CountOlaf87
Copy link
Author

Is there maybe a workaround for this?

@Basserado
Copy link

I have the same issue and would appreciate a solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants