-
-
Notifications
You must be signed in to change notification settings - Fork 551
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
New install : Scheduler not working #4592
Comments
Every time I run sources/scheduler.php I get this error :
|
This problem makes teampass unusable. V2 was less pretty but significantly more stable. |
Same Bug for me |
has anyone found a solution for this problem? I still can't create my users... |
Scheduler gets stuck on : |
IDK if its your case, but try this. |
@patrice-go-dsi |
yes, it is set to on :
And :
|
@patrice-go-dsi Can you please do the next fix that I will commit later?
and replace by
This will remove any error related to $argv = null |
Similar problem, but different error, here... Brand new installation : 3.1.3.14 Scheduled tasks seem to get stuck. sudo php /.../sources/scheduler.php sudo php scripts/background_tasks___userKeysCreation.php Any ideas ? |
Hey @patrice-go-dsi , I recently encountered the same issue with scheduled tasks not running automatically in TeamPass, and I managed to fix it. The problem seems to be that some PHP functions used in the scheduler are disabled by the hosting environment (e.g., exec(), shell_exec(), passthru(), etc.). Apache/PHP configurations often restrict these functions for security reasons, which prevents the scheduler from properly executing background tasks. The job.php file (located in vendor/peppeocchi/php-cron-scheduler/src/GO/) contains a line that executes the scheduled tasks using exec(). If your hosting environment blocks this function, the scheduler fails silently. Instead of:
Try replacing it with:
This change bypasses the restriction by using proc_open() instead of exec(), allowing the tasks to execute properly. Edit the job.php file (line 395 in the original version). I applied this fix and now all my scheduled tasks (like new_item, send_email, etc.) are processing correctly without manual execution. Let me know if this works for you! 🚀😃 |
Everything seems to be OK during installation.
Scheduled tasks seem to get stuck.
If I create a new user, nothing happens. The account remains inactive.
I have to run manually :
php scripts/background_tasks___userKeysCreation.php
User is activated.
And then, to receive the mail :
php scripts/background_tasks___sending_emails.php
The user receives his credential by email.
If i run manually :
php /home/xxxxxxx/teampass.xxxxxxxxxx/sources/scheduler.php
Nothing happens.
if i run manually :
php /home/xxxxxxx/teampass.xxxxxxxxxx/sources/scheduler.php >> /var/logs/cron-tp.log
I have :
Any ideas ?
Tx,
Patrice
The text was updated successfully, but these errors were encountered: