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

Default value of maintenance_job_frequency (60) prevent cron task from running #3725

Closed
Seb-sti1 opened this issue May 21, 2023 · 1 comment

Comments

@Seb-sti1
Copy link

Steps to reproduce

  1. Install Teampass
  2. Use default maintenance_job_frequency param

Expected behaviour

The cron should execute with the default config

Actual behaviour

The default parameter prevents the execution of the cron task (because not between 0 and 59)

Server configuration

Operating system: Debian 11

Web server: Apache/2.4.56

Database: 10.5.19-MariaDB

PHP version: 8.2.5

Teampass version: 3.0.9

Logs

Logs of cron task

PHP Fatal error:  Uncaught InvalidArgumentException: Invalid value: it should be '*' or between 0 and 59. in /var/www/html/teampass/includes/libraries/GO/Traits/Interval.php:411
Stack trace:
#0 /var/www/html/teampass/includes/libraries/GO/Traits/Interval.php(386): GO\Job->validateCronRange()
#1 /var/www/html/teampass/includes/libraries/GO/Traits/Interval.php(50): GO\Job->validateCronSequence()
#2 /var/www/html/teampass/sources/scheduler.php(54): GO\Job->everyMinute()
#3 {main}
  thrown in /var/www/html/teampass/includes/libraries/GO/Traits/Interval.php on line 411
nilsteampassnet added a commit that referenced this issue May 22, 2023
Fix for #3725
@nilsteampassnet
Copy link
Owner

A fix has been committed.
Please reopen if needed.

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