Trouble upgrading from 1.2.20
Posted: 15 Nov 2020, 18:10
I have successfully migrated a version 1.2.0 database from an old system to a new system running CENTOS 8 (keeping the version at 1.2.0)
Then I also succeeded upgrading 1.2.0 to 1.2.20 on the new system
But I am failing miserably to get it upgraded to anything later than 1.2.20. Even 1.3.0 fails.
It goes through the install process OK with no errors but when I try to login it doesn't recognise any account. I can use the default admin login but the database is empty.
I had to manually generate a $g_crypto_master_salt value. 1.2.20 does not appear to use this and it is compulsory in 1.3 and later. I have no idea whether this is related or not.
This is my config file (which works OK in 1.2.x)
$g_hostname = 'localhost';
$g_db_type = 'mysql';
$g_database_name = 'mantis_5';
$g_db_username = 'mantis';
$g_db_password = 'secretvalue';
$g_db_table_prefix = '';
$g_crypto_master_salt = 'averylongsecretstring' ;
$g_db_type is set to mysqli in some of the later versions I have tried. (I have tried a few).
I should mention that I am pretty ignorant about mysql but have managed to save and restore using instructions I have found.
I can't help feeling I am missing some simple but vital step. Can anyone help?
Then I also succeeded upgrading 1.2.0 to 1.2.20 on the new system
But I am failing miserably to get it upgraded to anything later than 1.2.20. Even 1.3.0 fails.
It goes through the install process OK with no errors but when I try to login it doesn't recognise any account. I can use the default admin login but the database is empty.
I had to manually generate a $g_crypto_master_salt value. 1.2.20 does not appear to use this and it is compulsory in 1.3 and later. I have no idea whether this is related or not.
This is my config file (which works OK in 1.2.x)
$g_hostname = 'localhost';
$g_db_type = 'mysql';
$g_database_name = 'mantis_5';
$g_db_username = 'mantis';
$g_db_password = 'secretvalue';
$g_db_table_prefix = '';
$g_crypto_master_salt = 'averylongsecretstring' ;
$g_db_type is set to mysqli in some of the later versions I have tried. (I have tried a few).
I should mention that I am pretty ignorant about mysql but have managed to save and restore using instructions I have found.
I can't help feeling I am missing some simple but vital step. Can anyone help?