-
-
Notifications
You must be signed in to change notification settings - Fork 551
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
Fresh Install failing. #4479
Comments
Can you give us the result of (where teampass_ is your table prefix): SHOW CREATE TABLE teampass_misc; This will probably fix your issue (can give you sql error if duplicate column): ALTER TABLE teampass_misc ADD COLUMN created_at VARCHAR(255) NULL DEFAULT NULL;
ALTER TABLE teampass_misc ADD COLUMN updated_at VARCHAR(255) NULL DEFAULT NULL; Can you restart the update process first ( |
Hi @corentin-soriano I cannot press next at this stage to enter the DB details. |
Sorry, I was wrong, this post was for another issue. @nilsteampassnet I think this is related to the session encryption because SECUREPATH and SECUREFILE are not defined at this point of install process. |
thank you @corentin-soriano |
Agree with @corentin-soriano. I also had to manually create SECUREFILE, populate it with a key string and set up SECUREPATH and SECUREFILE variables in the config. Then the installation went through. |
@stanislavefremov could you possibly guide me on how you did this? Where did you create the files, how did you determine what variables to user etc? |
@hitenmandalia I am not sure it's a best way to solve the issue, it's rather a workaround for me and at least it worked. The issue I noticed that even during the fresh install the system is using Sessions and Sessions in turn require secure folder and secure key to exist, though they normally are created later by the install process. So:
|
@stanislavefremov thank you for taking the time to write this up. I will give it a go. |
@hitenmandalia |
Thank you. I am now able to complete the full install. |
Steps to reproduce
Expected behaviour
Should be able to pass the check screen
Actual behaviour
Nothing happens on screen. Errors shown
Server configuration
Operating system: Alpine Linux
Web server: Nginx
Database: MySQL 8
PHP version: 8.1
Teampass version:
Teampass configuration file:
Updated from an older Teampass or fresh install:
PLEASE attach to this issue the file
/includes/config/tp.config.php
.Install never goes past the Checks screen:
2024-11-21 15:53:18 [21-Nov-2024 15:53:18] WARNING: [pool www] child 61 said into stderr: "NOTICE: PHP message: PHP Notice: file_get_contents(): Read of 12288 bytes failed with errno=21 Is a directory in /var/www/html/vendor/teampassclasses/sessionmanager/src/SessionManager.php on line 44" 2024-11-21 15:53:18 [21-Nov-2024 15:53:18] WARNING: [pool www] child 61 said into stderr: "NOTICE: PHP message: PHP Stack trace:" 2024-11-21 15:53:18 [21-Nov-2024 15:53:18] WARNING: [pool www] child 61 said into stderr: "NOTICE: PHP message: PHP 1. {main}() /var/www/html/install/install.queries.php:0" 2024-11-21 15:53:18 [21-Nov-2024 15:53:18] WARNING: [pool www] child 61 said into stderr: "NOTICE: PHP message: PHP 2. require_once() /var/www/html/install/install.queries.php:57" 2024-11-21 15:53:18 [21-Nov-2024 15:53:18] WARNING: [pool www] child 61 said into stderr: "NOTICE: PHP message: PHP 3. TeampassClasses\SessionManager\SessionManager::getSession() /var/www/html/sources/main.functions.php:62" 2024-11-21 15:53:18 [21-Nov-2024 15:53:18] WARNING: [pool www] child 61 said into stderr: "NOTICE: PHP message: PHP 4. file_get_contents($filename = '/') /var/www/html/vendor/teampassclasses/sessionmanager/src/SessionManager.php:44" 2024-11-21 15:53:18 [21-Nov-2024 15:53:18] WARNING: [pool www] child 61 said into stderr: "NOTICE: PHP message: PHP Fatal error: Uncaught Defuse\Crypto\Exception\BadFormatException: Encoded data is shorter than expected. in /var/www/html/vendor/defuse/php-encryption/src/Encoding.php:233" 2024-11-21 15:53:18 [21-Nov-2024 15:53:18] WARNING: [pool www] child 61 said into stderr: "Stack trace:" 2024-11-21 15:53:18 [21-Nov-2024 15:53:18] WARNING: [pool www] child 61 said into stderr: "#0 /var/www/html/vendor/defuse/php-encryption/src/Key.php(53): Defuse\Crypto\Encoding::loadBytesFromChecksummedAsciiSafeString('\xDE\xF0\x00\x00', Object(SensitiveParameterValue))" 2024-11-21 15:53:18 [21-Nov-2024 15:53:18] WARNING: [pool www] child 61 said into stderr: "#1 /var/www/html/vendor/teampassclasses/sessionmanager/src/SessionManager.php(44): Defuse\Crypto\Key::loadFromAsciiSafeString(Object(SensitiveParameterValue))" 2024-11-21 15:53:18 [21-Nov-2024 15:53:18] WARNING: [pool www] child 61 said into stderr: "#2 /var/www/html/sources/main.functions.php(62): TeampassClasses\SessionManager\SessionManager::getSession()" 2024-11-21 15:53:18 [21-Nov-2024 15:53:18] WARNING: [pool www] child 61 said into stderr: "#3 /var/www/html/install/install.queries.php(57): require_once('/var/www/html/s...')" 2024-11-21 15:53:18 [21-Nov-2024 15:53:18] WARNING: [pool www] child 61 said into stderr: "#4 {main}" 2024-11-21 15:53:18 [21-Nov-2024 15:53:18] WARNING: [pool www] child 61 said into stderr: " thrown in /var/www/html/vendor/defuse/php-encryption/src/Encoding.php on line 233" 2024-11-21 15:53:18 172.17.0.1 - - [21/Nov/2024:15:53:18 +0000] "POST /install/install.queries.php HTTP/1.1" 500 5 "https://xxx.xxx.xxx/install/install.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"
The text was updated successfully, but these errors were encountered: