-
Notifications
You must be signed in to change notification settings - Fork 9k
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
[bitnami/matomo] Cronjobs fail to run because of a missing certificate file #24618
Comments
Same issue here: AH00526: Syntax error on line 5 of /opt/bitnami/apache/conf/vhosts/matomo-https-vhost.conf: |
Hello, I got the same issue, it seems that the cron jobs containers are starting Apache briefly and that Apache configuration is looking for the SSL certificates to be present. But the default command used for these containers doesn't include the apache setup script (/opt/bitnami/scripts/apache/setup.sh) which in the main matomo container is responsible to generate the certificates in /opt/bitname/apache/conf/bitnami/certs/. A workaround consist of adding this script in the script list of the command arguments using Values.cronjobs.taskScheduler.arg and Values.cronjobs.archive.args values: cronjobs:
taskScheduler:
args:
- . /opt/bitnami/scripts/matomo-env.sh &&
. /opt/bitnami/scripts/libbitnami.sh &&
. /opt/bitnami/scripts/liblog.sh &&
/opt/bitnami/scripts/apache/setup.sh &&
/opt/bitnami/scripts/php/setup.sh &&
/opt/bitnami/scripts/mysql-client/setup.sh &&
/opt/bitnami/scripts/matomo/setup.sh &&
/post-init.sh &&
/opt/bitnami/php/bin/php /opt/bitnami/matomo/console core:run-scheduled-tasks
archive:
args:
- . /opt/bitnami/scripts/matomo-env.sh &&
. /opt/bitnami/scripts/libbitnami.sh &&
. /opt/bitnami/scripts/liblog.sh &&
/opt/bitnami/scripts/apache/setup.sh &&
/opt/bitnami/scripts/php/setup.sh &&
/opt/bitnami/scripts/mysql-client/setup.sh &&
/opt/bitnami/scripts/matomo/setup.sh &&
/post-init.sh &&
/opt/bitnami/php/bin/php /opt/bitnami/matomo/console core:archive |
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback. |
Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary. |
This issue is still present in 7.0.4, please reopen. |
Hi everyone! The missing script pointed by @bpresles at this comment was added by @dgomezleon at #24823. Therefore, you should no longer face this issue since
@JaZo could you please share the logs of the failing cronjob containers? |
I'm sorry for the confusion, it is indeed fixed in 7.x! I updated the chart and restarted the cronjob and it still failed, but I didn't check the next executions and these are running smoothly now. Must have been using the old image or something. |
Name and Version
bitnami/matomo 6.0.0
What architecture are you using?
amd64
What steps will reproduce the bug?
Are you using any custom parameters or values?
What is the expected behavior?
I'd expect both cronjobs to run successfully.
What do you see instead?
Additional information
It works just fine with version 5.5.1.
The text was updated successfully, but these errors were encountered: