nilsteampassnet / TeamPass

Collaborative Passwords Manager
https://www.teampass.net
1.69k stars 551 forks source link

After Upgrade to Teampass 3.1.2 index.php returns too many redirects error #4215

Open JoseJHoy opened 5 months ago

JoseJHoy commented 5 months ago
### Steps to reproduce 1. Upgrade from 2.1.27.36 to 3.1.2 2. Browse https://MyTeampass.es/index.php ### Expected behaviour After upgrade directly from 2.1.27.36 to 3.1.2 we should be able to open https://MyTeampass.es/index.php ### Actual behaviour After upgrade directly from 2.1.27.36 to 3.1.2 when we can not open index.php there is an error ERR_TOO_MANY_REDIRECTS We try with Firefox, chrome and Edge after deleting cache and same error. ### Server configuration **Operating system**: Debian 11 **Web server:** apache2 2.4.59-1~deb11u1 **Database:** 10.11.8+maria~deb11 **PHP version:** 8.3.7 (probado con 8.1 mismo error **Teampass version:** 3.2.1 **Updated from an older Teampass or fresh install:** PLEASE attach to this issue the file `/includes/config/tp.config.php`. '10', 'enable_favourites' => '1', 'show_last_items' => '0', 'enable_pf_feature' => '0', 'log_connections' => '1', 'log_accessed' => '1', 'time_format' => 'H:i:s', 'date_format' => 'd/m/Y', 'duplicate_folder' => '1', 'duplicate_item' => '1', 'number_of_used_pw' => '12', 'manager_edit' => '1', 'cpassman_ai_dir' => '/var/www/cpassman', 'cpassman_ai_url' => 'https://10.168.33.8/cpassman', 'favicon' => 'https://MyTeampass.es/favicon.ico', 'activate_expiration' => '0', 'pw_life_duration' => '0', 'maintenance_mode' => '0', 'cpassman_ai_version' => '2.0rc4', 'ldap_mode' => '0', 'richtext' => '0', 'allow_print' => '0', 'anyone_can_modify' => '0', 'nb_bad_authentication' => '10', 'utf8_enabled' => '1', 'restricted_to_roles' => '1', 'custom_logo' => 'https://MyTeampass.es/logo.png', 'custom_login_text' => 'Login', 'send_stats' => '0', 'send_stats_time' => '0', 'ldap_ssl' => '0', 'ldap_tls' => '0', 'enable_kb' => '0', 'copy_to_clipboard_small_icons' => '1', 'enable_user_can_create_folders' => '1', 'ldap_suffix' => '@doamin.local', 'ldap_domain_dn' => 'dc=doamin,dc=local', 'ldap_domain_controler' => 'DOAMIN-DC1.doamin.local', 'timezone' => 'Europe/Madrid', 'show_description' => '1', 'menu_type' => 'context', 'cpassman_dir' => '/var/www/MyTeampass.es', 'cpassman_url' => 'https://MyTeampass.es', 'cpassman_version' => '2.1.27', 'restricted_to' => '1', 'default_language' => 'spanish', 'send_mail_on_user_login' => '0', 'enable_send_email_on_user_login' => '0', 'nb_items_by_query' => 'auto', 'enable_delete_after_consultation' => '0', 'enable_email_notification_on_item_shown' => '0', 'path_to_upload_folder' => '/var/www-secure/MyTeampass.es/upload', 'url_to_upload_folder' => 'https://MyTeampass.es/upload', 'enable_personal_saltkey_cookie' => '0', 'personal_saltkey_cookie_duration' => '31', 'path_to_files_folder' => '/var/www-secure/MyTeampass/files', 'url_to_files_folder' => 'https://MyTeampass/files', 'pwd_maximum_length' => '120', 'email_smtp_server' => 'smtp.local', 'email_smtp_auth' => '0', 'email_auth_username' => 'false', 'email_auth_pwd' => 'false', 'email_from' => 'teampass@doamin.es', 'email_from_name' => 'TeamPass D', 'email_port' => '25', 'insert_manual_entry_item_history' => '0', 'email_post' => '25', 'delay_item_edition' => '30', 'allow_import' => '0', 'proxy_port' => '', 'upload_maxfilesize' => '10mb', 'upload_docext' => 'doc,docx,dotx,xls,xlsx,xltx,rtf,csv,txt,pdf,ppt,pptx,pot,dotx,xltx', 'upload_imagesext' => 'jpg,jpeg,gif,png', 'upload_pkgext' => '7z,rar,tar,zip', 'upload_otherext' => 'sql,xml,pcf,vpn,exe,msi,tgz', 'upload_imageresize_options' => '0', 'upload_imageresize_width' => '800', 'upload_imageresize_height' => '600', 'upload_imageresize_quality' => '90', 'anyone_can_modify_bydefault' => '0', 'enable_sts' => '1', 'can_create_root_folder' => '0', 'encryptClientServer' => '0', 'tree_counters' => '0', 'ldap_type' => 'windows', 'use_md5_password_as_salt' => '0', 'get_tp_info' => '1', 'ga_website_name' => '', 'item_extra_fields' => '0', 'settings_offline_mode' => '0', 'offline_key_level' => '90', 'item_duplicate_in_same_folder' => '1', 'ldap_user_attribute' => '0', 'roles_allowed_to_print' => '', 'email_security' => 'none', 'enable_email_notification_on_user_pw_change' => '0', 'api' => '0', 'subfolder_rights_as_parent' => '1', 'show_only_accessible_folders' => '1', 'enable_suggestion' => '0', 'email_server_url' => '', 'otv_expiration_period' => '7', 'default_session_expiration_time' => '120', 'enable_attachment_encryption' => '1', 'bck_script_filename' => 'bck_cpassman', 'bck_script_path' => '/var/www/MyTeampass.es/backups', 'duo' => '0', 'syslog_enable' => '0', 'syslog_host' => 'localhost', 'syslog_port' => '514', 'google_authentication' => '0', 'enable_server_password_change' => '0', 'ldap_object_class' => '0', 'teampass_version' => '3.1.2', 'manager_move_item' => '1', 'create_item_without_password' => '1', 'send_statistics_items' => '', 'agses_authentication_enabled' => '0', 'otv_is_enabled' => '0', 'enable_massive_move_delete' => '1', 'saltkey_ante_2127' => '13', 'ldap_port' => '389', 'migration_to_2127' => 'done', 'disable_show_forgot_pwd_link' => '1', 'personal_saltkey_security_level' => '0', 'ldap_new_user_is_administrated_by' => '0', 'enable_http_request_login' => '0', 'admin_2fa_required' => '1', 'ldap_and_local_authentication' => '0', 'secure_display_image' => '1', 'upload_zero_byte_file' => '0', 'upload_all_extensions_file' => '0', 'files_with_defuse' => 'done', 'ldap_new_user_role' => '28', 'proxy_ip' => '', 'password_overview_delay' => '4', 'roles_allowed_to_print_select' => '', 'clipboard_life_duration' => '30', 'mfa_for_roles' => '', 'settings_tree_counters' => '0', 'email_debug_level' => '0', 'ga_reset_by_user' => '', 'onthefly-backup-key' => '', 'onthefly-restore-key' => '', 'ldap_user_dn_attribute' => '', 'ldap_dn_additional_user_dn' => '', 'ldap_user_object_filter' => '', 'ldap_bdn' => '', 'ldap_hosts' => '', 'ldap_password' => '', 'ldap_username' => '', 'api_token_duration' => '60', 'enable_tasks_manager' => '1', 'task_maximum_run_time' => '300', 'maximum_number_of_items_to_treat' => '300', 'tasks_manager_refreshing_period' => '1000', 'ldap_tls_certifacte_check' => 'LDAP_OPT_X_TLS_NEVER', 'enable_tasks_log' => '0', 'enable_ad_users_with_ad_groups' => '0', 'enable_ad_user_auto_creation' => '0', 'ldap_group_object_filter' => '', 'ldap_guid_attibute' => 'objectguid', 'sending_emails_job_frequency' => '2', 'user_keys_job_frequency' => '1', 'items_statistics_job_frequency' => '5', 'reload_cache_table_task' => '', 'rebuild_config_file' => '', 'purge_temporary_files_task' => '', 'clean_orphan_objects_task' => '', 'users_personal_folder_task' => '', 'maximum_session_expiration_time' => '60', 'items_ops_job_frequency' => '1', 'upgrade_timestamp' => '1717745738', 'enable_refresh_task_last_execution' => '1', 'ldap_group_objectclasses_attibute' => 'top,groupofuniquenames', 'pwd_default_length' => '14', 'tasks_log_retention_delay' => '3650', 'oauth2_enabled' => '0', 'oauth2_client_appname' => 'Login with Azure', 'oauth2_client_scopes' => 'openid,profile,email', ); ### Client configuration **Browser:** Firefox 126 , Chrome 125 **Operating system:** Windows 11 ### Logs #### Web server error log MyTeampass.es:443 10.172.1.52 - a-i [07/Jun/2024:13:21:02 +0200] "GET / HTTP/1.1" 302 145628 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36" MyTeampass.es:443 10.172.1.52 - a-i[07/Jun/2024:13:21:02 +0200] "GET / HTTP/1.1" 302 145628 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36" MyTeampass.es:443 10.172.1.52 - a-i [07/Jun/2024:13:21:02 +0200] "GET / HTTP/1.1" 302 145628 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; MyTeampass.es:443 10.172.1.52 - a-i [07/Jun/2024:13:22:28 +0200] "GET /index.php?page=items HTTP/1.1" 302 2763 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0" MyTeampass.es:443 10.172.1.52 - a-i [07/Jun/2024:13:22:28 +0200] "GET /index.php?page=items HTTP/1.1" 302 2763 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0" MyTeampass.es:443 10.172.1.52 - a-i [07/Jun/2024:13:22:28 +0200] "GET /index.php?page=items HTTP/1.1" 302 2763 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0"
rosanribeiro commented 5 months ago

