Leantime / leantime

Leantime is a goals focused project management system for non-project managers. Building with ADHD, Autism, and dyslexia in mind.
https://leantime.io
GNU Affero General Public License v3.0
4.41k stars 578 forks source link

[BUG] Cron jobs not working #2228

Open willcodetech opened 7 months ago

willcodetech commented 7 months ago

If you have problems with the installation please use our community forum

What set up are you using

Describe the bug Cron jobs not available. According to the documentation (https://docs.leantime.io/#/development/commandline?id=cron-jobs), it is possible to use cron jobs via the browser and also via the command line. When trying to access via browser, "/cron/run" nothing happens.

If you try to run it via the command line, it generates the error " There are no commands defined in the "cron" namespace." image

It seems to me that because of this, email notifications are not sent.

Other commands via terminal work, such as testing sending an email image

To Reproduce Steps to reproduce the behavior: 1 - Via terminal, go to the bin folder 2 - Run the command ./leantime cron:run 3 - See error

Expected behavior Command runs without errors

Leantime Version v3.0.2

Server cPanel with nginx

PHP / MySQL Version PHP 8.1 MySQL 8.0.33-cll-lve

Additional context Just updated from v2.4.7 to v3.0.2

mott2060 commented 6 months ago

Hey @willcodetech , did you find a solution for this issue? I´m having the exact same problem. Access via browser doesn´t work and via command line I´m getting the same error message.

willcodetech commented 6 months ago

Hey @willcodetech , did you find a solution for this issue? I´m having the exact same problem. Access via browser doesn´t work and via command line I´m getting the same error message.

Hello @mott2060 ! I still haven't been able to solve it, but I installed the latest version v3.0.6 and I'm also having the same problem =/

mott2060 commented 6 months ago

Thanks for your feedback @willcodetech . @marcelfolaron , do you maybe have any advice for us?

seguce92 commented 6 months ago

I have the same problem with version 3.0.6. Reviewing the previous versions I reached #v2.4.8, a version in which cron:run does work, reviewing I was able to show that the command does not exist app/Command/RunCronCommand.php

image