Closed hitenmandalia closed 7 months ago
Hi @hitenmandalia, which php version ur running? Can you try to run "php /var/www/html/TeamPass/sources/scheduler.php". First i got an error with something like MYSQLI_OPT_CONNECT_TIMEOUT not defined in settings.php. After "defining" it by change the lines to define("DB_CONNECT_OPTIONS", array()); I got PHP Fatal error:
Uncaught Exception: MeekroDB requires the mysqli extension for PHP in /var/www/html/TeamPass/vendor/sergeytsalkov/meekrodb/db.class.php:24
hi @DenFel I am running php 8.2.7 Unfortuantely, I am running this as a container in AWS Fargate, so i do not have access to the cli so unable to run the command. I do have a container running locally, which is not in production, running the same version's as in production so i will try and test on that and report back for you.
@DenFel
I ran that and i dont get any error
php version in both containers is the same?
Hi having same problem
@Hubertvivien, have you tried to run this command from cli -> php /var/www/html/TeamPass/sources/scheduler.php
Hi @DenFel Runned Got no error
But still have "account in construction"
php version in both containers is the same?
Yes, the production is an exact copy of the container i have locally
Hi. I have the same problem with fresh 3.1.1 version
Adding a local users work fine.
I was "able" to pass through this "error" by creating local user with the same login name as in AD and after that I enabled AD access for that user.
But after that I have another error, adding new secrets. the process get stuck on another process "new_item".
Hi, Adding AD users works with the new version 3.1.2.2.
But then the user sees the message:
No process is running in the background or any error msg in apache log.
@Hubertvivien, have you tried to run this command from cli -> php /var/www/html/TeamPass/sources/scheduler.php
You should check if the crontask is running well !
@Hubertvivien, have you tried to run this command from cli -> php /var/www/html/TeamPass/sources/scheduler.php
crontab -u www-data -e
We have also the problem that the keys cannot be created. create_user_keys task hangs in progress, but without any progress. Also if I try to recreate OTP, or create new user with AD sync.
crontab -u www-data -e
Yes, I did. No problem there. The cron job seems to be running well.
v3.1.2.12
[Tue Feb 27 10:02:48.127596 2024] [php:error] [pid 840] [client xxx.xxx.xxx.xxx:52802] PHP Fatal error: Uncaught MeekroDBException: Field 'allowed_folders' doesn't have a default value in /var/www/html/TeamPass/vendor/sergeytsalkov/meekrodb/db.class.php:934\nStack trace:\n#0 /var/www/html/TeamPass/vendor/sergeytsalkov/meekrodb/db.class.php(890): MeekroDB->queryHelper()\n#1 /var/www/html/TeamPass/vendor/sergeytsalkov/meekrodb/db.class.php(550): MeekroDB->query()\n#2 /var/www/html/TeamPass/vendor/sergeytsalkov/meekrodb/db.class.php(554): MeekroDB->insertOrReplace()\n#3 /var/www/html/TeamPass/vendor/sergeytsalkov/meekrodb/db.class.php(116): MeekroDB->insert()\n#4 /var/www/html/TeamPass/sources/users.queries.php(2667): DB::__callStatic()\n#5 {main}\n thrown in /var/www/html/TeamPass/vendor/sergeytsalkov/meekrodb/db.class.php on line 934, referer: https://xxx.xxx.xxx.xxx/index.php?page=users
[Tue Feb 27 10:04:01.340919 2024] [php:warn] [pid 843] [client xxx.xxx.xxx.xxx:52941] PHP Warning: Undefined array key 1 in /var/www/html/TeamPass/pages/tasks.php on line 232, referer: https://xxx.xxx.xxx.xxx/index.php?page=users
[Tue Feb 27 10:04:01.340961 2024] [php:warn] [pid 843] [client xxx.xxx.xxx.xxx:52941] PHP Warning: Undefined array key 1 in /var/www/html/TeamPass/pages/tasks.php on line 260, referer: https://xxx.xxx.xxx.xxx/index.php?page=users
[Tue Feb 27 10:04:01.340973 2024] [php:warn] [pid 843] [client xxx.xxx.xxx.xxx:52941] PHP Warning: Undefined array key 1 in /var/www/html/TeamPass/pages/tasks.php on line 282, referer: https://xxx.xxx.xxx.xxx/index.php?page=users
[Tue Feb 27 10:04:01.340987 2024] [php:warn] [pid 843] [client xxx.xxx.xxx.xxx:52941] PHP Warning: Undefined array key 1 in /var/www/html/TeamPass/pages/tasks.php on line 326, referer: https://xxx.xxx.xxx.xxx/index.php?page=users
[Tue Feb 27 10:05:38.578516 2024] [php:warn] [pid 1699] [client xxx.xxx.xxx.xxx:53137] PHP Warning: Undefined array key 1 in /var/www/html/TeamPass/pages/tasks.php on line 232, referer: https://xxx.xxx.xxx.xxx/index.php?page=users
[Tue Feb 27 10:05:38.578568 2024] [php:warn] [pid 1699] [client xxx.xxx.xxx.xxx:53137] PHP Warning: Undefined array key 1 in /var/www/html/TeamPass/pages/tasks.php on line 260, referer: https://xxx.xxx.xxx.xxx/index.php?page=users
[Tue Feb 27 10:05:38.578582 2024] [php:warn] [pid 1699] [client xxx.xxx.xxx.xxx:53137] PHP Warning: Undefined array key 1 in /var/www/html/TeamPass/pages/tasks.php on line 282, referer: https://xxx.xxx.xxx.xxx/index.php?page=users
[Tue Feb 27 10:05:38.578605 2024] [php:warn] [pid 1699] [client xxx.xxx.xxx.xxx:53137] PHP Warning: Undefined array key 1 in /var/www/html/TeamPass/pages/tasks.php on line 326, referer: https://xxx.xxx.xxx.xxx/index.php?page=users
just fyi. with v3.1.2.17 same status and same "errors"
those errors have nothing to do with the cron itself meaning that even if they exist, task should work. I will commit a fix for those erreors.
I order to capture if an error occurs, you could run: php scripts/background_tasks___items_handler.php
Merci, j'ai hâte car ça fait un moment que je cherche une version sans erreur au niveau des tâches clés et principales , il est devenu mon projet professionnel et j'y ai consacré un bon moment :)
just fyi. with v3.1.2.17 same status and same "errors"
those errors have nothing to do with the cron itself meaning that even if they exist, task should work. I will commit a fix for those erreors.
I order to capture if an error occurs, you could run:
php scripts/background_tasks___items_handler.php
Thank you for your reply, and all the effort you put into this project. I'll ignore those "errors" :D. Then only problem that I have is the "pass key" msg constantly showing after user logs in. Thanks.
I ran the cmd: php scripts/background_tasks___items_handler.php
with v3.1.2.18 and got no error in apache log
php:
xx@xxx:/var/www/html/TeamPass$ php /var/www/html/TeamPass/sources/scheduler.php PHP Warning: Undefined array key 1 in /var/www/html/TeamPass/sources/scheduler.php on line 108
apache:
[Tue Mar 05 07:16:07.813324 2024] [php:warn] [pid 1337] [client xxx.xxx.xxx.xxx:59687] PHP Warning: Trying to access array offset on value of type null in /var/www/html/TeamPass/sources/folders.class.php on line 176, referer: https://xxx.xxx.xxx.xxx/index.php?page=folders
[Tue Mar 05 07:16:42.238720 2024] [php:error] [pid 853] [client xxx.xxx.xxx.xxx:59749] PHP Fatal error: Uncaught MeekroDBException: Field 'allowed_folders' doesn't have a default value in /var/www/html/TeamPass/vendor/sergeytsalkov/meekrodb/db.class.php:934\nStack trace:\n#0 /var/www/html/TeamPass/vendor/sergeytsalkov/meekrodb/db.class.php(890): MeekroDB->queryHelper()\n#1 /var/www/html/TeamPass/vendor/sergeytsalkov/meekrodb/db.class.php(550): MeekroDB->query()\n#2 /var/www/html/TeamPass/vendor/sergeytsalkov/meekrodb/db.class.php(554): MeekroDB->insertOrReplace()\n#3 /var/www/html/TeamPass/vendor/sergeytsalkov/meekrodb/db.class.php(116): MeekroDB->insert()\n#4 /var/www/html/TeamPass/sources/users.queries.php(2668): DB::__callStatic()\n#5 {main}\n thrown in /var/www/html/TeamPass/vendor/sergeytsalkov/meekrodb/db.class.php on line 934, referer: https://xxx.xxx.xxx.xxx/index.php?page=users
With 3.2.18 the problem is still there:
after creating new user the key creating hangs all the time with 0%
I've updated a small fix to limit those errors. Please retry But if no errors while running, then it means conditions are not met ... I need to understand why as I cannot reproduce.
Error log from apache.log: error.log
scheduler.php doesn't throw any error
If there's anything i can do to help, just let me know
Hello, I just installed the latest corrected version, and I encountered the same error. The tasks aren't executing.
When I go to add an LDAP user, I get an error message in the service log and I'm left on the application screen with an eternal message as if the inclusion is still in progress.
When I refresh the page, the user simply appears as if it had been created.
After logging in with the LDAP user, I am eternally waiting for the keys to be created.
I'm also running version 3.1.2.19 and there is no error in the cronjob.
It is the same case with local accounts!
Supplementing the rrror with the Browser Console.
Problem solved for the local accounts !
But only after changing the user's password from the admin session, the task of creating the user begins only when a password change task is initiated. !
I can confirm, that changing password as admin for local account starts the key generation and it runs successfully. But for the AD managed accounts I can't change the password. if I generate new OTP for the account it starts the key generation task but it hangs at 0% eternally. So we still can't add new AD user to teampass :(
Should be fixed in latest commit
can confirm works for me, thank you @nilsteampassnet
It worked for me too, thanks! @nilsteampassnet
Adding user from AD worked for me too, but the user has all passwords in objects empty. Objects are visible, but no passwords.