Same problem here - version 3.1.2.45 @nilsteampassnet

Can someone help us?

rokx commented 5 months ago

You are getting redirected to /index.php?page=items. I suspect you have already some sort of login. Try opening the page in private window or clear browser cache/cookies/history.

JoseJHoy commented 5 months ago

You are getting redirected to /index.php?page=items. I suspect you have already some sort of login. Try opening the page in private window or clear browser cache/cookies/history.

Yes, there is pre authentication with a pre auth user then the normal behaviour is to redirect to index.php?page=items and open it, as it would happen in 2.1.27.36 version, but after the upgrade it seems to be a loop here, and after several redirects to same page appears the too many redirects error. With private window or cache/cookies/history cleared the issue remains.

rosanribeiro commented 5 months ago

@rokx Yes, there is pre authentication, In the same way that @JoseJHoy said My version is version 3.1.2.45 (Last confirmation of the @nilsteampassnet was 3 weeks ago)

@rokx Another way to solve?

rokx commented 5 months ago

Check developers tools in the browser to see where the application is routing you. Check if anything is logged into console.

I see in index.php code that it redirects you if /includes/config/settings.php is missing or application files were updated but the upgrade procedure was not yet completed. Try going to install/upgrade.php again.

Jenlain74 commented 5 months ago

