bitnami / vms

Bitnami VMs
https://bitnami.com
Other
200 stars 44 forks source link

pimcore maintenance cron job has an error on invalid option #1469

Closed EliShklovsky closed 2 months ago

EliShklovsky commented 3 months ago

Name and Version

Bitnami package for Pimcore

What architecture are you using?

None

What steps will reproduce the bug?

pimcore maintenance cron job has an error on invalid option: console.CRITICAL: Error thrown while running command "pimcore:maintenance --async --env=prod". Message: "The "--async" option does not exist

sudo nano /etc/cron.d/pimcore This is the error line: */5 * * * * daemon /opt/bitnami/php/bin/php /opt/bitnami/pimcore/bin/console pimcore:maintenance **--async** --env=prod >> /dev/null 2>&1

This should be the line:

*/5 * * * * daemon /opt/bitnami/php/bin/php /opt/bitnami/pimcore/bin/console pimcore:maintenance --env=prod >> /dev/null 2>&1

Are you using any custom parameters or values?

/etc/cron.d/pimcore

What is the expected behavior?

No response

What do you see instead?

*/5 * * * * daemon /opt/bitnami/php/bin/php /opt/bitnami/pimcore/bin/console pimcore:maintenance **--async** --env=prod >> /dev/null 2>&1

Additional information

No response

gongomgra commented 3 months ago

Hi @EliShklovsky,

Thanks for reporting this issue. We will work on a fix and will update this thread once the new images are released. I'm adding the on-hold tag.

gongomgra commented 3 months ago

HI @EliShklovsky,

We have released new images of the Pimcore solution with the updated cronjob configuration. This is the new content of the /etc/cron.d/pimcore file after the machine initialization process.

$ cat /etc/cron.d/pimcore
# Copyright VMware, Inc.
# SPDX-License-Identifier: APACHE-2.0

*/5 * * * * daemon /opt/bitnami/php/bin/php /opt/bitnami/pimcore/bin/console pimcore:maintenance --env=prod >> /dev/null 2>&1
github-actions[bot] commented 2 months ago

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.

github-actions[bot] commented 2 months ago

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.