Open gilangvperdana opened 1 year ago
this user has been created from admin page?
I just perform the described steps. Created a news user with the role called "Default" (that provides access to a set of folders) Did wait until account is generated. Get logged with new user login and pwd Provided Encryption code for this usage User could browser folders and objects.
Is there something special regarding the role you defined during user creation? Please also update to latest commit. I can see you wrote tp version is 3.0.0.20 but settings infos say 'cpassman_version' => '3.0.0.19', This should fix the error you have in web server log
this user has been created from admin page?
right, the user is created from the admin page
I just perform the described steps. Created a news user with the role called "Default" (that provides access to a set of folders) Did wait until account is generated. Get logged with new user login and pwd Provided Encryption code for this usage User could browser folders and objects.
Is there something special regarding the role you defined during user creation? Please also update to latest commit. I can see you wrote tp version is 3.0.0.20 but settings infos say 'cpassman_version' => '3.0.0.19', This should fix the error you have in web server log
Thanks for your answer, sorry my bad, I wrote wrong tp config in this issue. My cpassman_version
are 3.0.0.20
too. I don't think it's because of version 3.0.0.20, because previously this version was fine, and I've tried updating to the latest commit but still encountering the same error. Regarding special treatment, I don't do that at all, this problem comes suddenly on new users (not for existing users).
by the way, thank you for your hard work
do you think we could have TV session so that I could see the thing ?
do you think we could have TV session so that I could see the thing ?
OK, i will reproduce step that make its error first then i will tell you on next time,
Thanks for your answer and good work
do you think we could have TV session so that I could see the thing ?
Hi i have same issue like this, After check my db teampass, i forgot define charset to utf8 and now using charset latin1 is this the cause of the issue?
do you think we could have TV session so that I could see the thing ?
Hi i have same issue like this, After check my db teampass, i forgot define charset to utf8 and now using charset latin1 is this the cause of the issue?
yes it happens that the database I'm using also uses a latin1
charset like @fsatrion , is it true that this is causing the problem?
Thanks for your answer @nilsteampassnet
I don't know if DB charset can has an impact. Nevertheless all stuff behind teampass uses utf8so indeed we can have a broken mysql answer. But in such we should have an error. It would be appreciated to check your mariadb log for any error, and share them here.
When looking the sceenshot provided by @fsatrion in #3409, we can see in the console the keyword FALSE just after "TREE". This false indicates that the query permitting the refresh the tree folders returns something not managed by the error handler which sounds strange. So the issue is there but now why? I don't know. I would need to have to investigate on your server if we can arrange a TV session (contact me by email at nils@teampass.net).
What you can check is also this. From your DB, check what is the ID of new created user from table users. Then open table cache_tree and look if you find an entry for this user_id. And check if fields visible_folders and folders are filled in.
I don't know if DB charset can has an impact. Nevertheless all stuff behind teampass uses utf8so indeed we can have a broken mysql answer. But in such we should have an error. It would be appreciated to check your mariadb log for any error, and share them here.
When looking the sceenshot provided by @fsatrion in #3409, we can see in the console the keyword FALSE just after "TREE". This false indicates that the query permitting the refresh the tree folders returns something not managed by the error handler which sounds strange. So the issue is there but now why? I don't know. I would need to have to investigate on your server if we can arrange a TV session (contact me by email at nils@teampass.net).
What you can check is also this. From your DB, check what is the ID of new created user from table users. Then open table cache_tree and look if you find an entry for this user_id. And check if fields visible_folders and folders are filled in.
Thank you for your response, after i check in mariadb log, no log error in there. the new user "cobaa" with id "10000104", but when i check in cache_tree is empty set. what this is the problem? and how to fix it ?
if i check php-fpm i found this, maybe is it important
[11-Nov-2022 09:29:46 UTC] PHP Warning: Undefined array key "otp_provided" in /var/www/TeamPass1/sources/users.datatable.php on line 241
[11-Nov-2022 09:29:46 UTC] PHP Warning: Undefined array key "is_ready_for_usage" in /var/www/TeamPass1/sources/users.datatable.php on line 248
[15-Nov-2022 10:47:57 UTC] PHP Warning: Undefined array key "id" in /var/www/TeamPass1/sources/items.logs.php on line 112
if i check php-fpm i found this, maybe is it important
[11-Nov-2022 09:29:46 UTC] PHP Warning: Undefined array key "otp_provided" in /var/www/TeamPass1/sources/users.datatable.php on line 241 [11-Nov-2022 09:29:46 UTC] PHP Warning: Undefined array key "is_ready_for_usage" in /var/www/TeamPass1/sources/users.datatable.php on line 248 [15-Nov-2022 10:47:57 UTC] PHP Warning: Undefined array key "id" in /var/www/TeamPass1/sources/items.logs.php on line 112
I don't think, nevertheless I will check why you have those.
@fsatrion I would need to have to investigate on your server if we can arrange a TV session (contact me by email at nils@teampass.net).
I don't know if DB charset can has an impact. Nevertheless all stuff behind teampass uses utf8so indeed we can have a broken mysql answer. But in such we should have an error. It would be appreciated to check your mariadb log for any error, and share them here. When looking the sceenshot provided by @fsatrion in #3409, we can see in the console the keyword FALSE just after "TREE". This false indicates that the query permitting the refresh the tree folders returns something not managed by the error handler which sounds strange. So the issue is there but now why? I don't know. I would need to have to investigate on your server if we can arrange a TV session (contact me by email at nils@teampass.net). What you can check is also this. From your DB, check what is the ID of new created user from table users. Then open table cache_tree and look if you find an entry for this user_id. And check if fields visible_folders and folders are filled in.
Thank you for your response, after i check in mariadb log, no log error in there. the new user "cobaa" with id "10000104", but when i check in cache_tree is empty set. what this is the problem? and how to fix it ?
Hi @nilsteampassnet I seem to have figured out why some users are not logged into the teampass_cache_tree
table like @fsatrion case, I saw the data type in the increment_id
column in the teampass_cache_tree
table is tinyint
i.e. max at 127
. Can you change the increment_id
data type to INT
or maybe BIGINT
? what do you think @nilsteampassnet ? #CMIIW
Thank you for your answer
I don't know if DB charset can has an impact. Nevertheless all stuff behind teampass uses utf8so indeed we can have a broken mysql answer. But in such we should have an error. It would be appreciated to check your mariadb log for any error, and share them here. When looking the sceenshot provided by @fsatrion in #3409, we can see in the console the keyword FALSE just after "TREE". This false indicates that the query permitting the refresh the tree folders returns something not managed by the error handler which sounds strange. So the issue is there but now why? I don't know. I would need to have to investigate on your server if we can arrange a TV session (contact me by email at nils@teampass.net). What you can check is also this. From your DB, check what is the ID of new created user from table users. Then open table cache_tree and look if you find an entry for this user_id. And check if fields visible_folders and folders are filled in.
Thank you for your response, after i check in mariadb log, no log error in there. the new user "cobaa" with id "10000104", but when i check in cache_tree is empty set. what this is the problem? and how to fix it ?
Hi @nilsteampassnet I seem to have figured out why some users are not logged into the
teampass_cache_tree
table like @fsatrion case, I saw the data type in theincrement_id
column in theteampass_cache_tree
table istinyint
i.e. max at127
. Can you change theincrement_id
data type toINT
or maybeBIGINT
? what do you think @nilsteampassnet ? #CMIIWEvidence
Thank you for your answer
hi @nilsteampassnet i think the suggestion from @gilangvperdana change the data type of increment id to higher range like smallint possible to implement, because when i create new user or change role existing user, increment value still increase not continue from last value stored in db.
here i deleted all cache tree with increment_id >10 and changed data type of increment_id to smallint then created new user again. The cache tree from new user will stored with last value count (by program), not continue form last value in incrment_id. Maybe this is what causes us to run out of range using tinyint
maybe do you have any solution for this issue? i don't know about impact when we change data type to smallint
I don't know if DB charset can has an impact. Nevertheless all stuff behind teampass uses utf8so indeed we can have a broken mysql answer. But in such we should have an error. It would be appreciated to check your mariadb log for any error, and share them here. When looking the sceenshot provided by @fsatrion in #3409, we can see in the console the keyword FALSE just after "TREE". This false indicates that the query permitting the refresh the tree folders returns something not managed by the error handler which sounds strange. So the issue is there but now why? I don't know. I would need to have to investigate on your server if we can arrange a TV session (contact me by email at nils@teampass.net). What you can check is also this. From your DB, check what is the ID of new created user from table users. Then open table cache_tree and look if you find an entry for this user_id. And check if fields visible_folders and folders are filled in.
Thank you for your response, after i check in mariadb log, no log error in there. the new user "cobaa" with id "10000104", but when i check in cache_tree is empty set. what this is the problem? and how to fix it ?
Hi @nilsteampassnet I seem to have figured out why some users are not logged into the
teampass_cache_tree
table like @fsatrion case, I saw the data type in theincrement_id
column in theteampass_cache_tree
table istinyint
i.e. max at127
. Can you change theincrement_id
data type toINT
or maybeBIGINT
? what do you think @nilsteampassnet ? #CMIIWEvidence
Thank you for your answer
hi @nilsteampassnet i think the suggestion from @gilangvperdana change the data type of increment id to higher range like smallint possible to implement, because when i create new user or change role existing user, increment value still increase not continue from last value stored in db.
here i deleted all cache tree with increment_id >10 and changed data type of increment_id to smallint then created new user again. The cache tree from new user will stored with last value count (by program), not continue form last value in incrment_id. Maybe this is what causes us to run out of range using tinyint
maybe do you have any solution for this issue? i don't know about impact when we change data type to smallint
hi @nilsteampassnet what do you think about this? if we change the data type, what will be the impact in the future?
![image](https://user-images.githubusercontent.com/67575515/197780894-863a4862-6ac0-4bd1-a7b4-d775a64d32ee.png) ### Server configuration **Operating system**: Ubuntu 20.04 LTS **Web server:** Apache/2.4.41 **Database:** 5.5.5-10.3.34-MariaDB-0ubuntu0.20.04.1 **PHP version:** 7.4.3 **Teampass version:** 3.0.0.20 **Teampass configuration file:** Not needed. **Updated from an older Teampass or fresh install:** PLEASE attach to this issue the file `/includes/config/tp.config.php`. ``` 'max_latest_items' => '10', 'enable_favourites' => '1', 'show_last_items' => '1', 'enable_pf_feature' => '0', 'log_connections' => '1', 'log_accessed' => '1', 'time_format' => 'H:i:s', 'date_format' => 'd/m/Y', 'duplicate_folder' => '0', 'item_duplicate_in_same_folder' => '0', 'duplicate_item' => '0', 'number_of_used_pw' => '3', 'manager_edit' => '1', 'cpassman_dir' => '/var/www/html/TeamPass', 'cpassman_url' => 'https://