Same error, I'm running Teampass 2.1.27 with PHP 7.4 on Almalinux 9. I update to PHP 8.1 (also tested with 8.2 and 8.3) and update to TP 3.1.1.

At the end of the upgrade, I'm supposed to be redirect to index.php, I'm getting a redirection loop on index.php. Unable to rerun upgrade.php since it's deleted at the end of procedure. I tried with a private window, I deleted the cache and cookies. I can't do anything. I tried in 3.1.2 and in 3.1.1, with PHP 8.1, 8.2 and 8.3. The behavior is always the same.

Settings.php was edited by me before upgrade. Now it's :

<?php
// DATABASE connexion parameters
define("DB_HOST", "localhost");
define("DB_USER", "root");
define("DB_PASSWD", "_my password_");
define("DB_NAME", "teampass");
define("DB_PREFIX", "teampass_");
define("DB_PORT", "3306");
define("DB_ENCODING", "utf8");
//define("DB_SSL", false); // if DB over SSL then comment this line
// if DB over SSL then uncomment the following lines
define("DB_SSL", array(
    "key" => "",
    "cert" => "",
    "ca_cert" => "",
    "ca_path" => "",
    "cipher" => ""
));
define("DB_CONNECT_OPTIONS", array(
    MYSQLI_OPT_CONNECT_TIMEOUT => 10
));
define("SECUREPATH", "/var/teampass");
define("SECUREFILE", "teampass-seckey.txt");
define("IKEY", "");
define("SKEY", "");
define("HOST", "");

