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

cron command returns error code 1 #257

Open
rschueler opened this issue May 8, 2024 · 1 comment
Open

cron command returns error code 1 #257

rschueler opened this issue May 8, 2024 · 1 comment

Comments

@rschueler
Copy link

Describe the bug
The docker console for the app container shows following error:
time="2024-05-08T13:04:00+02:00" level=info msg=starting iteration=68 job.command="sudo -E -u docker -- bash -c 'php /var/www/html/bin/console cron:run'" job.position=0 job.schedule="* * * * *" time="2024-05-08T13:04:00+02:00" level=info channel=stderr iteration=68 job.command="sudo -E -u docker -- bash -c 'php /var/www/html/bin/console cron:run'" job.position=0 job.schedule="* * * * *" time="2024-05-08T13:04:00+02:00" level=info msg=" " channel=stderr iteration=68 job.command="sudo -E -u docker -- bash -c 'php /var/www/html/bin/console cron:run'" job.position=0 job.schedule="* * * * *" time="2024-05-08T13:04:00+02:00" level=info msg=" There are no commands defined in the \"cron\" namespace. " channel=stderr iteration=68 job.command="sudo -E -u docker -- bash -c 'php /var/www/html/bin/console cron:run'" job.position=0 job.schedule="* * * * *" time="2024-05-08T13:04:00+02:00" level=info msg=" " channel=stderr iteration=68 job.command="sudo -E -u docker -- bash -c 'php /var/www/html/bin/console cron:run'" job.position=0 job.schedule="* * * * *" time="2024-05-08T13:04:00+02:00" level=info channel=stderr iteration=68 job.command="sudo -E -u docker -- bash -c 'php /var/www/html/bin/console cron:run'" job.position=0 job.schedule="* * * * *" time="2024-05-08T13:04:00+02:00" level=error msg="error running command: exit status 1" iteration=68 job.command="sudo -E -u docker -- bash -c 'php /var/www/html/bin/console cron:run'" job.position=0 job.schedule="* * * * *

It look like the wrong command is used "console cron:run" instead of "console app:cron"

To Reproduce
Steps to reproduce the behavior:

  1. Go to docker logs of app container
  2. See error

Expected behavior
No error shown

@holzi1005
Copy link
Collaborator

Hallo @rschueler
in den Commands sollte es den Command app:cron geben und dieser startet den Cron Service.
Der Service kann auch über eine URL gestartet werden aber der Command sollte korrekt sein.

Wie sieht ihr Cron File aus?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants