TeamPass icon indicating copy to clipboard operation
TeamPass copied to clipboard

[3.0.0.17] Generating keys - Encrypting keys - Personal items [0 - 100] - Stuck

Open reginfo opened this issue 2 years ago • 10 comments

Steps to reproduce

1.Login as admin 2.Add new AD User

Expected behaviour

Complete procedure

Actual behaviour

Stuck on Generating Keys - Encrypting keys - Personal items [0 - 100]

image

Server configuration

Operating system: Ubuntu 20.04 Web server: Apache/2.4.41 (Ubuntu) Database: mysql Ver 15.1 Distrib 10.7.3-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2 PHP version: PHP 7.4.3 Teampass version: version 3.0.0.17 Teampass configuration file: PLEASE attach to this issue the file /includes/config/tp.config.php. tp (1).txt

Updated from an older Teampass or fresh install: Fresh

Client configuration

Browser: Chrome, Edge Operating system: Windows 11

Logs

Web server error log

Nothing in error.log

Log from the web-browser developer console (CTRL + SHIFT + i)

DevTools failed to load source map: Could not load content for http://192.168.xx.xx/plugins/summernote/summernote-bs4.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

reginfo avatar May 16 '22 11:05 reginfo

Hi,

I have same issue

when i check error log nothing happen , but if i check php. log i find somthing

PHP Fatal error: Uncaught TypeError: base64_encode(): Argument #1 ($string) must be of type string, bool given in /var/www/TeamPass1/sources/main.functions.php:2738 Stack trace: #0 /var/www/TeamPass1/sources/main.functions.php(2738): base64_encode() #1 /var/www/TeamPass1/sources/main.queries.php(1893): decryptUserObjectKey() #2 /var/www/TeamPass1/sources/main.queries.php(1747): continueReEncryptingUserSharekeysStep1() #3 /var/www/TeamPass1/sources/main.queries.php(395): continueReEncryptingUserSharekeys() #4 /var/www/TeamPass1/sources/main.queries.php(150): keyHandler() #5 /var/www/TeamPass1/sources/main.queries.php(74): mainQuery() #6 {main} thrown in /var/www/TeamPass1/sources/main.functions.php on line 2738

lollko avatar May 17 '22 14:05 lollko

Hello,

I have same issue,

When I try to add a user through LDAP it is in a loop but the user receives the email with encryption code. teampass_loop

After entering the LDAP user, no folders appear and it is in a loop looking for folders. teampass_folders_loop

In the browser console I have these errors:

teampass_error

Thank you.

ssudosu avatar May 18 '22 09:05 ssudosu

Looks like a missing semicolon - have created a pull request which should fix this (https://github.com/nilsteampassnet/TeamPass/pull/3172)

dsnt02518 avatar May 19 '22 14:05 dsnt02518

Nope, that's not the only issue - apologies. I'll submit a new PR if I can work out what's really going on here.

dsnt02518 avatar May 19 '22 17:05 dsnt02518

Hi, i have the same problem. errorlog.txt

Here devtool log

image

giuseppeursi avatar May 27 '22 12:05 giuseppeursi

I had the same issue (Encrypting keys dialog stuck) after some time using TeamPass and fiilling up DB with items. Results were variable, for example, new domain users received "welcome" letter and could use teampass, but could not see some passwords (items with large ID's that were not successfully encrypted during 30 seconds). Local users even did not receive emails and could not log in.

Maybe it is not the case that you are talking about, but sympthoms look similar. In my case, the reason was the default 30 second PHP timeout, which was not enough to finish key encryption. After changing php timeout and restarting PHP everything works fine, just needed to reencrypt data for users or just recreate them.

maydond avatar Jun 15 '22 08:06 maydond

Hello,

I have the same problem after check all users on upgrade from 2.1.27.36 to 3.0.0.17 On creating keys for the first users, freeeze on this step. image

The log not show anything: `==> /var/log/httpd/teampass-access_log <== 192.168.1.212 - - [05/Jul/2022:10:11:55 +0100] "POST /install/upgrade_run_3.0.0_users.php HTTP/1.1" 200 482 "https://x.x.x.x/install/upgrade.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"

==> /var/log/httpd/ssl_access_log <== 192.168.1.212 - - [05/Jul/2022:10:11:55 +0100] "POST /install/upgrade_run_3.0.0_users.php HTTP/1.1" 200 482 ` On developper page on browser, don't get any errors: image

ricain59 avatar Jul 05 '22 09:07 ricain59

bump, some news ?

lollko avatar Aug 02 '22 07:08 lollko

Any news?

ricain59 avatar Aug 17 '22 15:08 ricain59

@lollko @ricain59 Had the same issue with the upgrade being stuck and worked around it by creating a brand new Admin user and using it to run the upgrade. Hopefully it will work for you. Seems there is an issue with the upgrade process when it's trying to do the keys/items for the user you are running the upgrade with if this user has items/password associated in the DB.

nratineau avatar Aug 27 '22 21:08 nratineau

For me Encrypting keys - Personal items stucks only if the user has bad format of Email in his info. If I edit the user and write some email in correct format like [email protected] and than generate new OTP - it will be done successfully, even if I write some fake email.

Kyogre avatar Feb 06 '23 11:02 Kyogre