if (isset($_SESSION['settings']['timezone']) === true) {
    date_default_timezone_set($_SESSION['settings']['timezone']);

tp.config.php is now : <?php global $SETTINGS; $SETTINGS = array ( 'max_latest_items' => '10', 'enable_favourites' => '1', 'show_last_items' => '1', 'enable_pf_feature' => '1', '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://my_teampass_server', 'favicon' => 'https://my_teampass_server/UN_icon_100px.png', 'path_to_upload_folder' => '/var/www/html/teampass/upload', 'url_to_upload_folder' => 'https://my_teampass_server/upload', 'path_to_files_folder' => '/var/www/html/teampass/files', 'url_to_files_folder' => 'https://my_teampass_server/files', 'activate_expiration' => '0', 'pw_life_duration' => '0', 'maintenance_mode' => '0', 'enable_sts' => '1', 'encryptClientServer' => '1', 'teampass_version' => '3.1.1', 'ldap_mode' => '0', 'ldap_type' => 'windows', 'ldap_suffix' => '@.org', 'ldap_domain_dn' => 'dc=xxx,dc=xxx,dc=org', 'ldap_domain_controler' => 'domain1.org,domain2.org,domain3.org', 'ldap_user_attribute' => '0', 'ldap_ssl' => '1', 'ldap_tls' => '0', 'ldap_search_base' => '0', 'ldap_port' => '636', 'richtext' => '0', 'allow_print' => '0', 'roles_allowed_to_print' => '0', 'show_description' => '1', 'anyone_can_modify' => '0', 'anyone_can_modify_bydefault' => '0', 'nb_bad_authentication' => '0', 'utf8_enabled' => '1', 'restricted_to' => '0', 'restricted_to_roles' => '0', 'enable_send_email_on_user_login' => '0', 'enable_user_can_create_folders' => '1', 'insert_manual_entry_item_history' => '0', 'enable_kb' => '1', 'enable_email_notification_on_item_shown' => '0', 'enable_email_notification_on_user_pw_change' => '0', 'custom_logo' => 'https://my_teampass_server/TP-Logo-400x200.png', 'custom_login_text' => '', 'default_language' => 'english', 'send_stats' => '0', 'send_statistics_items' => '', 'send_stats_time' => '1582978368', 'get_tp_info' => '1', 'send_mail_on_user_login' => '0', 'nb_items_by_query' => 'auto', 'enable_delete_after_consultation' => '0', 'enable_personal_saltkey_cookie' => '1', 'personal_saltkey_cookie_duration' => '90', 'email_smtp_server' => '', 'email_smtp_auth' => '', 'email_auth_username' => '', 'email_auth_pwd' => '', 'email_port' => '', 'email_security' => '', 'email_server_url' => '', 'email_from' => 'xxx@xxx.org', 'email_from_name' => 'TeamPass', 'pwd_maximum_length' => '40', 'google_authentication' => '1', 'delay_item_edition' => '0', 'allow_import' => '1', 'proxy_ip' => '', 'proxy_port' => '', 'upload_maxfilesize' => '10mb', 'upload_docext' => 'doc,docx,dotx,xls,xlsx,xltx,rtf,csv,txt,pdf,ppt,pptx,pot,dotx,xltx', 'upload_imagesext' => 'jpg,jpeg,gif,png', 'upload_pkgext' => '7z,rar,tar,zip', 'upload_otherext' => 'sql,xml', 'upload_imageresize_options' => '1', 'upload_imageresize_width' => '800', 'upload_imageresize_height' => '600', 'upload_imageresize_quality' => '90', 'use_md5_password_as_salt' => '0', 'ga_website_name' => 'Teampass', 'api' => '0', 'subfolder_rights_as_parent' => '1', 'show_only_accessible_folders' => '0', 'enable_suggestion' => '1', 'otv_expiration_period' => '7', 'default_session_expiration_time' => '60', 'duo' => '0', 'enable_server_password_change' => '0', 'ldap_object_class' => '0', 'bck_script_path' => '/backup', 'bck_script_filename' => 'bck_teampass', 'syslog_enable' => '1', 'syslog_host' => 'syslog', 'syslog_port' => '514', 'manager_move_item' => '0', 'create_item_without_password' => '1', 'otv_is_enabled' => '0', 'agses_authentication_enabled' => '0', 'item_extra_fields' => '0', 'saltkey_ante_2127' => 'none', 'migration_to_2127' => 'done', 'files_with_defuse' => 'done', 'timezone' => 'Europe/Paris', 'enable_attachment_encryption' => '1', 'personal_saltkey_security_level' => '50', 'ldap_new_user_is_administrated_by' => '0', 'disable_show_forgot_pwd_link' => '0', 'offline_key_level' => '0', 'enable_http_request_login' => '0', 'ldap_and_local_authentication' => '1', 'secure_display_image' => '1', 'upload_zero_byte_file' => '0', 'upload_all_extensions_file' => '0', 'bck_script_passkey' => 'XXXXXX', 'admin_2fa_required' => '0', 'ga_reset_by_user' => '1', 'ldap_new_user_role' => '2', 'ldap_allowed_usergroup' => '', 'copy_to_clipboard_small_icons' => '1', 'bck_script_key' => 'XXXXXX', 'yubico_authentication' => '0', 'password_overview_delay' => '4', 'roles_allowed_to_print_select' => '', 'clipboard_life_duration' => '30', 'mfa_for_roles' => '', 'tree_counters' => '0', 'settings_offline_mode' => '0', 'settings_tree_counters' => '0', 'enable_massive_move_delete' => '0', 'email_debug_level' => '0', 'onthefly-backup-key' => '', 'onthefly-restore-key' => '', 'ldap_user_dn_attribute' => '', 'ldap_dn_additional_user_dn' => '', 'ldap_user_object_filter' => '', 'ldap_bdn' => '', 'ldap_hosts' => '', 'ldap_password' => '', 'ldap_username' => '', 'api_token_duration' => '60', 'enable_tasks_manager' => '1', 'task_maximum_run_time' => '300', 'maximum_number_of_items_to_treat' => '300', 'tasks_manager_refreshing_period' => '100', 'ldap_tls_certifacte_check' => 'LDAP_OPT_X_TLS_NEVER', 'enable_tasks_log' => '0', 'enable_ad_users_with_ad_groups' => '0', 'enable_ad_user_auto_creation' => '0', 'ldap_group_object_filter' => '', 'ldap_guid_attibute' => 'objectguid', 'sending_emails_job_frequency' => '2', 'user_keys_job_frequency' => '1', 'items_statistics_job_frequency' => '5', 'reload_cache_table_task' => '', 'rebuild_config_file' => '', 'purge_temporary_files_task' => '', 'clean_orphan_objects_task' => '', 'users_personal_folder_task' => '', 'maximum_session_expiration_time' => '60', 'items_ops_job_frequency' => '1', 'upgrade_timestamp' => '1717595141', 'enable_refresh_task_last_execution' => '1', 'ldap_group_objectclasses_attibute' => 'top,groupofuniquenames', );

rokx commented 5 months ago

Yesterday I updated two instances of 2.1.27.36 to the latest version from master (3.1.2 r45). One was a fresh install and the other is a production instance. I did not experience any redirect issued upon login. The upgrade was done on windows (access rights issues?) with php 8.2.7 and mysql 5.7.24.

Can you post the network traffic after pressing the login button, so we can see where the redirect are coming from?

2024-06-11 09_53_24-Teampass

ps: if install folder is deleted, you can just copy it from the zip/source again.

Jenlain74 commented 5 months ago

Hi @rokx !

I have the feeling the problem is linked with the config files. Maybe we inherit a bad syntax or a missing data.

Could you please share your .../includes/config/settings.php and .../includes/config/tp.config.php so we can compare ?

Thanks !

rokx commented 5 months ago

Please find the files in attachment. These are files after migration to 3.1.2 r45

tp.config.php.txt settings.php.txt

JoseJHoy commented 5 months ago

Hi @rokx, the upgrade is completed as it says the screen Upgrade completed the developer console say nothing and the redirections are as follows developer tools console developer-tools network

Since after the end of the upgrade the install folder is deleted I have copied it from source as you recommend and I am performing the upgrade again from this point, I will update with the outcome.

Thank you everybody

rosanribeiro commented 5 months ago

@JoseJHoy Were you able to migrate to version 3.1.2.45 ? I still have the problem of redirection after login.

JoseJHoy commented 5 months ago

@JoseJHoy Were you able to migrate to version 10.1.2.45 ? I still have the problem of redirection after login.

Hi @rosanribeiro, no I wasn´t, I performed the upgrade again and finished with same issue

rosanribeiro commented 5 months ago

@JoseJHoy But now you're on this version? I currently have this version installed, and only this error so far. I'm waiting for a new fix

@rokx Were you able to update? Do you use this version?

JoseJHoy commented 5 months ago

@JoseJHoy But now you're on this version? I currently have this version installed, and only this error so far. I'm waiting for a new fix

@rokx Were you able to update? Do you use this version?

Hi @rosanribeiro, right now I am working on 2.1.27.36 I performed the upgrade in a clon machine and still have same issue, which mariadb or mysql are you using?

rosanribeiro commented 5 months ago

@JoseJHoy I'm using Ubuntu 24.04 / Mysql 8.0.37 / PHP v8.3.6 / nginx 1.24.0 I'm also using version 2.1.27.36 in production. On a test machine (clone), I updated to version 3.1.2.45 - But this version has this bug.

rosanribeiro commented 5 months ago

@nilsteampassnet help us

Jenlain74 commented 5 months ago

I found something!!!!!!

I compared my config files with the config files sent by @rokx

the following line is missing in my tp.config.php : 'cpassman_version' => '2.1.27'

If I add the line in my tp.config.php, then I don't have loop redirection anymore.

Now, my teampass is still not working, I'm getting a blank page but I'm not sure if it's not me who broke something, I will start a migration AGAIN when I'll have some time.

Meanwhile, please try this potential solution on your failed migrated servers.

rosanribeiro commented 5 months ago

@Jenlain74 Nice. I'll test it here. Thanks for sharing.

I will post the result.

JoseJHoy commented 5 months ago

I found something!!!!!!

I compared my config files with the config files sent by @rokx

the following line is missing in my tp.config.php : 'cpassman_version' => '2.1.27'

If I add the line in my tp.config.php, then I don't have loop redirection anymore.

Now, my teampass is still not working, I'm getting a blank page but I'm not sure if it's not me who broke something, I will start a migration AGAIN when I'll have some time.

Meanwhile, please try this potential solution on your failed migrated servers.

Hi @Jenlain74,

thank you for sharing that, I have already had that line in my config and still not working, so I supposed maybe another field was the guilty in my case. I copied tp.config.php from original source in 3.1.2.45 and only changed

'cpassman_dir' => '/var/www/MyTeampass.es', 'cpassman_url' => 'https://MyTeampass.es', 'cpassman_version' => '2.1.27

I can browse right now to Teampass index.php and there is no loop, but I can no see items and many buttons are not working, I need time to check, it seems some parameters from old versions are not upgrading correctly, so people have that parameters have our issue and others not.

Regards

rosanribeiro commented 5 months ago

@Jenlain74 'cpassman_version' => '2.1.27 Didn't work for me

@JoseJHoy Didn't work for me too

But any tips ?

necarnot commented 5 months ago

Hello,

After upgrading from 3.0.10 to 3.1.1, I'm facing the redirects error as well. The upgrade process went smooth, so no weird things. Except from the /var/www/html/TeamPass/includes/config/tp.config.php and /var/www/html/TeamPass/includes/config/settings.php were modified with default values I had to correct (mainly about the Teampass installation folder).

I tried the workaround described above, to no avail.

Of course, I tried flushing my cache, changing browser, safe mode, reading logs...

Is there any details I could add to progress on this "too many redirects" error?

rosanribeiro commented 5 months ago

Please, anybody help us ...

JoseJHoy commented 5 months ago

Hello,

After upgrading from 3.0.10 to 3.1.1, I'm facing the redirects error as well. The upgrade process went smooth, so no weird things. Except from the /var/www/html/TeamPass/includes/config/tp.config.php and /var/www/html/TeamPass/includes/config/settings.php were modified with default values I had to correct (mainly about the Teampass installation folder).

I tried the workaround described above, to no avail.

Of course, I tried flushing my cache, changing browser, safe mode, reading logs...

Is there any details I could add to progress on this "too many redirects" error?

Hi @necarnot,

as @Jenlain74 discovered the issue is related to some parameters in tp.config.php in my case was the parameter 'enable_sts' => '1', I had to change it to '0' and the redirects disappeared, but many other things were not working so I decided to upgrade from 2.1.27 to 3.0.10 and forget about 3.1.X.

@rosanribeiro ,try to change that parameter

Regards and thank you everyone

rosanribeiro commented 5 months ago

@JoseJHoy oK, I'll try it here. thank you. By the way... does version 3.0.10 work well with LDAP? What problems have you experienced with this version?

JoseJHoy commented 5 months ago

@JoseJHoy oK, I'll try it here. thank you. By the way... does version 3.0.10 work well with LDAP? What problems have you experienced with this version?

Hi @rosanribeiro LDAP works OK in 3.0.10, but you need to configure the parameters after the upgrade from 2.1.27, ldap configuration changes between versions. I have a slowness issue in 3.0.10 and some searches are not working OK maybe the database is too large or I broke something during the upgrade.

rosanribeiro commented 4 months ago

@JoseJHoy It didn't work. The project has stopped in time.

rosanribeiro commented 3 months ago

The project died... Last update 18 February, version 3.1.45 Sad about that. :(