TeamPass icon indicating copy to clipboard operation
TeamPass copied to clipboard

Install folder not being removed after installation

Open hitenmandalia opened this issue 3 years ago • 10 comments

Steps to reproduce

  1. Setup Ubuntu and MariaDB
  2. Go through installation steps
  3. Once install is complete, Installation starts again when clicking on "move to home page"
  4. manually removed Install folder, then get a Not Found (URL still trying to load install page)

Expected behaviour

Expect to see login page for teampass

Actual behaviour

installation page appears if install folder not deleted, or Not found if install folder manually removed

Server configuration

Operating system: Ubuntu

Web server: Apache2

Database: MariaDB

PHP version: 7.4

Teampass version: 3.0.0.10

Teampass configuration file:

Updated from an older Teampass or fresh install: Fresh Install PLEASE attach to this issue the file /includes/config/tp.config.php.

Client configuration

Browser: Chrome

Operating system:

Logs

Web server error log

I see the following error in apache log

[Wed Jan 19 17:29:33.010860 2022] [php7:error] [pid 17084] [client 172.17.0.1:49862] PHP Fatal error:  Uncaught Error: Class 'Defuse\\Crypto\\Exception\\WrongKeyOrModifiedCiphertextException' not found in /var/www/TeamPass/includes/libraries/Encryption/Encryption/Crypto.php:364\nStack trace:\n#0 /var/www/TeamPass/includes/libraries/Encryption/Encryption/Crypto.php(113): Defuse\\Crypto\\Crypto::decryptInternal()\n#1 /var/www/TeamPass/includes/libraries/Encryption/Encryption/RuntimeTests.php(100): Defuse\\Crypto\\Crypto::decrypt()\n#2 /var/www/TeamPass/includes/libraries/Encryption/Encryption/RuntimeTests.php(61): Defuse\\Crypto\\RuntimeTests::testEncryptDecrypt()\n#3 /var/www/TeamPass/includes/libraries/Encryption/Encryption/Crypto.php(259): Defuse\\Crypto\\RuntimeTests::runtimeTest()\n#4 /var/www/TeamPass/includes/libraries/Encryption/Encryption/Crypto.php(39): Defuse\\Crypto\\Crypto::encryptInternal()\n#5 /var/www/TeamPass/install/install.queries.php(149): Defuse\\Crypto\\Crypto::encrypt()\n#6 /var/www/TeamPass/install/install.queries.php(1284): encryptFollowingDefuse()\n#7 {main}\n  thrown in /var/www/TeamPass/includes/libraries/Encryption/Encryption/Crypto.php on line 364, referer: http://localhost/install/install.php

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

Insert the log here and especially the answer of the query that failed.

hitenmandalia avatar Jan 19 '22 17:01 hitenmandalia

Folder removal is OS and rights dependent. If you remove it manually, please clear your browser cache. The blank page will not be after clearing the cache.

nilsteampassnet avatar Jan 26 '22 05:01 nilsteampassnet

chmod -775 on TeamPass folder chown apache:apache on TeamPass folder Install directory still not being removed

Manually removed Installation folder. Opened new private browser window using different brower, browse to localhost (as its installed locally as a docker container) and get redirected to http://localhost/install/install.php. not sure what im doing wrong? any help would be appreciated

Still seeing the following error in the log:

[Fri Jan 28 13:28:18.283143 2022] [php7:error] [pid 51] [client 172.17.0.1:50214] PHP Fatal error: Uncaught Error: Class 'Defuse\Crypto\Exception\WrongKeyOrModifiedCiphertextException' not found in /var/www/TeamPass/includes/libraries/Encryption/Encryption/Crypto.php:364\nStack trace:\n#0 /var/www/TeamPass/includes/libraries/Encryption/Encryption/Crypto.php(113): Defuse\Crypto\Crypto::decryptInternal()\n#1 /var/www/TeamPass/includes/libraries/Encryption/Encryption/RuntimeTests.php(100): Defuse\Crypto\Crypto::decrypt()\n#2 /var/www/TeamPass/includes/libraries/Encryption/Encryption/RuntimeTests.php(61): Defuse\Crypto\RuntimeTests::testEncryptDecrypt()\n#3 /var/www/TeamPass/includes/libraries/Encryption/Encryption/Crypto.php(259): Defuse\Crypto\RuntimeTests::runtimeTest()\n#4 /var/www/TeamPass/includes/libraries/Encryption/Encryption/Crypto.php(39): Defuse\Crypto\Crypto::encryptInternal()\n#5 /var/www/TeamPass/install/install.queries.php(149): Defuse\Crypto\Crypto::encrypt()\n#6 /var/www/TeamPass/install/install.queries.php(1287): encryptFollowingDefuse()\n#7 {main}\n thrown in /var/www/TeamPass/includes/libraries/Encryption/Encryption/Crypto.php on line 364, referer: http://localhost/install/install.php

hitenmandalia avatar Jan 28 '22 13:01 hitenmandalia

Just reverted back to install 3.0.0.9 and do not get this problem. Only happening to me when using 3.0.0.10

hitenmandalia avatar Feb 01 '22 14:02 hitenmandalia

Yes, 3.0.0.10 is always redirecting to install/install.php...something is wrong. 3.0.0.09 is ok.

gmontequi avatar Feb 01 '22 15:02 gmontequi

Has a solution been found to install the verse 3.0.0.10 ? I have the same problem at the end of the install in return to the beginning of the install, the tables are present in the database , but I don't have a settings file.

sit-exploit avatar Feb 07 '22 15:02 sit-exploit

dont believe so. All I suggest, is install 3.0.0.9 and then upgrade to 3.0.0.10. Seemed to work for me

hitenmandalia avatar Feb 07 '22 15:02 hitenmandalia

hello team :) same issue here with 3.0.0.10 I thought this bug could come from the : Absolute path to SaltKey = /var/teampass but even with blank defaut path, after install finish it loops to reinstall :( I will install 3.0.0.9

marmotte32 avatar Feb 08 '22 22:02 marmotte32

same issue with 3.0.0.10 Debian11+nginx+php-fpm

Ytenok avatar Feb 09 '22 14:02 Ytenok

same issue with Debian. It would be possible to receive an indication of how to go to version 3.0.0.9, already having 3.0.0.10 installed, to check if this issue is resolved

carlosmatthews avatar Jun 02 '22 22:06 carlosmatthews

hi it wokrs for me rm -rf install folder and i can log with the admin account ! extract to: https://teampass.userecho.com/en/communities/1/topics/14-admin-login

carlosmatthews avatar Jun 03 '22 13:06 carlosmatthews

yeah! Thank you. Executing manually rm -rf /var/www/teampass/install worked for me.

Kyogre avatar Feb 02 '23 11:02 Kyogre

Install process tries to remove the install folder. A message is also displayed image

This ticket is closed

nilsteampassnet avatar Feb 11 '23 09:02 nilsteampassnet

Woks

hi it wokrs for me rm -rf install folder and i can log with the admin account ! extract to: https://teampass.userecho.com/en/communities/1/topics/14-admin-login

Works for me as well. Tks all.

nguyenquangtruong avatar Apr 13 '23 03:04 nguyenquangtruong

Ubuntu 22.04 you need to delete the folder /var/www/html/TeamPass/install rm -rf /var/www/html/TeamPass/install logon web

bladerock5 avatar Aug 24 '23 08:08 bladerock5