Problem when try migration
Posted: 26 Apr 2021, 19:03
Hi, I am having trouble trying to migrate Mantis 1.2.12 to 2.24.4.
I backed up database (mysql 5) in source computer and restored in new (mysql .
I downloaded Mantis 2.24.4 in new computer and extracted.
I copied config_inc.php from old to new computer, as stated in Admin Guide, and modified variables to match new environment (e.g. database host).
I made configurations on DNS and Apache so I can reach the new mantis from a browser (database, old Mantis, new Mantis and browser are different computers).
I go to http://newsite/admin/install.php -- Everything "GOOD".
I write admin credentials of database in section "Upgrade Options".
I press "Install / Upgrade Database" - The browser shows a login page, with a message saying that the database seems to be not updated and a link to update.
I clic the link, and the browser shows again the install page. I write admin credentials of database again, press "Intall / Upgrade", which goes to login page again, and so on in an infinite loop.
I written in config_inc.php:
$g_log_level = LOG_DATABASE ;
for logging database events, but I see each time in output file:
*****************************************************************
26-Apr-2021 15:50 -03 DB config_api.php:728 config_cache_all() array (
0 => 'SELECT config_id, user_id, project_id, type, value, access_reqd FROM mantis_config_table',
1 => '0.0005',
)
26-Apr-2021 15:50 -03 DB install_helper_functions_api.php:709 install_check_config_serialization() array (
0 => 'SELECT * FROM mantis_config_table WHERE type=3',
1 => '0.0006',
)
26-Apr-2021 15:50 -03 DB authentication_api.php:1096 auth_get_current_user_id() array (
0 => 'SELECT id FROM mantis_user_table WHERE cookie_string=\'\'',
1 => '0.0005',
)
26-Apr-2021 15:50 -03 DB database_api.php:161 db_connect() array (
0 => 'SET NAMES UTF8',
1 => '0.0004',
)
26-Apr-2021 15:50 -03 DB plugin_api.php:935 plugin_register_installed() array (
0 => 'SELECT basename, priority, protected FROM mantis_plugin_table WHERE enabled=\'1\' ORDER BY priority DESC',
1 => '0.0007',
)
26-Apr-2021 15:50 -03 DB config_api.php:728 config_cache_all() array (
0 => 'SELECT config_id, user_id, project_id, type, value, access_reqd FROM mantis_config_table',
1 => '0.0006',
)
26-Apr-2021 15:50 -03 DB user_api.php:704 user_get_id_by_name() array (
0 => 'SELECT * FROM mantis_user_table WHERE username=\'administrator\'',
1 => '0.0008',
)
*****************************************************************
Can you help me?
Any help appreciated.
Thanks!
I backed up database (mysql 5) in source computer and restored in new (mysql .
I downloaded Mantis 2.24.4 in new computer and extracted.
I copied config_inc.php from old to new computer, as stated in Admin Guide, and modified variables to match new environment (e.g. database host).
I made configurations on DNS and Apache so I can reach the new mantis from a browser (database, old Mantis, new Mantis and browser are different computers).
I go to http://newsite/admin/install.php -- Everything "GOOD".
I write admin credentials of database in section "Upgrade Options".
I press "Install / Upgrade Database" - The browser shows a login page, with a message saying that the database seems to be not updated and a link to update.
I clic the link, and the browser shows again the install page. I write admin credentials of database again, press "Intall / Upgrade", which goes to login page again, and so on in an infinite loop.
I written in config_inc.php:
$g_log_level = LOG_DATABASE ;
for logging database events, but I see each time in output file:
*****************************************************************
26-Apr-2021 15:50 -03 DB config_api.php:728 config_cache_all() array (
0 => 'SELECT config_id, user_id, project_id, type, value, access_reqd FROM mantis_config_table',
1 => '0.0005',
)
26-Apr-2021 15:50 -03 DB install_helper_functions_api.php:709 install_check_config_serialization() array (
0 => 'SELECT * FROM mantis_config_table WHERE type=3',
1 => '0.0006',
)
26-Apr-2021 15:50 -03 DB authentication_api.php:1096 auth_get_current_user_id() array (
0 => 'SELECT id FROM mantis_user_table WHERE cookie_string=\'\'',
1 => '0.0005',
)
26-Apr-2021 15:50 -03 DB database_api.php:161 db_connect() array (
0 => 'SET NAMES UTF8',
1 => '0.0004',
)
26-Apr-2021 15:50 -03 DB plugin_api.php:935 plugin_register_installed() array (
0 => 'SELECT basename, priority, protected FROM mantis_plugin_table WHERE enabled=\'1\' ORDER BY priority DESC',
1 => '0.0007',
)
26-Apr-2021 15:50 -03 DB config_api.php:728 config_cache_all() array (
0 => 'SELECT config_id, user_id, project_id, type, value, access_reqd FROM mantis_config_table',
1 => '0.0006',
)
26-Apr-2021 15:50 -03 DB user_api.php:704 user_get_id_by_name() array (
0 => 'SELECT * FROM mantis_user_table WHERE username=\'administrator\'',
1 => '0.0008',
)
*****************************************************************
Can you help me?
Any help appreciated.
Thanks!