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

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

Open
reginfo opened this issue May 16, 2022 · 11 comments

Comments

@reginfo
Copy link

reginfo commented May 16, 2022

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

@lollko
Copy link

lollko commented May 17, 2022

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

@ssudosu
Copy link

ssudosu commented May 18, 2022

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.

dsnt02518 added a commit to dsnt02518/TeamPass that referenced this issue May 19, 2022
3.0.0.17

Typo fix - resolves nilsteampassnet#3163
dsnt02518 added a commit to dsnt02518/TeamPass that referenced this issue May 19, 2022
Typo fix - resolves nilsteampassnet#3163
@dsnt02518 dsnt02518 mentioned this issue May 19, 2022
@dsnt02518
Copy link

Looks like a missing semicolon - have created a pull request which should fix this (#3172)

@dsnt02518
Copy link

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 added a commit to dsnt02518/TeamPass that referenced this issue May 19, 2022
Fix modal close issue.
Resolves nilsteampassnet#3163

Problem appears to be that we are hiding the modal while it is still
transitioning, so we need to wait on the shown.bs.modal event and also
hide the modal there.
This only happens if the encryption occurs quickly (e.g. for a new user
being enabled from LDAP).
@giuseppeursi
Copy link

Hi, i have the same problem.
errorlog.txt

Here devtool log

image

@maydond
Copy link

maydond commented Jun 15, 2022

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.

@ricain59
Copy link

ricain59 commented Jul 5, 2022

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

@lollko
Copy link

lollko commented Aug 2, 2022

bump, some news ?

@ricain59
Copy link

Any news?

@nratineau
Copy link
Contributor

@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.

@Kyogre
Copy link

Kyogre commented Feb 6, 2023

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 someemail123@mail.com and than generate new OTP - it will be done successfully, even if I write some fake email.

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

Successfully merging a pull request may close this issue.

9 participants